Use exact match in get_var_value
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
25a1127b
TT
12020-12-14 Tom Tromey <tromey@adacore.com>
2
3 * ada-lang.c (get_var_value): Only consider exact matches.
4
e26624c6
TT
52020-12-14 Tom Tromey <tromey@adacore.com>
6
7 * dwarf2/read.c (rewrite_array_type): New function.
8 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
9
a3bdae4e
TT
102020-12-14 Tom Tromey <tromey@adacore.com>
11
12 * valarith.c (fixed_point_binop): Call error on division by zero.
13
f5756acc
TT
142020-12-13 Tom Tromey <tom@tromey.com>
15
16 * gdbtypes.c (safe_parse_type): Make argument const.
17 * value.h (parse_and_eval_type): Make argument const.
18 * eval.c (parse_and_eval_type): Make argument const.
19
ee9812a0
AB
202020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * NEWS: Mention new commands.
23 * target-dcache.c: Add 'cli/cli-cmds.h' include.
24 (maint_flush_dcache_command): New function.
25 (_initialize_target_dcache): Create new 'maint flush dcache'
26 command.
27
50a5f187
AB
282020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * NEWS: Mention new commands, and that the old commands are now
31 deprecated.
32 * cli/cli-cmds.c (maintenanceflushlist): Define.
33 * cli/cli-cmds.h (maintenanceflushlist): Declare.
34 * maint.c (_initialize_maint_cmds): Initialise
35 maintenanceflushlist.
36 * regcache.c: Add 'cli/cli-cmds.h' include.
37 (reg_flush_command): Add header comment.
38 (_initialize_regcache): Create new 'maint flush register-cache'
39 command, make 'flushregs' an alias.
40 * symtab.c: Add 'cli/cli-cmds.h' include.
41 (_initialize_symtab): Create new 'maint flush symbol-cache'
42 command, make old command an alias.
43
19c659f1
AB
442020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
45
46 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
47 result from lookup_cmd_composition_1, use the prefixes from both
48 the command and the alias instead.
49 (lookup_cmd_composition_1): Initial prefix command is the based on
50 the search list being passed in. Simplify the logic for tracking
51 the prefix command. Replace a use of alloca with a local
52 std::string.
53
44c77c32
AB
542020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
55
56 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
57 of NULL. Don't print message piece by piece, but sentence at a
58 time to allow internationalisation. Some whitespace cleanup.
59
9ef6d4a1
AB
602020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
61
62 PR cli/15104
63 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
64 deprecated_cmd_warning.
65 (deprecated_cmd_warning): Take extra parameter, call
66 lookup_cmd_composition_1 and pass new parameter through.
67 (lookup_cmd_composition_1): New function, takes implementation of
68 lookup_cmd_composition but with extra parameter.
69 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
70 passing in cmdlist.
71 * command.h (deprecated_cmd_warning): Add extra parameter to
72 declaration.
73 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
74
1536146f
AB
752020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
76
77 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
78 command.h, add extra parameter, and use this to guard giving a
79 warning.
80 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
81 include argument names in declaration, add new argument.
82 * completer.c (complete_line_internal_1): Remove unneeded
83 brackets, pass extra argument to lookup_cmd_1.
84
94ba44a6
SM
852020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
86
87 * infrun.h (debug_infrun): Make a bool.
88 * infrun.c (debug_infrun): Make a bool.
89 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
90 debug infrun".
91
74b773fc
SM
922020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
93
94 * displaced-stepping.h (displaced_debug_printf): Use
95 debug_prefixed_printf_cond.
96 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
97 (dwarf_read_debug_printf_v): Likewise.
98 * infrun.h (infrun_debug_printf): Likewise.
99 * linux-nat.c (linux_nat_debug_printf): Likewise.
100
02c72701
TT
1012020-12-11 Tom Tromey <tom@tromey.com>
102
103 * p-exp.y (intvar): Remove global.
104 (DOLLAR_VARIABLE): Change type.
105 (start): Update.
106 (exp): Call write_dollar_variable here...
107 (yylex): ... not here.
108 * m2-exp.y (DOLLAR_VARIABLE): Change type.
109 (variable): Call write_dollar_variable here...
110 (yylex): ... not here.
111 * f-exp.y (DOLLAR_VARIABLE): Change type.
112 (exp): Call write_dollar_variable here...
113 (yylex): ... not here.
114
07d9937a
TT
1152020-12-11 Tom Tromey <tom@tromey.com>
116
117 * varobj.c (varobj_create): Update.
118 (install_variable): Return void.
119
1345dee2
TT
1202020-12-11 Tom Tromey <tom@tromey.com>
121
122 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
123
446d2c03
TT
1242020-12-11 Tom Tromey <tom@tromey.com>
125
126 * varobj.c (varobj_clear_saved_item): Remove.
127 (update_dynamic_varobj_children): Update.
128 (varobj::~varobj): Don't call varobj_clear_saved_item.
129
11106495
TT
1302020-12-11 Tom Tromey <tom@tromey.com>
131
132 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
133 (update_dynamic_varobj_children, create_child)
134 (create_child_with_value): Update.
135 * varobj-iter.h (struct varobj_item) <value>: Now a
136 value_ref_ptr.
137 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
138
24fd95b4
TT
1392020-12-11 Tom Tromey <tom@tromey.com>
140
141 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
142 (varobj_get_iterator): Return unique_ptr.
143 (update_dynamic_varobj_children, install_visualizer)
144 (varobj::~varobj): Update.
145 * python/python-internal.h (py_varobj_get_iterator): Return
146 unique_ptr.
147 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
148
74462664
TT
1492020-12-11 Tom Tromey <tom@tromey.com>
150
151 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
152 (varobj_clear_saved_item, update_dynamic_varobj_children):
153 Update.
154
60ee72f6
TT
1552020-12-11 Tom Tromey <tom@tromey.com>
156
157 * varobj.c (update_dynamic_varobj_children): Update.
158 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
159 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
160 type.
161 (py_varobj_iter::next): Likewise.
162
54746ce3
TT
1632020-12-11 Tom Tromey <tom@tromey.com>
164
165 * varobj.c (update_dynamic_varobj_children, install_visualizer)
166 (varobj::~varobj): Update.
167 * varobj-iter.h (struct varobj_iter): Change to interface class.
168 (struct varobj_iter_ops): Remove.
169 (varobj_iter_next, varobj_iter_delete): Remove.
170 * python/py-varobj.c (struct py_varobj_iter): Derive from
171 varobj_iter. Add constructor, destructor. Rename members.
172 (py_varobj_iter::~py_varobj_iter): Rename from
173 py_varobj_iter_dtor.
174 (py_varobj_iter::next): Rename from py_varobj_iter_next.
175 (py_varobj_iter_ops): Remove.
176 (py_varobj_iter): Rename from py_varobj_iter_ctor.
177 (py_varobj_iter_new): Remove.
178 (py_varobj_get_iterator): Update.
179
d8f168dd
TT
1802020-12-11 Tom Tromey <tom@tromey.com>
181
182 * varobj.h (all_root_varobjs): Take a function_view.
183 * varobj.c (all_root_varobjs): Take a function_view.
184 (varobj_invalidate_iter): Remove unused parameter.
185 (varobj_invalidate): Update.
186 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
187 (mi_cmd_var_update_iter): Change parameters.
188
76deb5d9
TT
1892020-12-11 Tom Tromey <tom@tromey.com>
190
191 * varobj.c (struct varobj_root) <next>: Remove.
192 (struct vlist): Remove.
193 (rootlist): Now a std::list.
194 (install_variable, uninstall_variable, all_root_varobjs): Update.
195
2c1413a9
TT
1962020-12-11 Tom Tromey <tom@tromey.com>
197
198 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
199 (varobj_table): Now htab_t.
200 (varobj_get_handle, install_variable, uninstall_variable):
201 Update.
202 (hash_varobj, eq_varobj_and_string): New functions.
203 (hash_varobj): Update.
204
b6433ede
TT
2052020-12-11 Tom Tromey <tom@tromey.com>
206
207 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
208 * ada-lang.c (check_status_exception): Update.
209 * breakpoint.c (free_bp_location): Remove.
210 (decref_bp_location): Use bp_location_ref_policy.
211 (bpstats::bpstats): Don't call incref_bp_location.
212 (bpstats::~bpstats): Remove.
213 (bpstats::bpstats): Update.
214 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
215 (bp_location::bp_location): Update.
216 (incref_bp_location): Remove.
217 (bkpt_print_it): Update.
218 * breakpoint.h (class bp_location): Derive from
219 refcounted_object.
220 (struct bpstats): Remove destructor.
221 <bp_location_at>: Now a bp_location_ref_ptr.
222 <refc>: Remove.
223 (bp_location_ref_ptr): New typedef.
224 (struct bp_location_ref_policy): New.
225
bfcb9db8
TT
2262020-12-11 Tom Tromey <tom@tromey.com>
227
228 * thread.c (class scoped_inc_dec_ref): Remove.
229 (tp_array_compar_ascending, tp_array_compar_descending): Change
230 parameter types.
231 (thread_apply_all_command): Use thread_info_ref.
232
d634cd0b
TT
2332020-12-11 Tom Tromey <tom@tromey.com>
234
235 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
236 (stop_context::stop_context): Update.
237 (stop_context::~stop_context): Remove.
238
51107df5
TT
2392020-12-11 Tom Tromey <tom@tromey.com>
240
241 * inferior.c (current_inferior_): Change type.
242 (current_inferior, set_current_inferior, initialize_inferiors):
243 Update.
244
15f4dddd
TT
2452020-12-11 Tom Tromey <tom@tromey.com>
246
247 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
248 Change type.
249
a9f14fa5
TT
2502020-12-11 Tom Tromey <tromey@adacore.com>
251
252 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
253 field.
254 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
255 (read_atcb): Use cpu_id_offset.
256
2ccee230
KB
2572020-12-10 Kevin Buettner <kevinb@redhat.com>
258
259 * ada-lang.c (ada_fold_name): Fix off-by-one error.
260
ae1f4d2d
LM
2612020-12-10 Luis Machado <luis.machado@linaro.org>
262
263 * breakpoint.c (should_be_inserted): Don't output newline.
264
6afcd2d4
LM
2652020-12-10 Luis Machado <luis.machado@linaro.org>
266
267 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
268 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
269 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
270 * arch/aarch64.h: ... here.
271 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
272 (aarch64_maybe_swab128): New function.
273 (aarch64_sve_regs_copy_to_reg_buf)
274 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
275 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
276 the data field.
277 (TF_REG_VALUE_BYTES): New enum value.
278 (trad_frame_value_bytes_p): New function.
279 (trad_frame_set_value_bytes): New function.
280 (trad_frame_set_reg_value_bytes): New function.
281 (trad_frame_get_prev_register): Handle register values saved as bytes.
282 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
283 (struct trad_frame_saved_reg) <data>: New field.
284 (trad_frame_set_value_bytes): New prototype.
285 (trad_frame_value_bytes_p): New prototype.
286
15cc148f
MS
2872020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
288
289 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
290 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
291 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
292
12932e2c
TT
2932020-12-09 Tom Tromey <tromey@adacore.com>
294
295 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
296
5cde1d82
TT
2972020-12-09 Tom Tromey <tromey@adacore.com>
298
299 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
300 and "denominator" to gdb_mpz. Handle block forms.
301 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
302 "denominator" to gdb_mpz.
303 (finish_fixed_point_type): Update.
304 (has_zero_over_zero_small_attribute): Update.
305
d9c3a9c0
TT
3062020-12-09 Tom Tromey <tromey@adacore.com>
307
308 * expprint.c (op_name): Update.
309 * expression.h (enum exp_opcode): Update.
310 * std-operator.def: Add more opcodes.
311 * ada-operator.def, fortran-operator.def: Remove, moving contents
312 into std-operator.def.
313
6ad368b8
SM
3142020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
315
316 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
317 Return {} instead of false.
318 (get_discrete_bounds): Compute high bound only if low bound is
319 valid.
320
5b56203a
SM
3212020-12-09 Simon Marchi <simon.marchi@efficios.com>
322
323 PR 26875, PR 26901
324 * gdbtypes.c (get_discrete_low_bound): Make non-static.
325 (get_discrete_high_bound): Make non-static.
326 * gdbtypes.h (get_discrete_low_bound): New declaration.
327 (get_discrete_high_bound): New declaration.
328 * valarith.c (value_subscript): Only fetch high bound if
329 necessary.
330
14c09924
SM
3312020-12-09 Simon Marchi <simon.marchi@efficios.com>
332
333 * gdbtypes.c (get_discrete_bounds): Implement with
334 get_discrete_low_bound and get_discrete_high_bound.
335 (get_discrete_low_bound): New.
336 (get_discrete_high_bound): New.
337
1f8d2881
SM
3382020-12-09 Simon Marchi <simon.marchi@efficios.com>
339
340 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
341 callers.
342 * gdbtypes.c (get_discrete_bounds): Return bool.
343
6244c119
SM
3442020-12-09 Simon Marchi <simon.marchi@efficios.com>
345
346 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
347 (ada_value_slice): Adjust.
348 (pos_atr): Adjust.
349 * gdbtypes.c (get_discrete_bounds): Adjust.
350 (discrete_position): Return optional.
351 * gdbtypes.h (discrete_position): Return optional.
352
a4915e8d
TT
3532020-12-07 Tom Tromey <tromey@adacore.com>
354
355 * maint.c (_initialize_maint_cmds): Use expression command
356 completer for "maint print type".
357
1f58f6c2
TBA
3582020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
359
360 * completer.c (complete_explicit_location): Also add keywords
361 that start with '-' to the completion list.
362
5759831a
TBA
3632020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
364
365 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
366 keyword may be followed by any keyword.
367 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
368 'toklen' in the case for "-force-condition".
369
21e051b3
TBA
3702020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
371
372 * main.c (catch_command_errors): Add a flag parameter; invoke
373 `bpstat_do_actions` if the flag is set.
374 (execute_cmdargs): Update a call to `catch_command_errors`.
375
f51f9f1d
TV
3762020-12-07 Tom de Vries <tdevries@suse.de>
377
378 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
379
00158a68
TT
3802020-12-06 Tom Tromey <tom@tromey.com>
381
382 PR ada/26999
383 * ada-lang.c (replace_operator_with_call): Rewrite.
384
296cfb88
GF
3852020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
386
387 PR breakpoints/27009
388 * s390-tdep.h (op_bc): Correct BC opcode value.
389
63c457b9
JB
3902020-12-06 Joel Brobecker <brobecker@adacore.com>
391
392 * gmp-utils.h (gdb_mpz::safe_export): New private method.
393 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
394 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
395 (gdb_mpz::safe_export): New method.
396 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
397 Update function description.
398 (check_as_integer_raises_out_of_range_error): New function.
399 (gdb_mpz_as_integer_out_of_range): New function.
400 (_initialize_gmp_utils_selftests): Register
401 gdb_mpz_as_integer_out_of_range as a selftest.
402
3c7ba803
JB
4032020-12-05 Joel Brobecker <brobecker@adacore.com>
404
405 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
406 TARGET_CHAR_BIT.
407 (gdb_mpz::write): Likewise.
408
372ff58f
SM
4092020-12-04 Simon Marchi <simon.marchi@efficios.com>
410
411 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
412 number of displaced step buffers.
413
480af54c
SM
4142020-12-04 Simon Marchi <simon.marchi@efficios.com>
415
416 * displaced-stepping.h (struct displaced_step_buffer): Rename
417 to...
418 (struct displaced_step_buffers): ... this.
419 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
420 <struct displaced_step_buffer>: New inner class.
421 <m_buffers>: New.
422 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
423 to...
424 (displaced_step_buffers::prepare): ... this, adjust for multiple
425 buffers.
426 (displaced_step_buffer::finish): Rename to...
427 (displaced_step_buffers::finish): ... this, adjust for multiple
428 buffers.
429 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
430 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
431 adjust for multiple buffers.
432 (displaced_step_buffer::restore_in_ptid): Rename to...
433 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
434 multiple buffers.
435 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
436 for num_disp_step_buffers.
437 * linux-tdep.c (struct linux_gdbarch_data)
438 <num_disp_step_buffers>: New field.
439 (struct linux_info) <disp_step_buf>: Rename to...
440 <disp_step_bufs>: ... this, change type to
441 displaced_step_buffers.
442 (linux_displaced_step_prepare): Use
443 linux_gdbarch_data::num_disp_step_buffers to create that number
444 of buffers.
445 (linux_displaced_step_finish): Adjust.
446 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
447 (linux_displaced_step_restore_all_in_ptid): Adjust.
448 (linux_init_abi): Change supports_displaced_step parameter for
449 num_disp_step_buffers, save it in linux_gdbarch_data.
450 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
451 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
452 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
453 supports_displaced_step parameter for num_disp_step_buffers.
454 (amd64_linux_init_abi): Adjust.
455 (amd64_x32_linux_init_abi): Adjust.
456 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
457 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
458 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
459 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
460 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
461 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
462 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
463 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
464 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
465 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
466 * m68k-linux-tdep.c (m68k_linux_init_abi):
467 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
468 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
469 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
470 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
471 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
472 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
473 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
474 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
475 Change type to displaced_step_buffers.
476 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
477 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
478 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
479 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
480 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
481 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
482 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
483
d9655058
SM
4842020-12-04 Simon Marchi <simon.marchi@efficios.com>
485
486 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
487 obkstack.
488 (_initialize_linux_tdep): Register pre-init gdb data instead of
489 post-init.
490
187b041e
SM
4912020-12-04 Simon Marchi <simon.marchi@efficios.com>
492
493 * displaced-stepping.h (struct
494 displaced_step_copy_insn_closure): Adjust comments.
495 (struct displaced_step_inferior_state) <step_thread,
496 step_gdbarch, step_closure, step_original, step_copy,
497 step_saved_copy>: Remove fields.
498 (struct displaced_step_thread_state): New.
499 (struct displaced_step_buffer): New.
500 * displaced-stepping.c (displaced_step_buffer::prepare): New.
501 (write_memory_ptid): Move from infrun.c.
502 (displaced_step_instruction_executed_successfully): New,
503 factored out of displaced_step_finish.
504 (displaced_step_buffer::finish): New.
505 (displaced_step_buffer::copy_insn_closure_by_addr): New.
506 (displaced_step_buffer::restore_in_ptid): New.
507 * gdbarch.sh (displaced_step_location): Remove.
508 (displaced_step_prepare, displaced_step_finish,
509 displaced_step_copy_insn_closure_by_addr,
510 displaced_step_restore_all_in_ptid): New.
511 * gdbarch.c: Re-generate.
512 * gdbarch.h: Re-generate.
513 * gdbthread.h (class thread_info) <displaced_step_state>: New
514 field.
515 (thread_step_over_chain_remove): New declaration.
516 (thread_step_over_chain_next): New declaration.
517 (thread_step_over_chain_length): New declaration.
518 * thread.c (thread_step_over_chain_remove): Make non-static.
519 (thread_step_over_chain_next): New.
520 (global_thread_step_over_chain_next): Use
521 thread_step_over_chain_next.
522 (thread_step_over_chain_length): New.
523 (global_thread_step_over_chain_enqueue): Add debug print.
524 (global_thread_step_over_chain_remove): Add debug print.
525 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
526 Remove.
527 * infrun.c (get_displaced_stepping_state): New.
528 (displaced_step_in_progress_any_inferior): Remove.
529 (displaced_step_in_progress_thread): Adjust.
530 (displaced_step_in_progress): Adjust.
531 (displaced_step_in_progress_any_thread): New.
532 (get_displaced_step_copy_insn_closure_by_addr): Remove.
533 (gdbarch_supports_displaced_stepping): Use
534 gdbarch_displaced_step_prepare_p.
535 (displaced_step_reset): Change parameter from inferior to
536 thread.
537 (displaced_step_prepare_throw): Implement using
538 gdbarch_displaced_step_prepare.
539 (write_memory_ptid): Move to displaced-step.c.
540 (displaced_step_restore): Remove.
541 (displaced_step_finish): Implement using
542 gdbarch_displaced_step_finish.
543 (start_step_over): Allow starting more than one displaced step.
544 (prepare_for_detach): Handle possibly multiple threads doing
545 displaced steps.
546 (handle_inferior_event): Handle possibility that fork event
547 happens while another thread displaced steps.
548 * linux-tdep.h (linux_displaced_step_prepare): New.
549 (linux_displaced_step_finish): New.
550 (linux_displaced_step_copy_insn_closure_by_addr): New.
551 (linux_displaced_step_restore_all_in_ptid): New.
552 (linux_init_abi): Add supports_displaced_step parameter.
553 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
554 (linux_displaced_step_prepare): New.
555 (linux_displaced_step_finish): New.
556 (linux_displaced_step_copy_insn_closure_by_addr): New.
557 (linux_displaced_step_restore_all_in_ptid): New.
558 (linux_init_abi): Add supports_displaced_step parameter,
559 register displaced step methods if true.
560 (_initialize_linux_tdep): Register inferior_execd observer.
561 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
562 supports_displaced_step parameter, adjust call to
563 linux_init_abi. Remove call to
564 set_gdbarch_displaced_step_location.
565 (amd64_linux_init_abi): Adjust call to
566 amd64_linux_init_abi_common.
567 (amd64_x32_linux_init_abi): Likewise.
568 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
569 linux_init_abi. Remove call to
570 set_gdbarch_displaced_step_location.
571 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
572 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
573 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
574 linux_init_abi.
575 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
576 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
577 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
578 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
579 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
580 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
581 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
582 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
583 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
584 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
585 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
586 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
587 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
588 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
589 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
590 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
591 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
592 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
593 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
594 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
595 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
596 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
597 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
598 linux_init_abi. Remove call to
599 set_gdbarch_displaced_step_location.
600 * arm-tdep.c (arm_pc_is_thumb): Call
601 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
602 get_displaced_step_copy_insn_closure_by_addr.
603 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
604 clear gdbarch methods.
605 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
606 (get_ppc_per_inferior): New function.
607 (ppc_displaced_step_prepare): New function.
608 (ppc_displaced_step_finish): New function.
609 (ppc_displaced_step_restore_all_in_ptid): New function.
610 (rs6000_gdbarch_init): Register new gdbarch methods.
611 * s390-tdep.c (s390_gdbarch_init): Don't call
612 set_gdbarch_displaced_step_location, set new gdbarch methods.
613
c7acb87b
SM
6142020-12-04 Simon Marchi <simon.marchi@efficios.com>
615
616 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
617 * aarch64-tdep.h: Include displaced-stepping.h.
618 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
619 Move here.
620 (displaced_step_copy_insn_closure_up): Move here.
621 (struct buf_displaced_step_copy_insn_closure): Move here.
622 (struct displaced_step_inferior_state): Move here.
623 (debug_displaced): Move here.
624 (displaced_debug_printf_1): Move here.
625 (displaced_debug_printf): Move here.
626 * displaced-stepping.c: New file.
627 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
628 * gdbarch.h: Re-generate.
629 * inferior.h: Include displaced-stepping.h.
630 * infrun.h (debug_displaced): Move to displaced-stepping.h.
631 (displaced_debug_printf_1): Likewise.
632 (displaced_debug_printf): Likewise.
633 (struct displaced_step_copy_insn_closure): Likewise.
634 (displaced_step_copy_insn_closure_up): Likewise.
635 (struct buf_displaced_step_copy_insn_closure): Likewise.
636 (struct displaced_step_inferior_state): Likewise.
637 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
638 (displaced_debug_printf_1): Likewise.
639 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
640 Likewise.
641 (_initialize_infrun): Don't register "set/show debug displaced".
642
94b24c74
SM
6432020-12-04 Simon Marchi <simon.marchi@efficios.com>
644
645 * linux-tdep.c (get_linux_inferior_data): Add inferior
646 parameter.
647 (linux_vsyscall_range): Pass current inferior.
648
bab37966
SM
6492020-12-04 Simon Marchi <simon.marchi@efficios.com>
650
651 * infrun.c (displaced_step_prepare_throw): Change return type to
652 displaced_step_prepare_status.
653 (displaced_step_prepare): Likewise.
654 (displaced_step_finish): Change return type to
655 displaced_step_finish_status.
656 (resume_1): Adjust.
657 (stop_all_threads): Adjust.
658 * displaced-stepping.h: New file.
659
7def77a1
SM
6602020-12-04 Simon Marchi <simon.marchi@efficios.com>
661
662 * infrun.c (displaced_step_fixup): Rename to...
663 (displaced_step_finish): ... this, update all callers.
664
1152d984
SM
6652020-12-04 Simon Marchi <simon.marchi@efficios.com>
666
667 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
668 (get_displaced_step_copy_insn_closure_by_addr): ... this.
669 Update all users.
670 (displaced_step_closure): Rename to...
671 (displaced_step_copy_insn_closure): ... this. Update all users.
672 (displaced_step_closure_up): Rename to...
673 (displaced_step_copy_insn_closure_up). ... this. Update all
674 users.
675 (buf_displaced_step_closure): Rename to...
676 (buf_displaced_step_copy_insn_closure): ... this. Update all
677 users.
678 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
679 (get_displaced_step_copy_insn_closure_by_addr): ... this.
680 Update all users.
681 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
682 (aarch64_displaced_step_copy_insn_closure): ... this. Update
683 all users.
684 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
685 (amd64_displaced_step_copy_insn_closure): ... this. Update all
686 users.
687 * arm-tdep.h (arm_displaced_step_closure): Rename to...
688 (arm_displaced_step_copy_insn_closure): ... this. Update all
689 users.
690 * i386-tdep.h (i386_displaced_step_closure): Rename to...
691 (i386_displaced_step_copy_insn_closure): ... this. Update all
692 users.
693 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
694 (ppc_displaced_step_copy_insn_closure): ... this. Update all
695 users.
696 * s390-tdep.c (s390_displaced_step_closure): Rename to...
697 (s390_displaced_step_copy_insn_closure): ... this. Update all
698 users.
699 * gdbarch.h: Re-generate.
700 * gdbarch.c: Re-generate.
701
28d5518b
SM
7022020-12-04 Simon Marchi <simon.marchi@efficios.com>
703
704 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
705 (global_thread_step_over_chain_enqueue): ... this. Update all
706 users.
707 (thread_step_over_chain_remove): Rename to...
708 (global_thread_step_over_chain_remove): ... this. Update all
709 users.
710 (thread_step_over_chain_next): Rename to...
711 (global_thread_step_over_chain_next): ... this. Update all
712 users.
713 * infrun.h (step_over_queue_head): Rename to...
714 (global_thread_step_over_chain_head): ... this. Update all
715 users.
716 * infrun.c (step_over_queue_head): Rename to...
717 (global_thread_step_over_chain_head): ... this. Update all
718 users.
719 * thread.c (step_over_chain_remove): Rename to...
720 (thread_step_over_chain_remove): ... this. Update all users.
721 (thread_step_over_chain_next): Rename to...
722 (global_thread_step_over_chain_next): ... this. Update all
723 users.
724 (thread_step_over_chain_enqueue): Rename to...
725 (global_thread_step_over_chain_enqueue): ... this. Update all
726 users.
727 (thread_step_over_chain_remove): Rename to...
728 (global_thread_step_over_chain_remove): ... this. Update all
729 users.
730
f5f01699
SM
7312020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
732
733 * infrun.c (get_displaced_stepping_state): Remove, change
734 callers to access the field directly.
735
c0aba012
SM
7362020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
737
738 * infrun.c (handle_inferior_event): Restore displaced step
739 buffer bytes in child process when handling fork, even if fork
740 happened in another thread than the displaced-stepping one.
741
3b7a962d
SM
7422020-12-04 Simon Marchi <simon.marchi@efficios.com>
743
744 * infrun.c (infrun_inferior_execd): New function.
745 (_initialize_infrun): Attach inferior_execd observer.
746
42a4fec5
SM
7472020-12-04 Simon Marchi <simon.marchi@efficios.com>
748
749 * observable.h (inferior_execd): Declare new observable.
750 * observable.c (inferior_execd): Declare new observable.
751 * infrun.c (follow_exec): Notify inferior_execd observer.
752 * jit.c (jit_inferior_created_hook): Make static.
753 (_initialize_jit): Register inferior_execd observer.
754 * jit.h (jit_inferior_created_hook): Remove declaration.
755 * solib.c (_initialize_solib): Register inferior_execd observer.
756
aafdfb4e
TV
7572020-12-04 Tom de Vries <tdevries@suse.de>
758
759 PR gdb/27003
760 * completer.c (completion_tracker::build_completion_result): Don't
761 access match_list[0][-1].
762
f99b5177
TT
7632020-12-04 Tom Tromey <tromey@adacore.com>
764
765 * linespec.c (struct linespec_token): Rename; remove typedef.
766 * guile/scm-block.c (struct block_smob): Remove typedef.
767 (struct block_syms_progress_smob): Likewise.
768 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
769 * guile/scm-symtab.c (symtab_smob): Remove typedef.
770 (struct sal_smob): Remove typedef.
771 * guile/scm-param.c (struct param_smob): Remove typedef.
772 * guile/scm-progspace.c (struct pspace_smob): Rename.
773 * guile/scm-objfile.c (struct objfile_smob): Rename.
774 * guile/scm-iterator.c (struct iterator_smob): Rename.
775 * guile/scm-frame.c (struct frame_smob): Rename.
776 * guile/scm-arch.c (struct arch_smob): Rename.
777 * guile/scm-type.c (struct field_smob): Remove typedef.
778 (struct type_smob): Rename.
779 * guile/scm-cmd.c (struct command_smob): Remove typedef.
780 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
781 * guile/scm-value.c (struct value_smob): Remove typedef.
782 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
783 * guile/guile-internal.h (struct scheme_variable)
784 (struct scheme_function, struct scheme_integer_constant)
785 (struct gdb_smob, struct chained_gdb_smob)
786 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
787 (objfile_smob, pspace_smob, type_smob): Remove typedef.
788 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
789 (struct pretty_printer_worker_smob): Remove typedef.
790 * guile/scm-exception.c (struct exception_smob): Remove typedef.
791 * python/py-block.c (struct block_object): Remove typedef.
792 (block_syms_iterator_object): Update.
793 (set_block): Update.
794 (block_syms_iterator_object): Remove typedef.
795 * python/py-inferior.c (struct membuf_object): Remove typedef.
796 * python/py-symtab.c (struct symtab_object): Remove typedef.
797 (set_symtab): Update.
798 (sal_object): Remove typedef.
799 (set_sal): Update.
800 * python/py-frame.c (frame_object): Remove typedef.
801 * python/py-record-btrace.c (struct btpy_list_object): Remove
802 typedef.
803 * python/py-arch.c (struct arch_object): Remove typedef.
804 * python/py-linetable.c (struct linetable_entry_object)
805 (linetable_object, struct ltpy_iterator_object): Remove typedef.
806 * python/py-events.h (eventregistry_object): Remove typedef.
807 (struct events_object): Remove typedef.
808 * python/python-internal.h (gdbpy_breakpoint_object): Remove
809 typedef.
810 (thread_object): Remove typedef.
811 * python/py-progspace.c (pspace_object): Remove typedef.
812 * python/py-value.c (struct value_object): Remove typedef.
813 * python/py-record.h (recpy_record_object): Remove typedef.
814 (struct recpy_element_object): Remove typedef.
815 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
816 * python/py-objfile.c (objfile_object): Remove typedef.
817 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
818 * python/py-type.c (type_object): Remove typedef.
819 (typy_iterator_object): Update.
820 (set_type): Update.
821 (field_object): Remove typedef.
822 (typy_iterator_object): Remove typedef.
823 * python/py-registers.c (register_descriptor_iterator_object):
824 Remove typedef.
825 (struct register_descriptor_object)
826 (struct reggroup_iterator_object, struct reggroup_object): Remove
827 typedef.
828 * python/py-record.c (recpy_gap_object): Remove typedef.
829 * python/py-symbol.c (symbol_object): Remove typedef.
830 (set_symbol): Update.
831 * python/py-event.h (event_object): Remove typedef.
832 * python/py-param.c (parmpy_object): Remove typedef.
833 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
834 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
835 (unwind_info_object, struct cached_frame_info): Likewise.
836
91f87213
TT
8372020-12-04 Tom Tromey <tromey@adacore.com>
838
839 * value.c (value_internal_function_name): Make return type const.
840 * value.h (value_internal_function_name): Make return type const.
841
5382f971
LM
8422020-12-04 Luis Machado <luis.machado@linaro.org>
843
844 * aarch64-tdep.c (submask, bit, bits): Remove.
845 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
846 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
847 (aarch64_decode_cb, aarch64_decode_tb)
848 (aarch64_decode_ldr_literal): Use sbits to extract a signed
849 immediate.
850 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
851
b6a6aa07
TV
8522020-12-04 Tom de Vries <tdevries@suse.de>
853
854 PR tdep/27007
855 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
856
0bc2e38d
SM
8572020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
858
859 PR gdb/26876
860 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
861 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
862
25428040
AB
8632020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
864
865 * arch/riscv.c: Include 'rv32e-xregs.c'.
866 (riscv_create_target_description): Update to handle rv32e.
867 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
868 member variable.
869 <operator==>: Update to account for new field.
870 <hash>: Likewise.
871 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
872 * features/riscv/rv32e-xregs.c: Generated.
873 * features/riscv/rv32e-xregs.xml: New file.
874 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
875 file.
876 (riscv_debug_infcall): Likewise.
877 (riscv_debug_unwinder): Likewise.
878 (riscv_debug_gdbarch): Likewise.
879 (enum riscv_register_required_status): Delete.
880 (struct riscv_register_feature): Add constructor, delete default
881 constructor, copy, and assign constructors.
882 (struct riscv_register_feature::register_info) <required>: Delete.
883 <check>: Update comment and arguments.
884 (struct riscv_register_feature) <name>: Change to member function.
885 <prefer_first_name>: Delete.
886 <tdesc_feature>: New member function.
887 <registers>: Rename to...
888 <m_registers>: ...this.
889 <m_feature_name>: New member variable.
890 (riscv_register_feature::register_info::check): Update arguments.
891 (riscv_xreg_feature): Rewrite as class, create a single static
892 instance of the class.
893 (riscv_freg_feature): Likewise.
894 (riscv_virtual_feature): Likewise.
895 (riscv_csr_feature): Likewise.
896 (riscv_create_csr_aliases): Has become a member function inside
897 riscv_csr_feature class.
898 (riscv_abi_embedded): New function definition.
899 (riscv_register_name): Adjust to use new feature objects.
900 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
901 and adjust available argument registers.
902 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
903 (riscv_check_tdesc_feature): Delete.
904 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
905 (riscv_gdbarch_init): Delete target description checking code, and
906 instead call to the new feature objects to perform the checks.
907 Reorder handling of no abi information case, allows small code
908 simplification.
909 (_initialize_riscv_tdep): Remove call, this is now done in the
910 riscv_csr_feature constructor.
911 * riscv-tdep.h (riscv_abi_embedded): Declare.
912
533b2ae0
AB
9132020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
914
915 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
916 DECLARE_CSR_ALIAS.
917
e4502042
AB
9182020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
919
920 * riscv-tdep.c (riscv_is_unknown_csr): New function,
921 implementation moved from riscv_register_reggroup_p.
922 (riscv_register_reggroup_p): Update group handling for unknown
923 CSRs.
924
2bf3b79d
SDJ
9252020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
926
927 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
928 (dwarf2_get_dwz_file): Convert 'filename' to a
929 std::string. Use dwz_search_other_debugdirs to search for DWZ
930 files in the debug-file-directories provided by the user as well.
931
77bf7e99
TT
9322020-12-01 Tom Tromey <tom@tromey.com>
933
934 * parse.c (expr_builder::expr_builder): Initialize expout.
935 (expr_builder::release): Use expression::resize.
936 (expression::expression, expression::~expression)
937 (expression::resize): New methods.
938 (write_exp_elt): Use expression::resize.
939 (prefixify_expression): Update.
940 (increase_expout_size): Use expression::resize.
941 * expression.h (struct expression): Add constructor, destructor.
942 <resize>: New method.
943 (expression_up): Change type.
944
539d71e8
RA
9452020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
946 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
947 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
948 set region.
949
7ce05d21
TV
9502020-11-30 Tom de Vries <tdevries@suse.de>
951
952 PR symtab/26905
953 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
954 is_reference parameter.
955 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
956
88b91969
TT
9572020-11-30 Tom Tromey <tom@tromey.com>
958
959 * rust-lang.c (rust_op_name): Remove.
960 (exp_descriptor_rust): Update.
961 * parser-defs.h (op_name_standard): Don't declare.
962 (struct exp_descriptor) <op_name>: Remove.
963 * parse.c (exp_descriptor_standard): Update.
964 * opencl-lang.c (exp_descriptor_opencl): Update.
965 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
966 * f-lang.c (op_name_f): Remove.
967 (f_language::exp_descriptor_tab): Update.
968 * expression.h (op_name): Update.
969 * expprint.c (op_name): Rewrite.
970 (op_name_standard): Remove.
971 (dump_raw_expression, dump_subexp): Update.
972 * c-lang.c (exp_descriptor_c): Update.
973 * ax-gdb.c (gen_expr): Update.
974 * ada-lang.c (ada_op_name): Remove.
975 (ada_exp_descriptor): Update.
976
1cd49c43
TT
9772020-11-30 Tom Tromey <tom@tromey.com>
978
979 * eval.c (init_array_element): Remove.
980 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
981
96fb9086
HD
9822020-11-29 Hannes Domani <ssbssa@yahoo.de>
983
984 PR tui/26973
985 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
986 static locator win info.
987
b4132322
AR
9882020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
989
990 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
991 program.
992
3df8c6af
AB
9932020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
994
995 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
996 is always initialized.
997
0ae45769
RA
9982020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
999 * MAINTAINERS (Write After Approval): Add myself.
1000
239ca5e4
PW
10012020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1002
1003 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1004 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1005
cbfa382a
TT
10062020-11-25 Tom Tromey <tom@tromey.com>
1007
1008 * eval.c (evaluate_subexp_standard): Remove unnecessary
1009 variables.
1010
af30c400
TT
10112020-11-25 Tom Tromey <tom@tromey.com>
1012
1013 * d-lang.c: Include parser-defs.h.
1014 * rust-lang.c: Include parser-defs.h.
1015 * c-lang.h: Do not include parser-defs.h.
1016
1c64f6cb
SM
10172020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1018
1019 * regcache.h (struct cached_reg): Remove typedef.
1020
2c20a601
JB
10212020-11-24 Joel Brobecker <brobecker@adacore.com>
1022
1023 * README: Fix the URL of the MPFR library.
1024
c609df64
JB
10252020-11-24 Joel Brobecker <brobecker@adacore.com>
1026
1027 * README: Document the --with-libgmp-prefix configure option.
1028
fa123c32
JB
10292020-11-24 Joel Brobecker <brobecker@adacore.com>
1030
1031 * NEWS: Add entry documenting support for DWARF-based fixed
1032 point types.
1033
0fb8bb02
JB
10342020-11-24 Joel Brobecker <brobecker@adacore.com>
1035
1036 * NEWS: Document that building GDB now requires GMP.
1037
4afa9fd9
JB
10382020-11-24 Joel Brobecker <brobecker@adacore.com>
1039
1040 * typeprint.c (print_type_scalar): Add handling of
1041 TYPE_CODE_FIXED_POINT.
1042
af619ce9
JB
10432020-11-24 Joel Brobecker <brobecker@adacore.com>
1044
1045 * valarith.c (fixed_point_binop): Replace the
1046 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1047 users accordingly.
1048
e6fcee3a
JB
10492020-11-24 Joel Brobecker <brobecker@adacore.com>
1050
1051 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1052 replacing fixed_point_scaling_factor. All callers updated
1053 throughout this project.
1054 (fixed_point_scaling_factor): Delete declaration.
1055 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1056 fixed_point_scaling_factor. Adjust implementation accordingly.
1057
d19937a7
JB
10582020-11-24 Joel Brobecker <brobecker@adacore.com>
1059
1060 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1061 replacing the fixed_point_type_base_type function. All callers
1062 updated throughout this project.
1063 (fixed_point_type_base_type): Remove declaration.
1064 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1065 fixed_point_type_base_type. Adjust implementation accordingly.
1066
2a12c336
JB
10672020-11-24 Joel Brobecker <brobecker@adacore.com>
1068
1069 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1070 New methods.
1071 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1072 (TYPE_FIXED_POINT_INFO): Delete macro.
1073 (allocate_fixed_point_type_info): Change return type to void.
1074 * gdbtypes.c (copy_type_recursive): Replace the use of
1075 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1076 (fixed_point_scaling_factor): Likewise.
1077 (allocate_fixed_point_type_info): Change return type to void.
1078 Adjust implementation accordingly.
1079 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1080 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1081
c9f0b43f
JB
10822020-11-24 Joel Brobecker <brobecker@adacore.com>
1083
1084 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1085 into one single gdb::array_view parameter.
1086 (gdb_mpz::write): Likewise.
1087 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1088 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1089 into one single gdb::array_view parameter.
1090 Adjust implementation accordingly.
1091 (gdb_mpz::write): Likewise.
1092 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1093 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1094 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1095
987b6703
JB
10962020-11-24 Joel Brobecker <brobecker@adacore.com>
1097
1098 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1099 Change return type to std::string. Update all callers.
1100 * gmp-utils.c (gmp_string_printf): Likewise.
1101
4fbb7cce
JB
11022020-11-24 Joel Brobecker <brobecker@adacore.com>
1103
1104 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1105 instead of mpq_set_ui to initialize our GMP rational.
1106
d6ab69dd
TV
11072020-11-23 Tom de Vries <tdevries@suse.de>
1108
1109 * debuginfod-support.c (debuginfod_source_query)
1110 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1111
dab72643
TT
11122020-11-21 Tom Tromey <tom@tromey.com>
1113
1114 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1115
c0ad05d5
SM
11162020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1117
1118 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1119 Pass 2.0 to pow.
1120 (gdb_mpz_write_all_from_small): Likewise.
1121
a43b29c9
SM
11222020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1123
1124 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1125 of abs.
1126
ae41200b
NA
11272020-11-20 Nick Alcock <nick.alcock@oracle.com>
1128
1129 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1130 ctf_arc_open_by_name.
1131
139633c3
NA
11322020-11-20 Nick Alcock <nick.alcock@oracle.com>
1133
1134 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1135 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1136
cbbcd7a7
PA
11372020-11-20 Pedro Alves <pedro@palves.net>
1138
1139 * language.c (language_arch_info::lookup_primitive_type): Use
1140 gdb::function_view instead of gdb::function.
1141 (template language_lookup_primitive_type): Rename to ...
1142 (language_lookup_primitive_type_1): ... this, and make static.
1143 (language_lookup_primitive_type(const struct language_defn *,
1144 struct gdbarch *, const char *): Make non-template.
1145 (language_lookup_primitive_type(const struct language_defn *,
1146 struct gdbarch *, std::function<bool (struct type *)>): Make
1147 non-template and use gdb::function_view.
1148 * language.h (language_arch_info::lookup_primitive_type): Use
1149 gdb::function_view instead of std::function.
1150 (language_lookup_primitive_type): No longer template.
1151 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1152 lambda instead of a std::function.
1153
d5ef21c3
AA
11542020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1155
1156 PR tdep/26916
1157 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1158 and STOCFH.
1159
a5adb8f3
SM
11602020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1161
1162 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1163
70125a45
SM
11642020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1165
1166 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1167 in `loop_cb` parameter.
1168 * gdbarch.c: Re-generate.
1169 * gdbarch.h: Re-generate.
1170 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1171 parameter.
1172 * arch-utils.h (default_read_core_file_mappings): Likewise.
1173 * corelow.c (core_target::build_file_mappings): Likewise.
1174 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1175 (linux_core_info_proc_mappings): Likewise.
1176
a5c641b5
AB
11772020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1180 * NEWS: Mention new options.
1181 * f-array-walker.h: New file.
1182 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1183 (repack_array_slices): New static global.
1184 (show_repack_array_slices): New function.
1185 (fortran_array_slicing_debug): New static global.
1186 (show_fortran_array_slicing_debug): New function.
1187 (value_f90_subarray): Delete.
1188 (skip_undetermined_arglist): Delete.
1189 (class fortran_array_repacker_base_impl): New class.
1190 (class fortran_lazy_array_repacker_impl): New class.
1191 (class fortran_array_repacker_impl): New class.
1192 (fortran_value_subarray): Complete rewrite.
1193 (set_fortran_list): New static global.
1194 (show_fortran_list): Likewise.
1195 (_initialize_f_language): Register new commands.
1196 (fortran_adjust_dynamic_array_base_address_hack): New function.
1197 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1198 Declare.
1199 * f-valprint.c: Include 'f-array-walker.h'.
1200 (class fortran_array_printer_impl): New class.
1201 (f77_print_array_1): Delete.
1202 (f77_print_array): Delete.
1203 (fortran_print_array): New.
1204 (f_value_print_inner): Update to call fortran_print_array.
1205 * gdbtypes.c: Include 'f-lang.h'.
1206 (resolve_dynamic_type_internal): Call
1207 fortran_adjust_dynamic_array_base_address_hack.
1208
a15a5258
AB
12092020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1210
1211 * breakpoint.c (struct watch_options): New struct.
1212 (watch_option_defs): New static global.
1213 (make_watch_options_def_group): New function.
1214 (watch_maybe_just_location): Convert option parsing.
1215 (watch_command_completer): New function.
1216 (_initialize_breakpoint): Build help text using options mechanism.
1217
2e362716
AB
12182020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1221 (watch_command_1): Update parameter types. Convert locals to
1222 bool.
1223 (watch_command_wrapper): Change parameter type.
1224 (watch_maybe_just_location): Change locals to bool.
1225 (rwatch_command_wrapper): Update parameter type.
1226 (awatch_command_wrapper): Update parameter type.
1227 * breakpoint.h (watch_command_wrapper): Change parameter type.
1228 (rwatch_command_wrapper): Update parameter type.
1229 (awatch_command_wrapper): Update parameter type.
1230 * eval.c (fetch_subexp_value): Change parameter type.
1231 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1232 'false' not '0'.
1233 * value.h (fetch_subexp_value): Change parameter type in
1234 declaration.
1235
b3ff61f8
AB
12362020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1237
1238 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1239 skip_spaces.
1240
5b7d45d3
KS
12412020-11-18 Keith Seitz <keiths@redhat.com>
1242
1243 * linux-tdep.c (dump_note_entry_p): Return true instead of
1244 checking `filename'.
1245
c44191f8
TV
12462020-11-18 Tom de Vries <tdevries@suse.de>
1247
1248 * debuginfod-support.c (debuginfod_source_query)
1249 (debuginfod_debuginfo_query): Also do early exit if
1250 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1251
5d8254e1
TV
12522020-11-18 Tom de Vries <tdevries@suse.de>
1253
1254 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1255 warning.
1256
584903d3
SM
12572020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1258
1259 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1260 callers. Move doc here.
1261 * gdbtypes.c (get_array_bounds): Return bool
1262
6f2643db
AB
12632020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1266 assert.
1267 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1268 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1269 case to the default.
1270
037d7135
AB
12712020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * printcmd.c: Include 'safe-ctype.c'.
1274 (skip_over_slash_fmt): New function.
1275 (print_command_completer): Call skip_over_slash_fmt.
1276 (display_and_x_command_completer): New function.
1277 (_initialize_printcmd): Add command completion for 'x' and
1278 'display'.
1279
2b3cb400
PA
12802020-11-16 Pedro Alves <pedro@palves.net>
1281
1282 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1283 (get_prev_frame_always_1): ... to here.
1284 * inline-frame.c (inline_frame_this_id): Mention
1285 get_prev_frame_always_1 in comment.
1286
b74dbc20
JB
12872020-11-15 Joel Brobecker <brobecker@adacore.com>
1288
1289 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1290 handling.
1291 (value_less): Add fixed-point handling.
1292
0a12719e
JB
12932020-11-15 Joel Brobecker <brobecker@adacore.com>
1294
1295 * eval.c (binop_promote): Add fixed-point type handling.
1296 * valarith.c (fixed_point_binop): New function.
1297 (scalar_binop): Add fixed-point type handling.
1298 (value_neg): Add fixed-point type handling.
1299 * valops.c (value_cast_to_fixed_point): New function.
1300 (value_cast): Add fixed-point type handling.
1301
0c9150e4
JB
13022020-11-15 Joel Brobecker <brobecker@adacore.com>
1303
1304 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1305 range types.
1306 * c-typeprint.c (c_type_print_varspec_prefix)
1307 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1308 TYPE_CODE_FIXED_POINT handling.
1309 * p-typeprint.c (pascal_type_print_varspec_prefix)
1310 (pascal_type_print_varspec_suffix): Likewise.
1311 * typeprint.c (print_type_fixed_point): New function.
1312 * typeprint.h (print_type_fixed_point): Add declaration.
1313
b26daff9
JB
13142020-11-15 Joel Brobecker <brobecker@adacore.com>
1315
1316 * printcmd.c (print_scalar_formatted): Add fixed-point type
1317 handling when options->format is set.
1318
09584414
JB
13192020-11-15 Joel Brobecker <brobecker@adacore.com>
1320
1321 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1322 * dwarf2/read.c (get_dwarf2_rational_constant)
1323 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1324 (has_zero_over_zero_small_attribute): New functions.
1325 read_base_type, set_die_type): Add fixed-point type handling.
1326 * gdb-gdb.py.in: Add fixed-point type handling.
1327 * gdbtypes.c: #include "gmp-utils.h".
1328 (create_range_type, set_type_code): Add fixed-point type handling.
1329 (init_fixed_point_type): New function.
1330 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1331 (print_fixed_point_type_info): New function.
1332 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1333 handling.
1334 (fixed_point_type_storage): New typedef.
1335 (fixed_point_objfile_key): New static global.
1336 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1337 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1338 functions.
1339 * gdbtypes.h: #include "gmp-utils.h".
1340 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1341 (union type_specific) <fixed_point_info>: New field.
1342 (struct fixed_point_type_info): New struct.
1343 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1344 (init_fixed_point_type, is_fixed_point_type)
1345 (fixed_point_type_base_type, fixed_point_scaling_factor)
1346 (allocate_fixed_point_type_info): Add declarations.
1347 * valprint.c (generic_val_print_fixed_point): New function.
1348 (generic_value_print): Add fixed-point type handling.
1349 * value.c (value_as_address, unpack_long): Add fixed-point type
1350 handling.
1351
e55c6530
JB
13522020-11-15 Joel Brobecker <brobecker@adacore.com>
1353
1354 * utils.h (uinteger_pow): Add declaration.
1355 * utils.c (uinteger_pow): Moved here (without changes)...
1356 * valarith.c (uinteger_pow): ... from here.
1357
b34c74ab
JB
13582020-11-15 Joel Brobecker <brobecker@adacore.com>
1359
40d9d2fd 1360 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1361 * unittests/gmp-utils-selftests.c: New file.
1362 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1363 unittests/gmp-utils-selftests.c.
1364 (COMMON_SFILES) Add gmp-utils.c.
1365 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1366
1b4ac058
JB
13672020-11-15 Joel Brobecker <brobecker@adacore.com>
1368
1369 * configure.ac: Generate an error if a usable GMP library
1370 could not be found.
1371 * configure: Regenerate.
1372
2c947d9b
JB
13732020-11-15 Joel Brobecker <brobecker@adacore.com>
1374
1375 * configure.ac: Add support for --with-libgmp-prefix.
1376 * Makefile.in (LIBGMP): New variable.
1377 (CLIBS): Include $(LIBGMP).
1378 * configure, config.in: Regenerate
1379
9dd02fc0
AB
13802020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 PR cli/26879
1383 * f-exp.y (COMPLETE): New token.
1384 (exp): Two new rules for tab-completion.
1385 (saw_name_at_eof): New static global.
1386 (last_was_structop): Likewise.
1387 (yylex): Set new variables, and return COMPLETE token at the end
1388 of the input stream in some cases.
1389
758cb810
TT
13902020-11-14 Tom Tromey <tom@tromey.com>
1391
1392 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1393
749065b7
TT
13942020-11-14 Tom Tromey <tom@tromey.com>
1395
1396 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1397
2c5b1849
SM
13982020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1399
1400 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1401
e8b2f0d9
TT
14022020-11-13 Tom Tromey <tom@tromey.com>
1403
1404 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1405 (convert_escape, parse_one_string): Constify.
1406
25f4c262
KS
14072020-11-13 Keith Seitz <keiths@redhat.com>
1408
1409 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1410 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1411 outside of ELF segments" warning for debugin
1412
9d3ab915
KS
14132020-11-13 Keith Seitz <keiths@redhat.com>
1414
1415 PR gdb/23034
1416 * elfread.c (elf_symfile_segments): Output a BFD file name
1417 for the "Loadable section ... outside of ELF segments" warning.
1418
9ecab40c
SM
14192020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1420
1421 PR gdb/26835
1422 * arm-tdep.c (class arm_instruction_reader): New.
1423 (target_arm_instruction_reader): New.
1424 (arm_analyze_prologue): Add instruction reader parameter and use
1425 it. Use arm_expand_immediate.
1426 (class target_arm_instruction_reader): Adjust.
1427 (arm_skip_prologue): Adjust.
1428 (arm_expand_immediate): New.
1429 (arm_scan_prologue): Adjust.
1430 (arm_analyze_prologue_test): New.
1431 (class test_arm_instruction_reader): New.
1432
5a7cf527
AB
14332020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1434
1435 * f-lang.c (fortran_argument_convert): Add declaration. Add
1436 header comment, taken from f-lang.h. Make static.
1437 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1438 (fortran_argument_convert): Delete declaration.
1439
7bea47f0
AB
14402020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * ada-exp.y (find_primitive_type): Make parameter const.
1443 * ada-lang.c (enum ada_primitive_types): Delete.
1444 (ada_language::language_arch_info): Update.
1445 * c-lang.c (enum c_primitive_types): Delete.
1446 (c_language_arch_info): Update.
1447 (enum cplus_primitive_types): Delete.
1448 (cplus_language::language_arch_info): Update.
1449 * d-lang.c (enum d_primitive_types): Delete.
1450 (d_language::language_arch_info): Update.
1451 * f-lang.c (enum f_primitive_types): Delete.
1452 (f_language::language_arch_info): Update.
1453 * go-lang.c (enum go_primitive_types): Delete.
1454 (go_language::language_arch_info): Update.
1455 * language.c (auto_or_unknown_language::language_arch_info):
1456 Update.
1457 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1458 (language_string_char_type): Add header comment, call function in
1459 language_arch_info.
1460 (language_bool_type): Likewise
1461 (language_arch_info::bool_type): Define.
1462 (language_lookup_primitive_type_1): Delete.
1463 (language_lookup_primitive_type): Rewrite as a templated function
1464 to call function in language_arch_info, then instantiate twice.
1465 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1466 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1467 (language_arch_info::lookup_primitive_type): Define twice with
1468 different signatures.
1469 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1470 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1471 member function in language_arch_info.
1472 * language.h (language_arch_info): Complete rewrite.
1473 (language_lookup_primitive_type): Make templated.
1474 * m2-lang.c (enum m2_primitive_types): Delete.
1475 (m2_language::language_arch_info): Update.
1476 * opencl-lang.c (OCL_P_TYPE): Delete.
1477 (enum opencl_primitive_types): Delete.
1478 (opencl_type_data): Delete.
1479 (builtin_opencl_type): Delete.
1480 (lookup_opencl_vector_type): Update.
1481 (opencl_language::language_arch_info): Update, lots of content
1482 moved from...
1483 (build_opencl_types): ...here. This function is now deleted.
1484 (_initialize_opencl_language): Delete.
1485 * p-lang.c (enum pascal_primitive_types): Delete.
1486 (pascal_language::language_arch_info): Update.
1487 * rust-lang.c (enum rust_primitive_types): Delete.
1488 (rust_language::language_arch_info): Update.
1489
bf6e5d01
SM
14902020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1491
1492 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1493 dwarf2_queue_guard.
1494
1350c3b4
SM
14952020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1496
1497 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1498 comment.
1499
6f738b01
SM
15002020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1501
1502 * dwarf2/read.c (dwarf_read_debug_printf,
1503 dwarf_read_debug_printf_v): New macros, use throughout the file.
1504
10c19fad
SV
15052020-11-12 Shahab Vahedi <shahab@synopsys.com>
1506
10806efd 1507 PR tdep/27015
10c19fad
SV
1508 * arc-linux-tdep.c (collect_register): Populate "eret" by
1509 "pc" value from the regcache when asked for "pc" value.
1510
1f2624a3
TT
15112020-11-12 Tom Tromey <tom@tromey.com>
1512
1513 PR rust/26799:
1514 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1515 exist.
1516
ab33b152
AB
15172020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1518
1519 * features/Makefile (XMLTOC): Add rx.xml.
1520 (FEATURE_XMLFILES): Remove rx.xml.
1521 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1522 * features/rx.c: Regenerate.
1523 * features/rx.xml: Wrap in `target` tags, and reindent.
1524 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1525 structure.
1526 (maint_print_c_tdesc_opt_def): New typedef.
1527 (maint_print_c_tdesc_opt_defs): New static global.
1528 (make_maint_print_c_tdesc_options_def_group): New function.
1529 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1530 print single feature C file for target descriptions containing a
1531 single feature.
1532 (maint_print_c_tdesc_cmd_completer): New function.
1533 (_initialize_target_descriptions): Update call to register command
1534 completer, and include command line flag in help text.
1535
550820e1
AB
15362020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1537
1538 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1539 numbers.
1540 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1541 enum values.
1542
baf20f76
TT
15432020-11-10 Tom Tromey <tom@tromey.com>
1544
1545 * value.h (internalvar_name): Update.
1546 * value.c (internalvar_name): Make return type const.
1547
caaece0e
TT
15482020-11-10 Tom Tromey <tom@tromey.com>
1549
1550 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1551 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1552 const.
1553
8e20b4be
TT
15542020-11-10 Tom Tromey <tom@tromey.com>
1555
1556 * objc-lang.h (value_nsstring): Update.
1557 * objc-lang.c (value_nsstring): Make "ptr" const.
1558
86775fab
AB
15592020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1560
1561 * expprint.c (print_subexp_funcall): Increment expression position
1562 after reading argument count.
1563 * f-lang.c (print_subexp_f): Skip over opcode before calling
1564 common function.
1565 (dump_subexp_body_f): Likewise.
1566
3fed4c0b
RG
15672020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1568
1569 PR python/26832
1570 * configure: Regenerate.
1571 * configure.ac: Check for python modules ctypes instead of
1572 itertools.
1573
ac3d4064
PA
15742020-11-06 Pedro Alves <pedro@palves.net>
1575
1576 * macroexp.c (struct macro_buffer): Split in two classes. Add
1577 uses adjusted.
1578 (struct shared_macro_buffer): New, factored out from struct
1579 macro_buffer.
1580 (struct growable_macro_buffer): New, factored out from struct
1581 macro_buffer.
1582 (set_token, get_comment, get_identifier, get_pp_number)
1583 (get_character_constant, get_string_literal, get_punctuator)
1584 (get_next_token_for_substitution): Constify parameters.
1585 (substitute_args): Constify locals.
1586
606decb2
TT
15872020-11-05 Tom Tromey <tom@tromey.com>
1588
1589 * dwarf2/read.c (read_cutu_die_from_dwo)
1590 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1591 (build_type_psymtabs_1): Update.
1592 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1593 parameter.
1594 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1595 Don't read section. Add assert.
1596
9c91c725
TT
15972020-11-04 Tom Tromey <tromey@adacore.com>
1598
1599 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1600
8d9fd3a1
TT
16012020-11-04 Tom Tromey <tromey@adacore.com>
1602
1603 * ada-typeprint.c (ada_print_type): Handle __T types.
1604
d8f62e84
TT
16052020-11-04 Tom Tromey <tromey@adacore.com>
1606
1607 * dwarf2/read.c (add_partial_symbol, process_die):
1608 Handle DW_TAG_array_type.
1609 (is_type_tag_for_partial): Add "lang" parameter.
1610 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1611
7ff5b937
TT
16122020-11-04 Tom Tromey <tromey@adacore.com>
1613
1614 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1615
10f6a3ad
TT
16162020-11-04 Tom Tromey <tromey@adacore.com>
1617
1618 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1619 array.
1620
b72795a8
TT
16212020-11-04 Tom Tromey <tromey@adacore.com>
1622
1623 * gdbtypes.c (update_static_array_size): Handle bit stride.
1624
24aa1b02
TT
16252020-11-04 Tom Tromey <tromey@adacore.com>
1626
1627 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1628
c9a28cbe
TT
16292020-11-04 Tom Tromey <tromey@adacore.com>
1630
1631 * ada-lang.c (ada_is_any_packed_array_type): New function.
1632 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1633
57567375
TT
16342020-11-04 Tom Tromey <tromey@adacore.com>
1635
1636 * dwarf2/read.c (recognize_bound_expression)
1637 (quirk_ada_thick_pointer): New functions.
1638 (read_array_type): Call quirk_ada_thick_pointer.
1639 (set_die_type): Add "skip_data_location" parameter.
1640 (quirk_ada_thick_pointer): New function.
1641 (process_structure_scope): Call quirk_ada_thick_pointer.
1642 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1643 (decode_packed_array_bitsize): Handle thick pointers without
1644 parallel types.
1645 (ada_is_gnat_encoded_packed_array_type): Rename from
1646 ada_is_packed_array_type.
1647 (ada_is_constrained_packed_array_type): Update.
1648 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1649 (ada_value_print_1): Use ada_get_decoded_value.
1650
a7400e44
TT
16512020-11-04 Tom Tromey <tromey@adacore.com>
1652
1653 * ada-lang.c (recursively_update_array_bitsize): New function.
1654 (decode_constrained_packed_array_type): Call it.
1655
75fd6a26
TT
16562020-11-04 Tom Tromey <tromey@adacore.com>
1657
1658 * ada-lang.c (to_fixed_array_type): Error if
1659 decode_constrained_packed_array_type returns NULL.
1660
93f9561e
TT
16612020-11-04 Tom Tromey <tromey@adacore.com>
1662
1663 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1664
257e02d8
TT
16652020-11-02 Tom Tromey <tromey@adacore.com>
1666
1667 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1668 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1669 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1670 * amd64-ravenscar-thread.c: New file.
1671 * amd64-ravenscar-thread.h: New file.
1672 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1673 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1674
74d877e5
AB
16752020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1676
1677 * main.c (execute_cmdargs): New function.
1678 (captured_main_1): Make use of execute_cmdargs.
1679
64aaad63
AB
16802020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1681
1682 * NEWS: Mention changes to config file search path.
1683 * main.c
1684
5b3d3560
TT
16852020-11-02 Tom Tromey <tromey@adacore.com>
1686
1687 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1688 (python_GdbModuleDef): Move earlier. Now static.
1689 (do_start_initialization): Consolidate some IS_PY3K blocks.
1690
dda83cd7
SM
16912020-11-02 Simon Marchi <simon.marchi@efficios.com>
1692
1693 * aarch64-linux-tdep.c: Fix indentation.
1694 * aarch64-ravenscar-thread.c: Fix indentation.
1695 * aarch64-tdep.c: Fix indentation.
1696 * aarch64-tdep.h: Fix indentation.
1697 * ada-lang.c: Fix indentation.
1698 * ada-lang.h: Fix indentation.
1699 * ada-tasks.c: Fix indentation.
1700 * ada-typeprint.c: Fix indentation.
1701 * ada-valprint.c: Fix indentation.
1702 * ada-varobj.c: Fix indentation.
1703 * addrmap.c: Fix indentation.
1704 * addrmap.h: Fix indentation.
1705 * agent.c: Fix indentation.
1706 * aix-thread.c: Fix indentation.
1707 * alpha-bsd-nat.c: Fix indentation.
1708 * alpha-linux-tdep.c: Fix indentation.
1709 * alpha-mdebug-tdep.c: Fix indentation.
1710 * alpha-nbsd-tdep.c: Fix indentation.
1711 * alpha-obsd-tdep.c: Fix indentation.
1712 * alpha-tdep.c: Fix indentation.
1713 * amd64-bsd-nat.c: Fix indentation.
1714 * amd64-darwin-tdep.c: Fix indentation.
1715 * amd64-linux-nat.c: Fix indentation.
1716 * amd64-linux-tdep.c: Fix indentation.
1717 * amd64-nat.c: Fix indentation.
1718 * amd64-obsd-tdep.c: Fix indentation.
1719 * amd64-tdep.c: Fix indentation.
1720 * amd64-windows-tdep.c: Fix indentation.
1721 * annotate.c: Fix indentation.
1722 * arc-tdep.c: Fix indentation.
1723 * arch-utils.c: Fix indentation.
1724 * arch/arm-get-next-pcs.c: Fix indentation.
1725 * arch/arm.c: Fix indentation.
1726 * arm-linux-nat.c: Fix indentation.
1727 * arm-linux-tdep.c: Fix indentation.
1728 * arm-nbsd-tdep.c: Fix indentation.
1729 * arm-pikeos-tdep.c: Fix indentation.
1730 * arm-tdep.c: Fix indentation.
1731 * arm-tdep.h: Fix indentation.
1732 * arm-wince-tdep.c: Fix indentation.
1733 * auto-load.c: Fix indentation.
1734 * auxv.c: Fix indentation.
1735 * avr-tdep.c: Fix indentation.
1736 * ax-gdb.c: Fix indentation.
1737 * ax-general.c: Fix indentation.
1738 * bfin-linux-tdep.c: Fix indentation.
1739 * block.c: Fix indentation.
1740 * block.h: Fix indentation.
1741 * blockframe.c: Fix indentation.
1742 * bpf-tdep.c: Fix indentation.
1743 * break-catch-sig.c: Fix indentation.
1744 * break-catch-syscall.c: Fix indentation.
1745 * break-catch-throw.c: Fix indentation.
1746 * breakpoint.c: Fix indentation.
1747 * breakpoint.h: Fix indentation.
1748 * bsd-uthread.c: Fix indentation.
1749 * btrace.c: Fix indentation.
1750 * build-id.c: Fix indentation.
1751 * buildsym-legacy.h: Fix indentation.
1752 * buildsym.c: Fix indentation.
1753 * c-typeprint.c: Fix indentation.
1754 * c-valprint.c: Fix indentation.
1755 * c-varobj.c: Fix indentation.
1756 * charset.c: Fix indentation.
1757 * cli/cli-cmds.c: Fix indentation.
1758 * cli/cli-decode.c: Fix indentation.
1759 * cli/cli-decode.h: Fix indentation.
1760 * cli/cli-script.c: Fix indentation.
1761 * cli/cli-setshow.c: Fix indentation.
1762 * coff-pe-read.c: Fix indentation.
1763 * coffread.c: Fix indentation.
1764 * compile/compile-cplus-types.c: Fix indentation.
1765 * compile/compile-object-load.c: Fix indentation.
1766 * compile/compile-object-run.c: Fix indentation.
1767 * completer.c: Fix indentation.
1768 * corefile.c: Fix indentation.
1769 * corelow.c: Fix indentation.
1770 * cp-abi.h: Fix indentation.
1771 * cp-namespace.c: Fix indentation.
1772 * cp-support.c: Fix indentation.
1773 * cp-valprint.c: Fix indentation.
1774 * cris-linux-tdep.c: Fix indentation.
1775 * cris-tdep.c: Fix indentation.
1776 * darwin-nat-info.c: Fix indentation.
1777 * darwin-nat.c: Fix indentation.
1778 * darwin-nat.h: Fix indentation.
1779 * dbxread.c: Fix indentation.
1780 * dcache.c: Fix indentation.
1781 * disasm.c: Fix indentation.
1782 * dtrace-probe.c: Fix indentation.
1783 * dwarf2/abbrev.c: Fix indentation.
1784 * dwarf2/attribute.c: Fix indentation.
1785 * dwarf2/expr.c: Fix indentation.
1786 * dwarf2/frame.c: Fix indentation.
1787 * dwarf2/index-cache.c: Fix indentation.
1788 * dwarf2/index-write.c: Fix indentation.
1789 * dwarf2/line-header.c: Fix indentation.
1790 * dwarf2/loc.c: Fix indentation.
1791 * dwarf2/macro.c: Fix indentation.
1792 * dwarf2/read.c: Fix indentation.
1793 * dwarf2/read.h: Fix indentation.
1794 * elfread.c: Fix indentation.
1795 * eval.c: Fix indentation.
1796 * event-top.c: Fix indentation.
1797 * exec.c: Fix indentation.
1798 * exec.h: Fix indentation.
1799 * expprint.c: Fix indentation.
1800 * f-lang.c: Fix indentation.
1801 * f-typeprint.c: Fix indentation.
1802 * f-valprint.c: Fix indentation.
1803 * fbsd-nat.c: Fix indentation.
1804 * fbsd-tdep.c: Fix indentation.
1805 * findvar.c: Fix indentation.
1806 * fork-child.c: Fix indentation.
1807 * frame-unwind.c: Fix indentation.
1808 * frame-unwind.h: Fix indentation.
1809 * frame.c: Fix indentation.
1810 * frv-linux-tdep.c: Fix indentation.
1811 * frv-tdep.c: Fix indentation.
1812 * frv-tdep.h: Fix indentation.
1813 * ft32-tdep.c: Fix indentation.
1814 * gcore.c: Fix indentation.
1815 * gdb_bfd.c: Fix indentation.
1816 * gdbarch.sh: Fix indentation.
1817 * gdbarch.c: Re-generate
1818 * gdbarch.h: Re-generate.
1819 * gdbcore.h: Fix indentation.
1820 * gdbthread.h: Fix indentation.
1821 * gdbtypes.c: Fix indentation.
1822 * gdbtypes.h: Fix indentation.
1823 * glibc-tdep.c: Fix indentation.
1824 * gnu-nat.c: Fix indentation.
1825 * gnu-nat.h: Fix indentation.
1826 * gnu-v2-abi.c: Fix indentation.
1827 * gnu-v3-abi.c: Fix indentation.
1828 * go32-nat.c: Fix indentation.
1829 * guile/guile-internal.h: Fix indentation.
1830 * guile/scm-cmd.c: Fix indentation.
1831 * guile/scm-frame.c: Fix indentation.
1832 * guile/scm-iterator.c: Fix indentation.
1833 * guile/scm-math.c: Fix indentation.
1834 * guile/scm-ports.c: Fix indentation.
1835 * guile/scm-pretty-print.c: Fix indentation.
1836 * guile/scm-value.c: Fix indentation.
1837 * h8300-tdep.c: Fix indentation.
1838 * hppa-linux-nat.c: Fix indentation.
1839 * hppa-linux-tdep.c: Fix indentation.
1840 * hppa-nbsd-nat.c: Fix indentation.
1841 * hppa-nbsd-tdep.c: Fix indentation.
1842 * hppa-obsd-nat.c: Fix indentation.
1843 * hppa-tdep.c: Fix indentation.
1844 * hppa-tdep.h: Fix indentation.
1845 * i386-bsd-nat.c: Fix indentation.
1846 * i386-darwin-nat.c: Fix indentation.
1847 * i386-darwin-tdep.c: Fix indentation.
1848 * i386-dicos-tdep.c: Fix indentation.
1849 * i386-gnu-nat.c: Fix indentation.
1850 * i386-linux-nat.c: Fix indentation.
1851 * i386-linux-tdep.c: Fix indentation.
1852 * i386-nto-tdep.c: Fix indentation.
1853 * i386-obsd-tdep.c: Fix indentation.
1854 * i386-sol2-nat.c: Fix indentation.
1855 * i386-tdep.c: Fix indentation.
1856 * i386-tdep.h: Fix indentation.
1857 * i386-windows-tdep.c: Fix indentation.
1858 * i387-tdep.c: Fix indentation.
1859 * i387-tdep.h: Fix indentation.
1860 * ia64-libunwind-tdep.c: Fix indentation.
1861 * ia64-libunwind-tdep.h: Fix indentation.
1862 * ia64-linux-nat.c: Fix indentation.
1863 * ia64-linux-tdep.c: Fix indentation.
1864 * ia64-tdep.c: Fix indentation.
1865 * ia64-tdep.h: Fix indentation.
1866 * ia64-vms-tdep.c: Fix indentation.
1867 * infcall.c: Fix indentation.
1868 * infcmd.c: Fix indentation.
1869 * inferior.c: Fix indentation.
1870 * infrun.c: Fix indentation.
1871 * iq2000-tdep.c: Fix indentation.
1872 * language.c: Fix indentation.
1873 * linespec.c: Fix indentation.
1874 * linux-fork.c: Fix indentation.
1875 * linux-nat.c: Fix indentation.
1876 * linux-tdep.c: Fix indentation.
1877 * linux-thread-db.c: Fix indentation.
1878 * lm32-tdep.c: Fix indentation.
1879 * m2-lang.c: Fix indentation.
1880 * m2-typeprint.c: Fix indentation.
1881 * m2-valprint.c: Fix indentation.
1882 * m32c-tdep.c: Fix indentation.
1883 * m32r-linux-tdep.c: Fix indentation.
1884 * m32r-tdep.c: Fix indentation.
1885 * m68hc11-tdep.c: Fix indentation.
1886 * m68k-bsd-nat.c: Fix indentation.
1887 * m68k-linux-nat.c: Fix indentation.
1888 * m68k-linux-tdep.c: Fix indentation.
1889 * m68k-tdep.c: Fix indentation.
1890 * machoread.c: Fix indentation.
1891 * macrocmd.c: Fix indentation.
1892 * macroexp.c: Fix indentation.
1893 * macroscope.c: Fix indentation.
1894 * macrotab.c: Fix indentation.
1895 * macrotab.h: Fix indentation.
1896 * main.c: Fix indentation.
1897 * mdebugread.c: Fix indentation.
1898 * mep-tdep.c: Fix indentation.
1899 * mi/mi-cmd-catch.c: Fix indentation.
1900 * mi/mi-cmd-disas.c: Fix indentation.
1901 * mi/mi-cmd-env.c: Fix indentation.
1902 * mi/mi-cmd-stack.c: Fix indentation.
1903 * mi/mi-cmd-var.c: Fix indentation.
1904 * mi/mi-cmds.c: Fix indentation.
1905 * mi/mi-main.c: Fix indentation.
1906 * mi/mi-parse.c: Fix indentation.
1907 * microblaze-tdep.c: Fix indentation.
1908 * minidebug.c: Fix indentation.
1909 * minsyms.c: Fix indentation.
1910 * mips-linux-nat.c: Fix indentation.
1911 * mips-linux-tdep.c: Fix indentation.
1912 * mips-nbsd-tdep.c: Fix indentation.
1913 * mips-tdep.c: Fix indentation.
1914 * mn10300-linux-tdep.c: Fix indentation.
1915 * mn10300-tdep.c: Fix indentation.
1916 * moxie-tdep.c: Fix indentation.
1917 * msp430-tdep.c: Fix indentation.
1918 * namespace.h: Fix indentation.
1919 * nat/fork-inferior.c: Fix indentation.
1920 * nat/gdb_ptrace.h: Fix indentation.
1921 * nat/linux-namespaces.c: Fix indentation.
1922 * nat/linux-osdata.c: Fix indentation.
1923 * nat/netbsd-nat.c: Fix indentation.
1924 * nat/x86-dregs.c: Fix indentation.
1925 * nbsd-nat.c: Fix indentation.
1926 * nbsd-tdep.c: Fix indentation.
1927 * nios2-linux-tdep.c: Fix indentation.
1928 * nios2-tdep.c: Fix indentation.
1929 * nto-procfs.c: Fix indentation.
1930 * nto-tdep.c: Fix indentation.
1931 * objfiles.c: Fix indentation.
1932 * objfiles.h: Fix indentation.
1933 * opencl-lang.c: Fix indentation.
1934 * or1k-tdep.c: Fix indentation.
1935 * osabi.c: Fix indentation.
1936 * osabi.h: Fix indentation.
1937 * osdata.c: Fix indentation.
1938 * p-lang.c: Fix indentation.
1939 * p-typeprint.c: Fix indentation.
1940 * p-valprint.c: Fix indentation.
1941 * parse.c: Fix indentation.
1942 * ppc-linux-nat.c: Fix indentation.
1943 * ppc-linux-tdep.c: Fix indentation.
1944 * ppc-nbsd-nat.c: Fix indentation.
1945 * ppc-nbsd-tdep.c: Fix indentation.
1946 * ppc-obsd-nat.c: Fix indentation.
1947 * ppc-ravenscar-thread.c: Fix indentation.
1948 * ppc-sysv-tdep.c: Fix indentation.
1949 * ppc64-tdep.c: Fix indentation.
1950 * printcmd.c: Fix indentation.
1951 * proc-api.c: Fix indentation.
1952 * producer.c: Fix indentation.
1953 * producer.h: Fix indentation.
1954 * prologue-value.c: Fix indentation.
1955 * prologue-value.h: Fix indentation.
1956 * psymtab.c: Fix indentation.
1957 * python/py-arch.c: Fix indentation.
1958 * python/py-bpevent.c: Fix indentation.
1959 * python/py-event.c: Fix indentation.
1960 * python/py-event.h: Fix indentation.
1961 * python/py-finishbreakpoint.c: Fix indentation.
1962 * python/py-frame.c: Fix indentation.
1963 * python/py-framefilter.c: Fix indentation.
1964 * python/py-inferior.c: Fix indentation.
1965 * python/py-infthread.c: Fix indentation.
1966 * python/py-objfile.c: Fix indentation.
1967 * python/py-prettyprint.c: Fix indentation.
1968 * python/py-registers.c: Fix indentation.
1969 * python/py-signalevent.c: Fix indentation.
1970 * python/py-stopevent.c: Fix indentation.
1971 * python/py-stopevent.h: Fix indentation.
1972 * python/py-threadevent.c: Fix indentation.
1973 * python/py-tui.c: Fix indentation.
1974 * python/py-unwind.c: Fix indentation.
1975 * python/py-value.c: Fix indentation.
1976 * python/py-xmethods.c: Fix indentation.
1977 * python/python-internal.h: Fix indentation.
1978 * python/python.c: Fix indentation.
1979 * ravenscar-thread.c: Fix indentation.
1980 * record-btrace.c: Fix indentation.
1981 * record-full.c: Fix indentation.
1982 * record.c: Fix indentation.
1983 * reggroups.c: Fix indentation.
1984 * regset.h: Fix indentation.
1985 * remote-fileio.c: Fix indentation.
1986 * remote.c: Fix indentation.
1987 * reverse.c: Fix indentation.
1988 * riscv-linux-tdep.c: Fix indentation.
1989 * riscv-ravenscar-thread.c: Fix indentation.
1990 * riscv-tdep.c: Fix indentation.
1991 * rl78-tdep.c: Fix indentation.
1992 * rs6000-aix-tdep.c: Fix indentation.
1993 * rs6000-lynx178-tdep.c: Fix indentation.
1994 * rs6000-nat.c: Fix indentation.
1995 * rs6000-tdep.c: Fix indentation.
1996 * rust-lang.c: Fix indentation.
1997 * rx-tdep.c: Fix indentation.
1998 * s12z-tdep.c: Fix indentation.
1999 * s390-linux-tdep.c: Fix indentation.
2000 * score-tdep.c: Fix indentation.
2001 * ser-base.c: Fix indentation.
2002 * ser-mingw.c: Fix indentation.
2003 * ser-uds.c: Fix indentation.
2004 * ser-unix.c: Fix indentation.
2005 * serial.c: Fix indentation.
2006 * sh-linux-tdep.c: Fix indentation.
2007 * sh-nbsd-tdep.c: Fix indentation.
2008 * sh-tdep.c: Fix indentation.
2009 * skip.c: Fix indentation.
2010 * sol-thread.c: Fix indentation.
2011 * solib-aix.c: Fix indentation.
2012 * solib-darwin.c: Fix indentation.
2013 * solib-frv.c: Fix indentation.
2014 * solib-svr4.c: Fix indentation.
2015 * solib.c: Fix indentation.
2016 * source.c: Fix indentation.
2017 * sparc-linux-tdep.c: Fix indentation.
2018 * sparc-nbsd-tdep.c: Fix indentation.
2019 * sparc-obsd-tdep.c: Fix indentation.
2020 * sparc-ravenscar-thread.c: Fix indentation.
2021 * sparc-tdep.c: Fix indentation.
2022 * sparc64-linux-tdep.c: Fix indentation.
2023 * sparc64-nbsd-tdep.c: Fix indentation.
2024 * sparc64-obsd-tdep.c: Fix indentation.
2025 * sparc64-tdep.c: Fix indentation.
2026 * stabsread.c: Fix indentation.
2027 * stack.c: Fix indentation.
2028 * stap-probe.c: Fix indentation.
2029 * stubs/ia64vms-stub.c: Fix indentation.
2030 * stubs/m32r-stub.c: Fix indentation.
2031 * stubs/m68k-stub.c: Fix indentation.
2032 * stubs/sh-stub.c: Fix indentation.
2033 * stubs/sparc-stub.c: Fix indentation.
2034 * symfile-mem.c: Fix indentation.
2035 * symfile.c: Fix indentation.
2036 * symfile.h: Fix indentation.
2037 * symmisc.c: Fix indentation.
2038 * symtab.c: Fix indentation.
2039 * symtab.h: Fix indentation.
2040 * target-float.c: Fix indentation.
2041 * target.c: Fix indentation.
2042 * target.h: Fix indentation.
2043 * tic6x-tdep.c: Fix indentation.
2044 * tilegx-linux-tdep.c: Fix indentation.
2045 * tilegx-tdep.c: Fix indentation.
2046 * top.c: Fix indentation.
2047 * tracefile-tfile.c: Fix indentation.
2048 * tracepoint.c: Fix indentation.
2049 * tui/tui-disasm.c: Fix indentation.
2050 * tui/tui-io.c: Fix indentation.
2051 * tui/tui-regs.c: Fix indentation.
2052 * tui/tui-stack.c: Fix indentation.
2053 * tui/tui-win.c: Fix indentation.
2054 * tui/tui-winsource.c: Fix indentation.
2055 * tui/tui.c: Fix indentation.
2056 * typeprint.c: Fix indentation.
2057 * ui-out.h: Fix indentation.
2058 * unittests/copy_bitwise-selftests.c: Fix indentation.
2059 * unittests/memory-map-selftests.c: Fix indentation.
2060 * utils.c: Fix indentation.
2061 * v850-tdep.c: Fix indentation.
2062 * valarith.c: Fix indentation.
2063 * valops.c: Fix indentation.
2064 * valprint.c: Fix indentation.
2065 * valprint.h: Fix indentation.
2066 * value.c: Fix indentation.
2067 * value.h: Fix indentation.
2068 * varobj.c: Fix indentation.
2069 * vax-tdep.c: Fix indentation.
2070 * windows-nat.c: Fix indentation.
2071 * windows-tdep.c: Fix indentation.
2072 * xcoffread.c: Fix indentation.
2073 * xml-syscall.c: Fix indentation.
2074 * xml-tdesc.c: Fix indentation.
2075 * xstormy16-tdep.c: Fix indentation.
2076 * xtensa-config.c: Fix indentation.
2077 * xtensa-linux-nat.c: Fix indentation.
2078 * xtensa-linux-tdep.c: Fix indentation.
2079 * xtensa-tdep.c: Fix indentation.
2080
e1f57067
AB
20812020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2082 Craig Blackmore <craig.blackmore@embecosm.com>
2083
2084 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2085 as an unsigned value.
2086
ae7754b2
TT
20872020-11-01 Tom Tromey <tom@tromey.com>
2088
2089 * dbxread.c (dbx_end_psymtab): Update.
2090 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2091 (build_type_psymtabs_reader): Update.
2092 * xcoffread.c (xcoff_end_psymtab): Update.
2093 * ctfread.c (scan_partial_symbols): Update.
2094 * psymtab.c (sort_pst_symbols): Remove.
2095 (partial_symtab::end): Rename from end_psymtab_common. Inline
2096 sort_pst_symbols.
2097 * psympriv.h (struct partial_symtab) <end>: New method.
2098 (end_psymtab_common): Don't declare.
2099
0684bb51
TT
21002020-11-01 Tom Tromey <tom@tromey.com>
2101
2102 * symmisc.c (count_psyms): New function.
2103 (print_objfile_statistics): Use it.
2104 * psymtab.c (append_psymbol_to_list): Remove.
2105 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2106 * objfiles.h (struct objstats) <n_psyms>: Remove.
2107
089002bb
TT
21082020-11-01 Tom Tromey <tom@tromey.com>
2109
2110 * dbxread.c (dbx_end_psymtab): Update.
2111 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2112 (build_type_psymtabs_reader): Update.
2113 * xcoffread.c (xcoff_end_psymtab): Update.
2114 * ctfread.c (scan_partial_symbols): Update.
2115 * psympriv.h (end_psymtab_common): Update.
2116 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2117 (sort_pst_symbols): Likewise.
2118
525454d6
TT
21192020-11-01 Tom Tromey <tom@tromey.com>
2120
2121 * dbxread.c (dbx_symfile_read): Update.
2122 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2123 * xcoffread.c (xcoff_initial_scan): Update.
2124 * psympriv.h (init_psymbol_list): Don't declare.
2125 * psymtab.c (init_psymbol_list): Remove.
2126
60bd1d53
JB
21272020-11-01 Joel Brobecker <brobecker@adacore.com>
2128
2129 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2130 gnat_encoded_fixed_type_info. Update all callers.
2131
db99d0d0
JB
21322020-11-01 Joel Brobecker <brobecker@adacore.com>
2133
2134 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2135 line too long.
2136
75f24e86
JB
21372020-11-01 Joel Brobecker <brobecker@adacore.com>
2138
2139 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2140 cast_from_fixed. Update all callers.
2141 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2142 Update all callers.
2143 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2144 Update all callers.
2145 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2146 ada_scaling_factor.
2147 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2148 to print_gnat_encoded_fixed_point_type.
2149 * ada-valprint.c: Likewise.
2150
4f0469cd
AB
21512020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2152
2153 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2154 (debug_prefixed_printf): Add check of debug_displaced flag.
2155 * linux-nat.c (linux_nat_debug_printf): Add check of
2156 debug_linux_nat flag.
2157
17417fb0
SM
21582020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2159
2160 * infrun.c (infrun_debug_printf_1): Remove.
2161 (displaced_debug_printf_1): Remove.
2162 (stop_all_threads): Use debug_prefixed_printf.
2163 * infrun.h (infrun_debug_printf_1): Remove.
2164 (infrun_debug_printf): Use debug_prefixed_printf.
2165 (displaced_debug_printf_1): Remove.
2166 (displaced_debug_printf): Use debug_prefixed_printf.
2167 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2168 (linux_nat_debug_printf): Use debug_prefixed_printf.
2169
ad6dba1c
SM
21702020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2171
2172 * configure: Re-generate.
2173 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2174 AC_LANG_PROGRAM.
2175
b6fb30ed
SM
21762020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2177
2178 * configure: Re-generate.
2179
5164c117
SM
21802020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2181
2182 * configure: Re-generate.
2183
864ca435
SM
21842020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2185
2186 * configure: Re-generate.
2187
b9442ec1
SM
21882020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2189
2190 * configure: Re-generate.
2191
294f2697
SM
21922020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2193
2194 * acinclude.m4: Modernize.
2195 * configure: Re-generate.
2196
5593a99a
SM
21972020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2198
2199 * configure.ac: Modernize.
2200 * configure: Re-generate.
2201
e41fda1d
SM
22022020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2203
2204 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2205 * configure: Re-generate.
2206 * configure.ac: Remove AM_PROG_CC_STDC.
2207
91e1a0ed
SM
22082020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2209
2210 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2211 AC_CANONICAL_SYSTEM.
2212 * configure: Re-generate.
2213
136821d9
SM
22142020-10-30 Simon Marchi <simon.marchi@efficios.com>
2215
2216 * infrun.h (displaced_debug_printf): New macro. Replace
2217 displaced debug prints throughout to use it.
2218 (displaced_debug_printf_1): New declaration.
2219 (displaced_step_dump_bytes): Return string, remove ui_file
2220 parameter, update all callers.
2221 * infrun.c (displaced_debug_printf_1): New function.
2222 (displaced_step_dump_bytes): Return string, remove ui_file
2223 parameter
2224
aa2045e7
SM
22252020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2226
2227 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2228
b1ec2735
TT
22292020-10-30 Tom Tromey <tromey@adacore.com>
2230
2231 * Makefile.in (stamp-init): Depend on config.status.
2232
b78b3a29
TBA
22332020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2234
2235 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2236
d70bdd3c
PA
22372020-10-30 Pedro Alves <pedro@palves.net>
2238
2239 * thread.c (lookup_selected_frame): Move ...
2240 * frame.c (lookup_selected_frame): ... here.
2241
79952e69
PA
22422020-10-30 Pedro Alves <pedro@palves.net>
2243
2244 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2245 * frame.c
2246 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2247 Use save_selected_frame. Save language as well.
2248 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2249 Use restore_selected_frame, and restore language as well.
2250 (selected_frame_id, selected_frame_level): New.
2251 (selected_frame): Update comments.
2252 (save_selected_frame, restore_selected_frame): New.
2253 (get_selected_frame): Use lookup_selected_frame.
2254 (get_selected_frame_if_set): Delete.
2255 (select_frame): Record selected_frame_level and selected_frame_id.
2256 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2257 fields.
2258 (get_selected_frame): Make 'message' parameter optional.
2259 (get_selected_frame_if_set): Delete declaration.
2260 (select_frame): Update comments.
2261 (save_selected_frame, restore_selected_frame)
2262 (lookup_selected_frame): Declare.
2263 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2264 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2265 New field.
2266 (save_infcall_control_state): Use save_selected_frame.
2267 (restore_selected_frame): Delete.
2268 (restore_infcall_control_state): Use restore_selected_frame.
2269 * stack.c (select_frame_command_core, frame_command_core): Use
2270 get_selected_frame.
2271 * thread.c (restore_selected_frame): Rename to ...
2272 (lookup_selected_frame): ... this and make extern. Select the
2273 current frame if the frame level is -1.
2274 (scoped_restore_current_thread::restore): Also restore the
2275 language.
2276 (scoped_restore_current_thread::~scoped_restore_current_thread):
2277 Don't try/catch.
2278 (scoped_restore_current_thread::scoped_restore_current_thread):
2279 Save the language as well. Use save_selected_frame.
2280
58103c33
SM
22812020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2282
2283 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2284 documentation.
2285 * gdbarch.h: Re-generate.
2286
40a53766
SM
22872020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2288
2289 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2290 parameter.
2291 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2292 Likewise.
2293 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2294 Likewise.
2295 * arch-utils.c (default_displaced_step_hw_singlestep):
2296 Likewise.
2297 * arch-utils.h (default_displaced_step_hw_singlestep):
2298 Likewise.
2299 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2300 Likewise.
2301 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2302 Likewise.
2303 * gdbarch.c: Re-generate.
2304 * gdbarch.h: Re-generate.
2305 * infrun.c (resume_1): Adjust.
2306
8407f91b
TT
23072020-10-29 Tom Tromey <tom@tromey.com>
2308
2309 * progspace.c (program_space::~program_space): Don't call
2310 exec_close.
2311
5008b3b2
TT
23122020-10-29 Tom Tromey <tom@tromey.com>
2313
2314 * exec.c (exec_target::close): Don't change current program
2315 space.
2316
d9eebde0
TT
23172020-10-29 Tom Tromey <tom@tromey.com>
2318
2319 * symfile.c (add_symbol_file_command): Update.
2320 * exec.c (program_space::add_target_sections): Rename.
2321 * symfile-mem.c (symbol_file_add_from_memory): Update.
2322 * progspace.h (struct program_space) <add_target_sections>:
2323 Declare new overload.
2324 * exec.h (add_target_sections_of_objfile): Don't declare.
2325
3769e227
TT
23262020-10-29 Tom Tromey <tom@tromey.com>
2327
2328 * solib.c (solib_map_sections): Update.
2329 * exec.c (program_space::add_target_sections): Now a method.
2330 (exec_file_attach): Update.
2331 * exec.h (add_target_sections): Don't declare.
2332 * progspace.h (struct program_space) <add_target_sections>:
2333 Declare.
2334
2a3f84af
TT
23352020-10-29 Tom Tromey <tom@tromey.com>
2336
2337 * progspace.h (struct program_space) <remove_target_sections>:
2338 Declare.
2339 * exec.c (program_space::remove_target_sections): Now a method.
2340 * exec.h (remove_target_sections): Don't declare.
2341
004eecfd
TT
23422020-10-29 Tom Tromey <tom@tromey.com>
2343
2344 * inferior.c (delete_inferior): Update.
2345 * progspace.c (program_space::empty): Rename from
2346 program_space_empty_p. Return bool.
2347 * progspace.h (struct program_space) <empty>: New method.
2348 (program_space_empty_p): Don't declare.
2349
e39fb971
TT
23502020-10-29 Tom Tromey <tom@tromey.com>
2351
2352 * progspace.c (program_space::~program_space): Don't call
2353 clear_program_space_solib_cache.
2354 (program_space::clear_solib_cache): Rename from
2355 clear_solib_cache.
2356 * solib.c (handle_solib_event): Update.
2357 * progspace.h (struct program_space) <clear_solib_cache>: New
2358 method.
2359 (clear_program_space_solib_cache): Don't declare.
2360
a42d7dd8
TT
23612020-10-29 Tom Tromey <tom@tromey.com>
2362
2363 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2364 * target.c (info_target_command): Update.
2365 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2366 (symbol_file_clear, reread_symbols): Update.
2367 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2368 * stabsread.c (scan_file_globals): Update.
2369 * solib.c (update_solib_list): Update.
2370 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2371 (svr4_fetch_objfile_link_map, enable_break)
2372 (svr4_relocate_main_executable)
2373 (svr4_iterate_over_objfiles_in_search_order): Update.
2374 * solib-frv.c (lm_base, enable_break)
2375 (frv_relocate_main_executable): Update.
2376 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2377 (frv_fetch_objfile_link_map): Update.
2378 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2379 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2380 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2381 * remote.c (remote_target::get_offsets): Update.
2382 (remote_target::start_remote)
2383 (extended_remote_target::post_attach): Update.
2384 * objfiles.c (entry_point_address_query): Update.
2385 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2386 * minsyms.c (get_symbol_leading_char): Update.
2387 * frame.c (inside_main_func): Update.
2388 * progspace.h (symfile_objfile): Remove macro.
2389
19f6550e
TT
23902020-10-29 Tom Tromey <tom@tromey.com>
2391
2392 * exec.c (exec_file_attach): Update.
2393 * progspace.c (program_space::exec_close): Update.
2394 * progspace.h (struct program_space) <ebfd>: Now a
2395 gdb_bfd_ref_ptr.
2396 <set_exec_bfd>: Change argument type.
2397 <exec_bfd>: Update.
2398
7e10abd1
TT
23992020-10-29 Tom Tromey <tom@tromey.com>
2400
2401 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2402 * symfile.c (reread_symbols): Update.
2403 * symfile-mem.c (add_symbol_file_from_memory_command)
2404 (add_vsyscall_page): Update.
2405 * source-cache.c (source_cache::get_plain_source_lines): Update.
2406 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2407 (svr4_current_sos_direct, svr4_exec_displacement)
2408 (svr4_relocate_main_executable): Update.
2409 (svr4_iterate_over_objfiles_in_search_order): Update.
2410 * solib-frv.c (enable_break2, enable_break): Update.
2411 * solib-dsbt.c (lm_base, enable_break): Update.
2412 * solib-darwin.c (find_program_interpreter)
2413 (darwin_solib_create_inferior_hook): Update.
2414 * sol-thread.c (rw_common, ps_pdmodel): Update.
2415 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2416 * remote.c (compare_sections_command)
2417 (remote_target::trace_set_readonly_regions): Update.
2418 * remote-sim.c (get_sim_inferior_data)
2419 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2420 (gdbsim_target_open, gdbsim_target::files_info): Update.
2421 * exec.h (exec_bfd): Remove macro.
2422 * progspace.c (initialize_progspace): Update.
2423 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2424 Update.
2425 * nto-procfs.c (nto_procfs_target::post_attach)
2426 (nto_procfs_target::create_inferior): Update.
2427 * maint.c (maintenance_info_sections): Update.
2428 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2429 Update.
2430 * infcmd.c (post_create_inferior): Update.
2431 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2432 (objfile_find_memory_regions): Update.
2433 * exec.c (validate_exec_file, exec_file_attach)
2434 (exec_read_partial_read_only, print_section_info): Update.
2435 * corelow.c (core_target_open): Update.
2436 * corefile.c (reopen_exec_file, validate_files): Update.
2437 * arm-tdep.c (gdb_print_insn_arm): Update.
2438 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2439 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2440 methods.
2441
b55221ab
TT
24422020-10-29 Tom Tromey <tom@tromey.com>
2443
2444 * progspace.h (current_target_sections): Remove macro.
2445 * solib-svr4.c (scan_dyntag): Update.
2446 * solib-dsbt.c (scan_dyntag): Update.
2447 * exec.c (exec_target::close): Update.
2448 (add_target_sections, add_target_sections_of_objfile)
2449 (remove_target_sections, exec_target::get_section_table)
2450 (exec_target::files_info, set_section_command)
2451 (exec_set_section_address, exec_target::has_memory)
2452 (exec_target::has_memory): Update.
2453
5a36e715
TT
24542020-10-29 Tom Tromey <tom@tromey.com>
2455
2456 * source-cache.c (source_cache::get_plain_source_lines): Use
2457 current_program_space.
2458 * corefile.c (reopen_exec_file): Use current_program_space.
2459 * exec.c (exec_file_attach): Use current_program_space.
2460 * exec.h (exec_bfd_mtime): Remove.
2461
784c8592
TT
24622020-10-29 Tom Tromey <tom@tromey.com>
2463
2464 * gcore.c (default_gcore_mach): Remove.
2465 (create_gcore_bfd): Update.
2466
8a4f1402
TT
24672020-10-29 Tom Tromey <tom@tromey.com>
2468
2469 * progspace.c (program_space::exec_close): New method, from
2470 exec_close in exec.c.
2471 * exec.c (exec_close): Move to progspace.c.
2472 (exec_target::close, exec_file_attach): Update.
2473 * progspace.h (struct program_space) <exec_close>: Declare
2474 method.
2475
c20cb686
TT
24762020-10-29 Tom Tromey <tom@tromey.com>
2477
2478 * progspace.h (struct program_space) <exec_filename>: Rename from
2479 pspace_exec_filename. Now a unique_xmalloc_ptr.
2480 * inferior.c (print_selected_inferior): Update.
2481 (print_inferior): Update.
2482 * mi/mi-main.c (print_one_inferior): Update.
2483 * exec.h (exec_filename): Remove macro.
2484 * corefile.c (get_exec_file): Update.
2485 * exec.c (exec_close): Update.
2486 (exec_file_attach): Update.
2487 * progspace.c (clone_program_space): Update.
2488 (print_program_space): Update.
2489
6be2a9ab
TT
24902020-10-29 Tom Tromey <tom@tromey.com>
2491
2492 * target-section.h (struct target_section): Add constructor.
2493 * exec.c (build_section_table, add_target_sections_of_objfile):
2494 Update.
2495 * corelow.c (core_target::build_file_mappings): Update.
2496
cfaa8f76
TBA
24972020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2498
2499 PR gdb/19318
2500 * inferior.c (detach_inferior_command): Restore the current thread.
2501 (kill_inferior_command): Ditto.
2502
1b00ef06
TV
25032020-10-28 Tom de Vries <tdevries@suse.de>
2504
2505 PR symtab/26772
2506 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2507 map, check it in the "best match" loop.
2508
7f40ce1a
SM
25092020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2510
2511 * m32c-tdep.c: Remove unused includes.
2512
5eb9e3f5
SM
25132020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2514
2515 * xtensa-tdep.c: Remove includes.
2516
b1d4d8d1
TBA
25172020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2518
2519 * breakpoint.c (struct condition_command_opts): New struct.
2520 (condition_command_option_defs): New static global.
2521 (make_condition_command_options_def_group): New function.
2522 (condition_completer): Update to consider the '-force' flag.
2523 (condition_command): Use gdb::option for the '-force' flag.
2524
bd24c5d6
TV
25252020-10-27 Tom de Vries <tdevries@suse.de>
2526
2527 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2528 symbols in section check.
2529
61eb46a4
TV
25302020-10-27 Tom de Vries <tdevries@suse.de>
2531
2532 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2533
733d554a
TBA
25342020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2535
2536 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2537 * breakpoint.c: Update the help text of the 'condition' and 'break'
2538 commands.
2539 (set_breakpoint_condition): Take a new bool parameter
2540 to control whether condition definition should be forced even when
2541 the condition expression is invalid in all of the current locations.
2542 (condition_command): Update the call to 'set_breakpoint_condition'.
2543 (find_condition_and_thread): Take the "-force-condition" flag into
2544 account.
2545 * linespec.c (linespec_keywords): Add "-force-condition" as an
2546 element.
2547 (FORCE_KEYWORD_INDEX): New #define.
2548 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2549 as a keyword.
2550 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2551 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2552 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2553 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2554
b5fa468f
TBA
25552020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2556
2557 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2558 * breakpoint.c (set_breakpoint_location_condition): New function.
2559 (set_breakpoint_condition): Disable a breakpoint location if parsing
2560 the condition string gives an error.
2561 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2562 (build_target_condition_list): Ditto.
2563 (build_target_command_list): Ditto.
2564 (build_bpstat_chain): Ditto.
2565 (print_one_breakpoint_location): Ditto.
2566 (print_one_breakpoint): Ditto.
2567 (breakpoint_1): Ditto.
2568 (bp_location::bp_location): Ditto.
2569 (locations_are_equal): Ditto.
2570 (update_breakpoint_locations): Ditto.
2571 (enable_disable_bp_num_loc): Ditto.
2572 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2573 (find_condition_and_thread_for_sals): New static function.
2574 (create_breakpoint): Call find_condition_and_thread_for_sals.
2575 (location_to_sals): Call find_condition_and_thread_for_sals instead
2576 of find_condition_and_thread.
2577
1c47ec3e
TV
25782020-10-26 Tom de Vries <tdevries@suse.de>
2579
2580 * dwarf2/read.c (process_full_comp_unit): Call
2581 dwarf2_find_base_address.
2582
6390859c
TT
25832020-10-26 Tom Tromey <tromey@adacore.com>
2584
2585 * gdbtypes.c (create_range_type): Revert previous patch. Add
2586 comment.
2587
d744f0f9
PA
25882020-10-26 Pedro Alves <pedro@palves.net>
2589
2590 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2591 (my_waitpid): Use gdb::handle_eintr.
2592
006811bc
SM
25932020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2594
2595 * acinclude.m4: Update ptrace.m4 path.
2596 * ptrace.m4: Moved to gdbsupport.
2597
c75e31a1
SM
25982020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2599
2600 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2601 instead of target_gdbarch.
2602
32495661
SM
26032020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2604
2605 * jit.c (jit_reader_load_command): Pass current inferior.
2606 (jit_inferior_init): Change parameter type to inferior, use it.
2607 (jit_inferior_created): Remove.
2608 (jit_inferior_created_hook): Pass inferior parameter down.
2609 (_initialize_jit): Use jit_inferior_created_hook instead of
2610 jit_inferior_created.
2611 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2612 * infrun.c (follow_exec): Pass inferior to
2613 jit_inferior_created_hook.
2614
3f66685e
SM
26152020-10-24 Simon Marchi <simon.marchi@efficios.com>
2616
2617 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2618 parameter and use it.
2619 (thread_db_inferior_created): Pass inferior argument.
2620
a0ff652f
SM
26212020-10-24 Simon Marchi <simon.marchi@efficios.com>
2622
2623 * aix-thread.c (aix_thread_inferior_created): Add inferior
2624 parameter.
2625 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2626 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2627 * jit.c (jit_inferior_created): Likewise.
2628 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2629 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2630 * observable.h (inferior_created): Likewise.
2631 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2632 * symfile-mem.c (add_vsyscall_page): Likewise.
2633 * infcmd.c (post_create_inferior): Pass inferior argument.
2634
3c67532c
JB
26352020-10-24 Joel Brobecker <brobecker@adacore.com>
2636
2637 GDB 10.1 released.
2638
8747316e
JB
26392020-10-23 Joel Brobecker <brobecker@adacore.com>
2640
2641 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2642 to ada_check_typedef.
2643
1a0ea399
AB
26442020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2645
2646 * f-exp.y (f_parse): Rename to...
2647 (f_language::parser): ...this.
2648 * f-lang.c (f_get_encoding): Rename to...
2649 (f_language::get_encoding): ...this.
2650 (f_op_print_tab): Rename to...
2651 (f_language::op_print_tab): ...this.
2652 (exp_descriptor_f): Rename to...
2653 (f_language::exp_descriptor_tab): ...this.
2654 (class f_language): Moved to f-lang.h.
2655 (f_language::language_arch_info): New function, moved out of class
2656 declaration.
2657 (f_language::search_name_hash): Likewise.
2658 (f_language::lookup_symbol_nonlocal): Likewise.
2659 (f_language::get_symbol_name_matcher_inner): Likewise.
2660 * f-lang.h: Add 'valprint.h' include.
2661 (class f_language): Moved here from f-lang.c.
2662 * f-typeprint.c (f_type_print_args): Delete commented out
2663 declaration.
2664 (f_print_typedef): Rename to...
2665 (f_language::print_typedef): ...this.
2666 (f_print_type): Rename to...
2667 (f_language::print_type): ...this.
2668 (f_type_print_varspec_prefix): Delete declaration and rename to...
2669 (f_language::f_type_print_varspec_prefix): ...this.
2670 (f_type_print_varspec_suffix): Delete declaration and rename to...
2671 (f_language::f_type_print_varspec_suffix): ...this.
2672 (f_type_print_base): Delete declaration and rename to...
2673 (f_language::f_type_print_base): ...this.
2674 * f-valprint.c (f_value_print_inner): Rename to...
2675 (f_language::value_print_inner): ...this.
2676 * parse.c: Delete 'f-lang.h' include.
2677
88cefd9b
AB
26782020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * language.h (language_defn::print_type): Add variable names in
2681 declaration, and update header comment.
2682
5399db93
AB
26832020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2684
2685 * ada-lang.c (ada_language::demangle): Rename to...
2686 (ada_language::demangle_symbol): ...this.
2687 * c-lang.c (cplus_language::demangle): Rename to...
2688 (cplus_language::demangle_symbol): ...this.
2689 * d-lang.c (d_language::demangle): Rename to...
2690 (d_language::demangle_symbol): ...this.
2691 * f-lang.c (f_language::demangle): Rename to...
2692 (f_language::demangle_symbol): ...this.
2693 * go-lang.c (go_language::demangle): Rename to...
2694 (go_language::demangle_symbol): ...this.
2695 * language.c (language_demangle): Update call to demangle_symbol.
2696 (auto_or_unknown_language::demangle): Rename to...
2697 (auto_or_unknown_language::demangle_symbol): ...this.
2698 * language.h (language_defn::demangle): Rename to...
2699 (language_defn::demangle_symbol): ...this.
2700 * objc-lang.c (objc_language::demangle): Rename to...
2701 (objc_language::demangle_symbol): ...this.
2702 * rust-lang.c (rust_language::demangle): Rename to...
2703 (rust_language::demangle_symbol): ...this.
2704
4b2f86ef
AB
27052020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2706
2707 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2708 (iterate_over_file_blocks): Replace use of macro with the macros
2709 definition.
2710
e74b39de
AB
27112020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2712
2713 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2714 * valprint.c (maybe_print_array_index): Replace use of macro with
2715 the macros definition.
2716
00c696a6
AB
27172020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2718
2719 * ada-lang.c (ada_language::print_array_index): Call value_print
2720 directly.
2721 * language.c (language_defn::print_array_index): Likewise.
2722 * language.h (LA_VALUE_PRINT): Delete.
2723 * valprint.c (value_print): Call value_print on the
2724 current_language directly.
2725
d3b67c56
AB
27262020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2727
2728 * language.h (LA_PRINT_TYPEDEF): Delete.
2729 * typeprint.c (typedef_print): Call print_typedef directly on the
2730 current_language object.
2731
790e2a12
AB
27322020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2733
2734 * m2-exp.y (m2_parse): Rename to...
2735 (m2_language::parser): ...this. Update function signature.
2736 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2737 (m2_op_print): Rename to...
2738 (m2_language::op_print_tab): ...this, and make const.
2739 (exp_descriptor_modula2): Rename to...
2740 (m2_language::exp_descriptor_modula2): ...this.
2741 (class m2_language): Move to m2-lang.h.
2742 (m2_language::language_arch_info): New function, moved out of
2743 class declaration.
2744 (m2_language::printchar): New function, body from m2_printchar.
2745 (m2_language::printstr): New function, moved out of class
2746 declaration.
2747 (m2_language::emitchar): Likewise.
2748 * m2-lang.h (m2_parse): Delete declaration.
2749 (m2_print_typedef): Delete declaration.
2750 (m2_value_print_inner): Delete declaration.
2751 (class m2_language): Class declaration moved from m2-lang.c,
2752 larger functions are left in m2-lang.c.
2753 * m2-typeprint.c (m2_print_typedef): Rename to...
2754 (m2_language::print_typedef): ...this, and update function
2755 signature.
2756 * m2-valprint.c (m2_value_print_inner): Rename to...
2757 (m2_language::value_print_inner): ...this, replace use of
2758 LA_PRINT_STRING with a direct call to printstr member function,
2759 and update recursive call.
2760
b01175fc
AB
27612020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2762
2763 * language.c (default_is_string_type_p): Delete, implementation
2764 moved into auto_or_unknown_language::is_string_type_p.
2765 (unk_op_print_tab): Moved into
2766 auto_or_unknown_language::opcode_print_table.
2767 (unknown_language_arch_info): Delete, implementation moved into
2768 auto_or_unknown_language::language_arch_info.
2769 (class auto_or_unknown_language): New class, member functions
2770 copied from unknown_language class, with some updates.
2771 (class unknown_language): Most member functions moved into
2772 auto_or_unknown_language class. Inherit from
2773 auto_or_unknown_language class.
2774 (class auto_language): Inherit from auto_or_unknown_language.
2775 Delete most member functions.
2776
1a97fe8c
HD
27772020-10-22 Hannes Domani <ssbssa@yahoo.de>
2778
2779 * stabsread.c (read_member_functions): Remove gdb_assert.
2780
6b9d0dfd
HD
27812020-10-22 Hannes Domani <ssbssa@yahoo.de>
2782
2783 * gdbtypes.c (init_complex_type): Check target type name.
2784
4b4bb603
SM
27852020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2786
2787 * target-debug.h (target_debug_print_struct_target_ops_p):
2788 Remove.
2789 (target_debug_print_async_callback_ftype_p): Remove.
2790 (target_debug_print_struct_trace_state_variable_p): Remove.
2791 (target_debug_print_struct_traceframe_info_p): Remove.
2792 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2793 (target_debug_print_enum_btrace_format): Remove.
2794 (target_debug_print_enum_info_proc_what): Remove.
2795 (target_debug_print_thread_info_pp): Remove.
2796
24f5300a
SM
27972020-10-22 Simon Marchi <simon.marchi@efficios.com>
2798
2799 * target.h (struct target_ops) <make_corefile_notes>:
2800 Change return type to unique pointer.
2801 * target.c (dummy_make_corefile_notes): Likewise.
2802 * exec.c (struct exec_target) <make_corefile_notes>:
2803 Likewise.
2804 (exec_target::make_corefile_notes): Likewise.
2805 * procfs.c (class procfs_target) <make_corefile_notes>:
2806 Likewise.
2807 (procfs_do_thread_registers): Adjust to unique pointer.
2808 (struct procfs_corefile_thread_data): Add constructor.
2809 <note_data>: Change type to unique pointer.
2810 (procfs_corefile_thread_callback): Adjust to unique pointer.
2811 (procfs_target::make_corefile_notes): Change return type to
2812 unique pointer.
2813 * target-delegates.c: Re-generate.
2814 * gcore.c (write_gcore_file_1): Adjust.
2815 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2816 New.
2817
5fb4027f
TV
28182020-10-22 Tom de Vries <tdevries@suse.de>
2819
2820 * block.c (find_block_in_blockvector): Make sure the returned block
2821 contains pc.
2822
4a636814
SM
28232020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2824
2825 PR gdb/26693
2826 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2827 parameter.
2828 (load_cu): Pass existing CU.
2829 (process_imported_unit_die): Likewise.
2830 (follow_die_offset): Likewise.
2831
1bd57575
LM
28322020-10-22 Luis Machado <luis.machado@linaro.org>
2833
2834 * corelow.c (core_target::xfer_partial): Also check for an empty
2835 m_core_unavailable_mappings vector.
2836
6b4c676c
AB
28372020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2838
2839 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2840 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2841 * f-exp.y (arglist): Allow for a series of subranges.
2842 (subrange): Add cases for subranges with strides.
2843 * f-lang.c (value_f90_subarray): Catch use of array strides and
2844 throw an error.
2845 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2846
f2d8e4c5
AB
28472020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2848
2849 * expprint.c (print_subexp_standard): Change enum range_type to
2850 range_flag and rename variables to match.
2851 (dump_subexp_body_standard): Likewise.
2852 * expression.h (enum range_type): Rename to...
2853 (enum range_flag): ...this.
2854 (range_types): Rename to...
2855 (range_flags): ...this.
2856 * f-lang.c (value_f90_subarray): Change enum range_type to
2857 range_flag and rename variables to match.
2858 * parse.c (operator_length_standard): Likewise.
2859 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2860 range_type to range_flag.
2861 * rust-lang.c (rust_evaluate_funcall): Likewise.
2862 (rust_range): Likewise.
2863 (rust_compute_range): Likewise.
2864 (rust_subscript): Likewise.
2865
2f1b18db
AB
28662020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2867
2868 * expprint.c (print_subexp_standard): Update to reflect changes to
2869 enum range_type.
2870 (dump_subexp_body_standard): Likewise.
2871 * expression.h (enum range_type): Convert to a bit field enum, and
2872 make the enum unsigned.
2873 * f-exp.y (subrange): Update to reflect changes to enum
2874 range_type.
2875 * f-lang.c (value_f90_subarray): Likewise.
2876 * parse.c (operator_length_standard): Likewise.
2877 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2878 * rust-lang.c (rust_range): Likewise.
2879 (rust_compute_range): Likewise.
2880 (rust_subscript): Likewise.
2881
a46d1843
SM
28822020-10-21 Simon Marchi <simon.marchi@efficios.com>
2883
2884 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2885 (displaced_step_in_progress): Fix comment.
2886
c21f37a8
SM
28872020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2888
2889 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2890 * gdbarch.c: Re-generate.
2891 * gdbarch.h: Re-generate.
2892 * gcore.c (write_gcore_file_1): Adjust.
2893 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2894 constructor.
2895 <note_data>: Change type to unique pointer.
2896 <abort_iteration>: Change type to bool.
2897 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2898 (fbsd_collect_thread_registers): Return void, adjust.
2899 (struct fbsd_corefile_thread_data): Add construtor.
2900 <note_data>: Change type to unique pointer.
2901 (fbsd_corefile_thread): Adjust.
2902 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2903 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2904 to unique pointer, adjust.
2905 (struct linux_collect_regset_section_cb_data): Add constructor.
2906 <note_data>: Change type to unique pointer.
2907 <abort_iteration>: Change type to bool.
2908 (linux_collect_thread_registers): Return void, adjust.
2909 (struct linux_corefile_thread_data): Add constructor.
2910 <note_data>: Change type to unique pointer.
2911 (linux_corefile_thread): Adjust.
2912 (linux_make_corefile_notes): Return unique pointer, adjust.
2913
07fbbd01
SM
29142020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2915
2916 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2917 * gdbarch.c: Re-generate.
2918 * gdbarch.h: Re-generate.
2919 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2920 bool.
2921 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2922 Likewise.
2923 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2924 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2925 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2926 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2927
39535193
SM
29282020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2929
2930 * gdbarch.sh: Make generated predicates return bool.
2931 * gdbarch.c: Re-generate.
2932 * gdbarch.h: Re-generate.
2933
ad523d01
TT
29342020-10-20 Tom Tromey <tom@tromey.com>
2935
2936 * varobj-iter.h (struct varobj_item): Remove typedef.
2937
c4464ade
SM
29382020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2939
2940 * infrun.c (currently_stepping): Change int to bool
2941 (maybe_software_singlestep): Likewise.
2942 (show_stop_on_solib_events): Likewise.
2943 (stepping_past_nonsteppable_watchpoint): Likewise.
2944 (displaced_step_in_progress_any_inferior): Likewise.
2945 (displaced_step_in_progress_thread): Likewise.
2946 (keep_going_stepped_thread): Likewise.
2947 (thread_still_needs_step_over): Likewise.
2948 (start_step_over): Likewise.
2949 (do_target_resume): Likewise.
2950 (resume_1): Likewise.
2951 (clear_proceed_status): Likewise.
2952 (thread_still_needs_step_over_bp): Likewise.
2953 (proceed): Likewise.
2954 (switch_back_to_stepped_thread): Likewise.
2955 (adjust_pc_after_break): Likewise.
2956 (stepped_in_from): Likewise.
2957 (handle_stop_requested): Likewise.
2958 (handle_syscall_event): Likewise.
2959 (handle_no_resumed): Likewise.
2960 (handle_inferior_event): Likewise.
2961 (finish_step_over): Likewise.
2962 (handle_signal_stop): Likewise.
2963 (process_event_stop_test): Likewise.
2964
2eb20436
SM
29652020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2966
2967 * infrun.c (get_displaced_stepping_state): Fix comment.
2968
e0c45ded
AS
29692020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2970
2971 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2972
22cc388e
TT
29732020-10-19 Tom Tromey <tromey@adacore.com>
2974
2975 PR tui/26719
2976 * tui/tui-winsource.h (struct tui_source_window_base)
2977 <refresh_window>: Rename from refresh_pad.
2978 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2979 Rename from refresh_pad.
2980 (tui_source_window_base::show_source_content)
2981 (tui_source_window_base::do_scroll_horizontal): Update.
2982
3c6eb4d4
TBA
29832020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2984
2985 * thread.c (_initialize_thread): Fine-tune the help text of
2986 'info threads'.
2987
26703721
TBA
29882020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2989
2990 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2991
61c26be8
MS
29922020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2993
2994 * breakpoint.c (handle_jit_event): Add an argument, change how
2995 `jit_event_handler` is called.
2996
932539d7
TT
29972020-10-17 Tom Tromey <tom@tromey.com>
2998
2999 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3000 (scan_xcoff_symtab): Update.
3001 * psymtab.h (class psymtab_storage) <global_psymbols,
3002 static_psymbols, current_global_psymbols,
3003 current_static_psymbols>: Remove.
3004 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3005 (match_partial_symbol, lookup_partial_symbol): Update.
3006 (print_partial_symbols): Change parameters.
3007 (dump_psymtab, recursively_search_psymtabs)
3008 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3009 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3010 (concat): Remove.
3011 (end_psymtab_common): Simplify.
3012 (append_psymbol_to_list): Change parameters.
3013 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3014 (init_psymbol_list): Simplify.
3015 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3016 * psympriv.h (struct partial_symtab) <empty>: New method.
3017 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3018 Remove.
3019 <global_psymbols, static_psymbols>: New members.
3020 <add_psymbol>: New methods.
3021 (add_psymbol_to_list): Don't declare.
3022 (psymbol_placement): Move earlier.
3023 * mdebugread.c (parse_partial_symbols): Update.
3024 (handle_psymbol_enumerators): Change parameters.
3025 (mdebug_expand_psymtab): Update.
3026 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3027 (add_partial_symbol): Update.
3028 * dwarf2/index-write.c (write_psymbols): Change parameters.
3029 (write_one_signatured_type): Update.
3030 (recursively_count_psymbols): Update.
3031 (recursively_write_psymbols): Update.
3032 (class debug_names) <recursively_write_psymbols>: Update.
3033 <write_psymbols>: Change parameters.
3034 <write_one_signatured_type>: Update.
3035 * dbxread.c (read_dbx_symtab): Update.
3036 (dbx_end_psymtab): Use partial_symtab::empty.
3037 * ctfread.c (struct ctf_context) <pst>: New member.
3038 (create_partial_symtab): Set it.
3039 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3040 (scan_partial_symbols): Use the psymtab's context. Update.
3041
cfabbd35
TT
30422020-10-17 Tom Tromey <tom@tromey.com>
3043
3044 * valprint.c (generic_value_print): Remove comment.
3045 * m2-valprint.c (m2_value_print_inner): Remove comment.
3046 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3047 type.
3048
520596f2
TV
30492020-10-17 Tom de Vries <tdevries@suse.de>
3050
3051 PR symtab/26317
3052 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3053 symbol main.
3054
76547ab3
TV
30552020-10-14 Tom de Vries <tdevries@suse.de>
3056
3057 PR gdb/26733
3058 * solib.c (solib_contains_address_p): Handle
3059 'solib->sections == nullptr'.
3060
d3a07122
SM
30612020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3062
3063 PR gdb/26642
3064 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3065 target can't do async.
3066 * target.c (target_wait): Assert that we don't pass
3067 TARGET_WNOHANG to a target that can't async.
3068
1b71cfcf
KR
30692020-10-13 Kamil Rytarowski <n54@gmx.com>
3070
3071 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3072 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3073 * alpha-bsd-nat.c: Adjust include.
3074 * alpha-bsd-tdep.h: Adjust comment.
3075 * alpha-nbsd-tdep.c: Rename to ...
3076 * alpha-netbsd-tdep.c: ... this, adjust include.
3077 * amd64-nbsd-nat.c: Rename to ...
3078 * amd64-netbsd-nat.c: ... this, adjust include.
3079 * amd64-nbsd-tdep.c: Rename to ...
3080 * amd64-netbsd-tdep.c: ... this, adjust include.
3081 * amd64-tdep.h: Adjust include.
3082 * arm-nbsd-nat.c: Rename to ...
3083 * arm-netbsd-nat.c: ... this, adjust include.
3084 * arm-nbsd-tdep.c: Rename to ...
3085 * arm-netbsd-tdep.c: ... this, adjust include.
3086 * arm-nbsd-tdep.h: Rename to ...
3087 * arm-netbsd-tdep.h: ... this, adjust include.
3088 * configure.nat: Adjust file lists.
3089 * configure.tgt: Likewise.
3090 * hppa-nbsd-nat.c: Rename to ...
3091 * hppa-netbsd-nat.c: ... this, adjust include.
3092 * hppa-nbsd-tdep.c: Rename to ...
3093 * hppa-netbsd-tdep.c: ... this, adjust include.
3094 * i386-nbsd-nat.c: Rename to ...
3095 * i386-netbsd-nat.c: ... this, adjust include.
3096 * i386-nbsd-tdep.c: Rename to ...
3097 * i386-netbsd-tdep.c: ... this, adjust include.
3098 * m68k-bsd-nat.c: Adjust include.
3099 * mips-nbsd-nat.c: Rename to ...
3100 * mips-netbsd-nat.c: ... this, adjust include.
3101 * mips-nbsd-tdep.c: Rename to ...
3102 * mips-netbsd-tdep.c: ... this, adjust include.
3103 * mips-nbsd-tdep.h: Rename to ...
3104 * mips-netbsd-tdep.h: ... this.
3105 * nbsd-nat.c: Rename to ...
3106 * netbsd-nat.c: ... this, adjust include.
3107 * nbsd-nat.h: Rename to ...
3108 * netbsd-nat.h: ... this, adjust include.
3109 * nbsd-tdep.c: Rename to ...
3110 * netbsd-tdep.c: ... this, adjust include.
3111 * nbsd-tdep.h: Rename to ...
3112 * netbsd-tdep.h: ... this.
3113 * ppc-nbsd-nat.c: Rename to ...
3114 * ppc-netbsd-nat.c: ... this, adjust include.
3115 * ppc-nbsd-tdep.c: Rename to ...
3116 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3117 * ppc-nbsd-tdep.h: Rename to ...
3118 * ppc-netbsd-tdep.h: ... this.
3119 * sh-nbsd-nat.c: Rename to ...
3120 * sh-netbsd-nat.c: ... this, adjust include.
3121 * sh-nbsd-tdep.c: Rename to ...
3122 * sh-netbsd-tdep.c: ... this, adjust include.
3123 * sparc-nbsd-nat.c: Rename to ...
3124 * sparc-netbsd-nat.c: ... this.
3125 * sparc-nbsd-tdep.c: Rename to ...
3126 * sparc-netbsd-tdep.c: ... this, adjust include.
3127 * sparc64-nbsd-nat.c: Rename to ...
3128 * sparc64-netbsd-nat.c: ... this.
3129 * sparc64-nbsd-tdep.c: Rename to ...
3130 * sparc64-netbsd-tdep.c: ... this, adjust include.
3131 * sparc64-tdep.h: Adjust comment.
3132 * vax-bsd-nat.c: Adjust include.
3133 * vax-nbsd-tdep.c: Rename to ...
3134 * vax-netbsd-tdep.c: ... this, adjust include.
3135
d7a78e5c
TT
31362020-10-12 Tom Tromey <tom@tromey.com>
3137
3138 * target.h (struct target_ops) <get_section_table>: Update.
3139 (target_get_section_table): Update.
3140 * target.c (target_get_section_table, target_section_by_addr)
3141 (memory_xfer_partial_1): Update.
3142 * target-section.h (target_section_table): Now an alias.
3143 * target-delegates.c: Rebuild.
3144 * target-debug.h (target_debug_print_target_section_table_p):
3145 Rename from target_debug_print_struct_target_section_table_p.
3146 * symfile.c (build_section_addr_info_from_section_table): Update.
3147 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3148 * solib-svr4.c (scan_dyntag): Update.
3149 * solib-dsbt.c (scan_dyntag): Update.
3150 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3151 Update.
3152 * record-full.c (record_full_core_target::xfer_partial): Update.
3153 * progspace.h (struct program_space) <target_sections>: Update.
3154 * exec.h (print_section_info): Update.
3155 * exec.c (exec_target::close, build_section_table)
3156 (add_target_sections, add_target_sections_of_objfile)
3157 (remove_target_sections, exec_on_vfork)
3158 (section_table_available_memory)
3159 (section_table_xfer_memory_partial)
3160 (exec_target::get_section_table, exec_target::xfer_partial)
3161 (print_section_info, set_section_command)
3162 (exec_set_section_address, exec_target::has_memory): Update.
3163 * corelow.c (core_target::build_file_mappings)
3164 (core_target::xfer_partial, core_target::info_proc_mappings)
3165 (core_target::info_proc_mappings): Update.
3166 * bfd-target.c (class target_bfd): Update
3167
eda214ce
TT
31682020-10-12 Tom Tromey <tom@tromey.com>
3169
3170 * progspace.c (program_space::~program_space): Don't call
3171 clear_section_table.
3172 * exec.h (clear_section_table): Don't declare.
3173 * exec.c (exec_target::close): Update.
3174 (clear_section_table): Remove.
3175
91840ee3
TT
31762020-10-12 Tom Tromey <tom@tromey.com>
3177
3178 * exec.c (add_target_sections_of_objfile): Simplify.
3179
2d128614
TT
31802020-10-12 Tom Tromey <tom@tromey.com>
3181
3182 * solib.c (solib_map_sections): Update.
3183 * record-full.c (record_full_core_open_1): Update.
3184 * exec.h (build_section_table): Return a target_section_table.
3185 * exec.c (exec_file_attach): Update.
3186 (build_section_table): Return a target_section_table.
3187 * corelow.c (core_target::core_target): Update.
3188 * bfd-target.c (target_bfd::target_bfd): Update.
3189
bb2a6777
TT
31902020-10-12 Tom Tromey <tom@tromey.com>
3191
3192 * target.c (target_section_by_addr, memory_xfer_partial_1):
3193 Update.
3194 * target-section.h (struct target_section_table): Use
3195 std::vector.
3196 * symfile.h (build_section_addr_info_from_section_table): Take a
3197 target_section_table.
3198 * symfile.c (build_section_addr_info_from_section_table): Take a
3199 target_section_table.
3200 * solist.h (struct so_list) <sections>: Change type.
3201 <sections_end>: Remove.
3202 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3203 (solib_contains_address_p): Update.
3204 * solib-svr4.c (scan_dyntag): Update.
3205 * solib-dsbt.c (scan_dyntag): Update.
3206 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3207 Update.
3208 * record-full.c (record_full_core_start, record_full_core_end):
3209 Remove.
3210 (record_full_core_sections): New global.
3211 (record_full_core_open_1, record_full_core_target::xfer_partial):
3212 Update.
3213 * exec.h (build_section_table, section_table_xfer_memory_partial)
3214 (add_target_sections): Take a target_section_table.
3215 * exec.c (exec_file_attach, clear_section_table): Update.
3216 (resize_section_table): Remove.
3217 (build_section_table, add_target_sections): Take a
3218 target_section_table.
3219 (add_target_sections_of_objfile, remove_target_sections)
3220 (exec_on_vfork): Update.
3221 (section_table_available_memory): Take a target_section_table.
3222 (section_table_read_available_memory): Update.
3223 (section_table_xfer_memory_partial): Take a target_section_table.
3224 (print_section_info, set_section_command)
3225 (exec_set_section_address, exec_target::has_memory): Update.
3226 * corelow.c (class core_target) <m_core_section_table,
3227 m_core_file_mappings>: Remove braces.
3228 <~core_target>: Remove.
3229 (core_target::core_target): Update.
3230 (core_target::~core_target): Remove.
3231 (core_target::build_file_mappings)
3232 (core_target::xfer_memory_via_mappings)
3233 (core_target::xfer_partial, core_target::info_proc_mappings):
3234 Update.
3235 * bfd-target.c (target_bfd::xfer_partial): Update.
3236 (target_bfd::target_bfd): Update.
3237 (target_bfd::~target_bfd): Remove.
3238
7b466b10
TT
32392020-10-12 Tom Tromey <tom@tromey.com>
3240
3241 * target.h (struct target_section, struct target_section_table):
3242 Move to target-section.h.
3243 * target-section.h: New file.
3244
87a37e5e
PA
32452020-10-12 Pedro Alves <pedro@palves.net>
3246
3247 PR exp/26602
3248 * valops.c (struct struct_field_searcher): New.
3249 (update_search_result): Rename to ...
3250 (struct_field_searcher::update_result): ... this. Simplify
3251 prototype. Record all found fields.
3252 (do_search_struct_field): Rename to ...
3253 (struct_field_searcher::search): ... this. Simplify prototype.
3254 Maintain stack of visited baseclass path. Call update_result for
3255 fields too. Keep searching fields in baseclasses instead of
3256 stopping at the first found field.
3257 (search_struct_field): Use struct_field_searcher. When looking
3258 for fields, report ambiguous access attempts.
3259
9370fd51
AB
32602020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3261
3262 * frame.c (inside_main_func): Check full symbols as well as
3263 minimal symbols.
3264
59c8a30b
JB
32652020-10-09 Joel Brobecker <brobecker@adacore.com>
3266
3267 * ada-lang.c (advance_wild_match): Rewrite the function's
3268 description. Change the type of target0, t0 and t1 to char.
3269
7c184d33
TT
32702020-10-09 Tom Tromey <tromey@adacore.com>
3271
3272 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3273
5c4258f4
TT
32742020-10-09 Tom Tromey <tromey@adacore.com>
3275
3276 * ada-lang.h (ada_encode): Return std::string.
3277 * ada-lang.c (ada_encode_1): Return std::string.
3278 (ada_encode): Likewise.
3279 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3280 Update.
3281 * ada-exp.y (block_lookup, write_var_or_type): Update.
3282
3d87245c
HD
32832020-10-09 Hannes Domani <ssbssa@yahoo.de>
3284
3285 PR exp/26714
3286 * printcmd.c (print_formatted): Handle void results as
3287 unformatted prints.
3288
bbb826f5
AB
32892020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3290
3291 * arch/aarch32.c (aarch32_create_target_description): Release the
3292 target_desc_up as late as possible.
3293 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3294 * arch/amd64.c (amd64_create_target_description): Likewise.
3295 * arch/arc.c (arc_create_target_description): Return a
3296 target_desc_up, don't release it.
3297 * arch/arc.h (arc_create_target_description): Update declaration.
3298 (arc_lookup_target_description): Move target_desc_up into the
3299 cache, and return a borrowed pointer.
3300 * arch/arm.c (arm_create_target_description): Release the
3301 target_desc_up as late as possible.
3302 * arch/i386.c (i386_create_target_description): Likewise.
3303 * arch/riscv.h (riscv_create_target_description): Update
3304 declaration to match definition.
3305 * arch/tic6x.c (tic6x_create_target_description): Release the
3306 target_desc_up as late as possible.
3307
361cb219
AB
33082020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3309
3310 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3311 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3312
f5c4b229
JV
33132020-10-09 Jan Vrany <jan.vrany@labware.com>
3314
3315 * source.c (directory_command): Notify observers that "directories"
3316 parameter has changed.
3317
b2701685
TT
33182020-10-08 Tom Tromey <tom@tromey.com>
3319
3320 * cli/cli-cmds.c (print_disassembly): Style function name and
3321 addresses. Add _() wrappers.
3322
ada508b6
SV
33232020-10-08 Shahab Vahedi <shahab@synopsys.com>
3324
3325 * NEWS: Mention ARC support in GDBserver.
3326
51a948fd
AB
33272020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 * arch/aarch32.c (aarch32_create_target_description): Release
3330 unique_ptr returned from allocate_target_description.
3331 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3332 * arch/amd64.c (amd64_create_target_description): Likewise.
3333 * arch/arc.c (arc_create_target_description): Likewise.
3334 * arch/arm.c (arm_create_target_description): Likewise.
3335 * arch/i386.c (i386_create_target_description): Likewise.
3336 * arch/riscv.c (riscv_create_target_description): Update return
3337 type. Handle allocate_target_description returning a unique_ptr.
3338 (riscv_lookup_target_description): Update to handle unique_ptr.
3339 * arch/tic6x.c (tic6x_create_target_description): Release
3340 unique_ptr returned from allocate_target_description.
3341 * features/microblaze-with-stack-protect.c: Regenerate.
3342 * features/microblaze.c: Regenerate.
3343 * features/mips-dsp-linux.c: Regenerate.
3344 * features/mips-linux.c: Regenerate.
3345 * features/mips64-dsp-linux.c: Regenerate.
3346 * features/mips64-linux.c: Regenerate.
3347 * features/nds32.c: Regenerate.
3348 * features/nios2.c: Regenerate.
3349 * features/or1k.c: Regenerate.
3350 * features/rs6000/powerpc-32.c: Regenerate.
3351 * features/rs6000/powerpc-32l.c: Regenerate.
3352 * features/rs6000/powerpc-403.c: Regenerate.
3353 * features/rs6000/powerpc-403gc.c: Regenerate.
3354 * features/rs6000/powerpc-405.c: Regenerate.
3355 * features/rs6000/powerpc-505.c: Regenerate.
3356 * features/rs6000/powerpc-601.c: Regenerate.
3357 * features/rs6000/powerpc-602.c: Regenerate.
3358 * features/rs6000/powerpc-603.c: Regenerate.
3359 * features/rs6000/powerpc-604.c: Regenerate.
3360 * features/rs6000/powerpc-64.c: Regenerate.
3361 * features/rs6000/powerpc-64l.c: Regenerate.
3362 * features/rs6000/powerpc-7400.c: Regenerate.
3363 * features/rs6000/powerpc-750.c: Regenerate.
3364 * features/rs6000/powerpc-860.c: Regenerate.
3365 * features/rs6000/powerpc-altivec32.c: Regenerate.
3366 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3367 * features/rs6000/powerpc-altivec64.c: Regenerate.
3368 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3369 * features/rs6000/powerpc-e500.c: Regenerate.
3370 * features/rs6000/powerpc-e500l.c: Regenerate.
3371 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3372 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3373 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3374 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3375 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3376 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3377 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3378 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3379 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3380 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3381 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3382 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3383 * features/rs6000/powerpc-vsx32.c: Regenerate.
3384 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3385 * features/rs6000/powerpc-vsx64.c: Regenerate.
3386 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3387 * features/rs6000/rs6000.c: Regenerate.
3388 * features/rx.c: Regenerate.
3389 * features/s390-gs-linux64.c: Regenerate.
3390 * features/s390-linux32.c: Regenerate.
3391 * features/s390-linux32v1.c: Regenerate.
3392 * features/s390-linux32v2.c: Regenerate.
3393 * features/s390-linux64.c: Regenerate.
3394 * features/s390-linux64v1.c: Regenerate.
3395 * features/s390-linux64v2.c: Regenerate.
3396 * features/s390-te-linux64.c: Regenerate.
3397 * features/s390-tevx-linux64.c: Regenerate.
3398 * features/s390-vx-linux64.c: Regenerate.
3399 * features/s390x-gs-linux64.c: Regenerate.
3400 * features/s390x-linux64.c: Regenerate.
3401 * features/s390x-linux64v1.c: Regenerate.
3402 * features/s390x-linux64v2.c: Regenerate.
3403 * features/s390x-te-linux64.c: Regenerate.
3404 * features/s390x-tevx-linux64.c: Regenerate.
3405 * features/s390x-vx-linux64.c: Regenerate.
3406 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3407 from allocate_target_description.
3408 * target-descriptions.c (allocate_target_description): Update
3409 return type.
3410 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3411 allocate_target_description.
3412
485c47e5
TT
34132020-10-07 Tom Tromey <tromey@adacore.com>
3414
3415 * unittests/search-memory-selftests.c: New file.
3416 * Makefile.in (SELFTESTS_SRCS): Add
3417 unittests/search-memory-selftests.c.
3418
3a135a91
TT
34192020-10-07 Tom Tromey <tromey@adacore.com>
3420
3421 PR gdb/16930:
3422 * findcmd.c (_initialize_mem_search): Mention that the range is
3423 inclusive.
3424
4a72de73
TT
34252020-10-07 Tom Tromey <tromey@adacore.com>
3426
3427 * target.h (simple_search_memory): Don't declare.
3428 * target.c (simple_search_memory): Move to gdbsupport.
3429 (default_search_memory): Update.
3430 * remote.c (remote_target::search_memory): Update.
3431
a038ffd8
SM
34322020-10-07 Simon Marchi <simon.marchi@efficios.com>
3433
3434 * Makefile.in (COMPILE): Add CXXFLAGS.
3435 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3436 (check-headers): Add CXXFLAGS.
3437
cc463201
AK
34382020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3439
3440 * arc-linux-tdep.h: New file.
3441 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3442 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3443 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3444 arc_linux_gregset, arc_linux_v2_regset,
3445 arc_linux_iterate_over_regset_sections,
3446 arc_linux_core_read_description): Implement.
3447 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3448 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3449 (arc_gdbarch_features_create): Add.
3450 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3451
e4bd363f
SV
34522020-10-07 Shahab Vahedi <shahab@synopsys.com>
3453
3454 * arch/arc.h: Rename "arc_gdbarch_features" to
3455 "arc_arch_features".
3456 * arc-tdep.h: Likewise.
3457 * arc-tdep.c: Likewise.
3458
b68bef99
TBA
34592020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3460
3461 * infcmd.c (attach_command): Remove the redundant call to
3462 `clear_proceed_status`.
3463
4641551a
KR
34642020-10-07 Kamil Rytarowski <n54@gmx.com>
3465
3466 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3467
91e5e8db
KR
34682020-10-07 Kamil Rytarowski <n54@gmx.com>
3469
3470 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3471 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3472 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3473
64c03bdb
SM
34742020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3475
3476 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3477 (_initialize_break_catch_sig): Don't allocate array.
3478
31a8f60f
AB
34792020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3480
3481 * symtab.c (find_pc_line): Return unmapped addresses when the
3482 requested address is also unmapped.
3483
9e6dbd8b
SM
34842020-10-05 Simon Marchi <simon.marchi@efficios.com>
3485
3486 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3487 tui/tui-out.h.
3488
a1d217e8
SM
34892020-10-05 Simon Marchi <simon.marchi@efficios.com>
3490
3491 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3492 type::is_vector instead of TYPE_VECTOR.
3493
7d144117
SM
34942020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3495
3496 * auto-load.c (auto_load_objfile_script_1): Don't use
3497 debugfile_holder as temporary variable when stripping drive
3498 letter.
3499
cd096ec8
HD
35002020-10-05 Hannes Domani <ssbssa@yahoo.de>
3501
3502 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3503 Add TYPE_CODE_COMPLEX.
3504 (amd64_windows_return_value): Fix types returned via XMM0.
3505
b58e7f72
AH
35062020-10-05 Alan Hayward <alan.hayward@arm.com>
3507
3508 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3509 AArch64/ARM maintainers.
3510
8d378f27
SM
35112020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3512
3513 * NEWS: Mention set/show debug event-loop.
3514
d5519913
TT
35152020-10-02 Tom Tromey <tromey@adacore.com>
3516
3517 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3518 REG_EXTENDED.
3519
18b67edc
SM
35202020-10-02 Simon Marchi <simon.marchi@efficios.com>
3521
3522 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3523 * procfs.c (procfs_inferior_created): Remove.
3524 (_initialize_procfs): Don't register procfs_inferior_created.
3525
6b01403b
SM
35262020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3527
3528 * async-event.c (invoke_async_signal_handlers): Add debug
3529 print.
3530 (check_async_event_handlers): Likewise.
3531 * event-top.c (show_debug_event_loop): New function.
3532 (_initialize_event_top): Register "set debug event-loop"
3533 setting.
3534
ba988419
SM
35352020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3536
3537 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3538 * debug.h: Remove.
3539 * infrun.c: Include gdbsupport/common-debug.h.
3540 * linux-nat.c: Likewise.
3541
db20ebdf
SM
35422020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3543
3544 * async-event.h (create_async_signal_handler): Add name
3545 parameter.
3546 (create_async_event_handler): Likewise.
3547 * async-event.c (struct async_signal_handler) <name>: New field.
3548 (struct async_event_handler) <name>: New field.
3549 (create_async_signal_handler): Assign name.
3550 (create_async_event_handler): Assign name.
3551 * event-top.c (async_init_signals): Pass name when creating
3552 handler.
3553 * infrun.c (_initialize_infrun): Likewise.
3554 * record-btrace.c (record_btrace_push_target): Likewise.
3555 * record-full.c (record_full_open): Likewise.
3556 * remote-notif.c (remote_notif_state_allocate): Likewise.
3557 * remote.c (remote_target::open_1): Likewise.
3558 * tui/tui-win.c (tui_initialize_win): Likewise.
3559
2554f6f5
SM
35602020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3561
3562 * async-event.c (initialize_async_signal_handlers): Pass name to
3563 add_file_handler
3564 * event-top.c (ui_register_input_event_handler): Likewise.
3565 * linux-nat.c (linux_nat_target::async): Likewise.
3566 * run-on-main-thread.c (_initialize_run_on_main_thread):
3567 Likewise
3568 * ser-base.c (reschedule): Likewise.
3569 (ser_base_async): Likewise.
3570 * tui/tui-io.c: Likewise.
3571 * top.h (struct ui) <num>: New field.
3572 * top.c (highest_ui_num): New variable.
3573 (ui::ui): Initialize num.
3574
a7aba266
SM
35752020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3576
3577 * observable.h <inferior_created>: Remove parameters. Update all
3578 listeners.
3579 * inferior.h (post_create_inferior): Remove target parameter.
3580 Update all callers.
3581
048fde1e 35822020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3583
3584 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3585 and DW_MACRO_undef_strx.
3586 (dwarf_decode_macros): Likewise
3587 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3588 which is the value of DW_AT_str_offsets_base.
3589 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3590 str_offsets_base.
3591
064280be
KR
35922020-10-01 Kamil Rytarowski <n54@gmx.com>
3593
3594 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3595
6ff33035
KR
35962020-10-01 Kamil Rytarowski <n54@gmx.com>
3597
3598 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3599 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3600
1eb6eb79
KR
36012020-10-01 Kamil Rytarowski <n54@gmx.com>
3602
3603 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3604
95eb9e54
TV
36052020-09-30 Tom de Vries <tdevries@suse.de>
3606
3607 PR symtab/26683
3608 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3609
cae21f8e
TT
36102020-09-30 Tom Tromey <tromey@adacore.com>
3611
3612 * dwarf2/read.c (handle_variant): Use constant_value.
3613
529908cb
TT
36142020-09-29 Tom Tromey <tom@tromey.com>
3615
3616 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3617 (read_file_scope, dwarf2_get_pc_bounds)
3618 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3619 (read_structure_type, handle_struct_member_die)
3620 (read_enumeration_type, read_array_type, read_set_type)
3621 (read_tag_pointer_type, read_tag_reference_type)
3622 (read_subroutine_type, read_base_type, read_subrange_type)
3623 (read_full_die_1, partial_die_info::read)
3624 (partial_die_info::read, by, new_symbol)
3625 (dwarf2_const_value_data, dwarf2_const_value_attr)
3626 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3627 (prepare_one_comp_unit): Update.
3628 * dwarf2/attribute.h (DW_UNSND): Remove.
3629
c45bc3f8
TT
36302020-09-29 Tom Tromey <tom@tromey.com>
3631
3632 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3633 (read_subroutine_type, partial_die_info::read)
3634 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3635 (dwarf2_add_member_fn): Update.
3636 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3637 * dwarf2/attribute.c (attribute::as_boolean): New method.
3638
23dca5c3
TT
36392020-09-29 Tom Tromey <tom@tromey.com>
3640
3641 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3642 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3643 method.
3644 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3645
52c14d11
TT
36462020-09-29 Tom Tromey <tom@tromey.com>
3647
3648 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3649 the attribute's form.
3650
e8e5c158
TT
36512020-09-29 Tom Tromey <tom@tromey.com>
3652
3653 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3654 (dwarf2_add_member_fn): Update.
3655 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3656 * dwarf2/attribute.c (attribute::defaulted): New method, from
3657 is_valid_DW_AT_defaulted.
3658
d4df075e
TT
36592020-09-29 Tom Tromey <tom@tromey.com>
3660
3661 * dwarf2/read.c (dw2_get_file_names_reader)
3662 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3663 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3664 (dwarf2_symbol_mark_computed): Use as_unsigned.
3665 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3666 method.
3667 <form_is_section_offset>: Update comment.
3668
bf23a268
TT
36692020-09-29 Tom Tromey <tom@tromey.com>
3670
3671 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3672 dwarf2_default_access_attribute. Look up attribute.
3673 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3674 Update.
3675
7a5f294d
TT
36762020-09-29 Tom Tromey <tom@tromey.com>
3677
3678 * dwarf2/read.c (skip_one_die): Update.
3679 (read_full_die_1): Change how reprocessing is done.
3680 (partial_die_info::read): Update.
3681 (read_attribute_value): Remove need_reprocess parameter.
3682 (read_attribute): Likewise.
3683 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3684 New method.
3685
36d378cf
TT
36862020-09-29 Tom Tromey <tom@tromey.com>
3687
3688 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3689 (dwarf2_const_value_attr, dump_die_shallow)
3690 (dwarf2_fetch_constant_bytes): Update.
3691 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3692 comment.
3693 <set_address>: New method.
3694 (DW_ADDR): Remove.
3695 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3696 (attribute::as_string, attribute::as_address): Add assert.
3697
fe56917a
TT
36982020-09-29 Tom Tromey <tom@tromey.com>
3699
3700 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3701 (read_attribute_reprocess, read_attribute_value): Update.
3702 (read_attribute): Clear requires_reprocessing.
3703 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3704 form_requires_reprocessing>: New methods.
3705 <string_init>: Clear requires_reprocessing.
3706 <set_unsigned_reprocess>: New method.
3707 <name>: Shrink by one bit.
3708 <requires_reprocessing>: New member.
3709 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3710 method.
3711
414ad644
TT
37122020-09-29 Tom Tromey <tom@tromey.com>
3713
3714 * dwarf2/read.c (read_attribute_value): Update.
3715 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3716 set_unsigned>: New methods.
3717 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3718
1bc397c5
TT
37192020-09-29 Tom Tromey <tom@tromey.com>
3720
3721 * dwarf2/read.c (get_alignment, read_array_order)
3722 (read_attribute_value, dwarf2_const_value_attr)
3723 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3724 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3725 New methods.
3726 (DW_SND): Remove.
3727
630ed6b9
TT
37282020-09-29 Tom Tromey <tom@tromey.com>
3729
3730 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3731 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3732 Update.
3733 * dwarf2/attribute.h (struct attribute) <as_signature,
3734 set_signature>: New methods.
3735 (DW_SIGNATURE): Remove.
3736
9d2246fc
TT
37372020-09-29 Tom Tromey <tom@tromey.com>
3738
3739 * dwarf2/read.c (read_call_site_scope)
3740 (handle_data_member_location, dwarf2_add_member_fn)
3741 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3742 (partial_die_info::read, read_attribute_value)
3743 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3744 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3745 (dwarf2_symbol_mark_computed): Update.
3746 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3747 methods.
3748 (DW_BLOCK): Remove.
3749 * dwarf2/attribute.c (attribute::form_is_block): Add
3750 DW_FORM_data16.
3751
c6481205
TT
37522020-09-29 Tom Tromey <tom@tromey.com>
3753
3754 * dwarf2/read.c (read_cutu_die_from_dwo)
3755 (read_attribute_reprocess, read_attribute_value, read_attribute)
3756 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3757 (dwarf2_fetch_constant_bytes): Update.
3758 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3759 <set_string_noncanonical, set_string_canonical>: New methods.
3760 <string_is_canonical>: Update comment.
3761 <canonical_string_p>: Add assert.
3762 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3763 * dwarf2/attribute.c (attribute::form_is_string): New method.
3764 (attribute::string): Use it.
3765
3b64bf15
TT
37662020-09-29 Tom Tromey <tom@tromey.com>
3767
3768 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3769 (dump_die_shallow): Use canonical_string_p.
3770 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3771 method.
3772
2c830f54
TT
37732020-09-29 Tom Tromey <tom@tromey.com>
3774
3775 * dwarf2/read.c (partial_die_info::read)
3776 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3777 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3778 attribute::as_string.
3779
6c412691
TT
37802020-09-29 Tom Tromey <tom@tromey.com>
3781
3782 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3783 DW_ADDR.
3784 (attribute::string): Don't use DW_STRING.
3785 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3786 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3787
95f982e5
TT
37882020-09-29 Tom Tromey <tom@tromey.com>
3789
3790 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3791 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3792 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3793 * dwarf2/attribute.h (struct attribute): Rename methods.
3794 * dwarf2/attribute.c (attribute::as_address): Rename from
3795 value_as_address.
3796 (attribute::as_string): Rename from value_as_string.
3797
f800b00e
TT
37982020-09-29 Tom Tromey <tom@tromey.com>
3799
3800 * dwarf2/read.c (partial_die_info::read) <case
3801 DW_AT_linkage_name>: Use value_as_string.
3802 (dwarf2_string_attr): Use value_as_string.
3803 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3804 method.
3805 * dwarf2/attribute.c (attribute::value_as_string): New method.
3806
de38d64a
PA
38072020-09-29 Pedro Alves <pedro@palves.net>
3808
3809 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3810 defined before using '#pragma GCC diagnostic' instead of checking
3811 __clang__.
3812
9aed480c
TT
38132020-09-28 Tom Tromey <tom@tromey.com>
3814
3815 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3816 (handle_signal_stop): Update.
3817 * procfs.c (procfs_target::insert_watchpoint): Update.
3818 * target.h (target_have_steppable_watchpoint): Now a function.
3819
8a3ecb79
TT
38202020-09-28 Tom Tromey <tom@tromey.com>
3821
3822 * infrun.c (set_schedlock_func): Update.
3823 * target.h (target_can_lock_scheduler): Now a function.
3824
55f6301a
TT
38252020-09-28 Tom Tromey <tom@tromey.com>
3826
3827 * inferior.h (class inferior) <has_execution>: Update.
3828 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3829 * valops.c (find_function_in_inferior)
3830 (value_allocate_space_in_inferior): Update.
3831 * top.c (kill_or_detach): Update.
3832 * target.c (target_preopen, set_target_permissions): Update.
3833 (target_has_execution_current): Remove.
3834 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3835 Update.
3836 * solib.c (update_solib_list, reload_shared_libraries): Update.
3837 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3838 * solib-dsbt.c (enable_break): Update.
3839 * score-tdep.c (score7_fetch_inst): Update.
3840 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3841 Update.
3842 * remote.c (remote_target::start_remote)
3843 (remote_target::remote_check_symbols, remote_target::open_1)
3844 (remote_target::remote_detach_1, remote_target::verify_memory)
3845 (remote_target::xfer_partial, remote_target::read_description)
3846 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3847 * record-full.c (record_full_open_1): Update.
3848 * record-btrace.c (record_btrace_target_open): Update.
3849 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3850 (value_nsstring): Update.
3851 * linux-thread-db.c (add_thread_db_info)
3852 (thread_db_find_new_threads_silently, check_thread_db_callback)
3853 (try_thread_db_load_1, record_thread): Update.
3854 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3855 Update.
3856 * linux-fork.c (checkpoint_command): Update.
3857 * infrun.c (set_non_stop, set_observer_mode)
3858 (check_multi_target_resumption, for_each_just_stopped_thread)
3859 (maybe_remove_breakpoints, normal_stop)
3860 (class infcall_suspend_state): Update.
3861 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3862 (info_program_command, attach_command): Update.
3863 * infcall.c (call_function_by_hand_dummy): Update.
3864 * inf-loop.c (inferior_event_handler): Update.
3865 * gcore.c (gcore_command, derive_heap_segment): Update.
3866 * exec.c (exec_file_command): Update.
3867 * eval.c (evaluate_subexp): Update.
3868 * compile/compile.c (compile_to_object): Update.
3869 * cli/cli-dump.c (restore_command): Update.
3870 * breakpoint.c (update_watchpoint)
3871 (update_inserted_breakpoint_locations)
3872 (insert_breakpoint_locations, get_bpstat_thread): Update.
3873 * target.h (target_has_execution): Remove macro.
3874 (target_has_execution_current): Don't declare.
3875 (target_has_execution): Rename from target_has_execution_1. Add
3876 argument default.
3877
05374cfd
TT
38782020-09-28 Tom Tromey <tom@tromey.com>
3879
3880 * mi/mi-main.c (exec_reverse_continue)
3881 (mi_cmd_list_target_features): Update.
3882 * infrun.c (set_exec_direction_func): Update.
3883 * target.c (default_execution_direction): Update.
3884 * reverse.c (exec_reverse_once): Update.
3885 * target.h (target_can_execute_reverse): Now a function.
3886
9dccd06e
TT
38872020-09-28 Tom Tromey <tom@tromey.com>
3888
3889 * tui/tui-regs.c (tui_get_register)
3890 (tui_data_window::show_registers): Update.
3891 * thread.c (scoped_restore_current_thread::restore)
3892 (scoped_restore_current_thread::scoped_restore_current_thread):
3893 Update.
3894 * regcache-dump.c (regcache_print): Update.
3895 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3896 Update.
3897 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3898 * mep-tdep.c (current_me_module, current_options): Update.
3899 * linux-thread-db.c (thread_db_load): Update.
3900 * infcmd.c (registers_info, info_vector_command)
3901 (info_float_command): Update.
3902 * ia64-tdep.c (ia64_frame_prev_register)
3903 (ia64_sigtramp_frame_prev_register): Update.
3904 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3905 * gcore.c (derive_stack_segment): Update.
3906 * frame.c (get_current_frame, has_stack_frames): Update.
3907 * findvar.c (language_defn::read_var_value): Update.
3908 * arm-tdep.c (arm_pc_is_thumb): Update.
3909 * target.c (target_has_registers): Rename from
3910 target_has_registers_1.
3911 * target.h (target_has_registers): Remove macro.
3912 (target_has_registers): Rename from target_has_registers_1.
3913
841de120
TT
39142020-09-28 Tom Tromey <tom@tromey.com>
3915
3916 * windows-tdep.c (tlb_make_value): Update.
3917 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3918 * thread.c (scoped_restore_current_thread::restore)
3919 (scoped_restore_current_thread::scoped_restore_current_thread)
3920 (thread_command): Update.
3921 * stack.c (backtrace_command_1, frame_apply_level_command)
3922 (frame_apply_all_command, frame_apply_command): Update.
3923 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3924 Update.
3925 * gcore.c (derive_stack_segment): Update.
3926 * frame.c (get_current_frame, has_stack_frames): Update.
3927 * auxv.c (info_auxv_command): Update.
3928 * ada-tasks.c (ada_build_task_list): Update.
3929 * target.c (target_has_stack): Rename from target_has_stack_1.
3930 * target.h (target_has_stack): Remove macro.
3931 (target_has_stack): Rename from target_has_stack_1.
3932
a739972c
TT
39332020-09-28 Tom Tromey <tom@tromey.com>
3934
3935 * target.c (target_has_memory): Rename from target_has_memory_1.
3936 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3937 * thread.c (scoped_restore_current_thread::restore)
3938 (scoped_restore_current_thread::scoped_restore_current_thread):
3939 Update.
3940 * frame.c (get_current_frame, has_stack_frames): Update.
3941 * target.h (target_has_memory): Remove macro.
3942 (target_has_memory): Rename from target_has_memory_1.
3943
5b8a4776
TT
39442020-09-28 Tom Tromey <tom@tromey.com>
3945
3946 * target.c (target_has_all_memory_1): Remove.
3947 * target.h (target_has_all_memory): Remove define.
3948 (target_has_all_memory_1): Don't declare.
3949
bd356ec6
SM
39502020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3951
3952 * ser-base.c: Adjust comments formatting.
3953
2c72d5e5
TT
39542020-09-27 Tom Tromey <tom@tromey.com>
3955
3956 PR tui/25342:
3957 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3958
35a98237
TT
39592020-09-27 Tom Tromey <tom@tromey.com>
3960
3961 PR tui/25342:
3962 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3963
9e820dec
TT
39642020-09-27 Tom Tromey <tom@tromey.com>
3965
3966 * unittests/tui-selftests.c: Update.
3967 * tui/tui-winsource.h (struct tui_source_window_base)
3968 <extra_margin, show_line_number, refresh_pad>: New methods.
3969 <m_max_length, m_pad>: New members.
3970 (tui_copy_source_line): Update.
3971 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3972 first_col, line_width, ndigits parameters. Add length.
3973 (tui_source_window_base::show_source_line): Write to pad. Line
3974 number now 0-based.
3975 (tui_source_window_base::refresh_pad): New method.
3976 (tui_source_window_base::show_source_content): Write to pad. Call
3977 refresh_pad.
3978 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3979 not refill.
3980 (tui_source_window_base::update_exec_info): Call
3981 show_line_number.
3982 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3983 method.
3984 <m_digits>: New member.
3985 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3986 and m_max_length.
3987 (tui_source_window::show_line_number): New method.
3988 * tui/tui-io.h (tui_puts): Fix comment.
3989 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3990 m_max_length.
3991
c15c15c8
TT
39922020-09-27 Tom Tromey <tom@tromey.com>
3993
3994 * tui/tui-winsource.c
3995 (tui_source_window_base::set_is_exec_point_at): Don't call
3996 show_source_line.
3997
149830c1
TT
39982020-09-27 Tom Tromey <tom@tromey.com>
3999
4000 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4001 method.
4002 <erase>: Update.
4003 <cursor_x, cursor_y>: Remove.
4004 <m_inner_window>: New member.
4005 (tui_py_window::rerender): Create inner window.
4006 (tui_py_window::output): Write to inner window.
4007
8f9929bb
GR
40082020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4009
4010 PR python/26586
4011 * cli/cli-script.c (execute_control_commands): don't set
4012 instream to nullptr here as this breaks the from_tty argument
4013 to gdb.execute in Python.
4014 (execute_user_command): set instream to nullptr here instead.
4015
956bdb59
SM
40162020-09-25 Simon Marchi <simon.marchi@efficios.com>
4017
4018 * infrun.h (infrun_debug_printf): Fix formatting.
4019 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4020
3b93626b
SJ
40212020-09-25 Saagar Jha <saagar@saagarjha.com>
4022
4023 * compile/compile-object-load.h (struct munmap_list): Add
4024 explicitly-defined move constructor.
4025
b551a89f
TT
40262020-09-24 Tom Tromey <tromey@adacore.com>
4027
4028 PR tui/26638:
4029 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4030 method.
4031 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4032 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4033 (tui_prev_win): Rewrite.
4034
99bb393f
HD
40352020-09-23 Hannes Domani <ssbssa@yahoo.de>
4036
4037 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4038 in WOW64 processes as SIGINT.
4039 * nat/windows-nat.h: Make wow64_process a shared variable.
4040 * windows-nat.c: Remove static wow64_process variable.
4041
20a5fcbd
TT
40422020-09-23 Tom Tromey <tom@tromey.com>
4043
4044 PR symtab/25470:
4045 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4046 offset and bit size.
4047 * printcmd.c (print_scalar_formatted): Handle zero-length
4048 integer.
4049 (print_scalar_formatted): Use bit_size_differs_p.
4050 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4051 constant.
4052 (union type_specific): <int_stuff>: New member.
4053 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4054 methods.
4055 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4056 TYPE_SPECIFIC_FIELD.
4057 (recursive_dump_type, copy_type_recursive): Update.
4058 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4059 DW_AT_data_bit_offset.
4060
bac51ab7
TT
40612020-09-23 Tom Tromey <tom@tromey.com>
4062
4063 * utils.h (class gdb_argv): Add move operators.
4064 <append>: New methods.
4065 * compile/compile.c (build_argc_argv): Remove.
4066 (compile_args_argc): Remove.
4067 (compile_args_argv): Change type.
4068 (set_compile_args): Simplify.
4069 (append_args): Remove.
4070 (filter_args): Remove argcp parameter.
4071 (get_args): Return gdb_argv. Simplify.
4072 (compile_to_object): Update.
4073
92677124
TT
40742020-09-23 Tom Tromey <tom@tromey.com>
4075
4076 * compile/compile-object-run.c (do_module_cleanup)
4077 <~do_module_cleanup> :Remove.
4078 (do_module_cleanup): Update.
4079 * compile/compile-object-load.h (struct munmap_list): Add move
4080 assignment operator.
4081 <source_file>: Now a std::string.
4082 <munmap_list>: Rename. No longer a pointer.
4083 * compile/compile-object-load.c (struct setup_sections_data): Add
4084 constructor.
4085 <setup_one_section>: Declare.
4086 <munmap_list>: Move earlier.
4087 <m_bfd>: New member.
4088 <m_last_size, m_last_section_first, m_last_prot,
4089 m_last_max_alignment>: Rename, add initializers where needed.
4090 (setup_sections_data::setup_one_section): Rename from
4091 setup_sections. Update.
4092 (compile_object_load): Update. Don't use bfd_map_over_sections.
4093
e616f60a
TT
40942020-09-23 Tom Tromey <tom@tromey.com>
4095
4096 * compile/compile-object-run.c (struct do_module_cleanup): Add
4097 parameters to constructor. Update destructor.
4098 <source_file, scope, scope_data, out_value_type, out_value_addr,
4099 munmap_list_head, objfile_name_string>: Remove.
4100 <module>: New member.
4101 (do_module_cleanup): Update.
4102 (compile_object_run): Update.
4103
e947a848
TT
41042020-09-23 Tom Tromey <tom@tromey.com>
4105
4106 * compile/compile.c (eval_compile_command): Update.
4107 * compile/compile-object-run.h (compile_object_run): Take a
4108 compile_module_up.
4109 * compile/compile-object-run.c (compile_object_run): Take a
4110 compile_module_up.
4111 * compile/compile-object-load.h (struct compile_module): Add
4112 constructor, destructor.
4113 (compile_module_up): New typedef.
4114 (compile_object_load): Return compile_object_up.
4115 * compile/compile-object-load.c (compile_object_load): Return
4116 compile_module_up.
4117
0dbf6ee6
TT
41182020-09-23 Tom Tromey <tom@tromey.com>
4119
4120 * compile/compile-object-run.c (struct do_module_cleanup): Add
4121 constructor, destructor.
4122 <objfile_name_string>: Don't use struct hack.
4123 (do_module_cleanup): Use delete.
4124 (compile_object_run): Use new.
4125
ebe824f5
TT
41262020-09-23 Tom Tromey <tom@tromey.com>
4127
4128 * compile/compile-cplus-types.c
4129 (compile_cplus_convert_struct_or_union): Use std::vector.
4130 (compile_cplus_convert_func): Likewise.
4131 * compile/compile-c-types.c (convert_func): Use std::vector.
4132
5dd918d9
TT
41332020-09-21 Tom Tromey <tromey@adacore.com>
4134
4135 * sparc-tdep.c (sparc32_skip_prologue): Use
4136 skip_prologue_using_sal.
4137
5486c517
TT
41382020-09-19 Tom Tromey <tom@tromey.com>
4139
4140 * symfile.c (add_section_size_callback): Remove.
4141 (load_one_section): Rename from load_section_callback. Change
4142 parameters.
4143 (generic_load): Use foreach.
4144
8a6bb1d1
TT
41452020-09-19 Tom Tromey <tom@tromey.com>
4146
4147 * exec.c (add_to_section_table): Remove.
4148 (build_section_table): Use foreach.
4149
08f93a1a
TT
41502020-09-19 Tom Tromey <tom@tromey.com>
4151
4152 * elfread.c (elf_locate_sections): Change parameters.
4153 (elf_symfile_read): Use foreach.
4154
03cd72b8
TT
41552020-09-19 Tom Tromey <tom@tromey.com>
4156
4157 * cli/cli-dump.c (struct callback_data): Remove.
4158 (restore_one_section): Rename from restore_section_callback.
4159 Change parameters.
4160 (restore_binary_file): Change parameters.
4161 (restore_command): Use foreach.
4162
f4f2b85f
TT
41632020-09-19 Tom Tromey <tom@tromey.com>
4164
4165 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4166 (gcore_copy_callback): Likewise.
4167 (gcore_memory_sections): Use foreach.
4168
b35c1d1c
TT
41692020-09-19 Tom Tromey <tom@tromey.com>
4170
4171 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4172 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4173 parameters.
4174 (generic_elf_osabi_sniffer): Use foreach.
4175 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4176 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4177
5bb6e9dd
TT
41782020-09-19 Tom Tromey <tom@tromey.com>
4179
4180 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4181 (dwarf2_get_dwz_file): Use foreach.
4182 (dwarf2_locate_dwo_sections): Change parameters.
4183 (open_and_init_dwo_file): Use foreach.
4184 (dwarf2_locate_common_dwp_sections): Change parameters.
4185 (open_and_init_dwp_file): Use foreach.
4186
ad7277da
TT
41872020-09-19 Tom Tromey <tom@tromey.com>
4188
4189 * symfile.h: (find_lowest_section): Don't declare.
4190 * symfile.c (find_lowest_section): Now static. Change
4191 parameters.
4192 (struct place_section_arg): Remove.
4193 (place_section): Change parameters.
4194 (addr_info_make_relative): Use foreach.
4195 (symfile_dummy_outputs): Remove.
4196 (default_symfile_relocate): Use foreach.
4197
cb814f2e
TT
41982020-09-19 Tom Tromey <tom@tromey.com>
4199
4200 * objfiles.c (add_to_objfile_sections): Rename from
4201 add_to_objfile_sections_full.
4202 (add_to_objfile_sections): Remove.
4203 (build_objfile_section_table): Use foreach.
4204
3cabfd26
TT
42052020-09-19 Tom Tromey <tom@tromey.com>
4206
4207 * stap-probe.c (get_stap_base_address_1): Remove.
4208 (get_stap_base_address): Use foreach.
4209
1ce51eb5
TT
42102020-09-19 Tom Tromey <tom@tromey.com>
4211
4212 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4213 parameters.
4214 (gdb_bfd_close_or_warn): Use foreach.
4215
a190fabb
TT
42162020-09-19 Tom Tromey <tom@tromey.com>
4217
4218 * corelow.c (add_to_thread_list): Change parameters.
4219 (core_target_open): Use foreach.
4220
cafb0d81
TT
42212020-09-19 Tom Tromey <tom@tromey.com>
4222
4223 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4224 existing function.
4225
c8d5abea
AB
42262020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4227
4228 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4229 for arrays.
4230
6d816919
AB
42312020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4232
4233 * eval.c: Remove 'f-lang.h' include.
4234 (value_f90_subarray): Moved to f-lang.c.
4235 (eval_call): Renamed to...
4236 (evaluate_subexp_do_call): ...this, is no longer static, header
4237 comment moved into header file.
4238 (evaluate_funcall): Update call to eval_call.
4239 (skip_undetermined_arglist): Moved to f-lang.c.
4240 (fortran_value_subarray): Likewise.
4241 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4242 moved to evaluate_subexp_f.
4243 (calc_f77_array_dims): Moved to f-lang.c
4244 * expprint.c (print_subexp_funcall): New function.
4245 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4246 moved to print_subexp_f, OP_FUNCALL uses new function.
4247 (dump_subexp_body_funcall): New function.
4248 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4249 moved to dump_subexp_f, OP_FUNCALL uses new function.
4250 * expression.h (evaluate_subexp_do_call): Declare.
4251 * f-lang.c (value_f90_subarray): Moved from eval.c.
4252 (skip_undetermined_arglist): Likewise.
4253 (calc_f77_array_dims): Likewise.
4254 (fortran_value_subarray): Likewise.
4255 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4256 (operator_length_f): Likewise.
4257 (print_subexp_f): Likewise.
4258 (dump_subexp_body_f): Likewise.
4259 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4260 declaration of this operation to here.
4261 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4262 support moved to operator_length_f.
4263 * parser-defs.h (dump_subexp_body_funcall): Declare.
4264 (print_subexp_funcall): Declare.
4265 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4266 fortran-operator.def.
4267
8c37706a
AB
42682020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4269
4270 * eval.c (fortran_value_subarray): New function, content is taken
4271 from...
4272 (evaluate_subexp_standard): ...here, in two places. Now arrays
4273 and strings both call the new function.
4274 (calc_f77_array_dims): Add header comment, handle strings.
4275
14f9473c
VC
42762020-09-18 Victor Collod <vcollod@nvidia.com>
4277
4278 PR gdb/26635
4279 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4280 (i386_analyze_prologue): Call i386_skip_endbr.
4281
b60cea74
TT
42822020-09-18 Tom Tromey <tromey@adacore.com>
4283
4284 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4285 (windows_nat_target::wait): Update.
4286 * target/wait.h (enum target_wait_flag): New. Use
4287 DEF_ENUM_FLAGS_TYPE.
4288 * target/target.h (target_wait): Change type of options.
4289 * target.h (target_options_to_string, default_target_wait):
4290 Update.
4291 (struct target_ops) <wait>: Change type of options.
4292 * target.c (target_wait, default_target_wait, do_option): Change
4293 type of "options".
4294 (target_options_to_string): Likewise.
4295 * target-delegates.c: Rebuild.
4296 * target-debug.h (target_debug_print_target_wait_flags): Rename
4297 from target_debug_print_options.
4298 * sol-thread.c (class sol_thread_target) <wait>: Update.
4299 (sol_thread_target::wait): Update.
4300 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4301 (rs6000_nat_target::wait): Update.
4302 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4303 Update.
4304 (remote_target::wait_ns, remote_target::wait_as): Change type of
4305 "options".
4306 (remote_target::wait): Update.
4307 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4308 (gdbsim_target::wait): Update.
4309 * record-full.c (class record_full_base_target) <wait>: Update.
4310 (record_full_wait_1): Change type of "options".
4311 (record_full_base_target::wait): Update.
4312 * record-btrace.c (class record_btrace_target) <wait>: Update.
4313 (record_btrace_target::wait): Update.
4314 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4315 Update.
4316 (ravenscar_thread_target::wait): Update.
4317 * procfs.c (class procfs_target) <wait>: Update.
4318 (procfs_target::wait): Update.
4319 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4320 * obsd-nat.c (obsd_nat_target::wait): Update.
4321 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4322 (nto_procfs_target::wait): Update.
4323 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4324 * nbsd-nat.c (nbsd_wait): Change type of "options".
4325 (nbsd_nat_target::wait): Update.
4326 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4327 (thread_db_target::wait): Update.
4328 * linux-nat.h (class linux_nat_target) <wait>: Update.
4329 * linux-nat.c (linux_nat_target::wait): Update.
4330 (linux_nat_wait_1): Update.
4331 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4332 "options".
4333 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4334 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4335 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4336 (go32_nat_target::wait): Update.
4337 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4338 * gnu-nat.c (gnu_nat_target::wait): Update.
4339 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4340 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4341 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4342 * darwin-nat.c (darwin_nat_target::wait): Update.
4343 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4344 (bsd_uthread_target::wait): Update.
4345 * aix-thread.c (class aix_thread_target) <wait>: Update.
4346 (aix_thread_target::wait): Update.
4347
0295dde6
AB
43482020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4349
4350 * compile/compile-object-run.c (create_copied_type_recursive): New
4351 function.
4352 (compile_object_run): Use new function.
4353
d3483b43
JT
43542020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4355
4356 * NEWS: Mention x86_64 Cygwin core file support.
4357
e7d612ad
JT
43582020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4359
4360 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4361 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4362
aff9d387
JT
43632020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4364
62a5151b
JT
4365 * windows-tdep.h: Add prototypes.
4366 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4367 (i386_windows_core_pid_to_str): Move and rename ...
4368 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4369 (windows_core_pid_to_str): ... and here.
4370 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4371
43722020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4373 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4374 (amd64_windows_init_abi_common): ... and register.
4375
7d155da3
JT
43762020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4377
4378 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4379 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4380
e8ef12b9
PA
43812020-09-18 Pedro Alves <pedro@palves.net>
4382
4383 PR gdb/26631
4384 * thread.c (thread_find_command): Switch inferior before calling
4385 target methods.
4386
c1e1314d
TT
43872020-09-17 Tom Tromey <tromey@adacore.com>
4388
4389 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4390 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4391 (tdesc_arch_data_up): New typedef.
4392 (tdesc_use_registers, tdesc_data_alloc): Update.
4393 (tdesc_data_cleanup): Don't declare.
4394 * target-descriptions.c (tdesc_data_alloc): Return a
4395 tdesc_arch_data_up.
4396 (tdesc_arch_data_deleter::operator()): Rename from
4397 tdesc_data_cleanup. Change argument type.
4398 (tdesc_use_registers): Change early_data to an rvalue reference.
4399 (tdesc_use_registers): Don't use delete.
4400 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4401 * s390-tdep.c (s390_gdbarch_init): Update.
4402 * rx-tdep.c (rx_gdbarch_init): Update.
4403 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4404 * riscv-tdep.c (riscv_gdbarch_init): Update.
4405 * or1k-tdep.c (or1k_gdbarch_init): Update.
4406 * nios2-tdep.c (nios2_gdbarch_init): Update.
4407 * nds32-tdep.c (nds32_gdbarch_init): Update.
4408 * mips-tdep.c (mips_gdbarch_init): Update.
4409 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4410 * m68k-tdep.c (m68k_gdbarch_init): Update.
4411 * i386-tdep.c (i386_gdbarch_init): Update.
4412 * arm-tdep.c (arm_gdbarch_init): Update.
4413 * arc-tdep.c (arc_tdesc_init): Update.
4414 (arc_gdbarch_init): Update.
4415 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4416
0363df3d
HD
44172020-09-17 Hannes Domani <ssbssa@yahoo.de>
4418
4419 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4420 for WOW64 processes.
4421
280a9412
TT
44222020-09-17 Tom Tromey <tom@tromey.com>
4423
4424 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4425
6108fd18
TT
44262020-09-17 Tom Tromey <tom@tromey.com>
4427
4428 * value.c (preserve_values): Update.
4429 * python/py-type.c (save_objfile_types): Update.
4430 * guile/scm-type.c (save_objfile_types): Update.
4431 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4432 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4433 * compile/compile-object-run.c (compile_object_run): Update.
4434
fa9b1164
TT
44352020-09-17 Tom Tromey <tom@tromey.com>
4436
4437 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4438 Remove.
4439 <m_table>: Now htab_up.
4440 * typeprint.c (typedef_hash_table::recursively_update)
4441 (typedef_hash_table::add_template_parameters)
4442 (typedef_hash_table::typedef_hash_table): Update.
4443 (typedef_hash_table::~typedef_hash_table): Remove.
4444 (typedef_hash_table::typedef_hash_table)
4445 (typedef_hash_table::find_global_typedef)
4446 (typedef_hash_table::find_typedef): Update.
4447
eb53f105
TT
44482020-09-17 Tom Tromey <tom@tromey.com>
4449
4450 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4451
7a8a5d47
TT
44522020-09-17 Tom Tromey <tom@tromey.com>
4453
4454 * linespec.c (class decode_compound_collector)
4455 <~decode_compound_collector>: Remove.
4456 <m_unique_syms>: Now htab_up.
4457 (decode_compound_collector::operator ()): Update.
4458 (class symtab_collector) <~symtab_collector>: Remove.
4459 <m_symtab_table>: Now htab_up.
4460 (symtab_collector::operator ()): Update.
4461
99032cfc
TT
44622020-09-17 Tom Tromey <tom@tromey.com>
4463
4464 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4465 (filename_seen_cache::clear): Update.
4466 (~filename_seen_cache): Remove.
4467 (filename_seen_cache::seen): Update.
4468 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4469 htab_up.
4470 <~filename_seen_cache>: Remove.
4471 <traverse>: Update.
4472
32580f6d
TT
44732020-09-17 Tom Tromey <tom@tromey.com>
4474
4475 * completer.c (completion_tracker::discard_completions)
4476 (completion_tracker::~completion_tracker)
4477 (completion_tracker::maybe_add_completion)
4478 (completion_tracker::remove_completion)
4479 (completion_tracker::recompute_lowest_common_denominator)
4480 (completion_tracker::build_completion_result): Update.
4481 * completer.h (class completion_tracker) <have_completions>:
4482 Update.
4483 <m_entries_hash>: Now htab_up.
4484
c1fb9836
TT
44852020-09-17 Tom Tromey <tom@tromey.com>
4486
4487 * breakpoint.c (ambiguous_names_p): Use htab_up.
4488
88f07206
TT
44892020-09-17 Tom Tromey <tom@tromey.com>
4490
4491 * auto-load.c (struct auto_load_pspace_info)
4492 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4493 <loaded_script_files, loaded_script_texts>: Change type to
4494 htab_up.
4495 (~auto_load_pspace_info) Remove.
4496 (init_loaded_scripts_info, maybe_add_script_file)
4497 (maybe_add_script_text, auto_load_info_scripts): Update.
4498
9519b2ee
TT
44992020-09-17 Tom Tromey <tromey@adacore.com>
4500
4501 * c-exp.y (name_obstack): Now static.
4502
d2cd4113
CC
45032020-09-17 Chungyi Chi <demonic@csie.io>
4504
4505 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4506
b650a282
SM
45072020-09-16 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4510 (add_solib_catchpoint): Likewise.
4511 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4512 to bool.
4513 (add_solib_catchpoint): Change int parameter/variable to bool.
4514 (catch_load_or_unload): Likewise.
4515 (init_catchpoint): Likewise.
4516 (create_fork_vfork_event_catchpoint): Likewise.
4517 (catch_fork_command_1): Likewise.
4518 (catch_exec_command_1): Likewise.
4519
4d0bcfcf
SM
45202020-09-16 Simon Marchi <simon.marchi@efficios.com>
4521
4522 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4523 Change instance_flags to m_instance_flags.
4524
fe830662
TT
45252020-09-16 Tom Tromey <tromey@adacore.com>
4526
4527 PR gdb/26598:
4528 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4529
fe5ddfc3
JB
45302020-09-16 John Baldwin <jhb@FreeBSD.org>
4531
4532 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4533 PL_FLAG_EXEC.
4534 (fbsd_nat_target::insert_exec_catchpoint)
4535 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4536 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4537 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4538
e911c666
JB
45392020-09-16 John Baldwin <jhb@FreeBSD.org>
4540
4541 * configure.ac: Remove check for kinfo_getvmmap().
4542 * configure, config.in: Regenerate.
4543 * fbsd-nat.c (fbsd_read_mapping): Remove
4544 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4545 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4546 kinfo_get_vmmap() are always present.
4547
1f17d372
JB
45482020-09-16 John Baldwin <jhb@FreeBSD.org>
4549
4550 * fbsd-nat.c: Always include support for
4551 TARGET_OBJECT_SIGNAL_INFO.
4552
bcb1da7f
JB
45532020-09-16 John Baldwin <jhb@FreeBSD.org>
4554
4555 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4556 sysctl and remove procfs fallback.
4557
5515f729
JB
45582020-09-16 John Baldwin <jhb@FreeBSD.org>
4559
4560 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4561 * fbsd-nat.h: Likewise.
4562
da1df1db
TBA
45632020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4564
4565 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4566 argument.
4567
0e25e767
AB
45682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4569
4570 * ada-lang.c (ada_language_data): Delete.
4571 (ada_language): Remove references to ada_language_data.
4572 * c-lang.c (c_language_data): Delete.
4573 (c_language): Remove references to c_language_data.
4574 (cplus_language_data): Delete.
4575 (cplus_language): Remove references to cplus_language_data.
4576 (asm_language_data): Delete.
4577 (asm_language): Remove references to asm_language_data.
4578 (minimal_language_data): Delete.
4579 (minimal_language): Remove references to minimal_language_data.
4580 * d-lang.c (d_language_data): Delete.
4581 (d_language): Remove references to d_language_data.
4582 * f-lang.c (f_language_data): Delete.
4583 (f_language): Remove references to f_language_data.
4584 * go-lang.c (go_language_data): Delete.
4585 (go_language): Remove references to go_language_data.
4586 * language.c (unknown_language_data): Delete.
4587 (unknown_language): Remove references to unknown_language_data.
4588 (auto_language_data): Delete.
4589 (auto_language): Remove references to auto_language_data.
4590 * language.h (language_data): Delete struct.
4591 (language_defn): No longer inherit from language_data.
4592 * m2-lang.c (m2_language_data): Delete.
4593 (m2_language): Remove references to m2_language_data.
4594 * objc-lang.c (objc_language_data): Delete.
4595 (objc_language): Remove references to objc_language_data.
4596 * opencl-lang.c (opencl_language_data): Delete.
4597 (opencl_language): Remove references to opencl_language_data.
4598 * p-lang.c (pascal_language_data): Delete.
4599 (pascal_language): Remove references to pascal_language_data.
4600 * rust-lang.c (rust_language_data): Delete.
4601 (rust_language): Remove references to rust_language_data.
4602
b7c6e27d
AB
46032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4604
4605 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4606 initializer.
4607 (ada_language::opcode_print_table): New member function.
4608 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4609 (c_language::opcode_print_table): New member function.
4610 (cplus_language_data): Remove la_op_print_tab initializer.
4611 (cplus_language::opcode_print_table): New member function.
4612 (asm_language_data): Remove la_op_print_tab initializer.
4613 (asm_language::opcode_print_table): New member function.
4614 (minimal_language_data): Remove la_op_print_tab initializer.
4615 (minimal_language::opcode_print_table): New member function.
4616 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4617 (d_language::opcode_print_table): New member function.
4618 * expprint.c (print_subexp_standard): Update call to
4619 opcode_print_table.
4620 (op_string): Likewise.
4621 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4622 (f_language::opcode_print_table): New member function.
4623 * go-lang.c (go_language_data): Remove la_op_print_tab
4624 initializer.
4625 (go_language::opcode_print_table): New member function.
4626 * language.c (unknown_language_data): Remove la_op_print_tab
4627 initializer.
4628 (unknown_language::opcode_print_table): New member function.
4629 (auto_language_data): Remove la_op_print_tab initializer.
4630 (auto_language::opcode_print_table): New member function.
4631 * language.h (language_data): Remove la_op_print_tab field.
4632 (language_defn::opcode_print_table): Declare new member function.
4633 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4634 initializer.
4635 (m2_language::opcode_print_table): New member function.
4636 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4637 initializer.
4638 (objc_language::opcode_print_table): New member function.
4639 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4640 initializer.
4641 (opencl_language::opcode_print_table): New member function.
4642 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4643 initializer.
4644 (pascal_language::opcode_print_table): New member function.
4645 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4646 initializer.
4647 (rust_language::opcode_print_table): New member function.
4648
5aba6ebe
AB
46492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4650
4651 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4652 (ada_language::expression_ops): New member function.
4653 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4654 (c_language::expression_ops): New member function.
4655 (cplus_language_data): Remove la_exp_desc initializer.
4656 (cplus_language::expression_ops): New member function.
4657 (asm_language_data): Remove la_exp_desc initializer.
4658 (asm_language::expression_ops): New member function.
4659 (minimal_language_data): Remove la_exp_desc initializer.
4660 (minimal_language::expression_ops): New member function.
4661 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4662 (d_language::expression_ops): New member function.
4663 * eval.c (evaluate_subexp): Update call to expression_ops.
4664 * expprint.c (print_subexp): Likewise.
4665 (op_name): Likewise.
4666 (dump_subexp_body): Likewise.
4667 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4668 (f_language::expression_ops): New member function.
4669 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4670 (go_language::expression_ops): New member function.
4671 * language.c (language_defn::expression_ops): New function.
4672 (unknown_language_data): Remove la_exp_desc initializer.
4673 (auto_language_data): Likewise.
4674 * language.h (language_data): Remove la_exp_desc field.
4675 (language_defn::expression_ops): Declare new member function.
4676 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4677 (m2_language::expression_ops): New member function.
4678 * objc-lang.c (objc_language_data): Remove la_exp_desc
4679 initializer.
4680 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4681 initializer.
4682 (opencl_language::expression_ops): New member function.
4683 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4684 * parse.c (operator_length): Update call to expression_ops.
4685 (exp_iterate): Likewise.
4686 * rust-lang.c (rust_language_data): Remove la_exp_desc
4687 initializer.
4688 (ruse_language::expression_ops): New member function.
4689
b63a3f3f
AB
46902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4691
4692 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4693 initializer.
4694 (ada_language::varobj_ops): New member function.
4695 * c-lang.c (c_language_data): Remove la_varobj_ops
4696 initializer.
4697 (cplus_language_data): Likewise.
4698 (cplus_language::varobj_ops): New member function.
4699 (asm_language_data): Remove la_varobj_ops initializer.
4700 (minimal_language_data): Likewise.
4701 * d-lang.c (d_language_data): Likewise.
4702 * f-lang.c (f_language_data): Likewise.
4703 * go-lang.c (go_language_data): Likewise.
4704 * language.c (language_defn::varobj_ops): New function.
4705 (unknown_language_data): Remove la_varobj_ops
4706 initializer.
4707 (auto_language_data): Likewise.
4708 * language.h (language_data): Remove la_varobj_ops field.
4709 (language_defn::varobj_ops): Declare new member function.
4710 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4711 * objc-lang.c (objc_language_data): Likewise.
4712 * opencl-lang.c (opencl_language_data): Likewise.
4713 * p-lang.c (pascal_language_data): Likewise.
4714 * rust-lang.c (rust_language_data): Likewise.
4715 * varobj.c (varobj_create): Update call to varobj_ops.
4716 * varobj.h (default_varobj_ops): Delete define.
4717
1ac14a04
AB
47182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4719
4720 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4721 initializer.
4722 * c-lang.c (c_language_data): Likewise.
4723 (c_language::macro_expansion): New member function.
4724 (cplus_language_data): Likewise.
4725 (cplus_language::macro_expansion): New member function.
4726 (asm_language_data): Likewise.
4727 (asm_language::macro_expansion): New member function.
4728 (minimal_language_data): Likewise.
4729 (minimal_language::macro_expansion): New member function.
4730 * d-lang.c (d_language_data): Remove la_macro_expansion
4731 initializer.
4732 * f-lang.c (f_language_data): Likewise.
4733 * go-lang.c (go_language_data): Likewise.
4734 * language.c (unknown_language_data): Likewise.
4735 (auto_language_data): Likewise.
4736 * language.h (language_data): Remove la_macro_expansion field.
4737 (language_defn::macro_expansion): New member function.
4738 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4739 initializer.
4740 * objc-lang.c (objc_language_data): Likewise.
4741 (objc_language::macro_expansion): New member function.
4742 * opencl-lang.c (opencl_language_data): Likewise.
4743 (opencl_language::macro_expansion): New member function.
4744 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4745 initializer.
4746 * rust-lang.c (rust_language_data): Likewise.
4747 * symtab.c (default_collect_symbol_completion_matches_break_on):
4748 Update call to macro_expansion.
4749
3a3440fb
AB
47502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4751
4752 * ada-lang.c (ada_language_data): Remove la_array_ordering
4753 initializer.
4754 * c-lang.c (c_language_data): Likewise.
4755 (cplus_language_data): Likewise.
4756 (asm_language_data): Likewise.
4757 (minimal_language_data): Likewise.
4758 * d-lang.c (d_language_data): Likewise.
4759 * dwarf2/read.c (read_array_order): Update for call to
4760 array_ordering.
4761 * f-lang.c (f_language_data): Remove la_array_ordering
4762 initializer.
4763 (f_language::array_ordering): New member function.
4764 * go-lang.c (go_language_data): Remove la_array_ordering
4765 initializer.
4766 * language.c (unknown_language_data): Likewise.
4767 (auto_language_data): Likewise.
4768 * language.h (language_data): Delete la_array_ordering field.
4769 (language_defn::array_ordering): New member function.
4770 * m2-lang.c (m2_language_data): Remove la_array_ordering
4771 initializer.
4772 * objc-lang.c (objc_language_data): Likewise.
4773 * opencl-lang.c (opencl_language_data): Likewise.
4774 * p-lang.c (pascal_language_data): Likewise.
4775 * rust-lang.c (rust_language_data): Likewise.
4776
0d201fa4
AB
47772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4778
4779 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4780 initializer.
4781 * c-lang.c (c_language_data): Likewise.
4782 (cplus_language_data): Likewise.
4783 (asm_language_data): Likewise.
4784 (minimal_language_data): Likewise.
4785 * d-lang.c (d_language_data): Likewise.
4786 * f-lang.c (f_language_data): Likewise.
4787 (f_language::case_sensitivity): New member function.
4788 * go-lang.c (go_language_data): Remove la_case_sensitivity
4789 initializer.
4790 * language.c (enum case_mode): Moved here from language.h.
4791 (case_mode): Make static.
4792 (show_case_command): Update for case_sensitivity being a method.
4793 (set_case_command): Likewise.
4794 (set_range_case): Likewise.
4795 (unknown_language_data): Remove la_case_sensitivity initializer.
4796 (auto_language_data): Likewise.
4797 * language.h (case_mode): Delete, move enum declaration to
4798 language.c.
4799 (language_data): Delete la_case_sensitivity field.
4800 (language_defn::case_sensitivity): New member function.
4801 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4802 initializer.
4803 * objc-lang.c (objc_language_data): Likewise.
4804 * opencl-lang.c (opencl_language_data): Likewise.
4805 * p-lang.c (pascal_language_data): Likewise.
4806 * rust-lang.c (rust_language_data): Likewise.
4807
efdf6a73
AB
48082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4809
4810 * ada-lang.c (ada_language_data): Remove la_range_check
4811 initializer.
4812 * c-lang.c (c_language_data): Likewise.
4813 (cplus_language_data): Likewise.
4814 (asm_language_data): Likewise.
4815 (minimal_language_data): Likewise.
4816 * d-lang.c (d_language_data): Likewise.
4817 * f-lang.c (f_language_data): Likewise.
4818 (f_language::range_checking_on_by_default): New member function.
4819 * go-lang.c (go_language_data): Remove la_range_check initializer.
4820 * language.c (enum range_mode): Moved here from language.h.
4821 (range_mode): Made static.
4822 (show_range_command): Update to use
4823 range_checking_on_by_default.
4824 (set_range_command): Likewise.
4825 (set_range_case): Likewise.
4826 (unknown_language_data): Remove la_range_check initializer.
4827 (auto_language_data): Likewise.
4828 * language.h (range_mode): Delete. Enum definition moved to
4829 language.c.
4830 (language_data): Remove la_range_check field.
4831 (language_defn::range_checking_on_by_default): New member
4832 function.
4833 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4834 (m2_language::range_checking_on_by_default): New member function.
4835 * objc-lang.c (objc_language_data): Remove la_range_check
4836 initializer.
4837 * opencl-lang.c (opencl_language_data): Likewise.
4838 * p-lang.c (pascal_language_data): Likewise.
4839 (pascal_language::range_checking_on_by_default): New member
4840 function.
4841 * rust-lang.c (rust_language_data): Remove la_range_check
4842 initializer.
4843 (rust_language::range_checking_on_by_default): New member
4844 function.
4845
bf92aec5
AB
48462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4847
4848 * dwarf2/read.c (dwarf2_physname): Remove special case for
4849 language_go.
4850 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4851 member function.
4852
d3355e4d
AB
48532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4854
4855 * ada-lang.c (ada_language_data): Remove
4856 la_store_sym_names_in_linkage_form_p initializer.
4857 (ada_language::store_sym_names_in_linkage_form_p): New member
4858 function.
4859 * c-lang.c (c_language_data): Remove
4860 la_store_sym_names_in_linkage_form_p initializer.
4861 (c_language::store_sym_names_in_linkage_form_p): New member
4862 function.
4863 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4864 initializer.
4865 (asm_language_data): Likewise.
4866 (asm_language::store_sym_names_in_linkage_form_p): New member
4867 function.
4868 (minimal_language_data): Remove
4869 la_store_sym_names_in_linkage_form_p initializer.
4870 (minimal_language::store_sym_names_in_linkage_form_p): New member
4871 function.
4872 * d-lang.c (d_language_data): Remove
4873 la_store_sym_names_in_linkage_form_p initializer.
4874 * dwarf2/read.c (dwarf2_physname): Update call to
4875 store_sym_names_in_linkage_form_p.
4876 * f-lang.c (f_language_data): Remove
4877 la_store_sym_names_in_linkage_form_p initializer.
4878 * go-lang.c (go_language_data): Remove
4879 la_store_sym_names_in_linkage_form_p initializer.
4880 * language.c (unknown_language_data): Remove
4881 la_store_sym_names_in_linkage_form_p initializer.
4882 (unknown_language::store_sym_names_in_linkage_form_p): New member
4883 function.
4884 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4885 initializer.
4886 (auto_language::store_sym_names_in_linkage_form_p): New member
4887 function.
4888 * language.h (language_data): Remove
4889 la_store_sym_names_in_linkage_form_p member variable.
4890 (language_defn::store_sym_names_in_linkage_form_p): New member
4891 function.
4892 * m2-lang.c (m2_language_data): Remove
4893 la_store_sym_names_in_linkage_form_p initializer.
4894 * objc-lang.c (objc_language_data): Likewise.
4895 * opencl-lang.c (opencl_language_data): Likewise.
4896 * p-lang.c (pascal_language_data): Likewise.
4897 * rust-lang.c (rust_language_data): Likewise.
4898
22c12a6c
AB
48992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4900
4901 * ada-lang.c (ada_language_data): Remove string_lower_bound
4902 initializer.
4903 * c-lang.c (c_language_data): Likewise.
4904 (cplus_language_data): Likewise.
4905 (asm_language_data): Likewise.
4906 (minimal_language_data): Likewise.
4907 * d-lang.c (d_language_data): Likewise.
4908 * f-lang.c (f_language_data): Likewise.
4909 * go-lang.c (go_language_data): Likewise.
4910 * language.c (unknown_language_data): Likewise.
4911 (auto_language_data): Likewise.
4912 * language.h (language_data): Remove string_lower_bound field.
4913 (language_defn::string_lower_bound): New member function.
4914 * m2-lang.c (m2_language_data): Remove string_lower_bound
4915 initializer.
4916 (m2_language::string_lower_bound): New member function.
4917 * objc-lang.c (objc_language_data): Remove string_lower_bound
4918 initializer.
4919 * opencl-lang.c (opencl_language_data): Likewise.
4920 * p-lang.c (pascal_language_data): Likewise.
4921 * rust-lang.c (rust_language_data): Likewise.
4922 * valops.c (value_cstring): Update call to string_lower_bound.
4923 (value_string): Likewise.
4924 * value.c (allocate_repeated_value): Likewise.
4925
1c236ddd
AB
49262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4927
4928 * valops.c (value_repeat): Fix incorrect argument name in comment.
4929
67bd3fd5
AB
49302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4931
4932 * ada-lang.c (ada_language_data): Remove c_style_arrays
4933 initializer.
4934 (ada_language::c_style_arrays_p): New member fuction.
4935 * c-lang.c (c_language_data): Remove c_style_arrays
4936 initializer.
4937 (cplus_language_data): Likewise.
4938 (asm_language_data): Likewise.
4939 (minimal_language_data): Likewise.
4940 * d-lang.c (d_language_data): Likewise.
4941 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4942 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4943 (f_language::c_style_arrays_p): New member function.
4944 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4945 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4946 * language.c (unknown_language_data): Remove c_style_arrays
4947 initializer.
4948 (auto_language_data): Likewise.
4949 * language.h (language_data): Remove c_style_arrays field.
4950 (language_defn::c_style_arrays_p): New member function.
4951 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4952 (m2_language::c_style_arrays_p): New member function.
4953 * objc-lang.c (objc_language_data): Remove c_style_arrays
4954 initializer.
4955 * opencl-lang.c (opencl_language_data): Likewise.
4956 * p-lang.c (pascal_language_data): Likewise.
4957 * rust-lang.c (rust_language_data): Likewise.
4958 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4959 and update local variable to a bool.
4960 * valops.c (value_cast): Update call to c_style_arrays_p.
4961 (value_array): Likewise.
4962 * value.c (coerce_array): Likewise.
4963
85967615
AB
49642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4965
4966 * ada-lang.c (ada_language_data): Remove la_language initializer.
4967 * c-lang.c (c_language_data): Likewise.
4968 (cplus_language_data): Likewise.
4969 (asm_language_data): Likewise.
4970 (minimal_language_data): Likewise.
4971 * d-lang.c (d_language_data): Likewise.
4972 * f-lang.c (f_language_data): Likewise.
4973 * go-lang.c (go_language_data): Likewise.
4974 * language.c (unknown_language_data): Likewise.
4975 (auto_language_data): Likewise.
4976 * language.h (language_data): Remove la_language field.
4977 (language_defn::language_defn): Initialise la_language field.
4978 (language_defn::la_language): New member variable.
4979 * m2-lang.c (m2_language_data): Remove la_language field.
4980 * objc-lang.c (objc_language_data): Likewise.
4981 * opencl-lang.c (opencl_language_data): Likewise.
4982 * p-lang.c (pascal_language_data): Likewise.
4983 * rust-lang.c (rust_language_data): Likewise.
4984
e171d6f1
AB
49852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4986
4987 * ada-lang.c (ada_extensions): Delete, moved into
4988 ada_language::filename_extensions.
4989 (ada_language_data): Remove la_filename_extensions initializer.
4990 (ada_language::filename_extensions): New member function.
4991 * c-lang.c (c_extensions): Delete, moved into
4992 c_language::filename_extensions.
4993 (c_language_data): Remove la_filename_extensions initializer.
4994 (c_language::filename_extensions): New member function.
4995 (cplus_extensions): Delete, moved into
4996 cplus_language::filename_extensions.
4997 (cplus_language_data): Remove la_filename_extensions initializer.
4998 (cplus_language::filename_extensions): New member function.
4999 (asm_extensions): Delete, moved into
5000 asm_language::filename_extensions.
5001 (asm_language_data): Remove la_filename_extensions initializer.
5002 (asm_language::filename_extensions): New member function.
5003 (minimal_language_data): Remove la_filename_extensions
5004 initializer.
5005 * d-lang.c (d_extensions): Delete, moved into
5006 d_language::filename_extensions.
5007 (d_language_data): Remove la_filename_extensions initializer.
5008 (d_language::filename_extensions): New member function.
5009 * f-lang.c (f_extensions): Delete, moved into
5010 f_language::filename_extensions.
5011 (f_language_data): Remove la_filename_extensions initializer.
5012 (f_language::filename_extensions): New member function.
5013 * go-lang.c (go_language_data): Remove la_filename_extensions
5014 initializer.
5015 * language.c (add_set_language_command): Update now that
5016 filename_extensions returns a vector.
5017 (unknown_language_data): Remove la_filename_extensions
5018 initializer.
5019 (auto_language_data): Likewise.
5020 * language.h (language_data): Remove la_filename_extensions field.
5021 (language_defn::filename_extensions): New member function.
5022 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5023 initializer.
5024 * objc-lang.c (objc_extensions): Delete, moved into
5025 objc_language::filename_extensions.
5026 (objc_language_data): Remove la_filename_extensions initializer.
5027 (objc_language::filename_extensions): New member function.
5028 * opencl-lang.c (opencl_language_data): Remove
5029 la_filename_extensions initializer.
5030 * p-lang.c (pascal_extensions): Delete, moved into
5031 pascal_language::filename_extensions.
5032 (pascal_language_data): Remove la_filename_extensions initializer.
5033 (pascal_language::filename_extensions): New member function.
5034 * rust-lang.c (rust_extensions): Delete, moved into
5035 rust_language::filename_extensions.
5036 (rust_language_data): Remove la_filename_extensions initializer.
5037 (rust_language::filename_extensions): New member function.
5038 * symfile.c (add_filename_language): Add new assert.
5039
6f7664a9
AB
50402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5041
5042 * ada-lang.c (ada_language_data): Remove la_name and
5043 la_natural_name initializers.
5044 (ada_language::name): New member function.
5045 (ada_language::natural_name): New member function.
5046 * c-lang.c (c_language_data): Remove la_name and
5047 la_natural_name initializers.
5048 (c_language::name): New member function.
5049 (c_language::natural_name): New member function.
5050 (cplus_language_data): Remove la_name and
5051 la_natural_name initializers.
5052 (cplus_language::name): New member function.
5053 (cplus_language::natural_name): New member function.
5054 (asm_language_data): Remove la_name and
5055 la_natural_name initializers.
5056 (asm_language::name): New member function.
5057 (asm_language::natural_name): New member function.
5058 (minimal_language_data): Remove la_name and
5059 la_natural_name initializers.
5060 (minimal_language::name): New member function.
5061 (minimal_language::natural_name): New member function.
5062 * compile/compile.c (compile_to_object): Update call to
5063 lanugage_defn::name.
5064 * d-lang.c (d_language_data): Remove la_name and
5065 la_natural_name initializers.
5066 (d_language::name): New member function.
5067 (d_language::natural_name): New member function.
5068 * expprint.c (print_subexp_standard): Update call to
5069 language_defn::name.
5070 (dump_raw_expression): Likewise
5071 (dump_prefix_expression): Likewise.
5072 * f-lang.c (f_language_data): Remove la_name and
5073 la_natural_name initializers.
5074 (f_language::name): New member function.
5075 (f_language::natural_name): New member function.
5076 * go-lang.c (go_language_data): Remove la_name and
5077 la_natural_name initializers.
5078 (go_language::name): New member function.
5079 (go_language::natural_name): New member function.
5080 * language.c (show_language_command): Update call to
5081 language_defn::name.
5082 (set_language_command): Likewise.
5083 (language_enum): Likewise.
5084 (language_str): Likewise.
5085 (add_set_language_command): Likewise, use
5086 language_defn::natural_name in the doc string.
5087 (unknown_language_data): Remove la_name and
5088 la_natural_name initializers.
5089 (unknown_language::name): New member function.
5090 (unknown_language::natural_name): New member function.
5091 (auto_language_data): Remove la_name and
5092 la_natural_name initializers.
5093 (auto_language::name): New member function.
5094 (auto_language::natural_name): New member function.
5095 (language_lookup_primitive_type_as_symbol): Update call to
5096 language_defn::name.
5097 * language.h (language_data): Remove la_name and la_natural_name
5098 member variables.
5099 (language_defn::name): New member function.
5100 (language_defn::natural_name): New member function.
5101 * m2-lang.c (m2_language_data): Remove la_name and
5102 la_natural_name initializers.
5103 (m2_language::name): New member function.
5104 (m2_language::natural_name): New member function.
5105 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5106 language_defn::natural_name.
5107 * objc-lang.c (objc_language_data): Remove la_name and
5108 la_natural_name initializers.
5109 (objc_language::name): New member function.
5110 (objc_language::natural_name): New member function.
5111 * opencl-lang.c (opencl_language_data): Remove la_name and
5112 la_natural_name initializers.
5113 (opencl_language::name): New member function.
5114 (opencl_language::natural_name): New member function.
5115 * p-lang.c (pascal_language_data): Remove la_name and
5116 la_natural_name initializers.
5117 (pascal_language::name): New member function.
5118 (pascal_language::natural_name): New member function.
5119 * rust-lang.c (rust_language_data): Remove la_name and
5120 la_natural_name initializers.
5121 (rust_language::name): New member function.
5122 (rust_language::natural_name): New member function.
5123 * symtab.c (lookup_language_this): Update call to
5124 language_defn::name.
5125
5bae7c4e
AB
51262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5127
5128 * ada-lang.c (ada_language_data): Remove la_name_of_this
5129 initializer.
5130 * ax-gdb.c (gen_expr): Update call to name_of_this.
5131 * c-exp.y (classify_name): Likewise.
5132 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5133 (cplus_language_data): Likewise.
5134 (cplus_language::name_of_this): New member function.
5135 (asm_language_data): Remove la_name_of_this initializer.
5136 (minimal_language_data): Likewise.
5137 * d-lang.c (d_language_data): Likewise.
5138 (d_language::name_of_this): New member function.
5139 * expprint.c (print_subexp_standard): Update call to name_of_this.
5140 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5141 * go-lang.c (go_language_data): Likewise.
5142 * language.c (unknown_language_data): Likewise.
5143 (unknown_language::name_of_this): New member function.
5144 (auto_language_data): Remove la_name_of_this initializer.
5145 (auto_language::name_of_this): New member function.
5146 * language.h (language_data): Delete la_name_of_this member
5147 variable.
5148 (language_defn::name_of_this): New member function.
5149 * m2-lang.c (m2_language_data): Remove la_name_of_this
5150 initializer.
5151 * objc-lang.c (objc_language_data): Likewise.
5152 (objc_language::name_of_this): New member function.
5153 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5154 initializer.
5155 * p-lang.c (pascal_language_data): Likewise.
5156 (pascal_language::name_of_this): New member function.
5157 * rust-lang.c (rust_language_data): Remove la_name_of_this
5158 initializer.
5159 * symtab.c (lookup_language_this): Update call to name_of_this.
5160 (lookup_symbol_aux): Likewise.
5161 * valops.c (value_of_this): Likewise.
5162
22e3f3ed
AB
51632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5164
5165 * ada-lang.c (ada_language_data): Remove
5166 la_struct_too_deep_ellipsis initializer.
5167 (ada_language::struct_too_deep_ellipsis): New member function.
5168 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5169 initializer.
5170 (cplus_language_data): Likewise.
5171 (asm_language_data): Likewise.
5172 (minimal_language_data): Likewise.
5173 * cp-valprint.c (cp_print_value): Update call to
5174 struct_too_deep_ellipsis.
5175 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5176 initializer.
5177 * f-lang.c (f_language_data): Likewise.
5178 (f_language::struct_too_deep_ellipsis): New member function.
5179 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5180 initializer.
5181 * language.c (unknown_language_data): Likewise.
5182 (auto_language_data): Likewise.
5183 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5184 member variable.
5185 (language_defn::struct_too_deep_ellipsis): New member function.
5186 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5187 initializer.Q
5188 * objc-lang.c (objc_language_data): Likewise.
5189 * opencl-lang.c (opencl_language_data): Likewise.
5190 * p-lang.c (pascal_language_data): Likewise.
5191 * rust-lang.c (rust_language_data): Likewise.
5192 * valprint.c (val_print_check_max_depth): Update call to
5193 struct_too_deep_ellipsis.
5194
ed29e1c7
FW
51952020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5196
5197 * MAINTAINERS (Write After Approval): Add myself.
5198
12d8f940
TT
51992020-09-15 Tom Tromey <tom@tromey.com>
5200
5201 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5202 Remove.
5203
6b5a7bc7
TT
52042020-09-15 Tom Tromey <tom@tromey.com>
5205
5206 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5207 and TYPE_CODE_METHODPTR cases.
5208 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5209 (c_value_print_inner): Update.
5210 * valprint.c (generic_value_print_memberptr): New function, from
5211 c_value_print_memberptr.
5212 (generic_value_print): Use it. Call cplus_print_method_ptr.
5213
47f0e2ff
TT
52142020-09-15 Tom Tromey <tromey@adacore.com>
5215
5216 * python/python-internal.h (PyInt_FromLong): Remove define.
5217 * python/py-value.c (convert_value_from_python): Use
5218 gdb_py_object_from_longest.
5219 * python/py-type.c (typy_get_code): Use
5220 gdb_py_object_from_longest.
5221 * python/py-symtab.c (salpy_get_line): Use
5222 gdb_py_object_from_longest.
5223 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5224 gdb_py_object_from_longest.
5225 * python/py-record.c (recpy_gap_reason_code): Use
5226 gdb_py_object_from_longest.
5227 * python/py-record-btrace.c (recpy_bt_insn_size)
5228 (recpy_bt_func_level, btpy_list_count): Use
5229 gdb_py_object_from_longest.
5230 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5231 gdb_py_object_from_longest. Fix error handling.
5232 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5233 gdb_py_object_from_longest.
5234 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5235 gdb_py_object_from_longest.
5236 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5237 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5238 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5239
512116ce
TT
52402020-09-15 Tom Tromey <tromey@adacore.com>
5241
5242 * python/python.c (gdbpy_parameter_value): Use
5243 gdb_py_object_from_ulongest.
5244
4ab1029c
TT
52452020-09-15 Tom Tromey <tromey@adacore.com>
5246
5247 * python/py-infevents.c (create_register_changed_event_object):
5248 Use gdb_py_object_from_longest.
5249 * python/py-exitedevent.c (create_exited_event_object): Use
5250 gdb_py_object_from_longest.
5251
062534d4
TT
52522020-09-15 Tom Tromey <tromey@adacore.com>
5253
5254 * python/python.c (gdbpy_parameter_value): Use
5255 gdb_py_object_from_longest.
5256 * python/py-type.c (convert_field, typy_range): Use
5257 gdb_py_object_from_longest.
5258 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5259 gdb_py_object_from_longest.
5260 * python/py-lazy-string.c (stpy_get_length): Use
5261 gdb_py_object_from_longest.
5262 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5263 gdb_py_object_from_longest.
5264 * python/py-infevents.c (create_memory_changed_event_object): Use
5265 gdb_py_object_from_longest.
5266 * python/py-inferior.c (infpy_get_num): Use
5267 gdb_py_object_from_longest.
5268 (infpy_get_pid): Likewise.
5269
d1cab987
TT
52702020-09-15 Tom Tromey <tromey@adacore.com>
5271
5272 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5273 defines.
5274 * python/py-value.c (valpy_long): Use
5275 gdb_py_object_from_ulongest.
5276 * python/py-symtab.c (salpy_get_pc): Use
5277 gdb_py_object_from_ulongest.
5278 (salpy_get_last): Likewise.
5279 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5280 gdb_py_object_from_ulongest.
5281 * python/py-lazy-string.c (stpy_get_address): Use
5282 gdb_py_object_from_ulongest.
5283 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5284 * python/py-arch.c (archpy_disassemble): Use
5285 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5286 error handling.
5287
4bde49dc
TT
52882020-09-15 Tom Tromey <tromey@adacore.com>
5289
5290 * python/python-internal.h (gdb_py_long_from_longest): Remove
5291 defines.
5292 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5293 * python/py-type.c (convert_field, typy_get_sizeof): Use
5294 gdb_py_object_from_longest.
5295 * python/py-record-btrace.c (btpy_list_index): Use
5296 gdb_py_object_from_longest.
5297
37431074
TT
52982020-09-15 Tom Tromey <tromey@adacore.com>
5299
5300 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5301 * python/py-record.c (recpy_element_number): Use
5302 gdb_py_object_from_longest.
5303 (recpy_gap_number): Likewise.
5304
cbe25684
TT
53052020-09-15 Tom Tromey <tromey@adacore.com>
5306
5307 * top.c (ui::ui): Update.
5308 (highest_ui_num): Remove.
5309 * top.h (struct ui) <num>: Remove.
5310
db92ac45
TT
53112020-09-15 Tom Tromey <tromey@adacore.com>
5312
5313 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5314 * ui-style.c (ansi_regex_text): Now array.
5315 * rust-exp.y (number_regex_text): Now array.
5316 * linespec.c (linespec_quote_characters): Now array.
5317 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5318 Now arrays.
5319
d2b31b67
SM
53202020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5321
5322 * debuginfod-support.c (debuginfod_client_deleter): New.
5323 (debuginfod_client_up): New.
5324 (debuginfod_init): Return debuginfod_client_up.
5325 (debuginfod_source_query): Adjust.
5326 (debuginfod_debuginfo_query): Adjust.
5327
3246bd8e
SM
53282020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5329
5330 * debuginfod-support.c (debuginfod_source_query): Use
5331 make_unique_xstrdup.
5332
10242f36
SM
53332020-09-14 Simon Marchi <simon.marchi@efficios.com>
5334
5335 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5336 with `type::instance_flags`.
5337
e1044e6a
MM
53382020-09-14 Michael Mullin <masmullin@gmail.com>
5339
5340 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5341 Remove baton parameter.
5342
04902b09
PA
53432020-09-14 Pedro Alves <pedro@palves.net>
5344
5345 * Makefile.in (SELFTESTS_SRCS): Add
5346 unittests/enum-flags-selftests.c.
5347 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5348 btrace_function_flags instead of enum btrace_function_flag.
5349 * compile/compile-c-types.c (convert_qualified): Use
5350 enum_flags::raw.
5351 * compile/compile-cplus-symbols.c (convert_one_symbol)
5352 (convert_symbol_bmsym):
5353 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5354 (compile_cplus_convert_struct_or_union_methods)
5355 (compile_cplus_instance::convert_qualified_base):
5356 * go-exp.y (parse_string_or_char): Add cast to int.
5357 * unittests/enum-flags-selftests.c: New file.
5358 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5359 type to btrace_thread_flags from btrace_thread_flag.
5360 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5361 local's type to btrace_thread_flags from btrace_thread_flag. Add
5362 cast in DEBUG call.
5363
69896a2c
PA
53642020-09-14 Pedro Alves <pedro@palves.net>
5365
5366 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5367 * gdbtypes.c (address_space_name_to_int): Rename to ...
5368 (address_space_name_to_type_instance_flags): ... this.
5369 (address_space_int_to_name): Rename to ...
5370 (address_space_type_instance_flags_to_name): ... this.
5371 * gdbtypes.h (address_space_name_to_int): Rename to ...
5372 (address_space_name_to_type_instance_flags): ... this.
5373 (address_space_int_to_name): Rename to ...
5374 (address_space_type_instance_flags_to_name): ... this.
5375 * type-stack.c (type_stack::insert): Adjust to rename.
5376 * type-stack.h (type_stack::insert): Likewise.
5377
314ad88d
PA
53782020-09-14 Pedro Alves <pedro@palves.net>
5379 Andrew Burgess <andrew.burgess@embecosm.com>
5380
5381 * avr-tdep.c (avr_address_class_type_flags): Return
5382 type_instance_flags.
5383 (avr_address_class_type_flags_to_name): Take a
5384 type_instance_flags.
5385 (avr_address_class_name_to_type_flags): Return bool and take a
5386 type_instance_flags.
5387 * d-lang.c (build_d_types): Use type::set_instance_flags.
5388 * ft32-tdep.c (ft32_address_class_type_flags): Return
5389 type_instance_flags.
5390 (ft32_address_class_type_flags_to_name): Take a
5391 type_instance_flags.
5392 (ft32_address_class_name_to_type_flags): Return bool and take a
5393 type_instance_flags.
5394 (ft32_gdbarch_init): Use type::set_instance_flags.
5395 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5396 * gdbarch.h, gdbarch.c: Regenerate.
5397 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5398 (address_class_name_to_type_flags): Use type_instance_flags and
5399 bool.
5400 * gdbtypes.c (address_space_name_to_int)
5401 (address_space_int_to_name, make_qualified_type): Use
5402 type_instance_flags.
5403 (make_qualified_type): Use type_instance_flags and
5404 type::set_instance_flags.
5405 (make_type_with_address_space, make_cv_type, make_vector_type)
5406 (check_typedef): Use type_instance_flags.
5407 (recursive_dump_type): Cast type_instance_flags to unsigned for
5408 printing.
5409 (copy_type_recursive): Use type::set_instance_flags.
5410 (gdbtypes_post_init): Use type::set_instance_flags.
5411 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5412 <m_instance_flags>: ... this.
5413 <instance_flags, set_instance_flags>: New methods.
5414 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5415 (SET_TYPE_INSTANCE_FLAGS): New.
5416 (address_space_name_to_int, address_space_int_to_name)
5417 (make_type_with_address_space): Pass flags using
5418 type_instance_flags instead of int.
5419 * stabsread.c (cleanup_undefined_types_noname): Use
5420 type::set_instance_flags.
5421 * s390-tdep.c (s390_address_class_type_flags): Return
5422 type_instance_flags.
5423 (s390_address_class_type_flags_to_name): Take a
5424 type_instance_flags.
5425 (s390_address_class_name_to_type_flags): Return bool and take a
5426 type_instance_flags.
5427 * type-stack.c (type_stack::follow_types): Use
5428 type_instance_flags.
5429 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5430
27087b7f
TT
54312020-09-14 Tom Tromey <tromey@adacore.com>
5432
5433 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5434 * x86-tdep.c (x86_is_thunk_register_name)
5435 (x86_in_indirect_branch_thunk): Update.
5436 * sparc64-tdep.c (sparc64_fpu_register_names)
5437 (sparc64_cp0_register_names, sparc64_register_names)
5438 (sparc64_pseudo_register_names): Now const.
5439 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5440 cp0_registers_num>: Now const.
5441 * sparc-tdep.c (sparc_core_register_names)
5442 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5443 (sparc32_pseudo_register_names): Now const.
5444 (validate_tdesc_registers): Update.
5445 * rust-lang.c (rust_extensions): Now const.
5446 * p-lang.c (p_extensions): Now const.
5447 * objc-lang.c (objc_extensions): Now const.
5448 * nto-tdep.c (nto_thread_state_str): Now const.
5449 * moxie-tdep.c (moxie_register_names): Now const.
5450 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5451 Now const.
5452 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5453 (mips_linux_reg_names): Now const.
5454 (mips_gdbarch_init): Update.
5455 * microblaze-tdep.c (microblaze_register_names): Now const.
5456 * m68k-tdep.c (m68k_register_names): Now const.
5457 * m32r-tdep.c (m32r_register_names): Now const.
5458 * ia64-tdep.c (ia64_register_names): Now const.
5459 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5460 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5461 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5462 ymm_avx512_register_names, pkeys_register_names>: Now const.
5463 * i386-tdep.c (i386_register_names, i386_zmm_names)
5464 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5465 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5466 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5467 * f-lang.c (f_extensions): Now const.
5468 * d-lang.c (d_extensions): Now const.
5469 * csky-tdep.c (csky_register_names): Now const.
5470 * charset.c (default_charset_names, charset_enum): Now const.
5471 (_initialize_charset): Update.
5472 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5473 const.
5474 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5475 (bsd_uthread_solib_loaded): Update.
5476 (bsd_uthread_state): Now const.
5477 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5478 (amd64_ymm_avx512_names, amd64_ymmh_names)
5479 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5480 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5481 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5482 (amd64_dword_names): Now const.
5483 * agent.c (can_use_agent_enum): Now const.
5484 * ada-tasks.c (task_states, long_task_states): Now const.
5485 * ada-lang.c (known_runtime_file_name_patterns)
5486 (known_auxiliary_function_name_patterns, attribute_names)
5487 (standard_exc, ada_extensions): Now const.
5488
89806626
SM
54892020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5490
5491 * bcache.h (struct bcache) <bcache>: Remove constructor.
5492 <m_hash_function, m_compare_function>: Remove.
5493 <~bcache>: Make virtual.
5494 <compare>: Remove static method, introduce virtual method.
5495 <default_hash>: Remove.
5496 <hash>: New virtual method.
5497 * bcache.c (bcache::expand_hash_table): Update.
5498 (bcache::insert): Update.
5499 (bcache::hash): New.
5500 (bcache::compare): Update comment and parameter names.
5501 * gdbtypes.c (types_deeply_equal): Update.
5502 * psymtab.h (struct psymbol_bcache): New struct.
5503 (class psymtab_storage) <psymtab_storage>: Make default.
5504 <psymbol_cache>: Change type to psymbol_bcache.
5505 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5506 (psymbol_hash): Change to...
5507 (psymbol_bcache::hash): ... this.
5508 (psymbol_compare): Change to...
5509 (psymbol_bcache::compare): ... this.
5510
677c92fe
SM
55112020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5512
5513 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5514 checking for initial lwp.
5515
3eba3a01
TT
55162020-09-14 Tom Tromey <tromey@adacore.com>
5517
5518 * m68k-tdep.c (m68k_extract_return_value): Use
5519 pointer_result_regnum.
5520 (m68k_store_return_value): Likewise.
5521 (m68k_reg_struct_return_p): Handle vectors and arrays.
5522 (m68k_return_value): Handle arrays.
5523 (m68k_svr4_return_value): Fix single-element aggregate handling.
5524 Handle long double. Adjust for embedded ABI.
5525 (m68k_svr4_init_abi): Set pointer_result_regnum.
5526 (m68k_embedded_init_abi): New function.
5527 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5528 (m68k_osabi_sniffer): New function.
5529 (_initialize_m68k_tdep): Register osabi sniffer.
5530 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5531 member.
5532
33f4dd48
SM
55332020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5534
5535 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5536 with gdb::unique_xmalloc_ptr<char>.
5537
8400a90d
SM
55382020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5539
5540 * xml-support.h (xml_fetch_another): Change type to be a
5541 function_view.
5542 (xml_process_xincludes): Remove baton parameter.
5543 (xml_fetch_content_from_file): Change baton parameter to
5544 dirname.
5545 * xml-support.c (struct xinclude_parsing_data)
5546 <xinclude_parsing_data>: Remove baton parameter.
5547 <fetcher_baton>: Remove.
5548 (xinclude_start_include): Adjust.
5549 (xml_process_xincludes): Adjust.
5550 (xml_fetch_content_from_file): Replace baton parameter with
5551 dirname.
5552 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5553 (xml_init_syscalls_info): Use a lambda.
5554 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5555 (file_read_description_xml): Use a lambda.
5556 (fetch_available_features_from_target): Change baton parameter
5557 to target_ops.
5558 (target_read_description_xml): Use a lambda.
5559 (target_fetch_description_xml): Use a lambda.
5560 (string_read_description_xml): Update.
5561
04f5bab2
SM
55622020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5563
5564 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5565 uses with type::endianity_is_not_default.
5566
db558e34
SM
55672020-09-14 Simon Marchi <simon.marchi@efficios.com>
5568
5569 * gdbtypes.h (struct type) <endianity_is_not_default,
5570 set_endianity_is_not_default>: New methods.
5571 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5572 type::endianity_is_not_default, change all write call sites to
5573 use type::set_endianity_is_not_default.
5574
22c4c60c
SM
55752020-09-14 Simon Marchi <simon.marchi@efficios.com>
5576
5577 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5578 uses with type::is_fixed_instance.
5579
9cdd0d12
SM
55802020-09-14 Simon Marchi <simon.marchi@efficios.com>
5581
5582 * gdbtypes.h (struct type) <is_fixed_instance,
5583 set_is_fixed_instance>: New methods.
5584 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5585 write call sites to use type::set_is_fixed_instance.
5586
0becda7a
SM
55872020-09-14 Simon Marchi <simon.marchi@efficios.com>
5588
5589 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5590 uses with type::is_gnu_ifunc.
5591
03cc7249
SM
55922020-09-14 Simon Marchi <simon.marchi@efficios.com>
5593
5594 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5595 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5596 use type::set_is_gnu_ifunc.
5597
3f46044c
SM
55982020-09-14 Simon Marchi <simon.marchi@efficios.com>
5599
5600 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5601 uses with type::stub_is_supported.
5602
9baccff6
SM
56032020-09-14 Simon Marchi <simon.marchi@efficios.com>
5604
5605 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5606 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5607 use type::set_stub_is_supported.
5608
bd63c870
SM
56092020-09-14 Simon Marchi <simon.marchi@efficios.com>
5610
5611 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5612 uses with type::is_vector.
5613
2062087b
SM
56142020-09-14 Simon Marchi <simon.marchi@efficios.com>
5615
5616 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5617 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5618 use type::set_is_vector.
5619
a409645d
SM
56202020-09-14 Simon Marchi <simon.marchi@efficios.com>
5621
5622 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5623 uses with type::has_varargs.
5624
1d6286ed
SM
56252020-09-14 Simon Marchi <simon.marchi@efficios.com>
5626
5627 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5628 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5629 use type::set_has_varargs.
5630
7f9f399b
SM
56312020-09-14 Simon Marchi <simon.marchi@efficios.com>
5632
5633 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5634 uses with type::is_prototyped.
5635
27e69b7a
SM
56362020-09-14 Simon Marchi <simon.marchi@efficios.com>
5637
5638 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5639 New methods.
5640 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5641 call sites to use type::set_is_prototyped.
5642
d2183968
SM
56432020-09-14 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5646 uses with type::target_is_stub.
5647
8f53807e
SM
56482020-09-14 Simon Marchi <simon.marchi@efficios.com>
5649
5650 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5651 New methods.
5652 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5653 sites to use type::set_target_is_stub.
5654
e46d3488
SM
56552020-09-14 Simon Marchi <simon.marchi@efficios.com>
5656
5657 * gdbtypes.h (TYPE_STUB): Remove, replace all
5658 uses with type::is_stub.
5659
b4b73759
SM
56602020-09-14 Simon Marchi <simon.marchi@efficios.com>
5661
5662 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5663 (TYPE_STUB): Use type::is_stub, change all write call sites to
5664 use type::set_is_stub.
5665
20ce4123
SM
56662020-09-14 Simon Marchi <simon.marchi@efficios.com>
5667
5668 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5669 type::has_no_signedness.
5670
15152a54
SM
56712020-09-14 Simon Marchi <simon.marchi@efficios.com>
5672
5673 * gdbtypes.h (struct type) <has_no_signedness,
5674 set_has_no_signedness>: New methods.
5675 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5676 call sites to use type::set_has_no_signedness.
5677
c6d940a9
SM
56782020-09-14 Simon Marchi <simon.marchi@efficios.com>
5679
5680 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5681 type::is_unsigned.
5682
653223d3
SM
56832020-09-14 Simon Marchi <simon.marchi@efficios.com>
5684
5685 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5686 methods.
5687 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5688 sites to use type::set_is_unsigned.
5689
55ea94da 56902020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5691 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5692
e851246a
SM
5693 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5694 pointer and stack frame offset when unwinding.
55ea94da 5695
6791b117
PA
56962020-09-13 Pedro Alves <pedro@palves.net>
5697
5698 * NEWS: Document "-break-insert --qualified".
5699 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5700
77f2120b
PA
57012020-09-13 Pedro Alves <pedro@palves.net>
5702
5703 * linespec.c (classify_mtype, compare_msyms): Delete.
5704 (search_minsyms_for_name): Remove classification logic. Instead
5705 filter out trampoline symbols if we also found an external
5706 function of the same name.
5707
ed6a896c
JB
57082020-09-13 Joel Brobecker <brobecker@adacore.com>
5709
5710 * NEWS: Create a new section for the next release branch.
5711 Rename the section of the current branch, now that it has
5712 been cut.
5713
32aea73e
JB
57142020-09-13 Joel Brobecker <brobecker@adacore.com>
5715
5716 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5717 * version.in: Bump version to 11.0.50.DATE-git.
5718
8087c3fa
JB
57192020-09-12 Joel Brobecker <brobecker@adacore.com>
5720
5721 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5722
2a67f09d
FW
57232020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5724 Felix Willgerodt <Felix.Willgerodt@intel.com>
5725
5726 * gdbarch.sh: Added bfloat16 type.
5727 * gdbarch.c: Regenerated.
5728 * gdbarch.h: Regenerated.
5729 * gdbtypes.c (floatformats_bfloat16): New struct.
5730 (gdbtypes_post_init): Add builtin_bfloat16.
5731 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5732 (floatformats_bfloat16): New struct.
5733 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5734 (i386_ymm_type): Add field "v16_bfloat16"
5735 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5736 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5737 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5738 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5739 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5740 * features/i386/64bit-avx512.c: Regenerated.
5741 * features/i386/64bit-sse.xml: Add bfloat16 type.
5742 * features/i386/64bit-sse.c: Regenerated.
5743
1347d111
FW
57442020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5745
5746 * i386-tdep.c (i386_zmm_type): Fix field names.
5747 (i386_ymm_type): Fix field names.
5748
7a4e8e7d
TBA
57492020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5750
5751 * breakpoint.c: Fix typo in the help message of the
5752 "set breakpoint condition-evaluation" command.
5753
cf4ac4be
KR
57542020-09-10 Kamil Rytarowski <n54@gmx.com>
5755
5756 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5757 * (nbsd_nat_target::pid_to_exec_file)
5758 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5759 (nbsd_nat_target::post_startup_inferior)
5760 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5761 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5762 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5763 * (nbsd_thread_lister): Remove.
5764
f404573e
KR
57652020-09-10 Kamil Rytarowski <n54@gmx.com>
5766
5767 * fork-inferior.c (startup_inferior): Avoid double free.
5768
1ccb2c17
KR
57692020-09-10 Kamil Rytarowski <n54@gmx.com>
5770
5771 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5772 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5773
feedfcc7
KR
57742020-09-10 Kamil Rytarowski <n54@gmx.com>
5775
5776 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5777 * netbsd-nat.c: Include <sys/ptrace.h>.
5778 * (netbsd_nat::enable_proc_events): Add.
5779
c489f8c6
KR
57802020-09-10 Kamil Rytarowski <n54@gmx.com>
5781
5782 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5783 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5784 (netbsd_nat::for_each_thread): Add.
5785 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5786 "gdbsupport/common-debug.h".
5787 * (netbsd_nat::netbsd_thread_lister)
5788 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5789 (netbsd_nat::for_each_thread): Add.
5790
330662f6
KR
57912020-09-10 Kamil Rytarowski <n54@gmx.com>
5792
5793 * netbsd-nat.h: Include <unistd.h>.
5794 * (netbsd_nat::pid_to_exec_file): Add.
5795 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5796 * (netbsd_nat::pid_to_exec_file) Add.
5797
70b67307
KR
57982020-09-10 Kamil Rytarowski <n54@gmx.com>
5799
5800 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5801
99cf6da6
KR
58022020-09-10 Kamil Rytarowski <n54@gmx.com>
5803
5804 * netbsd-nat.h: New file.
5805 * netbsd-nat.c: Likewise.
5806
1b788fb6
TT
58072020-09-09 Tom Tromey <tromey@adacore.com>
5808
5809 * ada-lang.c (remove_extra_symbols): Do not increment when
5810 removing an element
5811
03b0a45f
TT
58122020-09-08 Tom Tromey <tromey@adacore.com>
5813
5814 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5815
3cae4447
TT
58162020-09-08 Tom Tromey <tromey@adacore.com>
5817
5818 PR win32/25302:
5819 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5820 (gdb_bfd_init_data): New function.
5821 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5822
7f08fd51
TBA
58232020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5824
5825 * infrun.c (fetch_inferior_event): Use
5826 `switch_to_target_no_thread` to switch the target.
5827
3e6ff933
TT
58282020-09-06 Tom Tromey <tom@tromey.com>
5829
5830 * symfile.h (dwarf2_free_objfile): Don't declare.
5831
e56798df
AKS
58322020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5833
5834 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5835 to match 16 byte real/complex type generated by Flang compiler.
5836
8f5c6526
TV
58372020-09-03 Tom de Vries <tdevries@suse.de>
5838
5839 PR breakpoint/26546
5840 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5841 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5842
c5065df0
SM
58432020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5844
5845 * maint.c (index_digits): New function.
5846 (struct maint_print_section_data): Remove.
5847 (print_bfd_section_info): Remove print_data parameter, add arg
5848 and index_digits.
5849 (print_objfile_section_info): Likewise.
5850 (print_bfd_section_info_maybe_relocated): Likewise (plus
5851 objfile).
5852 (maintenance_info_sections): Adjust calls.
5853
02c6f3f1
TT
58542020-09-02 Tom Tromey <tromey@adacore.com>
5855
5856 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5857 for null pointers.
5858 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5859
ef5e5b0b
SM
58602020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5861
5862 * bcache.h (struct bcache) <insert>: Change type of `added` to
5863 pointer to bool.
5864 * bcache.c (bcache::insert): Likewise.
5865 * gdbtypes.c (check_types_worklist): Adjust.
5866 * psymtab.c (add_psymbol_to_bcache): Adjust.
5867
973695d6
KB
58682020-08-31 Kevin Buettner <kevinb@redhat.com>
5869
5870 * corelow.c (unordered_set): Include.
5871 (class core_target): Add field 'm_core_unavailable_mappings'.
5872 (core_target::build_file_mappings): Print only one warning
5873 per inaccessible file. Add unavailable/broken mappings
5874 to m_core_unavailable_mappings.
5875 (core_target::xfer_partial): Call...
5876 (core_target::xfer_memory_via_mappings): New method.
5877
264fc0e2
SM
58782020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5879
5880 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5881 type to bool.
5882
2de01bdb
SM
58832020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5884
5885 * dwarf2/read.c (struct field_info): Fix indentation.
5886
f3bd50f1
SM
58872020-08-31 Simon Marchi <simon.marchi@efficios.com>
5888
5889 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5890 ordering in comment.
5891 * frame.c (frame_id_eq): Fix indentation.
5892
22b9b4b0
SL
58932020-08-31 Scott Linder <scott@scottlinder.com>
5894 Simon Marchi <simon.marchi@efficios.com>
5895
5896 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5897 inline frame ids in outer frame.
5898
84154d16
SM
58992020-08-31 Simon Marchi <simon.marchi@efficios.com>
5900
5901 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5902 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5903 (outer_frame_id): Use FID_STACK_OUTER instead of
5904 FID_STACK_INVALID.
5905 (frame_id_p): Don't check for outer_frame_id.
5906
8efaf6b3
SM
59072020-08-31 Simon Marchi <simon.marchi@efficios.com>
5908
5909 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5910 regnum/frame in value. Call allocate_value_lazy.
5911 * frame.c (frame_unwind_register_value): Use
5912 val_print_not_saved.
5913
fe1fe7ea
SM
59142020-08-31 Simon Marchi <simon.marchi@efficios.com>
5915
5916 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5917
f7c7700d
PA
59182020-08-29 Pedro Alves <pedro@palves.net>
5919
5920 * progspace.c (print_program_space): Use all_inferiors. Switch to
5921 the inferior before calling target_pid_to_str.
5922
e0814aae
TT
59232020-08-28 Tom Tromey <tom@tromey.com>
5924
5925 * xcoffread.c (xcoff_end_psymtab): Update comment.
5926 * dbxread.c (dbx_end_psymtab): Update comment.
5927
626d2320
TV
59282020-08-28 Tom de Vries <tdevries@suse.de>
5929
5930 PR breakpoint/26544
5931 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5932 event_location.
5933 (create_breakpoint): Same.
5934 (base_breakpoint_decode_location): Same.
5935 (bkpt_create_sals_from_location): Same.
5936 (bkpt_decode_location): Same.
5937 (bkpt_probe_create_sals_from_location): Same.
5938 (bkpt_probe_decode_location): Same.
5939 (tracepoint_create_sals_from_location): Same.
5940 (tracepoint_decode_location): Same.
5941 (tracepoint_probe_decode_location): Same.
5942 (strace_marker_create_sals_from_location): Same.
5943 (strace_marker_decode_location): Same.
5944 (create_sals_from_location_default): Same.
5945 (decode_location_default): Same.
5946 * breakpoint.h (struct breakpoint_ops): Same.
5947 (create_breakpoint): Same.
5948 * linespec.h (decode_line_full): Same.
5949 * linespec.c (decode_line_full): Same. Throw error if
5950 result.size () == 0.
5951
df631783
PA
59522020-08-27 Pedro Alves <pedro@palves.net>
5953
5954 PR gdb/26524
5955 * breakpoint.c (until_break_fsm) <location_breakpoint,
5956 caller_breakpoint>: Delete fields.
5957 <breakpoints>: New field.
5958 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5959 two individual breakpoints.
5960 (until_break_fsm::should_stop): Loop over breakpoints in the
5961 breakpoint vector.
5962 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5963 vector.
5964 (until_break_command): Handle location expanding into multiple
5965 sals.
5966
b2b38aa4
PA
59672020-08-27 Pedro Alves <pedro@palves.net>
5968
5969 PR gdb/26523
5970 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5971 bp_until breakpoints user-specified locations. Update intro
5972 comment.
5973
b886559f
SM
59742020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5975
5976 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5977 gdb_bfd_sections): New.
5978 * maint.c (print_bfd_section_info): Change param type to
5979 maint_print_section_data.
5980 (print_objfile_section_info): Likewise.
5981 (print_bfd_section_info_maybe_relocated): Likewise.
5982 (maintenance_info_sections): Use gdb_bfd_sections.
5983
4c6e63bf
SV
59842020-08-25 Shahab Vahedi <shahab@synopsys.com>
5985
5986 * MAINTAINERS: Add ARC target and maintainer.
5987
8d7f0635
AK
59882020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5989
5990 * configure.tgt: ARC support for GNU/Linux.
5991 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5992 * arc-linux-tdep.c: New file.
5993 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5994 * arc-tdep.c (arc_write_pc): Use it.
5995
fdd8731b
SV
59962020-08-25 Shahab Vahedi <shahab@synopsys.com>
5997
5998 * arc-tdep.c (arc_check_for_hardware_loop): New.
5999 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6000
22459524
SV
60012020-08-25 Shahab Vahedi <shahab@synopsys.com>
6002
6003 * arc-tdep.h: Include "gdbarch.h".
6004
995d3a19
SV
60052020-08-25 Shahab Vahedi <shahab@synopsys.com>
6006
6007 * arch/arc.h
6008 (arc_gdbarch_features): New class to stir the selection of target XML.
6009 (arc_create_target_description): Use FEATURES to choose XML target.
6010 (arc_lookup_target_description): Use arc_create_target_description
6011 to create _new_ target descriptions or return the already created
6012 ones if the FEATURES is the same.
6013 * arch/arc.c: Implementation of prototypes described above.
6014 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6015 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6016 * arc-tdep.c (*_feature_name): Make feature names consistent.
6017 (arc_register_feature): A new struct to hold information about
6018 registers of a particular target/feature.
6019 (arc_check_tdesc_feature): Check if XML provides registers in
6020 compliance with ARC_REGISTER_FEATURE structs.
6021 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6022 (determine_*_reg_feature_set): Which feature name to look for.
6023 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6024 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6025 to expected ISA enums to be used in arc_gdbarch_features structs.
6026 * features/Makefile (FEATURE_XMLFILES): Add new files.
6027 * gdb/features/arc/v1-aux.c: New file.
6028 * gdb/features/arc/v1-aux.xml: Likewise.
6029 * gdb/features/arc/v1-core.c: Likewise.
6030 * gdb/features/arc/v1-core.xml: Likewise.
6031 * gdb/features/arc/v2-aux.c: Likewise.
6032 * gdb/features/arc/v2-aux.xml: Likewise.
6033 * gdb/features/arc/v2-core.c: Likewise.
6034 * gdb/features/arc/v2-core.xml: Likewise.
6035 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6036
3945d2d7
GM
60372020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6038 Andrew Burgess <andrew.burgess@embecosm.com>
6039
6040 PR m2/26372
fc5d6901 6041 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
6042 an assert. Remove single element array indexing pattern as the
6043 MULTI_SUBSCRIPT support will handle this case too.
6044
2677f2d3
SM
60452020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6046
6047 * value.h (valprint_check_validity): Move declaration from
6048 here...
6049 * valprint.h (valprint_check_validity): ... to here.
6050
c426fddb
SM
60512020-08-24 Simon Marchi <simon.marchi@efficios.com>
6052
6053 * debug.h: New file.
6054 * debug.c (debug_prefixed_vprintf): New function.
6055 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6056 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6057
1eb8556f
SM
60582020-08-24 Simon Marchi <simon.marchi@efficios.com>
6059
6060 * infrun.h (infrun_debug_printf_1): New function declaration.
6061 (infrun_debug_printf): New macro.
6062 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6063 throughout.
6064 (infrun_debug_printf): New function.
6065 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6066 (handle_jit_event): Likewise.
6067
b8fff44e
MW
60682020-08-21 Mark Wielaard <mark@klomp.org>
6069
6070 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6071
d19c3068
SM
60722020-08-22 Simon Marchi <simon.marchi@efficios.com>
6073
6074 * frame.c (enum class frame_id_status): New.
6075 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6076 (fprintf_frame): Update.
6077 (compute_frame_id): Set frame id status to "computing" on entry.
6078 Set it back to "not_computed" on failure and to "computed" on
6079 success.
6080 (get_frame_id): Assert the frame id is not being computed.
6081 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6082 (create_new_frame): Likewise.
6083 (frame_cleanup_after_sniffer): Update assert.
6084
b70e516e
SM
60852020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6086
6087 * regcache.c (pid_ptid_regcache_map): New type.
6088 (target_ptid_regcache_map): Remove.
6089 (target_pid_ptid_regcache_map): New type.
6090 (regcaches): Change type to target_pid_ptid_regcache_map.
6091 (get_thread_arch_aspace_regcache): Update.
6092 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6093 case.
6094 (regcaches_size): Update.
6095 (regcache_count): Update.
6096 (registers_changed_ptid_target_pid_test): New.
6097 (_initialize_regcache): Register new test.
6098
cdd9148a
SM
60992020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6100
6101 * regcache.c (regcache_count): New.
6102 (struct regcache_test_data): New.
6103 (regcache_test_data_up): New.
6104 (populate_regcaches_for_test): New.
6105 (regcaches_test): Remove.
6106 (get_thread_arch_aspace_regcache_test): New.
6107 (registers_changed_ptid_all_test): New.
6108 (registers_changed_ptid_target_test): New.
6109 (registers_changed_ptid_target_ptid_test): New.
6110 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6111 (_initialize_regcache): Register new tests.
6112
dd125343
SM
61132020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6114
6115 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6116 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6117 gdbarch and aspace parameter. Use current inferior's aspace.
6118 Validate regcache's arch value.
6119 (regcaches_test): Update.
6120
3ee93972
SM
61212020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6122
6123 * regcache.c (regcaches_test): Call registers_changed.
6124
33bf4c5c
TBA
61252020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6126
6127 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6128
c2fd7fae
AKS
61292020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6130
6131 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6132 to find the end of prologue for flang compiled binaries.
6133 * arm-tdep.c (arm_skip_prologue): Likewise.
6134 * i386-tdep.c (i386_skip_prologue): Likewise.
6135 * producer.c (producer_is_llvm): New function.
6136 (producer_parsing_tests): Added new tests for clang/flang.
6137 * producer.h (producer_is_llvm): New declaration.
6138
9327494e
SM
61392020-08-18 Simon Marchi <simon.marchi@efficios.com>
6140
6141 * linux-nat.c (linux_nat_debug_printf): New function.
6142 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6143
d138725a
AM
61442020-08-18 Aaron Merey <amerey@redhat.com>
6145
6146 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6147 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6148 (CLIBS): Add DEBUGINFOD_LIBS.
6149
f9b11e6b
ST
61502020-08-17 Sergei Trofimovich <siarheit@google.com>
6151
6152 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6153 'gdbarch_num_regs'.
6154
3ae7ab99
TT
61552020-08-17 Tom Tromey <tromey@adacore.com>
6156
6157 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6158 ada_get_decoded_value returns NULL.
6159
b017825f
TT
61602020-08-17 Tom Tromey <tromey@adacore.com>
6161
6162 * python/py-inferior.c (infpy_search_memory): Use
6163 gdb_py_object_from_ulongest.
6164 * python/py-infevents.c (create_inferior_call_event_object)
6165 (create_memory_changed_event_object): Use
6166 gdb_py_object_from_ulongest.
6167 * python/py-linetable.c (ltpy_entry_get_pc): Use
6168 gdb_py_object_from_ulongest.
6169
7635cf79
SM
61702020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * loc.c (class symbol_needs_eval_context): Fix indentation.
6173
f54be24b
SM
61742020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6175
6176 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6177 bool.
6178
53d5a2a5
TV
61792020-08-17 Tom de Vries <tdevries@suse.de>
6180
6181 PR gdb/26393
6182 * gdbtypes.c (dump_dynamic_prop): New function.
6183 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6184
547ce8f0
TV
61852020-08-15 Tom de Vries <tdevries@suse.de>
6186
6187 PR backtrace/26390
6188 * stack.c (print_frame_args): Temporarily set the selected
6189 frame to FRAME while printing the frame's arguments.
6190
6ea815e7
PFC
61912020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6192
6193 PR breakpoints/26385
6194 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6195 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6196
6e562fa3
PFC
61972020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6198
6199 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6200 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6201 and >= to check return value instead of == -1 and != -1.
6202
d369b608
SM
62032020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6204
6205 * utils.h (class gdb_argv) <as_array_view>: New method.
6206 * utils.c (gdb_argv_as_array_view_test): New.
6207 (_initialize_utils): Register selftest.
6208 * maint.c (maintenance_selftest): Use the new method.
6209
b31488a3
KR
62102020-08-13 Kamil Rytarowski <n54@gmx.com>
6211
6212 * target.h (supports_dumpcore, dumpcore): New
6213 function declarations.
6214 * target.c (supports_dumpcore, dumpcore): New
6215 functions.
6216 * target-delegates.c: Rebuild.
6217 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6218 and target_dumpcore ().
6219
002a3166
AM
62202020-08-13 Aaron Merey <amerey@redhat.com>
6221
6222 * debuginfod-support.c: Replace global variables with user_data.
6223
ece5bc8a
SM
62242020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6225
6226 * maint.c (maintenance_selftest): Split args and pass array_view
6227 to run_tests.
6228
6d8a0a5e
LM
62292020-08-12 Luis Machado <luis.machado@linaro.org>
6230
6231 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6232 type's length.
6233 Use %s and pulongest to print the length.
6234
7cf663a9
PA
62352020-08-12 Pedro Alves <palves@redhat.com>
6236
6237 * NEWS: Move "Multi-target debugging support" item to the
6238 "Changes since GDB 9" section.
6239
27c7b875
PA
62402020-08-12 Pedro Alves <palves@redhat.com>
6241
6242 PR gdb/26336
6243 * progspace.c (program_space::remove_objfile): Invalidate the
6244 frame cache.
6245
1796a2a1
TV
62462020-08-11 Tom de Vries <tdevries@suse.de>
6247
6248 * MAINTAINERS: Mark ms1 as deleted.
6249
f8e3fe0d
LM
62502020-08-10 Luis Machado <luis.machado@linaro.org>
6251
6252 PR gdb/26310
6253
6254 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6255 act accordingly.
6256 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6257 movz/str/stur/stp skipping behavior.
6258
cc308722
LM
62592020-08-10 Luis Machado <luis.machado@linaro.org>
6260
6261 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6262 struct user_sve_header instead of struct sve_context.
6263
041d9819
SM
62642020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6265
6266 * read.h (dwarf2_fetch_die_loc_sect_off,
6267 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6268 `void *` parameter with function_view.
6269 * read.c (dwarf2_fetch_die_loc_sect_off,
6270 dwarf2_fetch_die_loc_cu_off): Likewise.
6271 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6272 (per_cu_dwarf_call): Adjust.
6273 (get_frame_address_in_block_wrapper): Remove.
6274 (indirect_synthetic_pointer): Adjust.
6275 (get_ax_pc): Remove.
6276 (dwarf2_compile_expr_to_ax): Adjust.
6277
38f8aa06
TV
62782020-08-08 Tom de Vries <tdevries@suse.de>
6279
6280 PR build/26344
6281 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6282 constructor.
6283 * regcache.c (get_thread_arch_aspace_regcache): Same.
6284
a52b3ae2
TT
62852020-08-07 Tom Tromey <tromey@adacore.com>
6286
6287 * ravenscar-thread.c
6288 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6289 New method.
6290 (ravenscar_thread_target::wait): Check
6291 runtime_initialized.
6292 (ravenscar_thread_target::prepare_to_store)
6293 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6294 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6295 (ravenscar_thread_target::stopped_by_watchpoint)
6296 (ravenscar_thread_target::stopped_data_address)
6297 (ravenscar_thread_target::core_of_thread): Use
6298 scoped_restore_current_thread and
6299 set_base_thread_from_ravenscar_task.
6300
0e29517d
TT
63012020-08-07 Tom Tromey <tromey@adacore.com>
6302
6303 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6304
592f9bd7
TT
63052020-08-07 Tom Tromey <tromey@adacore.com>
6306
6307 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6308 update_inferior_ptid before update_thread_list.
6309 (temporarily_change_regcache_ptid): New class.
6310 (ravenscar_thread_target::fetch_registers)
6311 (ravenscar_thread_target::store_registers)
6312 (ravenscar_thread_target::prepare_to_store): Use base thread when
6313 forwarding operation.
6314
39e2018a
TT
63152020-08-07 Tom Tromey <tromey@adacore.com>
6316
6317 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6318 "is_pid" case.
6319
2080266b
TT
63202020-08-07 Tom Tromey <tromey@adacore.com>
6321
6322 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6323 New methods.
6324 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6325 first.
6326 (ravenscar_thread_target::add_thread): Rename from
6327 ravenscar_add_thread.
6328 (ravenscar_thread_target::update_thread_list): Use a lambda.
6329 (ravenscar_thread_target::xfer_partial): New method.
6330
78c02f21
TT
63312020-08-07 Tom Tromey <tromey@adacore.com>
6332
6333 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6334 gdb::function_view.
6335 (iterate_over_live_ada_tasks): Change type of argument.
6336 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6337 of argument.
6338
d5d833af
TT
63392020-08-07 Tom Tromey <tromey@adacore.com>
6340
6341 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6342 Remove.
6343 (ravenscar_thread_target::extra_thread_info): Remove.
6344 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6345 defer to target beneath for non-Ravenscar threads.
6346
a8ac85bb
TT
63472020-08-07 Tom Tromey <tromey@adacore.com>
6348
6349 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6350 get_base_thread_from_ravenscar_task>: Now methods.
6351 <m_cpu_map>: New member.
6352 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6353 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6354 (ravenscar_thread_target::task_is_currently_active): Update.
6355 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6356 Now a method.
6357 (ravenscar_thread_target::add_active_thread): Put initial thread
6358 into the m_cpu_map.
6359
550ab58d
TT
63602020-08-07 Tom Tromey <tromey@adacore.com>
6361
6362 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6363 event_ptid.
6364
e9546579
TT
63652020-08-07 Tom Tromey <tromey@adacore.com>
6366
6367 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6368 runtime_initialized.
6369
3d4470e5
TT
63702020-08-07 Tom Tromey <tromey@adacore.com>
6371
6372 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6373 add_active_thread.
6374 (ravenscar_thread_target::add_active_thread): Now public.
6375 (ravenscar_inferior_created): Call add_active_thread after pushing
6376 the target.
6377
888bdb2b
SM
63782020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6379
6380 * regcache.c (ptid_regcache_map): New type.
6381 (target_ptid_regcache_map): New type.
6382 (regcaches): Change type to target_ptid_regcache_map.
6383 (get_thread_arch_aspace_regcache): Update to regcaches' new
6384 type.
6385 (regcache_thread_ptid_changed): Likewise.
6386 (registers_changed_ptid): Likewise.
6387 (regcaches_size): Likewise.
6388 (regcaches_test): Update.
6389 (regcache_thread_ptid_changed): Update.
6390 * regcache.h (regcache_up): New type.
6391 * gdbsupport/ptid.h (hash_ptid): New struct.
6392
b161a60d
SM
63932020-08-07 Simon Marchi <simon.marchi@efficios.com>
6394
6395 * observable.h (thread_ptid_changed): Add parameter
6396 `process_stratum_target *`.
6397 * infrun.c (infrun_thread_ptid_changed): Add parameter
6398 `process_stratum_target *` and use it.
6399 (selftests): New namespace.
6400 (infrun_thread_ptid_changed): New function.
6401 (_initialize_infrun): Register selftest.
6402 * regcache.c (regcache_thread_ptid_changed): Add parameter
6403 `process_stratum_target *` and use it.
6404 (regcache_thread_ptid_changed): New function.
6405 (_initialize_regcache): Register selftest.
6406 * thread.c (thread_change_ptid): Pass target to
6407 thread_ptid_changed observable.
6408
d2854d8d
CT
64092020-08-06 Caroline Tice <cmtice@google.com>
6410
fe4c3d43
SM
6411 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6412 (struct dwp_sections): Update field comments. Add loclists and
6413 rnglists fields.
6414 (struct virtual_v2_dwo_sections): Rename struct to
6415 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6416 size & offset fields for loclists and rnglists.
6417 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6418 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6419 skipping dummy type units.
6420 (create_dwp_hash_table): Update the large comment above the function to
6421 discuss Version 5 DWP files as well, with references. Update all the
6422 version checks in the function to check for version 5 as well. Add new
6423 section at the end to create dwp hash table for version 5.
6424 (create_dwp_v2_section): Rename function to
6425 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6426 Add V5 to error message text.
6427 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6428 into calls to create_dwp_v2_or_v5_section.
6429 (create_dwo_unit_in_dwp_v5): New function.
6430 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6431 check for version2; add else clause to handle version 5.
6432 (open_and_init_dwo_file): Add code to check dwarf version & only call
6433 create_debug_types_hash_table (with sections.types) if version is not 5;
6434 else call create_debug_type_hash_table, with sections.info.
6435 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6436 version 5.
6437 (dwarf2_locate_v5_dwp_sections): New function.
6438 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6439 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6440
159ed7d9
SM
64412020-08-06 Simon Marchi <simon.marchi@efficios.com>
6442
6443 * regcache.h (class regcache): Remove friend
6444 registers_changed_ptid.
6445 <regcache_thread_ptid_changed>: Remove.
6446 <regcaches>: Remove.
6447 * regcache.c (regcache::regcaches): Rename to...
6448 (regcaches): ... this. Make static.
6449 (get_thread_arch_aspace_regcache): Update.
6450 (regcache::regcache_thread_ptid_changed): Rename to...
6451 (regcache_thread_ptid_changed): ... this. Update.
6452 (class regcache_access): Remove.
6453 (regcaches_test): Update.
6454 (_initialize_regcache): Update.
6455 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6456 <forward_list>.
6457
174981ae
SM
64582020-08-06 Simon Marchi <simon.marchi@efficios.com>
6459
6460 * regcache.h (class regcache) <current_regcache>: Rename to...
6461 <regcaches>: ... this. Move doc here.
6462 * regcache.c (regcache::current_regcache) Rename to...
6463 (regcache::regcaches): ... this. Move doc to header.
6464 (get_thread_arch_aspace_regcache): Update.
6465 (regcache::regcache_thread_ptid_changed): Update.
6466 (registers_changed_ptid): Update.
6467 (class regcache_access) <current_regcache_size>: Rename to...
6468 <regcaches_size>: ... this.
6469 (current_regcache_test): Rename to...
6470 (regcaches_test): ... this.
6471 (_initialize_regcache): Update.
6472
ed908db6
VC
64732020-08-06 Victor Collod <vcollod@nvidia.com>
6474
6475 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6476
b5582ab7
KB
64772020-08-05 Kevin Buettner <kevinb@redhat.com>
6478
6479 * corelow.c (core_target::build_file_mappings): Don't output
6480 null pathname in warning.
6481
ea946b86
SM
64822020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6483
6484 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6485 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6486 gdb.dwarf2/dw2-single-line-discriminators.exp,
6487 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6488
57d02173
TT
64892020-08-05 Tom Tromey <tromey@adacore.com>
6490
6491 PR rust/26197:
6492 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6493 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6494 Fix off-by-one and type size errors in ordinary case.
6495
5555c86d
TV
64962020-08-05 Tom de Vries <tdevries@suse.de>
6497
6498 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6499 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6500
97916bfe
SM
65012020-08-04 Simon Marchi <simon.marchi@efficios.com>
6502
6503 * frame.h (frame_id_p): Return bool.
6504 (frame_id_artificial_p): Return bool.
6505 (frame_id_eq): Return bool.
6506 (has_stack_frames): Return bool.
6507 (get_selected_frame): Fix typo in comment.
6508 (get_frame_pc_if_available): Return bool.
6509 (get_frame_address_in_block_if_available): Return bool.
6510 (get_frame_func_if_available): Return bool.
6511 (read_frame_register_unsigned): Return bool.
6512 (get_frame_register_bytes): Return bool.
6513 (safe_frame_unwind_memory): Return bool.
6514 (deprecated_frame_register_read): Return bool.
6515 (frame_unwinder_is): Return bool.
6516 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6517 bool.
6518 <this_id::p>: Likewise.
6519 <prev_p>: Likewise.
6520 (frame_stash_add): Return bool.
6521 (get_frame_id): Use bool.
6522 (frame_id_build_special) Use bool.
6523 (frame_id_build_unavailable_stack): Use bool.
6524 (frame_id_build): Use bool.
6525 (frame_id_p): Return bool, use true/false instead of 1/0.
6526 (frame_id_artificial_p): Likewise.
6527 (frame_id_eq): Likewise.
6528 (frame_id_inner): Likewise.
6529 (get_frame_func_if_available): Likewise.
6530 (read_frame_register_unsigned): Likewise.
6531 (deprecated_frame_register_read): Likewise.
6532 (get_frame_register_bytes): Likewise.
6533 (has_stack_frames): Likewise.
6534 (inside_main_func): Likewise.
6535 (inside_entry_func): Likewise.
6536 (get_frame_pc_if_available): Likewise.
6537 (get_frame_address_in_block_if_available): Likewise.
6538 (frame_unwinder_is): Likewise.
6539 (safe_frame_unwind_memory): Likewise.
6540 (frame_unwind_arch): Likewise.
6541
fedfee88
SM
65422020-08-04 Simon Marchi <simon.marchi@efficios.com>
6543
6544 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6545 type to cached_copy_status.
6546 (fprintf_frame): Adjust.
6547 (get_frame_func_if_available): Adjust.
6548 (frame_cleanup_after_sniffer): Adjust.
6549
6cfa9b59
MW
65502020-08-04 Mark Wielaard <mark@klomp.org>
6551
6552 * MAINTAINERS (Write After Approval): Update email address.
6553
66d6346b
SM
65542020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6555
6556 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6557 dynamic_prop::const_val.
6558
8a6d5e35
SM
65592020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6560
6561 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6562 dynamic_prop::kind.
6563
51d6067d
SM
65642020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6565
6566 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6567
b26e2ae7
JM
65682020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6569
6570 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6571
39791af2
JM
65722020-08-04 Weimin Pan <weimin.pan@oracle.com>
6573 Jose E. Marchesi <jose.marchesi@oracle.com>
6574
6575 * configure.tgt: Add entry for bpf-*-*.
6576 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6577 (ALLDEPFILES): Add bpf-tdep.c.
6578 * bpf-tdep.c: New file.
6579 * MAINTAINERS: Add bpf target and maintainer.
6580 * NEWS: Mention the support for the new target.
6581
521894aa
TV
65822020-08-04 Tom de Vries <tdevries@suse.de>
6583
6584 PR symtab/23270
6585 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6586 Error.
6587
5d6356e9
JB
65882020-08-03 John Baldwin <jhb@FreeBSD.org>
6589
6590 * syscalls/freebsd.xml: Regenerate.
6591
0cf82b81
JB
65922020-08-03 John Baldwin <jhb@FreeBSD.org>
6593
6594 * syscalls/update-freebsd.sh: Fix usage and year range.
6595
8f34b746
TV
65962020-08-03 Tom de Vries <tdevries@suse.de>
6597
6598 PR symtab/26333
6599 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6600 DW_LNE_lo_user/DW_LNE_hi_user range.
6601
5e500d33
SM
66022020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6603
6604 PR ada/26318
6605 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6606 kind.
6607
78319c15
TBA
66082020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6609
6610 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6611
4c55e970
TBA
66122020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6613
6614 * breakpoint.c (set_breakpoint_condition): Update the condition
6615 expressions after checking that the input condition string parses
6616 successfully and does not contain junk at the end.
6617
1e620590
TBA
66182020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6619
6620 * breakpoint.c (set_breakpoint_condition): Update the
6621 condition string after parsing the new condition successfully.
6622
c8693053
RO
66232020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6624
6625 * proc-api.c (_STRUCTURED_PROC): Don't define.
6626 * proc-events.c: Likewise.
6627 * proc-flags.c: Likewise.
6628 * proc-why.c: Likewise.
6629 * procfs.c: Likewise.
6630
6631 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6632 * configure, config.in: Regenerate.
6633
5a99adb8
TV
66342020-07-30 Tom de Vries <tdevries@suse.de>
6635
6636 PR build/26320
6637 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6638 m_red/m_green/m_blue in a union.
6639
8ba83e91
TV
66402020-07-29 Tom de Vries <tdevries@suse.de>
6641
6642 PR tdep/26280
6643 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6644
f75a0693
AB
66452020-07-28 Tom Tromey <tromey@adacore.com>
6646
6647 PR symtab/26270:
6648 * symtab.h (find_pc_partial_function_sym): Declare.
6649 * cli/cli-cmds.c (disassemble_command): Use
6650 find_pc_partial_function_sym. Check asm_demangle.
6651 * blockframe.c (cache_pc_function_sym): New global.
6652 (cache_pc_function_name): Remove.
6653 (clear_pc_function_cache): Update.
6654 (find_pc_partial_function_sym): New function, from
6655 find_pc_partial_function.
6656 (find_pc_partial_function): Rewrite using
6657 find_pc_partial_function_sym.
6658
16f3242c
TT
66592020-07-28 Tom Tromey <tromey@adacore.com>
6660
6661 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6662 help. Add usage.
6663
4888741a
TT
66642020-07-28 Tom Tromey <tromey@adacore.com>
6665
6666 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6667 <DW_OP_GNU_variable_value>: Cast to address type.
6668
4d46f402
KR
66692020-07-28 Kamil Rytarowski <n54@gmx.com>
6670
6671 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6672 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6673 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6674 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6675 (nbsd_get_siginfo_type): New.
6676 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6677 (_initialize_nbsd_tdep): New.
6678
d70f978b
L
66792020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6680
6681 PR binutils/26301
6682 * configure: Regenerated.
6683
377170fa
L
66842020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6685
6686 PR binutils/26301
6687 * configure: Regenerated.
6688
43d5901d
AB
66892020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6690
6691 * python/py-frame.c: Remove 'user-regs.h' include.
6692 (frapy_read_register): Rewrite to make use of
6693 gdbpy_parse_register_id.
6694 * python/py-registers.c (gdbpy_parse_register_id): New function,
6695 moved here from python/py-unwind.c. Updated the return type, and
6696 also accepts register descriptor objects.
6697 * python/py-unwind.c: Remove 'user-regs.h' include.
6698 (pyuw_parse_register_id): Moved to python/py-registers.c.
6699 (unwind_infopy_add_saved_register): Update to use
6700 gdbpy_parse_register_id.
6701 (pending_framepy_read_register): Likewise.
6702 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6703
14fa8fb3
AB
67042020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6705
6706 * python/py-registers.c: Add 'user-regs.h' include.
6707 (register_descriptor_iter_find): New function.
6708 (register_descriptor_iterator_object_methods): New static global
6709 methods array.
6710 (register_descriptor_iterator_object_type): Add pointer to methods
6711 array.
6712
ddce1758
JB
67132020-07-27 John Baldwin <jhb@FreeBSD.org>
6714
6715 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6716 for all architectures on FreeBSD 11.3 and later.
6717
a4089f52
TT
67182020-07-27 Tom Tromey <tromey@adacore.com>
6719
6720 * gcore.h (load_corefile): Don't declare.
6721
95420d30
TV
67222020-07-27 Tom de Vries <tdevries@suse.de>
6723
6724 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6725 * config.in: Regenerate.
6726 * configure: Regenerate.
6727
05a6b8c2
EZ
67282020-07-26 Eli Zaretskii <eliz@gnu.org>
6729
6730 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6731 ws2tcpip.h. When checking whether socklen_t type is defined, use
6732 ws2tcpip.h if it is available and sys/socket.h isn't.
6733 * configure: Regenerate.
6734 * config.in: Regenerate.
6735
e79eb02f
AB
67362020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6737
6738 PR fortran/23051
6739 PR fortran/26139
6740 * valops.c (value_ind): Pass address to
6741 readjust_indirect_value_type.
6742 * value.c (readjust_indirect_value_type): Make parameter
6743 non-const, and add extra address parameter. Resolve original type
6744 before using it.
6745 * value.h (readjust_indirect_value_type): Update function
6746 signature and comment.
6747
876518dd
TV
67482020-07-25 Tom de Vries <tdevries@suse.de>
6749
6750 PR symtab/26243
6751 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6752 entries.
6753
f6720b1c
AM
67542020-07-24 Aaron Merey <amerey@redhat.com>
6755
6756 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6757 * configure: Rebuild.
6758
513487e1
KB
67592020-07-23 Kevin Buettner <kevinb@redhat.com>
6760
6761 PR corefiles/26294
6762 * corelow.c (_initialize_corelow): Add period to help text
6763 for "maintenance print core-file-backed-mappings".
6764
e7bc9db8
PA
67652020-07-23 Pedro Alves <pedro@palves.net>
6766
6767 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6768 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6769 meanwhile.
6770 * frame.c (frame_cache_generation, get_frame_cache_generation):
6771 New.
6772 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6773 (get_prev_frame_if_no_cycle): On exception, don't touch
6774 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6775 * frame.h (get_frame_cache_generation): Declare.
6776
90fcc466
TV
67772020-07-23 Tom de Vries <tdevries@suse.de>
6778
6779 PR tui/26282
6780 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6781 New default constructor.
6782
78344df7
AB
67832020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6784
6785 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6786 exclude non-statement entries.
6787
b089853a
KB
67882020-07-22 Kevin Buettner <kevinb@redhat.com>
6789
6790 * NEWS (New commands): Mention new command
6791 "maintenance print core-file-backed-mappings".
6792
09c2f5d4
KB
67932020-07-22 Kevin Buettner <kevinb@redhat.com>
6794
6795 * corelow.c (gdbcmd.h): Include.
6796 (core_target::info_proc_mappings): New method.
6797 (get_current_core_target): New function.
6798 (maintenance_print_core_file_backed_mappings): New function.
6799 (_initialize_corelow): Add core-file-backed-mappings to
6800 "maint print" commands.
6801
9c5ec5c2 68022020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6803
9c5ec5c2
KB
6804 * linux-tdep.c (dump_note_entry_p): New function.
6805 (linux_dump_mapping_p_ftype): New typedef.
6806 (linux_find_memory_regions_full): Add new parameter,
6807 should_dump_mapping_p.
6808 (linux_find_memory_regions): Adjust call to
6809 linux_find_memory_regions_full.
6810 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6811 call to linux_find_memory_regions_full.
6812
db082f59
KB
68132020-07-22 Kevin Buettner <kevinb@redhat.com>
6814
6815 * corelow.c (solist.h, unordered_map): Include.
6816 (class core_target): Add field m_core_file_mappings and
6817 method build_file_mappings.
6818 (core_target::core_target): Call build_file_mappings.
6819 (core_target::~core_target): Free memory associated with
6820 m_core_file_mappings.
6821 (core_target::build_file_mappings): New method.
6822 (core_target::xfer_partial): Use m_core_file_mappings
6823 for memory transfers.
6824 * linux-tdep.c (linux_read_core_file_mappings): New
6825 function.
6826 (linux_core_info_proc_mappings): Rewrite to use
6827 linux_read_core_file_mappings.
6828 (linux_init_abi): Register linux_read_core_file_mappings.
6829
7e183d27
KB
68302020-07-22 Kevin Buettner <kevinb@redhat.com>
6831
6832 * arch-utils.c (default_read_core_file_mappings): New function.
6833 * arch-utils.c (default_read_core_file_mappings): Declare.
6834 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6835 * gdbarch.h, gdbarch.c: Regenerate.
6836
2735d421
KB
68372020-07-22 Kevin Buettner <kevinb@redhat.com>
6838
6839 PR corefiles/25631
6840 * corelow.c (core_target:xfer_partial): Revise
6841 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6842 case after first checking the stratum beneath the core
6843 target.
6844 (has_all_memory): Return true.
6845 * target.c (raw_memory_xfer_partial): Revise comment
6846 regarding use of has_all_memory.
6847
e56cb451
KB
68482020-07-22 Kevin Buettner <kevinb@redhat.com>
6849
6850 * exec.h (section_table_xfer_memory): Revise declaration,
6851 replacing section name parameter with an optional callback
6852 predicate.
6853 * exec.c (section_table_xfer_memory): Likewise.
6854 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6855 of section_table_xfer_memory.
6856
32fa152e
TT
68572020-07-22 Tom Tromey <tromey@adacore.com>
6858
6859 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6860 lookup_symbol_search_name.
6861
a67a1c41
AB
68622020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6863
6864 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6865 redundant local variable.
6866 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6867 reference, not pointer, update code accordingly.
6868
a7b4ff4f
SM
68692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6870 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6871
6872 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6873 * jit.c (jit_breakpoint_re_set_internal): Use the
6874 `skip_jit_symbol_lookup` field.
6875
2340e834
SM
68762020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6877 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6878
6879 * jit.c (jit_read_descriptor): Define the descriptor address once,
6880 use twice.
6881 (jit_breakpoint_deleted): Move the declaration of the loop variable
6882 `iter` into the loop header.
6883 (jit_breakpoint_re_set_internal): Move the declaration of the local
6884 variable `objf_data` to the first point of definition.
6885 (jit_event_handler): Move the declaration of local variables
6886 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6887 Rename `objf` to `jited`.
6888
c1072906
SM
68892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6890
6891 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6892 Remove.
6893 * jit.c (get_jiter_objfile_data): Update.
6894
c8474dc3
TBA
68952020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6896 Simon Marchi <simon.marchi@polymtl.ca>
6897
6898 * jit.c (struct jit_program_space_data): Remove.
6899 (jit_program_space_key): Remove.
6900 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6901 stuff.
6902 (get_jit_program_space_data): Remove.
6903 (jit_breakpoint_deleted): Iterate on all of the program space's
6904 objfiles.
6905 (jit_inferior_init): Likewise.
6906 (jit_breakpoint_re_set_internal): Likewise. Also change return
6907 type to void.
6908 (jit_breakpoint_re_set): Pass current_program_space to
6909 jit_breakpoint_re_set_internal.
6910
77208eb7
SM
69112020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6912
6913 * jit.h (struct jiter_objfile_data) <cached_code_address,
6914 jit_breakpoint>: Move to here from ...
6915 * jit.c (jit_program_space_data): ... here.
6916 (jiter_objfile_data::~jiter_objfile_data): Update.
6917 (jit_breakpoint_deleted): Update.
6918 (jit_breakpoint_re_set_internal): Update.
6919
8c1c720f
SM
69202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6921
6922 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6923 checks.
6924 (jit_read_descriptor): Remove NULL check.
6925 (jit_event_handler): Add an assertion.
6926
0e74a041
SM
69272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6928
6929 * jit.h (struct jit_objfile_data): Split into...
6930 (struct jiter_objfile_data): ... this ...
6931 (struct jited_objfile_data): ... and this.
6932 * objfiles.h (struct objfile) <jit_data>: Remove.
6933 <jiter_data, jited_data>: New fields.
6934 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6935 (jiter_objfile_data::~jiter_objfile_data): ... this.
6936 (get_jit_objfile_data): Rename to ...
6937 (get_jiter_objfile_data): ... this.
6938 (add_objfile_entry): Update.
6939 (jit_read_descriptor): Use get_jiter_objfile_data.
6940 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6941 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6942 (jit_inferior_exit_hook): Use objfile's jited_data field.
6943
238b5c9f
SM
69442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6945
6946 * jit.h: Forward-declare `struct minimal_symbol`.
6947 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6948 constructor, destructor, and an objfile* field.
6949 * jit.c (jit_objfile_data): Remove.
6950 (struct jit_objfile_data): Migrate from here to jit.h.
6951 (jit_objfile_data::~jit_objfile_data): New destructor
6952 implementation with code moved from free_objfile_data.
6953 (free_objfile_data): Delete.
6954 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6955 (jit_find_objf_with_entry_addr): Ditto.
6956 (jit_inferior_exit_hook): Ditto.
6957 (_initialize_jit): Remove the call to
6958 register_objfile_data_with_cleanup.
6959 * objfiles.h (struct objfile) <jit_data>: New field.
6960
fe053b9e
TBA
69612020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6962
6963 * jit.h: Forward-declare `struct objfile`.
6964 (jit_event_handler): Add a second parameter, the JITer objfile.
6965 * jit.c (jit_read_descriptor): Change the signature to take the
6966 JITer objfile as an argument instead of the jit_program_space_data.
6967 (jit_inferior_init): Update the call to jit_read_descriptor.
6968 (jit_event_handler): Use the new JITer objfile argument when calling
6969 jit_read_descriptor.
6970 * breakpoint.c (handle_jit_event): Update the call to
6971 jit_event_handler to pass the JITer objfile.
6972
4cec0c66
JB
69732020-07-21 John Baldwin <jhb@FreeBSD.org>
6974
6975 * gdbarch.c: Regenerate.
6976 * gdbarch.h: Regenerate.
6977 * gdbarch.sh (handle_segmentation_fault): Remove method.
6978 * infrun.c (handle_segmentation_fault): Remove.
6979 (print_signal_received_reason): Remove call to
6980 handle_segmentation_fault.
6981
0e42f66a
JB
69822020-07-21 John Baldwin <jhb@FreeBSD.org>
6983
6984 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6985 Rename to sparc64_linux_report_signal_info and add siggnal
6986 argument.
6987 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6988 instead of sparc64_linux_handle_segmentation_fault.
6989
77bdfeb2
JB
69902020-07-21 John Baldwin <jhb@FreeBSD.org>
6991
6992 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6993 i386_linux_report_signal_info instead of
6994 i386_linux_handle_segmentation_fault.
6995 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6996 to i386_linux_report_signal_info and add siggnal argument.
6997 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6998 of i386_linux_handle_segmentation_fault.
6999 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7000 to i386_linux_report_signal_info and add siggnal argument.
7001
ad97bfc5
JB
70022020-07-21 John Baldwin <jhb@FreeBSD.org>
7003
7004 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7005 hook if present.
7006
272bb05c
JB
70072020-07-21 John Baldwin <jhb@FreeBSD.org>
7008
7009 * gdbarch.c: Regenerate.
7010 * gdbarch.h: Regenerate.
7011 * gdbarch.sh (report_signal_info): New method.
7012 * infrun.c (print_signal_received_reason): Invoke gdbarch
7013 report_signal_info hook if present.
7014
baf8791e
AB
70152020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7016
7017 * python/py-registers.c : Add 'unordered_map' include.
7018 (gdbpy_new_reggroup): Renamed to...
7019 (gdbpy_get_reggroup): ...this. Update to only create register
7020 group descriptors when needed.
7021 (gdbpy_reggroup_iter_next): Update.
7022
f7306dac
AB
70232020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7024
7025 * python/py-registers.c (gdbpy_register_object_data): New static
7026 global.
7027 (gdbpy_register_object_data_init): New function.
7028 (gdbpy_new_register_descriptor): Renamed to...
7029 (gdbpy_get_register_descriptor): ...this, and update to reuse
7030 existing register descriptors where possible.
7031 (gdbpy_register_descriptor_iter_next): Update.
7032 (gdbpy_initialize_registers): Register new gdbarch data.
7033
05c309a8
SM
70342020-07-21 Simon Marchi <simon.marchi@efficios.com>
7035
7036 * linux-nat.c (stopped_pids): Make static.
7037
d1fd641e
SM
70382020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7039
7040 PR ada/26235
7041 * gdbtypes.c (ada_discrete_type_low_bound,
7042 ada_discrete_type_high_bound): Handle undefined bounds.
7043
1de14d77
KR
70442020-07-21 Kamil Rytarowski <n54@gmx.com>
7045
7046 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7047 declaration.
7048 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7049 function.
7050
ed810cc7
JB
70512020-07-20 John Baldwin <jhb@FreeBSD.org>
7052
7053 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7054 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7055 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7056 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7057 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7058 method.
7059
ae5369e7
LC
70602020-07-20 Ludovic Courtès <ludo@gnu.org>
7061
7062 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7063 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7064 which are deprecated in Guile 3.0.
7065 * configure.ac (try_guile_versions): Add "guile-3.0".
7066 * configure (try_guile_versions): Regenerate.
7067 * NEWS: Update entry.
7068
68cf161c
LC
70692020-07-20 Ludovic Courtès <ludo@gnu.org>
7070 Doug Evans <dje@google.com>
7071
7072 PR gdb/21104
7073 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7074 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7075 USING_GUILE_BEFORE_2_2.
7076 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7077 Change type to 'scm_t_port_type *'.
7078 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7079 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7080 parameter and honor it. Update callers.
7081 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7082 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7083 functions.
7084 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7085 USING_GUILE_BEFORE_2_2.
7086 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7087 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7088 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7089 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7090 and 'SCM_PORT_TYPE'.
7091 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7092 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7093 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7094 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7095 [!USING_GUILE_BEFORE_2_2]: New functions.
7096 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7097 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7098 'gdbscm_memory_port_read'.
7099 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7100 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7101 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7102 function.
7103 (ioscm_init_memory_port): Remove.
7104 (ioscm_init_memory_port_stream): New function
7105 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7106 function.
7107 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7108 Return scm_from_uint (0).
7109 (gdbscm_set_memory_port_read_buffer_size_x)
7110 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7111 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7112 Return scm_from_uint (0).
7113 (gdbscm_set_memory_port_write_buffer_size_x)
7114 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7115 * configure.ac (try_guile_versions): Add "guile-2.2".
7116 * configure: Regenerate.
7117 * NEWS: Add entry.
7118
aee91db3
TT
71192020-07-18 Tom Tromey <tom@tromey.com>
7120
7121 * linux-nat.c (linux_multi_process): Remove.
7122 (linux_nat_target::supports_multi_process): Return true.
7123
0e267416
AB
71242020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7125
7126 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7127 (riscv_lookup_target_description): Return pointer out of
7128 unique_ptr.
7129 * target-descriptions.c (allocate_target_description): Add
7130 comment.
7131 (target_desc_deleter::operator()): Likewise.
7132 * target-descriptions.h (struct target_desc_deleter): Moved to
7133 gdbsupport/tdesc.h.
7134 (target_desc_up): Likewise.
7135
f80c8ec4
TT
71362020-07-17 Tom Tromey <tromey@adacore.com>
7137
7138 * linux-nat.c (linux_nat_target::supports_non_stop)
7139 (linux_nat_target::always_non_stop_p): Use "true".
7140 (linux_nat_target::supports_disable_randomization): Use "true" and
7141 "false".
7142
d0ce17d8
CT
71432020-07-16 Caroline Tice <cmtice@google.com>
7144
7145 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7146 (RNGLIST_HEADER_SIZE64): New constant definition.
7147 (struct dwop_section_names): Add rnglists_dwo.
7148 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7149 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7150 (struct dwo_sections): Add rnglists field.
7151 (read_attribut_reprocess): Add tag parameter.
7152 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7153 (cu_debug_rnglists_section): New function (decl & definition).
7154 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7155 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7156 die whose range is being checked; get rnglist section from
7157 cu_debug_rnglists_section, to get from either objfile or dwo file as
7158 appropriate. Add cases for DW_RLE_base_addressx,
7159 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7160 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7161 test inside if-condition and updating complaint message.
7162 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7163 dwarf2_rnglists_process.
7164 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7165 dwarf2_ranges_process.
7166 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7167 need_ranges_base and update comment appropriately. Also pass die tag
7168 to dwarf2_ranges_read.
7169 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7170 need_ranges_base and update comment appropriately. Also pass die tag
7171 to dwarf2_ranges_process.
7172 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7173 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7174 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7175 need_ranges_base and update comment appropriately. Also pass die tag
7176 to read_attribute_reprocess and dwarf2_ranges_read.
7177 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7178 and update function comment appropriately.
7179 (read_loclist_index): Call read_loclists_rnglists_header instead of
7180 read_loclist_header.
7181 (read_rnglist_index): New function.
7182 (read_attribute_reprocess): Add tag parameter. Add code for
7183 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7184 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7185
3dcc261c
AB
71862020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7187
7188 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7189 being resolved.
7190
ccb9eba6
AB
71912020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7192
7193 * arch-utils.c (show_architecture): Update formatting of messages.
7194
cf88be68
SM
71952020-07-12 Simon Marchi <simon.marchi@efficios.com>
7196
7197 * gdbtypes.h (struct type) <bounds>: Handle array and string
7198 types.
7199 * ada-lang.c (assign_aggregate): Use type::bounds on
7200 array/string type.
7201 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7202 * c-varobj.c (c_number_of_children): Likewise.
7203 (c_describe_child): Likewise.
7204 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7205 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7206 (f_type_print_base): Likewise.
7207 * f-valprint.c (f77_array_offset_tbl): Likewise.
7208 (f77_get_upperbound): Likewise.
7209 (f77_print_array_1): Likewise.
7210 * guile/scm-type.c (gdbscm_type_range): Likewise.
7211 * m2-typeprint.c (m2_array): Likewise.
7212 (m2_is_long_set_of_type): Likewise.
7213 * m2-valprint.c (get_long_set_bounds): Likewise.
7214 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7215 * python/py-type.c (typy_range): Likewise.
7216 * rust-lang.c (rust_internal_print_type): Likewise.
7217 * type-stack.c (type_stack::follow_types): Likewise.
7218 * valarith.c (value_subscripted_rvalue): Likewise.
7219 * valops.c (value_cast): Likewise.
7220
509971ae
SM
72212020-07-12 Simon Marchi <simon.marchi@efficios.com>
7222
7223 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7224 callers to use the equivalent accessor methods.
7225
107406b7
SM
72262020-07-12 Simon Marchi <simon.marchi@efficios.com>
7227
7228 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7229 (struct type) <bit_stride>: New method.
7230 (TYPE_BIT_STRIDE): Remove.
7231 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7232
bb789949
SM
72332020-07-12 Simon Marchi <simon.marchi@efficios.com>
7234
7235 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7236 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7237 callers to use the equivalent accessor methods instead.
7238
39498edb
SM
72392020-07-12 Simon Marchi <simon.marchi@efficios.com>
7240
7241 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7242 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7243 callers to use the equivalent accessor methods instead.
7244
3b606f38
SM
72452020-07-12 Simon Marchi <simon.marchi@efficios.com>
7246
7247 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7248 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7249 to use dynamic_prop::kind.
7250
064d9cb9
SM
72512020-07-12 Simon Marchi <simon.marchi@efficios.com>
7252
7253 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7254 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7255 to get the bound property's kind and check against
7256 PROP_UNDEFINED.
7257
5537ddd0
SM
72582020-07-12 Simon Marchi <simon.marchi@efficios.com>
7259
7260 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7261 all callers to use type::range_bounds followed by
7262 dynamic_prop::{low,high}.
7263
8c2e4e06
SM
72642020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7265
7266 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7267 const_val, set_const_val, baton, set_locexpr, set_loclist,
7268 set_addr_offset, variant_parts, set_variant_parts,
7269 original_type, set_original_type>: New methods.
7270 <kind>: Rename to...
7271 <m_kind>: ... this. Update all users to use the new methods
7272 instead.
7273 <data>: Rename to...
7274 <m_data>: ... this. Update all users to use the new methods
7275 instead.
7276
7c6f2712
SM
72772020-07-12 Simon Marchi <simon.marchi@efficios.com>
7278
7279 * gdbtypes.c (get_discrete_bounds): Return failure if
7280 the range type's bounds are not both defined and constant
7281 values.
7282 (get_array_bounds): Update comment. Remove undefined bound check.
7283
599088e3
SM
72842020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7285
7286 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7287 the type::bounds method directly.
7288
c4dfcb36
SM
72892020-07-12 Simon Marchi <simon.marchi@efficios.com>
7290
7291 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7292 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7293 are used to set the range type's bounds to use set_bounds.
7294
0a278aa7
PW
72952020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7296
7297 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7298
cce20f10
PA
72992020-07-10 Pedro Alves <pedro@palves.net>
7300
7301 * gdbthread.h (inferior_ref): Define.
7302 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7303 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7304 * thread.c
7305 (scoped_restore_current_thread::restore):
7306 Adjust to gdb::ref_ptr.
7307 (scoped_restore_current_thread::~scoped_restore_current_thread):
7308 Remove manual decref handling.
7309 (scoped_restore_current_thread::scoped_restore_current_thread):
7310 Adjust to use
7311 inferior_ref::new_reference/thread_info_ref::new_reference.
7312 Incref the thread before calling get_frame_id instead of after.
7313 Let TARGET_CLOSE_ERROR propagate.
7314
6d7aa592
PA
73152020-07-10 Pedro Alves <pedro@palves.net>
7316
7317 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7318 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7319 NOT_AVAILABLE_ERROR.
7320 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7321 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7322
b3e3a4c1
SM
73232020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7324 Pedro Alves <pedro@palves.net>
7325
7326 PR gdb/26199
7327 * infrun.c (threads_are_resumed_pending_p): Delete.
7328 (do_target_wait): Remove threads_are_executing and
7329 threads_are_resumed_pending_p checks from the inferior_matches
7330 lambda. Update comments.
7331
d6cc5d98
PA
73322020-07-10 Pedro Alves <pedro@palves.net>
7333
7334 PR gdb/26199
7335 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7336 executing threads.
7337
7d3badc6
PA
73382020-07-10 Pedro Alves <pedro@palves.net>
7339
7340 PR gdb/26199
7341 * infrun.c (handle_no_resumed): Handle multiple targets.
7342
42bd97a6
PA
73432020-07-10 Pedro Alves <pedro@palves.net>
7344
7345 PR gdb/26199
7346 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7347 target_is_async_p.
7348
43667cc6
PA
73492020-07-10 Pedro Alves <pedro@palves.net>
7350
7351 PR gdb/26199
7352 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7353 threads, not all threads.
7354
96118d11
PA
73552020-07-10 Pedro Alves <pedro@palves.net>
7356
7357 PR gdb/26199
7358 * remote.c (remote_target::open_1): Pass remote target pointer as
7359 data to create_async_event_handler.
7360 (remote_async_inferior_event_handler): Mark async event handler
7361 before returning if the remote target still has either pending
7362 events or unacknowledged notifications.
7363
54904d81
JB
73642020-07-10 John Baldwin <jhb@FreeBSD.org>
7365
7366 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7367 declaration.
7368 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7369 function.
7370
f37e5866
JB
73712020-07-09 John Baldwin <jhb@FreeBSD.org>
7372
7373 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7374 inferior_ptid.
7375
fc238d4a
JB
73762020-07-09 John Baldwin <jhb@FreeBSD.org>
7377
7378 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7379 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7380 AT_FREEBSD_PS_STRINGS.
7381
6e2469ff
HD
73822020-07-08 Hannes Domani <ssbssa@yahoo.de>
7383
7384 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7385 of debugfile path on Windows.
7386
d1076c41
JB
73872020-07-08 John Baldwin <jhb@FreeBSD.org>
7388
7389 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7390 argument to 'data'.
7391
15f3b077
TT
73922020-07-08 Tom Tromey <tromey@adacore.com>
7393
7394 * ada-lang.c (ada_exception_message_1): Use read_memory.
7395
9fc501fd
AB
73962020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7397
7398 PR python/22748
7399 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7400 special handling for inline frames.
7401 * findvar.c (value_of_register_lazy): Skip inline frames when
7402 creating lazy register values.
7403 * frame.c (frame_id_computed_p): Delete definition.
7404 * frame.h (frame_id_computed_p): Delete declaration.
7405
64cb3757
AB
74062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7407
7408 * NEWS: Mention additions to Python API.
7409 * python/py-arch.c (archpy_register_groups): New function.
7410 (arch_object_methods): Add 'register_groups' method.
7411 * python/py-registers.c (reggroup_iterator_object): New struct.
7412 (reggroup_object): New struct.
7413 (gdbpy_new_reggroup): New function.
7414 (gdbpy_reggroup_to_string): New function.
7415 (gdbpy_reggroup_name): New function.
7416 (gdbpy_reggroup_iter): New function.
7417 (gdbpy_reggroup_iter_next): New function.
7418 (gdbpy_new_reggroup_iterator): New function
7419 (gdbpy_initialize_registers): Register new types.
7420 (reggroup_iterator_object_type): Define new Python type.
7421 (gdbpy_reggroup_getset): New static global.
7422 (reggroup_object_type): Define new Python type.
7423 * python/python-internal.h
7424
0f767f94
AB
74252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7426
7427 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7428 * python/py-arch.c (archpy_registers): New function.
7429 (arch_object_methods): Add 'registers' method.
7430 * python/py-registers.c: New file.
7431 * python/python-internal.h
7432 (gdbpy_new_register_descriptor_iterator): Declare.
7433 (gdbpy_initialize_registers): Declare.
7434 * python/python.c (do_start_initialization): Call
7435 gdbpy_initialize_registers.
7436 * NEWS: Mention additions to the Python API.
7437
87dbc774
AB
74382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7439
7440 * NEWS: Mention new Python API method.
7441 * python/py-unwind.c (pending_framepy_architecture): New function.
7442 (pending_frame_object_methods): Add architecture method.
7443
3bc98c0c
AB
74442020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7445
7446 * gdbarch.c: Regenerate.
7447 * gdbarch.h: Regenerate.
7448 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7449 (gdbarch_data): Use internal_error for the case where
7450 deprecated_set_gdbarch_data was originally needed.
7451 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7452 and use passed in obstack.
7453 (libunwind_frame_set_descr): Should no longer get back NULL from
7454 gdbarch_data.
7455 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7456 type.
7457 * user-regs.c (user_regs_init): Update parameters, and use passed
7458 in obstack.
7459 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7460 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7461
d8cc8af6
TV
74622020-07-06 Tom de Vries <tdevries@suse.de>
7463
7464 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7465 End-Of-Sequence in lte_is_less_than.
7466 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7467 "gdb: Don't reorder line table entries too much when sorting".
7468
947f7597
TV
74692020-07-06 Tom de Vries <tdevries@suse.de>
7470
7471 PR tui/26205
7472 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7473
1e7c1b22
TV
74742020-07-05 Tom de Vries <tdevries@suse.de>
7475
7476 PR build/26187
7477 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7478 std::uncaught_exceptions instead of deprecated
7479 std::uncaught_exception.
7480
a36158ec
SM
74812020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7482
7483 * macroexp.h (macro_stringify): Return
7484 gdb::unique_xmalloc_ptr<char>.
7485 * macroexp.c (macro_stringify): Likewise.
7486 * macrotab.c (fixup_definition): Update.
7487
14d960c8
SM
74882020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7489
7490 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7491 (lex_one_token): Update.
7492 * macroexp.c (struct macro_buffer) <release>: Return
7493 gdb::unique_xmalloc_ptr<char>.
7494 (macro_stringify): Update.
7495 (macro_expand): Update.
7496 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7497 * macroexp.h (macro_expand_next): Likewise.
7498
211d5b1c
SM
74992020-07-02 Simon Marchi <simon.marchi@efficios.com>
7500
7501 * macroexp.h (macro_lookup_ftype): Remove.
7502 (macro_expand, macro_expand_once, macro_expand_next): Remove
7503 lookup function parameters, add scope parameter.
7504 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7505 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7506 * macroscope.h (standard_macro_lookup): Change parameter type
7507 to macro_scope.
7508 * macroscope.c (standard_macro_lookup): Likewise.
7509 * c-exp.y (lex_one_token): Update.
7510 * macrocmd.c (macro_expand_command): Likewise.
7511 (macro_expand_once_command): Likewise.
7512
b1a35af2
SM
75132020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7514
7515 * inf-loop.c (inferior_event_handler): Remove client_data param.
7516 * inf-loop.h (inferior_event_handler): Likewise.
7517 * infcmd.c (step_1): Adjust.
7518 * infrun.c (proceed): Adjust.
7519 (fetch_inferior_event): Remove client_data param.
7520 (infrun_async_inferior_event_handler): Adjust.
7521 * infrun.h (fetch_inferior_event): Remove `void *` param.
7522 * linux-nat.c (handle_target_event): Adjust.
7523 * record-btrace.c (record_btrace_handle_async_inferior_event):
7524 Adjust.
7525 * record-full.c (record_full_async_inferior_event_handler):
7526 Adjust.
7527 * remote.c (remote_async_inferior_event_handler): Adjust.
7528
1cdf9e33
TT
75292020-07-01 Tom Tromey <tom@tromey.com>
7530
7531 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7532 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7533
32c1e210
TT
75342020-07-01 Tom Tromey <tom@tromey.com>
7535
7536 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7537 tui_gen_win_info.
7538 (tui_win_info::make_window): Merge with
7539 tui_gen_win_info::make_window.
7540 (tui_win_info::make_visible): Move from tui_gen_win_info.
7541 * tui/tui-win.c (tui_win_info::max_width): Move from
7542 tui_gen_win_info.
7543 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7544 type.
7545 <window_factory>: Likewise.
7546 * tui/tui-layout.c (tui_win_info::resize): Move from
7547 tui_gen_win_info.
7548 (make_standard_window): Change return type.
7549 (get_locator_window, tui_get_window_by_name): Likewise.
7550 (tui_layout_window::apply): Remove a cast.
7551 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7552 (struct tui_win_info): Merge with tui_gen_win_info.
7553 (struct tui_gen_win_info): Remove.
7554
a30cb6da
TT
75552020-07-01 Tom Tromey <tom@tromey.com>
7556
7557 * tui/tui-stack.h (struct tui_locator_window): Derive from
7558 tui_win_info.
7559 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7560 <can_box>: New method.
7561
1eb2161f
TT
75622020-07-01 Tom Tromey <tom@tromey.com>
7563
7564 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7565
7134f2eb
TT
75662020-07-01 Tom Tromey <tom@tromey.com>
7567
7568 * tui/tui-regs.c (tui_data_window::display_registers_from)
7569 (tui_data_window::display_registers_from)
7570 (tui_data_window::first_data_item_displayed)
7571 (tui_data_window::delete_data_content_windows): Update.
7572 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7573 Remove.
7574 (tui_data_window::check_register_values): Update.
7575 (tui_data_item_window::rerender): Add parameters. Update.
7576 (tui_data_item_window::refresh_window): Remove.
7577 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7578 virtual.
7579 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7580 tui_gen_win_info.
7581 <refresh_window, max_height, min_height>: Remove.
7582 <rerender>: Add parameters.
7583 <x, y, visible>: New members.
7584 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7585 <m_item_width>: New member.
7586
22b7b041
TT
75872020-07-01 Tom Tromey <tom@tromey.com>
7588
7589 * tui/tui-regs.c (tui_data_window::show_register_group)
7590 (tui_data_window::check_register_values): Update.
7591 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7592 from item_no.
7593
c9753adb
TT
75942020-07-01 Tom Tromey <tom@tromey.com>
7595
7596 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7597 useless "if".
7598
9ab26b4a
TT
75992020-07-01 Tom Tromey <tom@tromey.com>
7600
7601 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7602 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7603
e555083f
TT
76042020-07-01 Tom Tromey <tom@tromey.com>
7605
7606 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7607 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7608 (struct tui_line_or_address): Move from tui-data.h.
7609 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7610 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7611 (tui_cmd_window, tui_source_window_base, tui_source_window)
7612 (tui_disasm_window): Don't declare.
7613 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7614 to tui-winsource.h.
7615 (SINGLE_KEY): Move to tui-stack.c.
7616
7a02bab7
TT
76172020-07-01 Tom Tromey <tom@tromey.com>
7618
7619 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7620 std::string.
7621 * tui/tui-regs.c (class tab_expansion_file): New.
7622 (tab_expansion_file::write): New method.
7623 (tui_register_format): Change return type. Use
7624 tab_expansion_file.
7625 (tui_get_register, tui_data_window::display_registers_from)
7626 (tui_data_item_window::rerender): Update.
7627 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7628 * tui/tui-io.c (tui_expand_tabs): Remove.
7629
ea68593b
TT
76302020-07-01 Tom Tromey <tom@tromey.com>
7631
7632 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7633
a8caed5d
FS
76342020-07-01 Fangrui Song <maskray@google.com>
7635
7636 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7637
9cdf9820
AKS
76382020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7639
7640 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7641 forms for DW_AT_associated and DW_AT_allocated attributes,
7642 which is already checked in function attr_to_dynamic_prop.
7643
a1520ad8
TT
76442020-06-30 Tom Tromey <tromey@adacore.com>
7645
7646 * dwarf2/read.c (quirk_rust_enum): Correctly call
7647 alloc_rust_variant for default-less enum.
7648
5ac58899
TT
76492020-06-30 Tom Tromey <tromey@adacore.com>
7650
7651 PR build/26183:
7652 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7653 gdb::to_string.
7654
19b187a9
SM
76552020-06-29 Simon Marchi <simon.marchi@efficios.com>
7656
7657 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7658 * gdbarch.h: Re-generate.
7659
cd4c4c07
TT
76602020-06-28 Tom Tromey <tom@tromey.com>
7661
7662 * command.h (cmd_types): Remove.
7663 (cmd_type): Don't declare.
7664 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7665 typedef.
7666 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7667 * cli/cli-decode.c (cmd_type): Remove.
7668
05779d57
PA
76692020-06-27 Pedro Alves <palves@redhat.com>
7670
7671 * fork-child.c (prefork_hook): Adjust.
7672 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7673 Delete.
7674 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7675 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7676 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7677 Remove declarations.
7678 (struct inferior) <set_tty, tty>: New methods.
7679 (struct inferior) <terminal>: Rename to ...
7680 (struct inferior) <m_terminal>: ... this and make private.
7681 * main.c (captured_main_1): Adjust.
7682 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7683 (mi_cmd_inferior_tty_show): Adjust.
7684 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7685 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7686
1776e3e5
NA
76872020-06-26 Nick Alcock <nick.alcock@oracle.com>
7688
7689 * configure.ac: Add --enable-libctf: handle --disable-static
7690 properly.
7691 * acinclude.m4: sinclude ../config/enable.m4.
7692 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7693 (LIBCTF): Substitute in.
7694 (CTF_DEPS): New, likewise.
7695 (CLIBS): libctf needs symbols from libbfd: move earlier.
7696 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7697 flags.
7698 * ctfread.c: Surround in ENABLE_LIBCTF.
7699 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7700 * configure: Regenerate.
7701 * config.in: Likewise.
7702
58373b80
SM
77032020-06-25 Simon Marchi <simon.marchi@efficios.com>
7704
7705 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7706
277474ee
SM
77072020-06-25 Simon Marchi <simon.marchi@efficios.com>
7708
7709 * inferior.h (struct inferior) <terminal>: Change type to
7710 gdb::unique_xmalloc_ptr<char>.
7711 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7712 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7713 field, adjust to unique pointer.
7714 (get_inferior_io_terminal): Adjust to unique pointer.
7715
6d74da72
AB
77162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7717
7718 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7719 registers, not just the known core set of registers.
7720
2e52d038
AB
77212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7722
7723 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7724 fflags, frm, and fcsr registers.
7725 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7726 restore groups.
7727 (riscv_tdesc_unknown_reg): New function.
7728 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7729 tdesc_use_registers.
7730 * riscv-tdep.h (struct gdbarch_tdep): Add
7731 unknown_csrs_first_regnum, unknown_csrs_count,
7732 duplicate_fflags_regnum, duplicate_frm_regnum, and
7733 duplicate_fcsr_regnum fields.
7734
be64fd07
AB
77352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7736
7737 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7738 callback, use the callback (when not null) to help number unknown
7739 registers.
7740 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7741 (tdesc_use_registers): Add extra parameter to declaration.
7742
3b9fce96
AB
77432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7744
7745 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7746 in the file.
7747 (class riscv_pending_register_alias): Likewise.
7748 (riscv_register_feature::register_info): Change 'required_p' field
7749 to 'required', and change its type. Add 'check' member function.
7750 (riscv_register_feature::register_info::check): Define new member
7751 function.
7752 (riscv_xreg_feature): Change initialisation of 'required' field.
7753 (riscv_freg_feature): Likewise.
7754 (riscv_virtual_feature): Likewise.
7755 (riscv_csr_feature): Likewise.
7756 (riscv_check_tdesc_feature): Take extra parameter, the csr
7757 tdesc_feature, rewrite the function to use the new
7758 riscv_register_feature::register_info::check function.
7759 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7760
865bad26
AB
77612020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7762
7763 * features/Makefile: Remove all references to the deleted files
7764 below.
7765 * features/riscv/32bit-csr.c: Deleted.
7766 * features/riscv/32bit-csr.xml: Deleted.
7767 * features/riscv/64bit-csr.c: Deleted.
7768 * features/riscv/64bit-csr.xml: Deleted.
7769 * features/riscv/rebuild-csr-xml.sh: Deleted.
7770
ed69cbc8
AB
77712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7772
7773 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7774 whitespace error for declaration of names member variable.
7775 (struct riscv_register_feature): Add new prefer_first_name member
7776 variable, and fix whitespace error in declaration of registers.
7777 (riscv_xreg_feature): Initialize prefer_first_name field.
7778 (riscv_freg_feature): Likewise.
7779 (riscv_virtual_feature): Likewise.
7780 (riscv_csr_feature): Likewise.
7781 (riscv_register_name): Expand on comments. Remove register name
7782 modifications for CSR and virtual registers.
7783
4445e8f5
AB
77842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7785
7786 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7787 errors.
7788
767a879e
AB
77892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7790
7791 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7792 riscv-opc.h.
7793 (class riscv_pending_register_alias): New class.
7794 (riscv_check_tdesc_feature): Take vector of pending aliases and
7795 populate it as appropriate.
7796 (riscv_setup_register_aliases): Delete.
7797 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7798 to riscv_check_tdesc_feature in all cases. Use the vector to
7799 create the register aliases.
7800
bb6e55f3
RO
78012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7802
7803 * sol2-tdep.c (sol2_static_transform_name): Remove.
7804 (sol2_init_abi): Don't register it.
7805 * gdbarch.sh (static_transform_name): Remove.
7806 * gdbarch.c, gdbarch.h: Regenerate.
7807
7808 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7809 gdbarch_static_transform_name.
7810 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7811 * stabsread.c (define_symbol) <'X'>: Remove.
7812 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7813 handling.
7814 <'V'>: Likewise.
7815 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7816 <'S'>: Remove call to gdbarch_static_transform_name.
7817
c6d36836
RO
78182020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7819
7820 * procfs.c (procfs_pre_trace): New function.
7821 (procfs_target::create_inferior): Pass it to fork_inferior.
7822
a7e6196b
RO
78232020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7824
7825 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7826 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7827 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7828 sol2-tdep.o, sparc-sol2-tdep.o.
7829 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7830 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7831 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7832 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7833
d412e696
RO
78342020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7835
7836 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7837 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7838 Call sol2_init_abi.
7839 Remove calls to set_gdbarch_skip_solib_resolver,
7840 set_gdbarch_core_pid_to_str.
7841 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7842 (i386_sol2_static_transform_name): Remove.
7843 (i386_sol2_init_abi): Call sol2_init_abi.
7844 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7845 set_gdbarch_static_transform_name,
7846 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7847 Use sol2_sigtramp_p.
7848 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7849 (sol2_sigtramp_p): New function.
7850 (sol2_static_transform_name): New function.
7851 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7852 (sol2_init_abi): New function.
7853 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7854 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7855 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7856 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7857 (sparc_sol2_static_transform_name): Remove.
7858 (sparc32_sol2_init_abi): Call sol2_init_abi.
7859 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7860 set_gdbarch_static_transform_name,
7861 set_gdbarch_skip_solib_resolver,
7862 set_gdbarch_core_pid_to_str.
7863 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7864 (sparc_sol2_static_transform_name): Remove
7865 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7866 call sol2_sigtramp_p.
7867 (sparc64_sol2_init_abi): Call sol2_init_abi.
7868 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7869 set_gdbarch_static_transform_name,
7870 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7871
a8654e7d
PW
78722020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7873
7874 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7875 * exec.c (validate_exec_file): If from_tty, set both
7876 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7877 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7878 and from_tty, unconditionally ask a confirmation.
7879
caa7fd04
AB
78802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * target-descriptions.c (tdesc_architecture_name): Protect against
7883 NULL pointer dereference.
7884 (maint_print_xml_tdesc_cmd): New function.
7885 (_initialize_target_descriptions): Register new 'maint print
7886 xml-tdesc' command and give it the filename completer.
7887 * NEWS: Mention new 'maint print xml-tdesc' command.
7888
fbf42f4e
AB
78892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7890
7891 * target-descriptions.c (class tdesc_compatible_info): New class.
7892 (struct target_desc): Change type of compatible vector.
7893 (tdesc_compatible_p): Update for change in type of
7894 target_desc::compatible.
7895 (tdesc_compatible_info_list): New function.
7896 (tdesc_compatible_info_arch_name): New function.
7897 (tdesc_add_compatible): Update for change in type of
7898 target_desc::compatible.
7899 (print_c_tdesc::visit_pre): Likewise.
7900
20821f4e
AB
79012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7902
7903 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7904 whitespace to underscore.
7905 (maint_print_c_tdesc_cmd): Use fake filename for target
7906 descriptions that came from the target.
7907 (_initialize_target_descriptions): Add filename command completion
7908 for 'maint print c-tdesc'.
7909
1fb5ee62
SM
79102020-06-23 Simon Marchi <simon.marchi@efficios.com>
7911
7912 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7913 lines.
7914
fc3ecb3e
SM
79152020-06-23 Simon Marchi <simon.marchi@efficios.com>
7916
7917 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7918 lines.
7919 (dwarf2_find_location_expression): Likewise.
7920 (call_site_parameter_matches): Likewise.
7921 (dwarf2_compile_expr_to_ax): Likewise.
7922 (disassemble_dwarf_expression): Likewise.
7923 (loclist_describe_location): Likewise.
7924
236ef034
PA
79252020-06-23 Pedro Alves <palves@redhat.com>
7926
7927 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7928 progspace-and-thread.h. Include scoped-mock-context.h instead.
7929 (register_to_value_test): Use scoped_mock_context.
7930 * regcache.c: Include "scoped-mock-context.h".
7931 (cooked_read_test): Don't error out if a target is already pushed.
7932 Use scoped_mock_context. Adjust.
7933 * scoped-mock-context.h: New file.
7934
39e7ecca
AB
79352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7936
7937 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7938 initializer.
7939 (ada_language::is_string_type_p): New member function.
7940 * c-lang.c (c_language_data): Delete la_is_string_type_p
7941 initializer.
7942 (cplus_language_data): Likewise.
7943 (asm_language_data): Likewise.
7944 (minimal_language_data): Likewise.
7945 * d-lang.c (d_language_data): Likewise.
7946 * f-lang.c (f_is_string_type_p): Delete function, implementation
7947 moved to f_language::is_string_type_p.
7948 (f_language_data): Delete la_is_string_type_p initializer.
7949 (f_language::is_string_type_p): New member function,
7950 implementation from f_is_string_type_p.
7951 * go-lang.c (go_is_string_type_p): Delete function, implementation
7952 moved to go_language::is_string_type_p.
7953 (go_language_data): Delete la_is_string_type_p initializer.
7954 (go_language::is_string_type_p): New member function,
7955 implementation from go_is_string_type_p.
7956 * language.c (language_defn::is_string_type_p): Define new member
7957 function.
7958 (default_is_string_type_p): Make static, add comment copied from
7959 header file.
7960 (unknown_language_data): Delete la_is_string_type_p initializer.
7961 (unknown_language::is_string_type_p): New member function.
7962 (auto_language_data): Delete la_is_string_type_p initializer.
7963 (auto_language::is_string_type_p): New member function.
7964 * language.h (language_data): Delete la_is_string_type_p field.
7965 (language_defn::is_string_type_p): Declare new function.
7966 (default_is_string_type_p): Delete desclaration, move comment to
7967 definition.
7968 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7969 moved to m2_language::is_string_type_p.
7970 (m2_language_data): Delete la_is_string_type_p initializer.
7971 (m2_language::is_string_type_p): New member function,
7972 implementation from m2_is_string_type_p.
7973 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7974 initializer.
7975 * opencl-lang.c (opencl_language_data): Likewise.
7976 * p-lang.c (pascal_is_string_type_p): Delete function,
7977 implementation moved to pascal_language::is_string_type_p.
7978 (pascal_language_data): Delete la_is_string_type_p initializer.
7979 (pascal_language::is_string_type_p): New member function,
7980 implementation from pascal_is_string_type_p.
7981 * rust-lang.c (rust_is_string_type_p): Delete function,
7982 implementation moved to rust_language::is_string_type_p.
7983 (rust_language_data): Delete la_is_string_type_p initializer.
7984 (rust_language::is_string_type_p): New member function,
7985 implementation from rust_is_string_type_p.
7986 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7987 is_string_type_p.
7988
4ffc13fb
AB
79892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7990
7991 * ada-lang.c (ada_language_data): Delete la_print_typedef
7992 initializer.
7993 (ada_language::print_typedef): New member function.
7994 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7995 (cplus_language_data): Likewise.
7996 (asm_language_data): Likewise.
7997 (minimal_language_data): Likewise.
7998 * d-lang.c (d_language_data): Likewise.
7999 * f-lang.c (f_language_data): Likewise.
8000 (f_language::print_typedef): New member function.
8001 * go-lang.c (go_language_data): Delete la_print_typedef
8002 initializer.
8003 * language.c (language_defn::print_typedef): Define member
8004 function.
8005 (unknown_language_data): Delete la_print_typedef initializer.
8006 (unknown_language::print_typedef): New member function.
8007 (auto_language_data): Delete la_print_typedef initializer.
8008 (auto_language::print_typedef): New member function.
8009 * language.h (language_data): Delete la_print_typedef field.
8010 (language_defn::print_typedef): Declare new member function.
8011 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8012 (default_print_typedef): Delete declaration.
8013 * m2-lang.c (m2_language_data): Delete la_print_typedef
8014 initializer.
8015 (m2_language::print_typedef): New member function.
8016 * objc-lang.c (objc_language_data): Delete la_print_typedef
8017 initializer.
8018 * opencl-lang.c (opencl_language_data): Likewise.
8019 * p-lang.c (pascal_language_data): Likewise.
8020 (pascal_language::print_typedef): New member function.
8021 * rust-lang.c (rust_print_typedef): Delete function,
8022 implementation moved to rust_language::print_typedef.
8023 (rust_language): Delete la_print_typedef initializer.
8024 (rust_language::print_typedef): New member function,
8025 implementation from rust_print_typedef.
8026 * typeprint.c (default_print_typedef): Delete.
8027
d711ee67
AB
80282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8029
8030 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8031 (ada_language::printstr): New member function.
8032 * c-lang.c (c_language_data): Delete la_printstr initializer.
8033 (cplus_language_data): Likewise.
8034 (asm_language_data): Likewise.
8035 (minimal_language_data): Likewise.
8036 * d-lang.c (d_language_data): Likewise.
8037 * f-lang.c (f_printstr): Rename to f_language::printstr.
8038 (f_language_data): Delete la_printstr initializer.
8039 (f_language::printstr): New member function, implementation from
8040 f_printstr.
8041 * go-lang.c (go_language_data): Delete la_printstr initializer.
8042 * language.c (language_defn::printstr): Define new member
8043 function.
8044 (unk_lang_printstr): Delete.
8045 (unknown_language_data): Delete la_printstr initializer.
8046 (unknown_language::printstr): New member function.
8047 (auto_language_data): Delete la_printstr initializer.
8048 (auto_language::printstr): New member function.
8049 * language.h (language_data): Delete la_printstr field.
8050 (language_defn::printstr): Declare new member function.
8051 (LA_PRINT_STRING): Update call to printstr.
8052 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8053 (m2_language_data): Delete la_printstr initializer.
8054 (m2_language::printstr): New member function, implementation from
8055 m2_printstr.
8056 * objc-lang.c (objc_language_data): Delete la_printstr
8057 initializer.
8058 * opencl-lang.c (opencl_language_data): Likewise.
8059 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8060 (pascal_language_data): Delete la_printstr initializer.
8061 (pascal_language::printstr): New member function, implementation
8062 from pascal_printstr.
8063 * p-lang.h (pascal_printstr): Delete declaration.
8064 * rust-lang.c (rust_printstr): Update header comment.
8065 (rust_language_data): Delete la_printstr initializer.
8066 (rust_language::printstr): New member function.
8067
52b50f2c
AB
80682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8069
8070 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8071 (ada_language::printchar): New member function.
8072 * c-lang.c (c_language_data): Delete la_printchar initializer.
8073 (cplus_language_data): Likewise.
8074 (asm_language_data): Likewise.
8075 (minimal_language_data): Likewise.
8076 * d-lang.c (d_language_data): Likewise.
8077 * f-lang.c (f_printchar): Rename to f_language::printchar.
8078 (f_language_data): Delete la_printchar initializer.
8079 (f_language::printchar): New member function, implementation from
8080 f_printchar.
8081 * go-lang.c (go_language_data): Delete la_printchar initializer.
8082 * language.c (unk_lang_printchar): Delete.
8083 (language_defn::printchar): Define new member function.
8084 (unknown_language_data): Delete la_printchar initializer.
8085 (unknown_language::printchar): New member function.
8086 (auto_language_data): Delete la_printchar initializer.
8087 (auto_language::printchar): New member function.
8088 * language.h (language_data): Delete la_printchar field.
8089 (language_defn::printchar): Declare new member function.
8090 (LA_PRINT_CHAR): Update call to printchar.
8091 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8092 (m2_language::printchar): New member function.
8093 * objc-lang.c (objc_language_data): Delete la_printchar
8094 initializer.
8095 * opencl-lang.c (opencl_language_data): Likewise.
8096 * p-lang.c (pascal_language_data): Delete la_printchar
8097 initializer.
8098 (pascal_language::printchar): New member function.
8099 * rust-lang.c (rust_printchar): Rename to
8100 rust_language::printchar.
8101 (rust_language_data): Delete la_printchar initializer.
8102 (rust_language::printchar): New member function, implementation
8103 from rust_printchar.
8104
ec8cec5b
AB
81052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8106
8107 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8108 (ada_language_data): Delete la_emitchar initializer.
8109 (ada_language::emitchar): New member function, implementation from
8110 emit_char.
8111 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8112 (cplus_language_data): Likewise.
8113 (asm_language_data): Likewise.
8114 (minimal_language_data): Likewise.
8115 * d-lang.c (d_language_data): Likewise.
8116 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8117 (f_language_data): Delete la_emitchar initializer.
8118 (f_language::emitchar): New member function, implementation from
8119 f_emit_char.
8120 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8121 * language.c (unk_lang_emit_char): Delete.
8122 (language_defn::emitchar): New member function definition.
8123 (unknown_language_data): Delete la_emitchar initializer.
8124 (unknown_language::emitchar): New member function.
8125 (auto_language_data): Delete la_emitchar initializer.
8126 (auto_language::emitchar): New member function.
8127 * language.h (language_data): Delete la_emitchar field.
8128 (language_defn::emitchar): New member field declaration.
8129 (LA_EMIT_CHAR): Update call to emitchar.
8130 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8131 (m2_language_data): Delete la_emitchar initializer.
8132 (m2_language::emitchar): New member function, implementation from
8133 m2_emit_char.
8134 * objc-lang.c (objc_language_data): Delete la_emitchar
8135 initializer.
8136 * opencl-lang.c (opencl_language_data): Likewise.
8137 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8138 (pascal_language_data): Delete la_emitchar initializer.
8139 (pascal_language::emitchar): New member function, implementation
8140 from pascal_emit_char.
8141 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8142 (rust_language_data): Delete la_emitchar initializer.
8143 (rust_language::emitchar): New member function, implementation
8144 from rust_emitchar.
8145
1bf9c363
AB
81462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8147
8148 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8149 (ada_language_data): Delete la_post_parser initializer.
8150 (ada_language::post_parser): New member function.
8151 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8152 (cplus_language_data): Likewise.
8153 (asm_language_data): Likewise.
8154 (minimal_language_data): Likewise.
8155 * d-lang.c (d_language_data): Likewise.
8156 * f-lang.c (f_language_data): Likewise.
8157 * go-lang.c (go_language_data): Likewise.
8158 * language.c (unknown_language_data): Likewise.
8159 (auto_language_data): Likewise.
8160 * language.h (language_data): Delete la_post_parser field.
8161 (language_defn::post_parser): New member function.
8162 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8163 * objc-lang.c (objc_language_data): Likewise.
8164 * opencl-lang.c (opencl_language_data): Likewise.
8165 * p-lang.c (pascal_language_data): Likewise.
8166 * parse.c (parse_exp_in_context): Update call to post_parser.
8167 (null_post_parser): Delete definition.
8168 * parser-defs.h (null_post_parser): Delete declaration.
8169 * rust-lang.c (rust_language_data): Delete la_post_parser
8170 initializer.
8171
87afa652
AB
81722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8173
8174 * ada-lang.c (parse): Rename to ada_language::parser.
8175 (ada_language_data): Delete la_parser initializer.
8176 (ada_language::parser): New member function, implementation from
8177 parse.
8178 * c-lang.c (c_language_data): Delete la_parser initializer.
8179 (cplus_language_data): Likewise.
8180 (asm_language_data): Likewise.
8181 (minimal_language_data): Likewise.
8182 * d-lang.c (d_language_data): Likewise.
8183 (d_language::parser): New member function.
8184 * f-lang.c (f_language_data): Delete la_parser initializer.
8185 (f_language::parser): New member function.
8186 * go-lang.c (go_language_data): Delete la_parser initializer.
8187 (go_language::parser): New member function.
8188 * language.c (unk_lang_parser): Delete.
8189 (language_defn::parser): Define new member function.
8190 (unknown_language_data): Delete la_parser initializer.
8191 (unknown_language::parser): New member function.
8192 (auto_language_data): Delete la_parser initializer.
8193 (auto_language::parser): New member function.
8194 * language.h (language_data): Delete la_parser field.
8195 (language_defn::parser): Declare new member function.
8196 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8197 (m2_language::parser): New member function.
8198 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8199 * opencl-lang.c (opencl_language_data): Likewise.
8200 * p-lang.c (pascal_language_data): Likewise.
8201 (pascal_language::parser): New member function.
8202 * parse.c (parse_exp_in_context): Update call to parser.
8203 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8204 (rust_language::parser): New member function.
8205
37825800
AB
82062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8207
8208 * top.c (print_gdb_configuration): Print --with-python-libdir
8209 configuration value.
8210
5b860c93
PW
82112020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8212
8213 * NEWS: Mention change to the alias command.
8214
cf00cd6f
PW
82152020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8216
8217 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8218 (alias_command_completer)
8219 (make_alias_options_def_group): New functions.
8220 (alias_opts, alias_option_defs): New struct and array.
8221 (alias_usage_error): Update usage.
8222 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8223 Use option framework.
8224 (_initialize_cli_cmds): Update alias command help.
8225 Update aliases command help.
8226 (show_user):
8227 Add NULL for new default_args lookup_cmd argument.
8228 (valid_command_p): Rename to validate_aliased_command.
8229 Add NULL for new default_args lookup_cmd argument. Verify that the
8230 aliased_command has no default args.
8231 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8232 (lookup_cmd_1, lookup_cmd): New argument default_args.
8233 (add_alias_cmd):
8234 Add NULL for new default_args lookup_cmd argument.
8235 (print_help_for_command): Show default args under the layout
8236 alias some_alias = some_aliased_cmd some_alias_default_arg.
8237 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8238 xfree default_args in destructor.
8239 * cli/cli-script.c (process_next_line, do_define_command):
8240 Add NULL for new default_args lookup_cmd argument.
8241 * command.h: Declare new default_args argument in lookup_cmd
8242 and lookup_cmd_1.
8243 * completer.c (complete_line_internal_1):
8244 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8245 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8246 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8247 Likewise.
8248 * infcmd.c (_initialize_infcmd): Likewise.
8249 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8250 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8251 * python/py-param.c (add_setshow_generic): Likewise.
8252 * remote.c (_initialize_remote): Likewise.
8253 * top.c (execute_command): Prepend default_args if command has some.
8254 (set_verbose):
8255 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8256 * tracepoint.c (validate_actionline, encode_actions_1):
8257 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8258
bd920864
TBA
82592020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8260
8261 * jit.c (jit_read_descriptor): Use bool as the return type.
8262 (jit_breakpoint_re_set_internal): Use bool as the return type.
8263 Invert the return value logic; return true if the jit breakpoint
8264 has been successfully initialized.
8265 (jit_inferior_init): Update the call to
8266 jit_breakpoint_re_set_internal.
8267
f8098322
PA
82682020-06-22 Pedro Alves <palves@redhat.com>
8269
8270 PR gdb/25939
8271 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8272 Use the current inferior instead. Don't return
8273 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8274 wait again.
8275 * sol-thread.c (sol_thread_target::wait): Don't reference
8276 inferior_ptid.
8277 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8278 (sol_update_thread_list_callback): Use the current inferior's pid
8279 instead of inferior_ptid.
8280
196535a6
RO
82812020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8282
8283 * procfs.c: Cleanup many comments.
8284
8285 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8286 (AFTER_WATCHFLAG): Replace by value.
8287
8288 (MAIN_PROC_NAME_FORMAT): Inline ...
8289 (create_procinfo): ... here.
8290
8291 (procfs_debug_inferior): Remove SYS_exec handling.
8292 (syscall_is_exec): Likewise.
8293 (procfs_set_exec_trap): Likewise.
8294
8295 (syscall_is_lwp_exit): Inline in callers.
8296 (syscall_is_exit): Likewise.
8297 (syscall_is_exec): Likewise.
8298 (syscall_is_lwp_create): Likewise.
8299
8300 (invalidate_cache): Remove #if 0 code.
8301
8302 (make_signal_thread_runnable): Remove.
8303 (procfs_target::resume): Remove #if 0 code.
8304
cf6f3e86
RO
83052020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8306
8307 PR gdb/25939
8308 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8309 call ...
8310 (procfs_target::create_inferior): ... here.
8311
48e9cc84
PW
83122020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8313
8314 * exec.c (validate_exec_file): Ensure the build-id is up to
8315 date by calling reopen_exec_file (that checks file timestamp
8316 to decide to re-read the file).
8317
3922b302
PA
83182020-06-18 Pedro Alves <palves@redhat.com>
8319
8320 PR gdb/25412
8321 * gdbthread.h (delete_thread, delete_thread_silent)
8322 (find_thread_ptid): Update comments.
8323 * thread.c (current_thread_): New global.
8324 (is_current_thread): Move higher, and reimplement.
8325 (inferior_thread): Reimplement.
8326 (set_thread_exited): Use bool. Add assertions.
8327 (add_thread_silent): Simplify thread-reuse handling by always
8328 calling delete_thread.
8329 (delete_thread): Remove intro comment.
8330 (find_thread_ptid): Skip exited threads.
8331 (switch_to_thread_no_regs): Write to current_thread_.
8332 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8333 INFERIOR_PTID. Clear current_thread_.
8334
6dbdab44
PA
83352020-06-18 Pedro Alves <palves@redhat.com>
8336
8337 * aix-thread.c (pd_update): Use switch_to_thread.
8338
2da4b788
PA
83392020-06-18 Pedro Alves <palves@redhat.com>
8340
8341 * ravenscar-thread.c (ravenscar_thread_target): Update.
8342 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8343 (ravenscar_thread_target::add_active_thread): ... this. Don't
8344 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8345 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8346
50838d1b
PA
83472020-06-18 Pedro Alves <palves@redhat.com>
8348
8349 * nat/windows-nat.c (current_windows_thread): Remove.
8350 * nat/windows-nat.h (current_windows_thread): Remove.
8351 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8352 Adjust.
8353 (display_selectors): Adjust to fetch the current
8354 windows_thread_info based on inferior_ptid.
8355 (fake_create_process): No longer write to current_windows_thread.
8356 (windows_nat_target::get_windows_debug_event):
8357 Don't set inferior_ptid or current_windows_thread.
8358 (windows_nat_target::wait): Adjust to not rely on
8359 current_windows_thread.
8360 (do_initial_windows_stuff): Now a method of windows_nat_target.
8361 Switch to the last_ptid thread.
8362 (windows_nat_target::attach): Adjust.
8363 (windows_nat_target::detach): Use switch_to_no_thread instead of
8364 writing to inferior_ptid directly.
8365 (windows_nat_target::create_inferior): Adjust.
8366
31ce04e9
PA
83672020-06-18 Pedro Alves <palves@redhat.com>
8368
8369 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8370
1ee1a363
PA
83712020-06-18 Pedro Alves <palves@redhat.com>
8372
8373 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8374 after creating it, instead of writing to inferior_ptid. Don't
8375 write to inferior_ptid.
8376
6d350754
PA
83772020-06-18 Pedro Alves <palves@redhat.com>
8378
8379 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8380
5d971d48
PA
83812020-06-18 Pedro Alves <palves@redhat.com>
8382
8383 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8384 it, instead of writing to inferior_ptid.
8385
86e57d1b
PA
83862020-06-18 Pedro Alves <palves@redhat.com>
8387
8388 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8389 to inferior_ptid.
8390
f2e1c129
PA
83912020-06-18 Pedro Alves <palves@redhat.com>
8392
8393 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8394 instead of writing to inferior_ptid directly.
8395
60db1b85
PA
83962020-06-18 Pedro Alves <palves@redhat.com>
8397
8398 * corelow.c (core_target::close): Use switch_to_no_thread instead
8399 of writing to inferior_ptid directly.
8400 (add_to_thread_list, core_target_open): Use switch_to_thread
8401 instead of writing to inferior_ptid directly.
8402
fe7d6a8d
PA
84032020-06-18 Pedro Alves <palves@redhat.com>
8404
8405 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8406 inferior_ptid.
8407 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8408 inferior_ptid.
8409 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8410 inferior_ptid directly.
8411 (darwin_nat_target::init_thread_list): Switch to thread, instead
8412 of writing to inferior_ptid.
8413 (darwin_nat_target::attach): Don't write to inferior_ptid.
8414 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8415
975f8708
PA
84162020-06-18 Pedro Alves <palves@redhat.com>
8417
8418 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8419 thread.
8420 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8421 Instead use switch_to_thread.
8422 (gnu_nat_target::detach): Use switch_to_no_thread
8423 instead of writing to inferior_ptid directly. Used passed-in
8424 inferior instead of looking up the inferior by pid.
8425
1a204730
PA
84262020-06-18 Pedro Alves <palves@redhat.com>
8427
8428 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8429 inferior_ptid.
8430
ebe84f23
PA
84312020-06-18 Pedro Alves <palves@redhat.com>
8432
8433 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8434 inferior_ptid.
8435 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8436 thread.
8437 (nto_procfs_target::detach): Avoid referencing
8438 inferior_ptid. Use switch_to_no_thread instead of writing to
8439 inferior_ptid directly.
8440 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8441 instead of writing to inferior_ptid directly.
8442 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8443 to thread.
8444
191f02e5
PA
84452020-06-18 Pedro Alves <palves@redhat.com>
8446
8447 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8448 after creating it, instead of writing to inferior_ptid.
8449 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8450 to inferior_ptid directly.
8451 (gdbsim_target::wait): Don't write to inferior_ptid.
8452
0ac55310
PA
84532020-06-18 Pedro Alves <palves@redhat.com>
8454
8455 * remote.c (remote_target::remote_notice_new_inferior): Use
8456 switch_to_thread instead of writing to inferior_ptid directly.
8457 (remote_target::add_current_inferior_and_thread): Use
8458 switch_to_no_thread instead of writing to inferior_ptid directly.
8459 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8460 and switch_to_thread instead of using set_current_inferior or
8461 writing to inferior_ptid directly.
8462
5233f39b
PA
84632020-06-18 Pedro Alves <palves@redhat.com>
8464
8465 * tracectf.c (ctf_target_open): Switch to added thread instead of
8466 writing to inferior_ptid directly.
8467 (ctf_target::close): Use switch_to_no_thread instead of writing to
8468 inferior_ptid directly.
8469
087e161b
PA
84702020-06-18 Pedro Alves <palves@redhat.com>
8471
8472 * tracefile-tfile.c (tfile_target_open): Don't write to
8473 inferior_ptid directly, instead switch to added thread.
8474 (tfile_target::close): Use switch_to_no_thread instead of writing
8475 to inferior_ptid directly.
8476
7fb43e53
PA
84772020-06-18 Pedro Alves <palves@redhat.com>
8478
8479 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8480 (procfs_target::detach): Use switch_to_no_thread
8481 instead of writing to inferior_ptid directly.
8482 (do_attach): Change return type to void. Switch to the added
8483 thread.
8484 (procfs_target::create_inferior): Switch to the added thread.
8485 (procfs_do_thread_registers): Don't write to inferior_ptid.
8486
18493a00
PA
84872020-06-18 Pedro Alves <palves@redhat.com>
8488
8489 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8490 of writing to inferior_ptid.
8491 (scoped_restore_exited_inferior): Delete.
8492 (handle_vfork_child_exec_or_exit): Simplify using
8493 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8494 instead of writing to inferior_ptid.
8495 (THREAD_STOPPED_BY): Delete.
8496 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8497 (thread_stopped_by_hw_breakpoint): Delete.
8498 (save_waitstatus): Use
8499 scoped_restore_current_thread+switch_to_thread, and call
8500 target_stopped_by_watchpoint instead of
8501 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8502 instead of thread_stopped_by_sw_breakpoint, and
8503 target_stopped_by_hw_breakpoint instead of
8504 thread_stopped_by_hw_breakpoint.
8505 (handle_inferior_event)
8506 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8507 inferior_ptid directly, nor
8508 set_current_inferior/set_current_program_space. Use
8509 switch_to_thread / switch_to_inferior_no_thread instead.
8510
a0776b13
PA
85112020-06-18 Pedro Alves <palves@redhat.com>
8512
8513 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8514 instead of writing to inferior_ptid.
8515
6155c136
PA
85162020-06-18 Pedro Alves <palves@redhat.com>
8517
8518 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8519 added thread.
8520 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8521 to the added thread.
8522 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8523 instead of writing to inferior_ptid.
8524
c5316fc6
PA
85252020-06-18 Pedro Alves <palves@redhat.com>
8526
8527 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8528 (register_to_value_test): Mock a program_space too. Heap-allocate
8529 the address space. Don't write to inferior_ptid. Use
8530 switch_to_thread instead.
8531
8df01799
PA
85322020-06-18 Pedro Alves <palves@redhat.com>
8533
8534 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8535 Delete.
8536 (find_signalled_thread()): New, factored out from
8537 linux_make_corefile_notes and adjusted to handle exited threads.
8538 (linux_make_corefile_notes): Adjust to use the new
8539 find_signalled_thread.
8540
41792d68
PA
85412020-06-18 Pedro Alves <palves@redhat.com>
8542
8543 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8544 of saving/restoring inferior_ptid.
8545
612f258a
TT
85462020-06-17 Tom Tromey <tom@tromey.com>
8547
8548 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8549 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8550 declare.
8551 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8552
efb763a5
SM
85532020-06-15 Simon Marchi <simon.marchi@efficios.com>
8554
8555 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8556 of partial symtabs.
8557
2951f6c0
SM
85582020-06-17 Simon Marchi <simon.marchi@efficios.com>
8559
8560 * regformats/reg-arm.dat: Remove.
8561 * regformats/reg-bfin.dat: Remove.
8562 * regformats/reg-cris.dat: Remove.
8563 * regformats/reg-crisv32.dat: Remove.
8564 * regformats/reg-m32r.dat: Remove.
8565 * regformats/reg-tilegx.dat: Remove.
8566 * regformats/reg-tilegx32.dat: Remove.
8567
7d458ea5
SM
85682020-06-17 Simon Marchi <simon.marchi@efficios.com>
8569
8570 * features/Makefile (WHICH): Remove arm files.
8571 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8572 * regformats/arm/arm-with-neon.dat: Remove.
8573 * regformats/arm/arm-with-vfpv2.dat: Remove.
8574 * regformats/arm/arm-with-vfpv3.dat: Remove.
8575
3af96c0d
SM
85762020-06-17 Simon Marchi <simon.marchi@efficios.com>
8577
8578 * features/Makefile (XMLTOC): Remove rx.xml.
8579
b25e22fd
PA
85802020-06-17 Pedro Alves <palves@redhat.com>
8581
8582 * gdbthread.h (thread_control_state) <trap_expected> Update
8583 comments.
8584
a78a19b1
AB
85852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8586
8587 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8588 ada_language::lookup_symbol_nonlocal.
8589 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8590 (ada_language::lookup_symbol_nonlocal): New member function,
8591 implementation from ada_lookup_symbol_nonlocal.
8592 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8593 initializer.
8594 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8595 initializer.
8596 (cplus_language::lookup_symbol_nonlocal): New member function.
8597 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8598 (minimal_language_data) Likewise.
8599 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8600 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8601 initializer.
8602 (d_language::lookup_symbol_nonlocal): New member function.
8603 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8604 initializer.
8605 (f_language::lookup_symbol_nonlocal): New member function.
8606 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8607 initializer.
8608 * language.c (unknown_language_data): Likewise.
8609 (auto_language_data): Likewise.
8610 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8611 field.
8612 (language_defn::lookup_symbol_nonlocal): New member function.
8613 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8614 initializer.
8615 * objc-lang.c (objc_language_data): Likewise.
8616 * opencl-lang.c (opencl_language_data): Likewise.
8617 * p-lang.c (pascal_language_data): Likewise.
8618 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8619 rust_language::lookup_symbol_nonlocal.
8620 (rust_language_data): Delete la_lookup_symbol_nonlocal
8621 initializer.
8622 (rust_language::lookup_symbol_nonlocal): New member function,
8623 implementation from rust_lookup_symbol_nonlocal.
8624 * symtab.c (lookup_symbol_aux): Update call to
8625 lookup_symbol_nonlocal.
8626 (basic_lookup_symbol_nonlocal): Rename to...
8627 (language_defn::lookup_symbol_nonlocal): ...this, and update
8628 header comment. Remove language_defn parameter, and replace with
8629 uses of `this'.
8630 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8631
ebe2334e
AB
86322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8633
8634 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8635 initializer.
8636 (ada_language::value_print_inner): New member function.
8637 * c-lang.c (c_language_data): Delete la_value_print_inner
8638 initializer.
8639 (cplus_language_data): Likewise.
8640 (asm_language_data): Likewise.
8641 (minimal_language_data): Likewise.
8642 * d-lang.c (d_language_data): Likewise.
8643 (d_language::value_print_inner): New member function.
8644 * f-lang.c (f_language_data): Delete la_value_print_inner
8645 initializer.
8646 (f_language::value_print_inner): New member function.
8647 * f-lang.h (f_value_print_innner): Rename to...
8648 (f_value_print_inner): ...this (note spelling of 'inner').
8649 * f-valprint.c (f_value_print_innner): Rename to...
8650 (f_value_print_inner): ...this (note spelling of 'inner').
8651 * go-lang.c (go_language_data): Delete la_value_print_inner
8652 initializer.
8653 (go_language::value_print_inner): New member function.
8654 * language.c (language_defn::value_print_inner): Define new member
8655 function.
8656 (unk_lang_value_print_inner): Delete.
8657 (unknown_language_data): Delete la_value_print_inner initializer.
8658 (unknown_language::value_print_inner): New member function.
8659 (auto_language_data): Delete la_value_print_inner initializer.
8660 (auto_language::value_print_inner): New member function.
8661 * language.h (language_data): Delete la_value_print_inner field.
8662 (language_defn::value_print_inner): Delcare new member function.
8663 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8664 initializer.
8665 (m2_language::value_print_inner): New member function.
8666 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8667 initializer.
8668 * opencl-lang.c (opencl_language_data): Likewise.
8669 * p-lang.c (pascal_language_data): Likewise.
8670 (pascal_language::value_print_inner): New member function.
8671 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8672 initializer.
8673 (rust_language::value_print_inner): New member function.
8674 * valprint.c (do_val_print): Update call to value_print_inner.
8675
a1d1fa3e
AB
86762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8677
8678 * ada-lang.c (ada_language_data): Delete la_value_print
8679 initializer.
8680 (ada_language::value_print): New member function.
8681 * c-lang.c (c_language_data): Delete la_value_print initializer.
8682 (cplus_language_data): Likewise.
8683 (asm_language_data): Likewise.
8684 (minimal_language_data): Likewise.
8685 * d-lang.c (d_language_data): Likewise.
8686 * f-lang.c (f_language_data): Likewise.
8687 * go-lang.c (go_language_data): Likewise.
8688 * language.c (unk_lang_value_print): Delete.
8689 (language_defn::value_print): Define new member function.
8690 (unknown_language_data): Delete la_value_print initializer.
8691 (unknown_language::value_print): New member function.
8692 (auto_language_data): Delete la_value_print initializer.
8693 (auto_language::value_print): New member function.
8694 * language.h (language_data): Delete la_value_print field.
8695 (language_defn::value_print): Declare new member function.
8696 (LA_VALUE_PRINT): Update call to value_print.
8697 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8698 * objc-lang.c (objc_language_data): Likewise.
8699 * opencl-lang.c (opencl_language_data): Likewise.
8700 * p-lang.c (pascal_language_data): Likewise.
8701 (pascal_language::value_print): New member function.
8702 * rust-lang.c (rust_language_data): Delete la_value_print
8703 initializer.
8704
f16a9f57
AB
87052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8706
8707 * ada-lang.c (ada_watch_location_expression): Rename to
8708 ada_language::watch_location_expression.
8709 (ada_language_data): Delete la_watch_location_expression
8710 initializer.
8711 (ada_language::watch_location_expression): New member function,
8712 implementation from ada_watch_location_expression.
8713 * breakpoint.c (watch_command_1): Update call to
8714 watch_location_expression.
8715 * c-lang.c (c_watch_location_expression): Rename to
8716 language_defn::watch_location_expression.
8717 (c_language_data): Delete la_watch_location_expression
8718 initializer.
8719 (cplus_language_data): Likewise.
8720 (asm_language_data): Likewise.
8721 (minimal_language_data): Likewise.
8722 * c-lang.h (c_watch_location_expression): Delete declaration.
8723 * d-lang.c (d_language_data): Delete la_watch_location_expression
8724 initializer.
8725 * f-lang.c (f_language_data): Likewise.
8726 * go-lang.c (go_language_data): Likewise.
8727 * language.c (language_defn::watch_location_expression): Member
8728 function implementation from c_watch_location_expression.
8729 (unknown_language_data): Delete la_watch_location_expression
8730 initializer.
8731 (auto_language_data): Likewise.
8732 * language.h (language_data): Delete la_watch_location_expression
8733 field.
8734 (language_defn::watch_location_expression): Declare new member
8735 function.
8736 * m2-lang.c (m2_language_data): Delete
8737 la_watch_location_expression initializer.
8738 * objc-lang.c (objc_language_data): Likewise.
8739 * opencl-lang.c (opencl_language_data): Likewise.
8740 * p-lang.c (pascal_language_data): Likewise.
8741 * rust-lang.c (rust_watch_location_expression): Rename to
8742 rust_language::watch_location_expression.
8743 (rust_language_data): Delete la_watch_location_expression
8744 initializer.
8745 (rust_language::watch_location_expression): New member function,
8746 implementation from rust_watch_location_expression.
8747
7e56227d
AB
87482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8749
8750 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8751 ada_language::collect_symbol_completion_matches.
8752 (ada_language_data): Delete la_collect_symbol_completion_matches
8753 initializer.
8754 (ada_language::collect_symbol_completion_matches): New member
8755 function, implementation from
8756 ada_collect_symbol_completion_matches.
8757 * c-lang.c (c_language_data): Delete
8758 la_collect_symbol_completion_matches initializer.
8759 (cplus_language_data): Likewise.
8760 (asm_language_data): Likewise.
8761 (minimal_language_data): Likewise.
8762 * d-lang.c (d_language_data): Likewise.
8763 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8764 f_language::collect_symbol_completion_matches.
8765 (f_language_data): Delete la_collect_symbol_completion_matches
8766 initializer.
8767 (f_language::collect_symbol_completion_matches) New member
8768 function, implementation from f_collect_symbol_completion_matches.
8769 * go-lang.c (go_language_data): Delete
8770 la_collect_symbol_completion_matches initializer.
8771 * language.c (unknown_language_data): Likewise.
8772 (auto_language_data): Likewise.
8773 * language.h (language_data): Delete
8774 la_collect_symbol_completion_matches field.
8775 (language_defn::collect_symbol_completion_matches): New member
8776 function.
8777 * m2-lang.c (m2_language_data): Delete
8778 la_collect_symbol_completion_matches initializer.
8779 * objc-lang.c (objc_language_data): Likewise.
8780 * opencl-lang.c (opencl_language_data): Likewise.
8781 * p-lang.c (pascal_language_data): Likewise.
8782 * rust-lang.c (rust_language_data): Likewise.
8783 * symtab.c (default_collect_symbol_completion_matches): Delete.
8784 (collect_symbol_completion_matches): Update call to
8785 collect_symbol_completion_matches.
8786 (collect_symbol_completion_matches_type): Likewise.
8787 * symtab.h (default_collect_symbol_completion_matches): Delete
8788 declaration.
8789
53fc67f8
AB
87902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8791
8792 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8793 (ada_language_data): Delete la_word_break_characters initializer.
8794 (ada_language::word_break_characters): New member function.
8795 * c-lang.c (c_language_data): Delete la_word_break_characters
8796 initializer.
8797 (cplus_language_data): Likewise.
8798 (asm_language_data): Likewise.
8799 (minimal_language_data): Likewise.
8800 * completer.c: Update global comment.
8801 (advance_to_expression_complete_word_point): Update call to
8802 word_break_characters.
8803 (complete_files_symbols): Likewise.
8804 (complete_line_internal_1): Likewise.
8805 (default_completer_handle_brkchars): Likewise.
8806 (skip_quoted_chars): Likewise.
8807 * d-lang.c (d_language_data): Delete la_word_break_characters
8808 initializer.
8809 * f-lang.c (f_word_break_characters): Delete.
8810 (f_language_data): Delete la_word_break_characters initializer.
8811 (f_language::word_break_characters): New member function.
8812 * go-lang.c (go_language_data): Delete la_word_break_characters
8813 initializer.
8814 * language.c (unknown_language_data): Likewise.
8815 (auto_language_data): Likewise.
8816 * language.h (default_word_break_characters): Move declaration to
8817 earlier in the file.
8818 (language_data): Delete la_word_break_characters field.
8819 (language_defn::word_break_characters): New member function.
8820 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8821 initializer.
8822 * objc-lang.c (objc_language_data): Likewise.
8823 * opencl-lang.c (opencl_language_data): Likewise.
8824 * p-lang.c (pascal_language_data): Likewise.
8825 * rust-lang.c (rust_language_data): Likewise.
8826
c9debfb9
AB
88272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8828
8829 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8830 (ada_language_data): Delete la_get_symbol_name_matcher
8831 initializer.
8832 (language_defn::get_symbol_name_matcher_inner): New member
8833 function.
8834 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8835 initializer.
8836 (cplus_language_data): Likewise.
8837 (cplus_language::get_symbol_name_matcher_inner): New member
8838 function.
8839 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8840 (minimal_language_data): Likewise.
8841 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8842 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8843 initializer.
8844 * dictionary.c (iter_match_first_hashed): Update call to
8845 get_symbol_name_matcher.
8846 (iter_match_next_hashed): Likewise.
8847 (iter_match_next_linear): Likewise.
8848 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8849 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8850 initializer.
8851 (f_language::get_symbol_name_matcher_inner): New member function.
8852 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8853 initializer.
8854 * language.c (default_symbol_name_matcher): Update header comment,
8855 make static.
8856 (language_defn::get_symbol_name_matcher): New definition.
8857 (language_defn::get_symbol_name_matcher_inner): Likewise.
8858 (get_symbol_name_matcher): Delete.
8859 (unknown_language_data): Delete la_get_symbol_name_matcher
8860 initializer.
8861 (auto_language_data): Likewise.
8862 * language.h (language_data): Delete la_get_symbol_name_matcher
8863 field.
8864 (language_defn::get_symbol_name_matcher): New member function.
8865 (language_defn::get_symbol_name_matcher_inner): Likewise.
8866 (default_symbol_name_matcher): Delete declaration.
8867 * linespec.c (find_methods): Update call to
8868 get_symbol_name_matcher.
8869 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8870 initializer.
8871 * minsyms.c (lookup_minimal_symbol): Update call to
8872 get_symbol_name_matcher.
8873 (iterate_over_minimal_symbols): Likewise.
8874 * objc-lang.c (objc_language_data): Delete
8875 la_get_symbol_name_matcher initializer.
8876 * opencl-lang.c (opencl_language_data): Likewise.
8877 * p-lang.c (pascal_language_data): Likewise.
8878 * psymtab.c (psymbol_name_matches): Update call to
8879 get_symbol_name_matcher.
8880 * rust-lang.c (rust_language_data): Delete
8881 la_get_symbol_name_matcher initializer.
8882 * symtab.c (symbol_matches_search_name): Update call to
8883 get_symbol_name_matcher.
8884 (compare_symbol_name): Likewise.
8885
9a49ad8c
AB
88862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8887
8888 * ada-lang.c (ada_language_data): Delete la_compute_program
8889 initializer.
8890 * c-lang.c (c_language_data): Likewise.
8891 (c_language::compute_program): New member function.
8892 (cplus_language_data): Delete la_compute_program initializer.
8893 (cplus_language::compute_program): New member function.
8894 (asm_language_data): Delete la_compute_program initializer.
8895 (minimal_language_data): Likewise.
8896 * c-lang.h (c_compute_program): Update comment.
8897 (cplus_compute_program): Likewise.
8898 * compile/compile-c-support.c (c_compute_program): Likewise.
8899 (cplus_compute_program): Likewise.
8900 * compile/compile.c (compile_to_object): Update call to
8901 la_compute_program.
8902 * d-lang.c (d_language_data): Delete la_compute_program
8903 initializer.
8904 * f-lang.c (f_language_data): Likewise.
8905 * go-lang.c (go_language_data): Likewise.
8906 * language.c (unknown_language_data): Likewise.
8907 (auto_language_data): Likewise.
8908 * language.h (language_data): Delete la_compute_program field.
8909 (language_defn::compute_program): New member function.
8910 * m2-lang.c (m2_language_data): Delete la_compute_program
8911 initializer.
8912 * objc-lang.c (objc_language_data): Likewise.
8913 * opencl-lang.c (opencl_language_data): Likewise.
8914 * p-lang.c (pascal_language_data): Likewise.
8915 * rust-lang.c (rust_language_data): Likewise.
8916
eff93b4d
AB
89172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8918
8919 * ada-lang.c (ada_language_data) Delete
8920 la_class_name_from_physname initializer.
8921 * c-lang.c (c_language_data): Likewise.
8922 (cplus_language_data): Likewise.
8923 (cplus_language::class_name_from_physname): New member function.
8924 (asm_language_data): Delete la_class_name_from_physname
8925 initializer.
8926 (minimal_language_data): Likewise.
8927 * d-lang.c (d_language_data): Likewise.
8928 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8929 method on language_defn class.
8930 (guess_full_die_structure_name): Likewise.
8931 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8932 initializer.
8933 * go-lang.c (go_language_data): Likewise.
8934 * language.c (language_class_name_from_physname): Delete.
8935 (unk_lang_class_name): Delete.
8936 (unknown_language_data): Delete la_class_name_from_physname
8937 initializer.
8938 (auto_language_data): Likewise.
8939 * language.h (language_data): Delete la_class_name_from_physname
8940 field.
8941 (language_defn::class_name_from_physname): New function.
8942 (language_class_name_from_physname): Delete declaration.
8943 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8944 initializer.
8945 * objc-lang.c (objc_language_data): Likewise.
8946 * opencl-lang.c (opencl_language_data): Likewise.
8947 * p-lang.c (pascal_language_data): Likewise.
8948 * rust-lang.c (rust_language_data): Likewise.
8949
de543742
TT
89502020-06-16 Tom Tromey <tom@tromey.com>
8951
8952 * tui/tui-data.h (STATUS_NAME): New macro.
8953 * tui/tui-layout.c (tui_remove_some_windows)
8954 (initialize_known_windows, tui_register_window)
8955 (tui_layout_split::remove_windows, initialize_layouts)
8956 (tui_new_layout_command): Don't use hard-coded window names.
8957
a350efd4
TT
89582020-06-16 Tom Tromey <tom@tromey.com>
8959
8960 PR tui/25348:
8961 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8962 tui_initialize_readline. Only run once. Call rl_initialize.
8963 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8964 tui_initialize_readline.
8965 * tui/tui-io.c (tui_setup_io): Call
8966 tui_ensure_readline_initialized.
8967 * tui/tui-interp.c (tui_interp::init): Update.
8968
39ec0490
TT
89692020-06-16 Tom Tromey <tom@tromey.com>
8970
8971 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8972 Also preserve the status window.
8973
d2d1ea20
TT
89742020-06-16 Tom Tromey <tom@tromey.com>
8975
8976 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8977 where m_window==nullptr.
8978
66920317
TT
89792020-06-15 Tom Tromey <tromey@adacore.com>
8980
8981 * windows-nat.c (windows_nat::handle_output_debug_string):
8982 Update.
8983 (windows_nat::handle_ms_vc_exception): Update.
8984 * target.h (target_read_string): Change API.
8985 * target.c (target_read_string): Change API.
8986 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8987 Update.
8988 * solib-frv.c (frv_current_sos): Update.
8989 * solib-dsbt.c (dsbt_current_sos): Update.
8990 * solib-darwin.c (darwin_current_sos): Update.
8991 * linux-thread-db.c (inferior_has_bug): Update.
8992 * expprint.c (print_subexp_standard): Update.
8993 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8994 (ada_exception_message_1): Update.
8995
a5d871dd
TT
89962020-06-15 Tom Tromey <tromey@adacore.com>
8997
8998 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8999
670e35fa
TT
90002020-06-15 Tom Tromey <tromey@adacore.com>
9001
9002 * valprint.c (read_string): Update comment.
9003 * target.c (MIN): Remove.
9004 (target_read_string): Rewrite.
9005
f5272a3b
TT
90062020-06-15 Tom Tromey <tromey@adacore.com>
9007
9008 * corefile.c (read_memory_string): Remove.
9009 * ada-valprint.c (ada_value_print_ptr): Update.
9010 * ada-lang.h (ada_tag_name): Change return type.
9011 * ada-lang.c (type_from_tag): Update.
9012 (ada_tag_name_from_tsd): Change return type. Use
9013 target_read_string.
9014 (ada_tag_name): Likewise.
9015 * gdbcore.h (read_memory_string): Don't declare.
9016
2c074f49
HD
90172020-06-14 Hannes Domani <ssbssa@yahoo.de>
9018
9019 * symtab.c (rbreak_command): Ignore Windows drive colon.
9020
6a17d503
SM
90212020-06-12 Simon Marchi <simon.marchi@efficios.com>
9022
9023 * NEWS: Mention removed GDBserver host support.
9024
453c733f
NC
90252020-06-12 Nelson Chu <nelson.chu@sifive.com>
9026
9027 * features/riscv/rebuild-csr-xml.sh: Updated.
9028
2b4e6a3f
TT
90292020-06-11 Tom Tromey <tom@tromey.com>
9030
9031 PR gdb/18318:
9032 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9033
4412332f
JG
90342020-06-09 Jonny Grant <jg@jguk.org>
90352020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9036
9037 * main.c (captured_main_1): Don't print new line after help.
9038 (print_gdb_help): add mailing list and IRC channel information
9039 to --help. Add new lines between items in the footer. Remove
9040 quotes around bug url.
9041
2f33032a
KS
90422020-06-11 Keith Seitz <keiths@redhat.com>
9043
9044 PR gdb/21356
9045 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9046 Resolve typedefs for type length calculations.
9047
7ab96794
TV
90482020-06-10 Tom de Vries <tdevries@suse.de>
9049
9050 PR ada/24713
9051 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9052 (write_psymbols): Enable .gdb_index for ada.
9053 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9054 ada.
9055
e5f3ece2
TV
90562020-06-10 Tom de Vries <tdevries@suse.de>
9057
9058 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9059 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9060 namei" instead of "const char *name" argument.
9061 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9062 dw2_symtab_iter_init.
9063
940da03e
SM
90642020-06-08 Simon Marchi <simon.marchi@efficios.com>
9065
9066 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9067 to use type::field and field::type instead.
9068
b6cdac4b
SM
90692020-06-08 Simon Marchi <simon.marchi@efficios.com>
9070
9071 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9072 to use field::type instead.
9073
5d14b6e5
SM
90742020-06-08 Simon Marchi <simon.marchi@efficios.com>
9075
9076 * gdbtypes.h (struct field) <type, set_type>: New methods.
9077 Rename `type` field to...
9078 <m_type>: ... this. Change references throughout to use type or
9079 set_type methods.
9080 (FIELD_TYPE): Use field::type. Change call sites that modify
9081 the field's type to use field::set_type instead.
9082
3d967001
SM
90832020-06-08 Simon Marchi <simon.marchi@efficios.com>
9084
9085 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9086 to use type::index_type instead.
9087
262abc0d
SM
90882020-06-08 Simon Marchi <simon.marchi@efficios.com>
9089
9090 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9091 methods.
9092 (TYPE_INDEX_TYPE): Use type::index_type.
9093 * gdbtypes.c (create_array_type_with_stride): Likewise.
9094
82836c92
TT
90952020-06-07 Tom Tromey <tom@tromey.com>
9096
9097 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9098 parameter.
9099 (generic_value_print): Update.
9100
940dace9
AB
91012020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9102
9103 Revert commit 982a38f60b0.
9104 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9105
982a38f6
AB
91062020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9107
9108 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9109 avoid use after free.
9110
82f06518
TV
91112020-06-05 Tom de Vries <tdevries@suse.de>
9112
9113 * NEWS: Fix typos.
9114
f8c41851
SM
91152020-06-04 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9118 the per_bfd object.
9119 (dwarf2_read_debug_names): Likewise.
9120 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9121 object when re-using a per_bfd object with an index.
9122
f9b5d5ea
TV
91232020-06-03 Tom de Vries <tdevries@suse.de>
9124
9125 PR symtab/26046
9126 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9127 children for C++.
9128 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9129 DW_TAG_subprogram.
9130
f6eee2d0
AB
91312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9132
9133 * ada-lang.c (ada_language_data): Delete skip_trampoline
9134 initializer.
9135 * c-lang.c (c_language_data): Likewise.
9136 (cplus_language_data): Likewise.
9137 (cplus_language::skip_trampoline): New member function.
9138 (asm_language_data): Delete skip_trampoline initializer.
9139 (minimal_language_data): Likewise.
9140 * d-lang.c (d_language_data): Likewise.
9141 * f-lang.c (f_language_data): Likewise.
9142 * go-lang.c (go_language_data): Likewise.
9143 * language.c (unk_lang_trampoline): Delete function.
9144 (skip_language_trampoline): Update.
9145 (unknown_language_data): Delete skip_trampoline initializer.
9146 (auto_language_data): Likewise.
9147 * language.h (language_data): Delete skip_trampoline field.
9148 (language_defn::skip_trampoline): New function.
9149 * m2-lang.c (m2_language_data): Delete skip_trampoline
9150 initializer.
9151 * objc-lang.c (objc_skip_trampoline): Delete function, move
9152 implementation to objc_language::skip_trampoline.
9153 (objc_language_data): Delete skip_trampoline initializer.
9154 (objc_language::skip_trampoline): New member function with
9155 implementation from objc_skip_trampoline.
9156 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9157 initializer.
9158 * p-lang.c (pascal_language_data): Likewise.
9159 * rust-lang.c (rust_language_data): Likewise.
9160
0a50df5d
AB
91612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9162
9163 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9164 (ada_language::demangle): New member function.
9165 * c-lang.c (c_language_data): Delete la_demangle initializer.
9166 (cplus_language_data): Delete la_demangle initializer.
9167 (cplus_language::demangle): New member function.
9168 (asm_language_data): Delete la_demangle initializer.
9169 (minimal_language_data): Delete la_demangle initializer.
9170 * d-lang.c (d_language_data): Delete la_demangle initializer.
9171 (d_language::demangle): New member function.
9172 * f-lang.c (f_language_data): Delete la_demangle initializer.
9173 (f_language::demangle): New member function.
9174 * go-lang.c (go_language_data): Delete la_demangle initializer.
9175 (go_language::demangle): New member function.
9176 * language.c (language_demangle): Update.
9177 (unk_lang_demangle): Delete.
9178 (unknown_language_data): Delete la_demangle initializer.
9179 (unknown_language::demangle): New member function.
9180 (auto_language_data): Delete la_demangle initializer.
9181 (auto_language::demangle): New member function.
9182 * language.h (language_data): Delete la_demangle field.
9183 (language_defn::demangle): New function.
9184 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9185 * objc-lang.c (objc_language_data): Delete la_demangle
9186 initializer.
9187 (objc_language::demangle): New member function.
9188 * opencl-lang.c (opencl_language_data): Delete la_demangle
9189 initializer.
9190 * p-lang.c (pascal_language_data): Likewise.
9191 * rust-lang.c (rust_language_data): Likewise.
9192 (rust_language::demangle): New member function.
9193
fbfb0a46
AB
91942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9195
9196 * ada-lang.c (ada_language_data): Delete la_print_type
9197 initializer.
9198 (ada_language::print_type): New member function.
9199 * c-lang.c (c_language_data): Delete la_print_type initializer.
9200 (c_language::print_type): New member function.
9201 (cplus_language_data): Delete la_print_type initializer.
9202 (cplus_language::print_type): New member function.
9203 (asm_language_data): Delete la_print_type initializer.
9204 (asm_language::print_type): New member function.
9205 (minimal_language_data): Delete la_print_type initializer.
9206 (minimal_language::print_type): New member function.
9207 * d-lang.c (d_language_data): Delete la_print_type initializer.
9208 (d_language::print_type): New member function.
9209 * f-lang.c (f_language_data): Delete la_print_type initializer.
9210 (f_language::print_type): New member function.
9211 * go-lang.c (go_language_data): Delete la_print_type initializer.
9212 (go_language::print_type): New member function.
9213 * language.c (unk_lang_print_type): Delete.
9214 (unknown_language_data): Delete la_print_type initializer.
9215 (unknown_language::print_type): New member function.
9216 (auto_language_data): Delete la_print_type initializer.
9217 (auto_language::print_type): New member function.
9218 * language.h (language_data): Delete la_print_type field.
9219 (language_defn::print_type): New function.
9220 (LA_PRINT_TYPE): Update.
9221 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9222 (m2_language::print_type): New member function.
9223 * objc-lang.c (objc_language_data): Delete la_print_type
9224 initializer.
9225 (objc_language::print_type): New member function.
9226 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9227 to opencl_language::print_type.
9228 (opencl_language_data): Delete la_print_type initializer.
9229 (opencl_language::print_type): New member function, implementation
9230 from opencl_print_type.
9231 * p-lang.c (pascal_language_data): Delete la_print_type
9232 initializer.
9233 (pascal_language::print_type): New member function.
9234 * rust-lang.c (rust_print_type): Delete, implementation moved to
9235 rust_language::print_type.
9236 (rust_language_data): Delete la_print_type initializer.
9237 (rust_language::print_type): New member function, implementation
9238 from rust_print_type.
9239
6f827019
AB
92402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9241
9242 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9243 implementation moves to...
9244 (ada_language::sniff_from_mangled_name): ...here. Update return
9245 type.
9246 (ada_language_data): Delete la_sniff_from_mangled_name
9247 initializer.
9248 * c-lang.c (c_language_data): Likewise.
9249 (cplus_language_data): Likewise.
9250 (cplus_language::sniff_from_mangled_name): New member function,
9251 implementation taken from gdb_sniff_from_mangled_name.
9252 (asm_language_data): Delete la_sniff_from_mangled_name
9253 initializer.
9254 (minimal_language_data): Likewise.
9255 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9256 implementation moves to cplus_language::sniff_from_mangled_name.
9257 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9258 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9259 moves to...
9260 (d_language::sniff_from_mangled_name): ...here.
9261 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9262 * f-lang.c (f_language_data): Likewise.
9263 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9264 moves to...
9265 (go_language::sniff_from_mangled_name): ...here.
9266 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9267 * language.c (language_sniff_from_mangled_name): Delete.
9268 (unknown_language_data): Delete la_sniff_from_mangled_name
9269 initializer.
9270 (auto_language_data): Likewise.
9271 * language.h (language_data): Delete la_sniff_from_mangled_name
9272 field.
9273 (language_defn::sniff_from_mangled_name): New function.
9274 (language_sniff_from_mangled_name): Delete declaration.
9275 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9276 field.
9277 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9278 implementation moves to...
9279 (objc_language::sniff_from_mangled_name): ...here.
9280 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9281 * opencl-lang.c (opencl_language_data): Likewise.
9282 * p-lang.c (pascal_language_data): Likewise.
9283 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9284 implementation moves to...
9285 (rust_language::sniff_from_mangled_name): ...here.
9286 (rust_language_data): Delete la_sniff_from_mangled_name
9287 initializer.
9288 * symtab.c (symbol_find_demangled_name): Call
9289 sniff_from_mangled_name member function.
9290
fb8006fd
AB
92912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9292
9293 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9294 initializer.
9295 * c-lang.c (c_language_data): Likewise.
9296 (cplus_language_data): Likewise.
9297 (cplus_language::search_name_hash): New member function.
9298 (asm_language_data): Delete la_search_name_hash initializer.
9299 (minimal_language_data): Likewise.
9300 * d-lang.c (d_language_data): Likewise.
9301 * dictionary.c (default_search_name_hash): Rename to...
9302 (language_defn::search_name_hash): ...this.
9303 * f-lang.c (f_language_data): Likewise.
9304 (f_language::search_name_hash): New member function.
9305 * go-lang.c (go_language_data): Delete la_search_name_hash
9306 initializer.
9307 * language.c (unknown_language_data): Likewise.
9308 (auto_language_data): Likewise.
9309 * language.h (struct language_data): Delete la_search_name_hash
9310 field.
9311 (language_defn::search_name_hash): Declare new member function.
9312 (default_search_name_hash): Delete declaration.
9313 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9314 initializer.
9315 * objc-lang.c (objc_language_data): Likewise.
9316 * opencl-lang.c (opencl_language_data): Likewise.
9317 * p-lang.c (pascal_language_data): Likewise.
9318 * rust-lang.c (rust_language_data): Likewise.
9319 * symtab.c (search_name_hash): Update call.
9320
8e25bafe
AB
93212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9322
9323 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9324 initializer.
9325 * c-lang.c (class compile_instance): Declare.
9326 (c_language_data): Delete la_get_compile_instance initializer.
9327 (c_language::get_compile_instance): New member function.
9328 (cplus_language_data): Delete la_get_compile_instance initializer.
9329 (cplus_language::get_compile_instance): New member function.
9330 (asm_language_data): Delete la_get_compile_instance initializer.
9331 (minimal_language_data): Likewise.
9332 * c-lang.h (c_get_compile_context): Update comment.
9333 (cplus_get_compile_context): Update comment.
9334 * compile/compile.c (compile_to_object): Update calls, don't rely
9335 on function pointer being NULL.
9336 * d-lang.c (d_language_data): Delete la_get_compile_instance
9337 initializer.
9338 * f-lang.c (f_language_data): Likewise.
9339 * go-lang.c (go_language_data): Likewise.
9340 * language.c (unknown_language_data): Likewise.
9341 (auto_language_data): Likewise.
9342 * language.h (language_data): Delete la_get_compile_instance field.
9343 (language_defn::get_compile_instance): New member function.
9344 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9345 initializer.
9346 * objc-lang.c (objc_language_data): Likewise.
9347 * opencl-lang.c (opencl_language_data): Likewise.
9348 * p-lang.c (pascal_language_data): Likewise.
9349 * rust-lang.c (rust_language_data): Likewise.
9350
4009ee92
AB
93512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9352
9353 * ada-lang.c (ada_add_all_symbols): Update comment.
9354 (ada_iterate_over_symbols): Delete, move implementation to...
9355 (ada_language::iterate_over_symbols): ...here, a new member
9356 function, rewrite to use range based for loop.
9357 (ada_language_data): Delete la_iterate_over_symbols initializer.
9358 * c-lang.c (c_language_data): Likewise.
9359 (cplus_language_data): Likewise.
9360 (asm_language_data): Likewise.
9361 (minimal_language_data): Likewise.
9362 * d-lang.c (d_language_data): Likewise.
9363 * f-lang.c (f_language_data): Likewise.
9364 * go-lang.c (go_language_data): Likewise.
9365 * language.c (unknown_language_data): Likewise.
9366 (auto_language_data): Likewise.
9367 * language.h (language_data): Delete la_iterate_over_symbols field.
9368 (language_defn::iterate_over_symbols): New member function.
9369 (LA_ITERATE_OVER_SYMBOLS): Update.
9370 * linespec.c (iterate_over_all_matching_symtabs): Update.
9371 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9372 initializer.
9373 * objc-lang.c (objc_language_data): Likewise.
9374 * opencl-lang.c (opencl_language_data): Likewise.
9375 * p-lang.c (pascal_language_data): Likewise.
9376 * rust-lang.c (rust_language_data): Likewise.
9377
54f4ca46
AB
93782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9379
9380 * ada-lang.c (ada_language_data): Delete
9381 la_lookup_transparent_type initializer.
9382 * c-lang.c (c_language_data): Likewise.
9383 (cplus_language_data): Likewise.
9384 (cplus_language::lookup_transparent_type): New member function.
9385 (asm_language_data): Delete la_lookup_transparent_type
9386 initializer.
9387 (minimal_language_data): Likewise.
9388 * d-lang.c (d_language_data): Likewise.
9389 * f-lang.c (f_language_data): Likewise.
9390 * go-lang.c (go_language_data): Likewise.
9391 * language.c (unknown_language_data): Likewise.
9392 (auto_language_data): Likewise.
9393 * language.h (struct language_data): Delete
9394 la_lookup_transparent_type field.
9395 (language_defn::lookup_transparent_type): New member function.
9396 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9397 initializer.
9398 * objc-lang.c (objc_language_data): Likewise.
9399 * opencl-lang.c (opencl_language_data): Likewise.
9400 * p-lang.c (pascal_language_data): Likewise.
9401 * rust-lang.c (rust_language_data): Likewise.
9402 * symtab.c (symbol_matches_domain): Update call.
9403
1fb314aa
AB
94042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9405
9406 * ada-lang.c (ada_language_arch_info): Delete function, move
9407 implementation to...
9408 (ada_language::language_arch_info): ...here, a new member
9409 function.
9410 (ada_language_data): Delete la_language_arch_info.
9411 * c-lang.c (c_language_data): Likewise.
9412 (c_language::language_arch_info): New member function.
9413 (cplus_language_arch_info): Delete function, move
9414 implementation to...
9415 (cplus_language::language_arch_info): ...here, a new member
9416 function.
9417 (cplus_language_data): Delete la_language_arch_info.
9418 (asm_language_data): Likewise.
9419 (asm_language::language_arch_info): New member function.
9420 (minimal_language_data): Delete la_language_arch_info.
9421 (minimal_language::language_arch_info): New member function.
9422 * d-lang.c (d_language_arch_info): Delete function, move
9423 implementation to...
9424 (d_language::language_arch_info): ...here, a new member
9425 function.
9426 (d_language_data): Delete la_language_arch_info.
9427 * f-lang.c (f_language_arch_info): Delete function, move
9428 implementation to...
9429 (f_language::language_arch_info): ...here, a new member
9430 function.
9431 (f_language_data): Delete la_language_arch_info.
9432 * go-lang.c (go_language_arch_info): Delete function, move
9433 implementation to...
9434 (go_language::language_arch_info): ...here, a new member
9435 function.
9436 (go_language_data): Delete la_language_arch_info.
9437 * language.c (unknown_language_data): Likewise.
9438 (unknown_language::language_arch_info): New member function.
9439 (auto_language_data): Delete la_language_arch_info.
9440 (auto_language::language_arch_info): New member function.
9441 (language_gdbarch_post_init): Update call to
9442 la_language_arch_info.
9443 * language.h (language_data): Delete la_language_arch_info
9444 function pointer.
9445 (language_defn::language_arch_info): New function.
9446 * m2-lang.c (m2_language_arch_info): Delete function, move
9447 implementation to...
9448 (m2_language::language_arch_info): ...here, a new member
9449 function.
9450 (m2_language_data): Delete la_language_arch_info.
9451 * objc-lang.c (objc_language_arch_info): Delete function, move
9452 implementation to...
9453 (objc_language::language_arch_info): ...here, a new member
9454 function.
9455 (objc_language_data): Delete la_language_arch_info.
9456 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9457 implementation to...
9458 (opencl_language::language_arch_info): ...here, a new member
9459 function.
9460 (opencl_language_data): Delete la_language_arch_info.
9461 * p-lang.c (pascal_language_arch_info): Delete function, move
9462 implementation to...
9463 (pascal_language::language_arch_info): ...here, a new member
9464 function.
9465 (pascal_language_data): Delete la_language_arch_info.
9466 * rust-lang.c (rust_language_arch_info): Delete function, move
9467 implementation to...
9468 (rust_language::language_arch_info): ...here, a new member
9469 function.
9470 (rust_language_data): Delete la_language_arch_info.
9471
48448202
AB
94722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9473
9474 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9475 initializer.
9476 * c-lang.c (c_language_data): Likewise.
9477 (cplus_language_data): Likewise.
9478 (cplus_language::pass_by_reference_info): New method.
9479 (asm_language_data): Delete la_pass_by_reference initializer.
9480 (minimal_language_data): Likewise.
9481 * cp-abi.c (cp_pass_by_reference): Remove use of
9482 default_pass_by_reference.
9483 * d-lang.c (d_language_data): Likewise.
9484 * f-lang.c (f_language_data): Likewise.
9485 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9486 default_pass_by_reference.
9487 * go-lang.c (go_language_data): Likewise.
9488 * language.c (language_pass_by_reference): Update.
9489 (default_pass_by_reference): Delete.
9490 (unknown_language_data): Delete la_pass_by_reference
9491 initializer.
9492 (auto_language_data): Likewise.
9493 * language.h (struct language_data): Delete la_pass_by_reference
9494 field.
9495 (language_defn::pass_by_reference_info): New member function.
9496 (default_pass_by_reference): Delete declaration.
9497 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9498 initializer.
9499 * objc-lang.c (objc_language_data): Likewise.
9500 * opencl-lang.c (opencl_language_data): Likewise.
9501 * p-lang.c (pascal_language_data): Likewise.
9502 * rust-lang.c (rust_language_data): Likewise.
9503
15e5fd35
AB
95042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9505
9506 * ada-lang.c (ada_read_var_value): Delete function, move
9507 implementation to...
9508 (ada_language::read_var_value): ...here.
9509 (ada_language_data): Delete la_read_var_value initializer.
9510 * c-lang.c (c_language_data): Likewise.
9511 (cplus_language_data): Likewise.
9512 (minimal_language_data): Likewise.
9513 * d-lang.c (d_language_data): Likewise.
9514 * f-lang.c (f_language_data): Likewise.
9515 * findvar.c (default_read_var_value): Rename to...
9516 (language_defn::read_var_value): ...this.
9517 * findvar.c (read_var_value): Update header comment, and change to
9518 call member function instead of function pointer.
9519 * go-lang.c (go_language_data): Likewise.
9520 * language.c (unknown_language_data): Delete la_read_var_value
9521 initializer.
9522 (auto_language_data): Likewise.
9523 * language.h (struct language_data): Delete la_read_var_value
9524 field.
9525 (language_defn::read_var_value): New member function.
9526 (default_read_var_value): Delete declaration.
9527 * m2-lang.c (m2_language_data): Delete la_read_var_value
9528 initializer.
9529 * objc-lang.c (objc_language_data): Likewise.
9530 * opencl-lang.c (opencl_language_data): Likewise.
9531 * p-lang.c (pascal_language_data): Likewise.
9532 * rust-lang.c (rust_language_data): Likewise.
9533 * value.h (default_read_var_value): Delete declaration.
9534
5bd40f2a
AB
95352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9536
9537 * ada-lang.c (ada_print_array_index): Delete function, move
9538 implementation to...
9539 (ada_language::print_array_index): ...here.
9540 (ada_language_data): Delete la_print_array_index initializer.
9541 * c-lang.c (c_language_data): Likewise.
9542 (cplus_language_data): Likewise.
9543 (minimal_language_data): Likewise.
9544 * d-lang.c (d_language_data): Likewise.
9545 * f-lang.c (f_language_data): Likewise.
9546 * go-lang.c (go_language_data): Likewise.
9547 * language.c (default_print_array_index): Delete function, move
9548 implementation to...
9549 (language_defn::print_array_index): ...here.
9550 (unknown_language_data): Delete la_print_array_index initializer.
9551 (auto_language_data): Likewise.
9552 * language.h (struct language_data): Delete la_print_array_index
9553 field.
9554 (language_defn::print_array_index): New member function.
9555 (LA_PRINT_ARRAY_INDEX): Update.
9556 (default_print_array_index): Delete declaration.
9557 * m2-lang.c (m2_language_data): Delete la_print_array_index
9558 initializer.
9559 * objc-lang.c (objc_language_data): Likewise.
9560 * opencl-lang.c (opencl_language_data): Likewise.
9561 * p-lang.c (pascal_language_data): Likewise.
9562 * rust-lang.c (rust_language_data): Likewise.
9563
0874fd07
AB
95642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9565
9566 * gdb/ada-lang.c (ada_language_defn): Convert to...
9567 (ada_language_data): ...this.
9568 (class ada_language): New class.
9569 (ada_language_defn): New static global.
9570 * gdb/c-lang.c (c_language_defn): Convert to...
9571 (c_language_data): ...this.
9572 (class c_language): New class.
9573 (c_language_defn): New static global.
9574 (cplus_language_defn): Convert to...
9575 (cplus_language_data): ...this.
9576 (class cplus_language): New class.
9577 (cplus_language_defn): New static global.
9578 (asm_language_defn): Convert to...
9579 (asm_language_data): ...this.
9580 (class asm_language): New class.
9581 (asm_language_defn): New static global.
9582 (minimal_language_defn): Convert to...
9583 (minimal_language_data): ...this.
9584 (class minimal_language): New class.
9585 (minimal_language_defn): New static global.
9586 * gdb/d-lang.c (d_language_defn): Convert to...
9587 (d_language_data): ...this.
9588 (class d_language): New class.
9589 (d_language_defn): New static global.
9590 * gdb/f-lang.c (f_language_defn): Convert to...
9591 (f_language_data): ...this.
9592 (class f_language): New class.
9593 (f_language_defn): New static global.
9594 * gdb/go-lang.c (go_language_defn): Convert to...
9595 (go_language_data): ...this.
9596 (class go_language): New class.
9597 (go_language_defn): New static global.
9598 * gdb/language.c (unknown_language_defn): Remove declaration.
9599 (current_language): Initialize to nullptr, real initialization is
9600 moved to _initialize_language.
9601 (languages): Delete global.
9602 (language_defn::languages): Define.
9603 (set_language_command): Use language_defn::languages.
9604 (set_language): Likewise.
9605 (range_error): Likewise.
9606 (language_enum): Likewise.
9607 (language_def): Likewise.
9608 (add_set_language_command): Use language_def::languages for the
9609 language list, and language_def to lookup language pointers.
9610 (skip_language_trampoline): Use language_defn::languages.
9611 (unknown_language_defn): Convert to...
9612 (unknown_language_data): ...this.
9613 (class unknown_language): New class.
9614 (unknown_language_defn): New static global.
9615 (auto_language_defn): Convert to...
9616 (auto_language_data): ...this.
9617 (class auto_language): New class.
9618 (auto_language_defn): New static global.
9619 (language_gdbarch_post_init): Use language_defn::languages.
9620 (_initialize_language): Initialize current_language.
9621 * gdb/language.h (struct language_defn): Rename to...
9622 (struct language_data): ...this.
9623 (struct language_defn): New.
9624 (auto_language_defn): Delete.
9625 (unknown_language_defn): Delete.
9626 (minimal_language_defn): Delete.
9627 (ada_language_defn): Delete.
9628 (asm_language_defn): Delete.
9629 (c_language_defn): Delete.
9630 (cplus_language_defn): Delete.
9631 (d_language_defn): Delete.
9632 (f_language_defn): Delete.
9633 (go_language_defn): Delete.
9634 (m2_language_defn): Delete.
9635 (objc_language_defn): Delete.
9636 (opencl_language_defn): Delete.
9637 (pascal_language_defn): Delete.
9638 (rust_language_defn): Delete.
9639 * gdb/m2-lang.c (m2_language_defn): Convert to...
9640 (m2_language_data): ...this.
9641 (class m2_language): New class.
9642 (m2_language_defn): New static global.
9643 * gdb/objc-lang.c (objc_language_defn): Convert to...
9644 (objc_language_data): ...this.
9645 (class objc_language): New class.
9646 (objc_language_defn): New static global.
9647 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9648 (opencl_language_data): ...this.
9649 (class opencl_language): New class.
9650 (opencl_language_defn): New static global.
9651 * gdb/p-lang.c (pascal_language_defn): Convert to...
9652 (pascal_language_data): ...this.
9653 (class pascal_language): New class.
9654 (pascal_language_defn): New static global.
9655 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9656 language pointer, update comment format.
9657 * gdb/rust-lang.c (rust_language_defn): Convert to...
9658 (rust_language_data): ...this.
9659 (class rust_language): New class.
9660 (rust_language_defn): New static global.
9661
1313c56e
AB
96622020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9663
9664 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9665 member variable.
9666 <m_stmt_at_address>: New member variable.
9667 (lnp_state_machine::record_line): Don't record some lines, update
9668 tracking of is_stmt at the same address.
9669 (lnp_state_machine::lnp_state_machine): Initialise new member
9670 variables.
9671
b7ed9f3d
ST
96722020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9673
9674 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9675 "-include gnu-nat-mig.h".
9676 * gnu-nat-mig.h: New file.
9677 * gnu-nat.c: Include "gnu-nat-mig.h".
9678 (exc_server, msg_reply_server, notify_server,
9679 process_reply_server): Remove declarations.
9680
14a8ad62
ST
96812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9682
9683 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9684 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9685 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9686 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9687 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9688 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9689 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9690 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9691 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9692 to gnu_nat_target class.
9693 * gnu-nat.c: Likewise.
9694 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9695 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9696 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9697 object.
9698 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9699 instead of `gnu_target'.
9700
0af5e106
ST
97012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9702
9703 * i386-gnu-tdep.c: Include "gdbcore.h"
9704 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9705 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9706 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9707 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9708 i386_gnu_sigcontext_addr): New functions
9709 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9710 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9711 tdep.
9712
078f2fc9
ST
97132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9714
9715 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9716 before fork_inferior call. Avoid calling it if target_is_pushed returns
9717 true.
9718
53dff92c
ST
97192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9720
9721 * gnu-nat.h (gnu_target): New variable declaration.
9722 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9723 gnu_target.
9724 * gnu-nat.c (gnu_target): New variable.
9725 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9726 add_thread_silent, and add_thread calls.
9727 (gnu_nat_target::create_inferior): Pass gnu_target to
9728 add_thread_silent, thread_change_ptid call.
9729 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9730 call.
9731
5a8b8627
ST
97322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9733
9734 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9735 (gnu_nat_target::find_memory_regions): Remove unused
9736 `old_address' variable.
9737
366f550a
ST
97382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9739
9740 * gnu-nat.c: Include "gdbarch.h".
9741
f14871bf
ST
97422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9743
9744 * reply_mig_hack.awk (Error return): Cast function through
9745 void *, to bypass compiler function call check.
9746
c6887cfb
ST
97472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9748
9749 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9750 $(srcdir)/reply_mig_hack.awk.
9751
6930bffe
ST
97522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9753
9754 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9755
112c22ed
JG
97562020-05-30 Jonny Grant <jg@jguk.org>
9757
9758 * configure.ac (ACX_BUGURL): change bug URL to https.
9759
f68f85b5
PA
97602020-05-30 Pedro Alves <palves@redhat.com>
9761
9762 * cp-support.c (replace_typedefs_template): New.
9763 (replace_typedefs_qualified_name): Handle
9764 DEMANGLE_COMPONENT_TEMPLATE.
9765
976ca316
SM
97662020-05-29 Simon Marchi <simon.marchi@efficios.com>
9767
9768 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9769 dwarf2/index-cache.h, dwarf2/index-write.c,
9770 dwarf2/index-write.h, dwarf2/line-header.c,
9771 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9772 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9773 variables and fields from `dwarf2_per_objfile` to just
9774 `per_objfile` throughout.
9775
989ade05
SM
97762020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9777
9778 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9779 <push_dwarf_reg_entry_value>: Add comment.
9780
c47bae85
KB
97812020-05-28 Kevin Buettner <kevinb@redhat.com>
9782 Keith Seitz <keiths@redhat.com>
9783
9784 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9785 instead of PyEval_ReleaseLock.
9786 (class gdbpy_gil): Move to earlier in file.
9787 (finalize_python): Set gdb_python_initialized.
9788 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9789 when not initialized.
9790
44486dcf
SM
97912020-05-28 Simon Marchi <simon.marchi@efficios.com>
9792
9793 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9794 <push_dwarf_reg_entry_value>: Remove assert. Override
9795 per_objfile with caller_per_objfile.
9796
f030440d
TV
97972020-05-28 Tom de Vries <tdevries@suse.de>
9798
9799 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9800 PR gold/15646 workaround to symbol kind "type".
9801
f0fbb768
TT
98022020-05-27 Tom Tromey <tromey@adacore.com>
9803
9804 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9805
af0b2a3e
TT
98062020-05-27 Tom Tromey <tromey@adacore.com>
9807
9808 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9809 Use htab_find_with_hash.
9810 <add_abbrev>: Remove "abbrev_number" parameter.
9811 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9812 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9813 (hash_abbrev): Add comment.
9814 (abbrev_table::lookup_abbrev): Move to header file.
9815 (abbrev_table::read): Update.
9816
7d00ffec
TT
98172020-05-27 Tom Tromey <tromey@adacore.com>
9818
9819 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9820 method.
9821 <canonical_name>: New member.
9822 <raw_name>: Rename from "name".
9823 (partial_die_info): Initialize canonical_name.
9824 (scan_partial_symbols): Check raw_name.
9825 (partial_die_parent_scope, partial_die_full_name)
9826 (add_partial_symbol, add_partial_subprogram)
9827 (add_partial_enumeration, load_partial_dies): Use "name" method.
9828 (partial_die_info::name): New method.
9829 (partial_die_info::read, guess_partial_die_structure_name)
9830 (partial_die_info::fixup): Update.
9831
697bba18
TT
98322020-05-27 Tom Tromey <tromey@adacore.com>
9833
9834 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9835 <get_ref_die_offset>: Inline.
9836 <get_ref_die_offset_complaint>: New method.
9837 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9838 (attribute::get_ref_die_offset_complaint): Rename from
9839 get_ref_die_offset. Just issue complaint.
9840
c17ace43
HD
98412020-05-27 Hannes Domani <ssbssa@yahoo.de>
9842
9843 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9844
96445f0b
HD
98452020-05-27 Hannes Domani <ssbssa@yahoo.de>
9846
9847 * exec.c (exec_file_attach): Use errno value of first openp failure.
9848
ac637ec3
HD
98492020-05-27 Hannes Domani <ssbssa@yahoo.de>
9850
9851 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9852 Don't close thread handle.
9853
17ee85fc
TT
98542020-05-27 Tom Tromey <tom@tromey.com>
9855 Simon Marchi <simon.marchi@efficios.com>
9856
9857 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9858 shared_ptr.
9859 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9860 member.
9861 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9862 dwarf2_per_bfd_objfile_data_key>: New globals.
9863 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9864 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9865 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9866 shared.
9867 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9868 short-circuit when sharing.
9869 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9870 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9871
39b16f87
SM
98722020-05-27 Simon Marchi <simon.marchi@efficios.com>
9873
9874 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9875 to...
9876 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9877 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9878
fcf23d5b
SM
98792020-05-27 Simon Marchi <simon.marchi@efficios.com>
9880
9881 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9882 build_name_components, find_name_components_bounds>:
9883 Add per_objfile parameter.
9884 (struct mapped_index) <symbol_name_at>: Likewise.
9885 (struct mapped_debug_names): Remove constructor.
9886 <dwarf2_per_objfile>: Remove field.
9887 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9888 (mapped_index_base::find_name_components_bounds,
9889 mapped_index_base::build_name_components,
9890 dw2_expand_symtabs_matching_symbol): Likewise.
9891 (class mock_mapped_index) <symbol_name_at>: Likewise.
9892 (check_match): Likewise.
9893 (check_find_bounds_finds): Likewise.
9894 (test_mapped_index_find_name_component_bounds): Update.
9895 (CHECK_MATCH): Update.
9896 (dw2_expand_symtabs_matching): Update.
9897 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9898 per_objfile parameter.
9899 <find_vec_in_debug_names>: Likewise.
9900 <m_per_objfile>: New field.
9901 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9902 parameter.
9903 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9904 (dw2_debug_names_iterator::next): Update.
9905 (dw2_debug_names_lookup_symbol): Update.
9906 (dw2_debug_names_expand_symtabs_for_function): Update.
9907 (dw2_debug_names_map_matching_symbols): Update.
9908 (dw2_debug_names_expand_symtabs_matching): Update.
9909 (dwarf2_read_debug_names): Update.
9910
7188ed02
SM
99112020-05-27 Simon Marchi <simon.marchi@efficios.com>
9912
9913 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9914 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9915 move to dwarf2_per_objfile.
9916 <read_in_chain>: Remove.
9917 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9918 remove_all_cus, age_comp_units>: New methods.
9919 <m_dwarf2_cus>: New member.
9920 (struct dwarf2_per_cu_data) <cu>: Remove.
9921 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9922 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9923 moved to methods of dwarf2_per_objfile.
9924 (dwarf2_clear_marks): Remove.
9925 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9926 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9927 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9928 (dwarf2_per_objfile::remove_all_cus): New.
9929 (class free_cached_comp_units) <~free_cached_comp_units>:
9930 Update.
9931 (load_cu): Update.
9932 (dw2_do_instantiate_symtab): Adjust.
9933 (fill_in_sig_entry_from_dwo_entry): Adjust.
9934 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9935 (cutu_reader::cutu_reader): Likewise.
9936 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9937 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9938 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9939 and dwarf2_per_objfile::age_comp_units.
9940 (load_partial_comp_unit): Update.
9941 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9942 (process_queue): Likewise.
9943 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9944 backlink.
9945 (dwarf2_read_addr_index): Likewise.
9946 (follow_die_offset): Likewise.
9947 (dwarf2_fetch_die_loc_sect_off): Likewise.
9948 (dwarf2_fetch_constant_bytes): Likewise.
9949 (dwarf2_fetch_die_type_sect_off): Likewise.
9950 (follow_die_sig_1): Likewise.
9951 (load_full_type_unit): Likewise.
9952 (read_signatured_type): Likewise.
9953 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9954 (dwarf2_cu::~dwarf2_cu): Remove.
9955 (dwarf2_per_objfile::get_cu): New.
9956 (dwarf2_per_objfile::set_cu): New.
9957 (age_cached_comp_units): Rename to...
9958 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9959 to std::unordered_map.
9960 (free_one_cached_comp_unit): Rename to...
9961 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9962 to std::unordered_map.
9963 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9964 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9965 a dwarf2_per_objfile in data.
9966 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9967 (dwarf2_clear_marks): Remove.
9968
2e671100
SM
99692020-05-27 Simon Marchi <simon.marchi@efficios.com>
9970
9971 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9972 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9973 (init_tu_and_read_dwo_dies): Likewise.
9974 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9975 (cutu_reader::cutu_reader): Likewise.
9976 (load_partial_comp_unit): Likewise.
9977 (process_psymtab_comp_unit): Update.
9978 (build_type_psymtabs_1): Update.
9979 (process_skeletonless_type_unit): Update.
9980 (load_full_comp_unit): Update.
9981 (find_partial_die): Update.
9982 (dwarf2_read_addr_index): Update.
9983 (read_signatured_type): Update.
9984
2e6a9f79
SM
99852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9986
9987 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9988 m_header_read_in>: New fields.
9989 <get_header>: New method.
9990 * dwarf2/read.c (per_cu_header_read_in): Remove.
9991 (dwarf2_per_cu_data::get_header): New.
9992 (dwarf2_per_cu_data::addr_size): Update.
9993 (dwarf2_per_cu_data::offset_size): Update.
9994 (dwarf2_per_cu_data::ref_addr_size): Update.
9995
1b555f17
SM
99962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9997
9998 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9999 (dw2_do_instantiate_symtab): Update.
10000 (queue_and_load_all_dwo_tus): Change parameter from
10001 dwarf2_per_cu_data to dwarf2_cu.
10002 (dwarf2_fetch_die_loc_sect_off): Update.
10003 (dwarf2_fetch_constant_bytes): Update.
10004 (dwarf2_fetch_die_type_sect_off): Update.
10005
8fc0b21d
SM
100062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10007
10008 * dwarf2/read.c (process_full_comp_unit,
10009 process_full_type_unit): Remove per_cu, per_objfile paramters.
10010 Add dwarf2_cu parameter.
10011 (process_queue): Update.
10012
168c9250
SM
100132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10014
10015 * dwarf2/read.c (create_cu_from_index_list): Replace
10016 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10017 (create_cus_from_index_list): Likewise.
10018 (create_cus_from_index): Likewise.
10019 (create_signatured_type_table_from_index): Likewise.
10020 (create_cus_from_debug_names_list): Likewise.
10021 (create_cus_from_debug_names): Likewise.
10022 (dwarf2_read_gdb_index): Update.
10023 (dwarf2_read_debug_names): Update.
10024
e286671b
TT
100252020-05-27 Tom Tromey <tom@tromey.com>
10026 Simon Marchi <simon.marchi@efficios.com>
10027
10028 * dwarf2/read.h (struct dwarf2_per_objfile)
10029 <get_type_for_signatured_type, set_type_for_signatured_type>:
10030 New methods.
10031 <m_type_map>: New member.
10032 (struct signatured_type) <type>: Remove.
10033 * dwarf2/read.c
10034 (dwarf2_per_objfile::get_type_for_signatured_type,
10035 dwarf2_per_objfile::set_type_for_signatured_type): New.
10036 (get_signatured_type): Use new methods.
10037
8adb8487
TT
100382020-05-27 Tom Tromey <tom@tromey.com>
10039 Simon Marchi <simon.marchi@efficios.com>
10040
10041 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10042 (struct dwarf2_per_objfile) <type_units>: New member.
10043 <get_type_unit_group_unshareable>: New method.
10044 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10045 num_symtabs, symtabs>: Remove; move to
10046 type_unit_group_unshareable.
10047 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10048 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10049 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10050
127bbf4b
SM
100512020-05-27 Simon Marchi <simon.marchi@efficios.com>
10052
10053 * dwarf2/read.h (struct dwarf2_per_cu_data):
10054 <dwarf2_per_objfile>: Remove.
10055 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10056 dwarf2_per_objfile.
10057 (create_signatured_type_table_from_index): Likewise.
10058 (create_signatured_type_table_from_debug_names): Likewise.
10059 (create_debug_type_hash_table): Likewise.
10060 (fill_in_sig_entry_from_dwo_entry): Likewise.
10061 (create_type_unit_group): Likewise.
10062 (read_comp_units_from_section): Likewise.
10063 (create_cus_hash_table): Likewise.
10064
f6e649dd
SM
100652020-05-27 Simon Marchi <simon.marchi@efficios.com>
10066
10067 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10068 dwarf2_per_cu_data::dwarf2_per_objfile.
10069 (compute_compunit_symtab_includes): Likewise.
10070 (dwarf2_cu::start_symtab): Likewise.
10071
aa66c379
SM
100722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10073
10074 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10075 parameter.
10076 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10077 (read_namespace_alias): Update.
10078 (lookup_die_type): Update.
10079 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10080 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10081 Update.
10082 (disassemble_dwarf_expression): Update.
10083
120ce1b5
SM
100842020-05-27 Simon Marchi <simon.marchi@efficios.com>
10085
10086 * dwarf2/read.h (struct dwarf2_queue_item): Add
10087 dwarf2_per_objfile parameter, assign new parameter.
10088 <per_objfile>: New field.
10089 * dwarf2/read.c (free_one_cached_comp_unit): Add
10090 dwarf2_per_objfile parameter.
10091 (queue_comp_unit): Likewise.
10092 (dw2_do_instantiate_symtab): Update.
10093 (process_psymtab_comp_unit): Update.
10094 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10095 (process_imported_unit_die): Update.
10096 (queue_and_load_dwo_tu): Update.
10097 (follow_die_offset): Update.
10098 (follow_die_sig_1): Update.
10099
9f47c707
SM
101002020-05-27 Simon Marchi <simon.marchi@efficios.com>
10101
10102 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10103 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10104 (read_call_site_scope): Assign per_objfile.
10105 (dwarf2_per_cu_data::objfile): Remove.
10106 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10107 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10108 dwarf2_per_objfile parameter.
10109 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10110 dwarf2_per_objfile parameter.
10111 (dwarf_expr_reg_to_entry_parameter): Add output
10112 dwarf2_per_objfile parameter.
10113 (locexpr_get_frame_base): Update.
10114 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10115 <push_dwarf_reg_entry_value>: Update.
10116 <call_site_to_target_addr>: Update.
10117 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10118 parameter.
10119 (value_of_dwarf_reg_entry): Update.
10120 (rw_pieced_value): Update.
10121 (indirect_synthetic_pointer): Update.
10122 (dwarf2_evaluate_property): Update.
10123 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10124 parameter.
10125 (locexpr_read_variable): Update.
10126 (locexpr_get_symbol_read_needs): Update.
10127 (loclist_read_variable): Update.
10128
14095eb3
SM
101292020-05-27 Simon Marchi <simon.marchi@efficios.com>
10130
10131 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10132 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10133 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10134 parameter.
10135 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10136 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10137 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10138 parameter.
10139 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10140 sect_variable_value): Add dwarf2_per_objfile parameter.
10141 (class dwarf_evaluate_loc_desc) <dwarf_call,
10142 dwarf_variable_value>: Update.
10143 (fetch_const_value_from_synthetic_pointer): Add
10144 dwarf2_per_objfile parameter.
10145 (fetch_const_value_from_synthetic_pointer): Update.
10146 (coerced_pieced_ref): Update.
10147 (class symbol_needs_eval_context) <dwarf_call,
10148 dwarf_variable_value>: Update.
10149 (dwarf2_compile_expr_to_ax): Update.
10150
3c3cd3d4
SM
101512020-05-27 Simon Marchi <simon.marchi@efficios.com>
10152
10153 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10154 parameter.
10155 (dwarf2_evaluate_loc_desc_full): Update.
10156
82ca3f51
SM
101572020-05-27 Simon Marchi <simon.marchi@efficios.com>
10158
10159 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10160 parameter.
10161 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10162 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10163 dwarf2_per_objfile parameter.
10164 (decode_debug_loc_dwo_addresses): Likewise.
10165 (dwarf2_find_location_expression): Update.
10166 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10167 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10168 parameter.
10169 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10170 parameter.
10171 (locexpr_describe_location_1): Likewise.
10172 (locexpr_describe_location): Update.
10173
4b167ea1
SM
101742020-05-27 Simon Marchi <simon.marchi@efficios.com>
10175
10176 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10177 Remove.
10178 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10179 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10180 (dwarf2_compile_property_to_c): Update.
10181 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10182 use text offset from objfile.
10183 (locexpr_tracepoint_var_ref): Update.
10184 (locexpr_generate_c_location): Update.
10185 (loclist_describe_location): Update.
10186 (loclist_tracepoint_var_ref): Update.
10187 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10188 dwarf2_per_objfile parameter.
10189 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10190 use text offset from objfile.
10191 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10192
89b07335
SM
101932020-05-27 Simon Marchi <simon.marchi@efficios.com>
10194
10195 * dwarf2/expr.h (struct dwarf_expr_context)
10196 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10197 <offset>: Remove.
10198 <per_objfile>: New member.
10199 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10200 dwarf2_per_objfile parameter. Don't set offset, set
10201 per_objfile.
10202 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10203 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10204 a dwarf2_per_objfile object instead of an offset.
10205 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10206 constructor.
10207 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10208 to dwarf2_expr_executor constructor. Don't set offset.
10209 (dwarf2_fetch_cfa_info): Update.
10210 (struct dwarf2_frame_cache) <text_offset>: Remove.
10211 <per_objfile>: New field.
10212 (dwarf2_frame_cache): Update.
10213 (dwarf2_frame_prev_register): Update.
10214 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10215 <dwarf_evaluate_loc_desc>: Add constructor.
10216 (dwarf2_evaluate_loc_desc_full): Update.
10217 (dwarf2_locexpr_baton_eval): Update.
10218 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10219 Add constructor.
10220 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10221
293e7e51
SM
102222020-05-27 Simon Marchi <simon.marchi@efficios.com>
10223
10224 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10225 addr_sized_int_type>: Move to dwarf2_cu.
10226 <int_type>: Move to dwarf2_per_objfile.
10227 (struct dwarf2_per_objfile) <int_type>: Move here.
10228 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10229 addr_sized_int_type>: Move here.
10230 (read_func_scope): Update.
10231 (read_array_type): Update.
10232 (read_tag_string_type): Update.
10233 (attr_to_dynamic_prop): Update.
10234 (dwarf2_per_cu_data::int_type): Rename to...
10235 (dwarf2_per_objfile::int_type): ... this.
10236 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10237 (dwarf2_cu::addr_sized_int_type): ... this.
10238 (read_subrange_type): Update.
10239 (dwarf2_per_cu_data::addr_type): Rename to...
10240 (dwarf2_cu::addr_type): ... this.
10241 (set_die_type): Update.
10242
64874a40
SM
102432020-05-27 Simon Marchi <simon.marchi@efficios.com>
10244
10245 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10246 data through per_cu->cu.
10247
4ab09049
SM
102482020-05-27 Simon Marchi <simon.marchi@efficios.com>
10249
10250 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10251 dwarf2_per_cu_data parameter fo dwarf2_cu.
10252 (lookup_dwo_type_unit): Likewise.
10253 (read_cutu_die_from_dwo): Likewise.
10254 (lookup_dwo_unit): Likewise.
10255 (open_and_init_dwo_file): Likewise.
10256 (lookup_dwo_cutu): Likewise.
10257 (lookup_dwo_comp_unit): Likewise.
10258 (lookup_dwo_type_unit): Likewise.
10259 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10260 (cutu_reader::cutu_reader): Update.
10261
47b14e86
SM
102622020-05-27 Simon Marchi <simon.marchi@efficios.com>
10263
10264 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10265 parameter.
10266 (process_full_type_unit): Likewise.
10267 (process_queue): Update.
10268
43182c09
SM
102692020-05-27 Simon Marchi <simon.marchi@efficios.com>
10270
10271 * dwarf2/read.c (recursively_compute_inclusions): Add
10272 dwarf2_per_objfile parameter.
10273 (compute_compunit_symtab_includes): Likewise.
10274 (process_cu_includes): Update.
10275
7aa104c4
SM
102762020-05-27 Simon Marchi <simon.marchi@efficios.com>
10277
10278 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10279 parameter.
10280 (create_type_unit_group): Update.
10281 (process_psymtab_comp_unit_reader): Update.
10282 (build_type_psymtabs_reader): Update.
10283
e3beb21d
SM
102842020-05-27 Simon Marchi <simon.marchi@efficios.com>
10285
10286 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10287 object through m_this_cu->cu.
10288
d460f660
SM
102892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10290
10291 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10292 the info parameter.
10293 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10294
ab432490
SM
102952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10296
10297 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10298 per_objfile parameter.
10299 (load_full_type_unit): Add per_objfile parameter.
10300 (read_signatured_type): Likewise.
10301 (load_full_comp_unit): Likewise.
10302 (load_cu): Likewise.
10303 (dw2_do_instantiate_symtab): Likewise.
10304 (dw2_get_file_names): Likewise.
10305 (dw2_map_symtabs_matching_filename): Update.
10306 (dw_expand_symtabs_matching_file_matcher): Update.
10307 (dw2_map_symbol_filenames): Update.
10308 (process_psymtab_comp_unit): Add per_objfile parameter.
10309 (build_type_psymtabs_1): Update.
10310 (process_skeletonless_type_unit): Update.
10311 (dwarf2_build_psymtabs_hard): Update.
10312 (load_partial_comp_unit): Add per_objfile parameter.
10313 (scan_partial_symbols): Update.
10314 (load_full_comp_unit): Add per_objfile parameter.
10315 (process_imported_unit_die): Update.
10316 (create_cus_hash_table): Update.
10317 (find_partial_die): Update.
10318 (dwarf2_read_addr_index): Update.
10319 (follow_die_offset): Update.
10320 (dwarf2_fetch_die_loc_sect_off): Update.
10321 (dwarf2_fetch_constant_bytes): Update.
10322 (dwarf2_fetch_die_type_sect_off): Update.
10323 (follow_die_sig_1): Update.
10324 (load_full_type_unit): Add per_objfile parameter.
10325 (read_signatured_type): Likewise.
10326
313bad1b
SM
103272020-05-27 Simon Marchi <simon.marchi@efficios.com>
10328
10329 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10330 of objfile_name.
10331
c3699833
SM
103322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10333
10334 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10335 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10336 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10337 field.
10338 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10339 (create_cus_from_index): Update.
10340 (dwarf2_read_gdb_index): Update.
10341 (create_cus_from_debug_names): Update.
10342 (dwarf2_read_debug_names): Update.
10343 (get_abbrev_section_for_cu): Update.
10344 (create_all_comp_units): Update.
10345 (read_attribute_value): Update.
10346 (get_debug_line_section): Update.
10347 * dwarf2/index-cache.c (index_cache::store): Update.
10348 * dwarf2/index-write.c (save_gdb_index_command): Update.
10349 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10350
1859c670
SM
103512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10352
10353 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10354 member.
10355 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10356 dwarf2_per_cu_data::per_bfd.
10357 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10358 (create_type_unit_group): Likewise.
10359 (queue_comp_unit): Remove reference to
10360 per_cu->dwarf2_per_objfile.
10361 (maybe_queue_comp_unit): Likewise.
10362 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10363 (create_cus_hash_table): Assign new field.
10364
5e22e966
SM
103652020-05-27 Simon Marchi <simon.marchi@efficios.com>
10366
10367 * dwarf2/read.c: Replace
10368 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10369 dwarf2_cu->per_objfile throughout.
10370
97a1449a
SM
103712020-05-27 Simon Marchi <simon.marchi@efficios.com>
10372
10373 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10374 parameter, don't use per_cu->dwarf2_per_objfile.
10375 (dw2_instantiate_symtab): Likewise.
10376 (dw2_find_last_source_symtab): Update.
10377 (dw2_map_expand_apply): Update.
10378 (dw2_lookup_symbol): Update.
10379 (dw2_expand_symtabs_for_function): Update.
10380 (dw2_expand_all_symtabs): Update.
10381 (dw2_expand_symtabs_with_fullname): Update.
10382 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10383 don't use per_cu->dwarf2_per_objfile.
10384 (dw2_expand_marked_cus): Update.
10385 (dw2_find_pc_sect_compunit_symtab): Update.
10386 (dw2_debug_names_lookup_symbol): Update.
10387 (dw2_debug_names_expand_symtabs_for_function): Update.
10388 (dw2_debug_names_map_matching_symbols): Update.
10389 (dwarf2_psymtab::expand_psymtab): Update.
10390
9e021579
SM
103912020-05-27 Simon Marchi <simon.marchi@efficios.com>
10392
10393 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10394 <per_objfile>: New member.
10395 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10396 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10397 call to dwarf2_cu.
10398 (cutu_reader::cutu_reader): Update.
10399 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10400
ae090bdb
SM
104012020-05-27 Simon Marchi <simon.marchi@efficios.com>
10402
10403 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10404 struct dwarf2_per_objfile.
10405 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10406 dwarf2_per_bfd.
10407 * dwarf2/read.c (set_die_type): Update.
10408 (get_die_type_at_offset): Update.
10409
af758d11
SM
104102020-05-27 Tom Tromey <tom@tromey.com>
10411 Simon Marchi <simon.marchi@efficios.com>
10412
10413 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10414 method.
10415 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10416 get_symtab, set_symtab>: New methods.
10417 <m_symtabs>: New field.
10418 (struct dwarf2_psymtab): Derive from partial_symtab.
10419 <readin_p, get_compunit_symtab>: Declare methods.
10420 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10421 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10422 New methods.
10423 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10424 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10425 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10426 (dw2_symtab_iter_next, dw2_print_stats)
10427 (dw2_expand_symtabs_with_fullname)
10428 (dw2_expand_symtabs_matching_one)
10429 (dw_expand_symtabs_matching_file_matcher)
10430 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10431 (dw2_debug_names_iterator::next)
10432 (dw2_debug_names_map_matching_symbols)
10433 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10434 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10435 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10436 New methods.
10437 (get_compunit_symtab, process_full_comp_unit)
10438 (process_full_type_unit): Update.
10439 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10440
5989a64e
SM
104412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10442
10443 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10444 then introduce a new dwarf2_per_objfile type.
10445 <read_line_string>: Move to the new dwarf2_per_objfile type.
10446 <objfile>: Likewise.
10447 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10448 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10449 dwarf2_per_objfile->per_bfd.
10450 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10451 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10452 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10453 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10454 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10455 (dwarf2_per_objfile::locate_sections): Rename to...
10456 (dwarf2_per_bfd::locate_sections): ... this.
10457 (dwarf2_per_objfile::get_cutu): Rename to...
10458 (dwarf2_per_bfd::get_cutu): ... this.
10459 (dwarf2_per_objfile::get_cu): Rename to...
10460 (dwarf2_per_bfd::get_cu): ... this.
10461 (dwarf2_per_objfile::get_tu): Rename to...
10462 (dwarf2_per_bfd::get_tu): ... this.
10463 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10464 (dwarf2_per_bfd::allocate_per_cu): ... this.
10465 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10466 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10467 (get_gdb_index_contents_ftype): Change parameter from
10468 dwarf2_per_objfile to dwarf2_per_bfd.
10469 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10470 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10471
a50264ba
TT
104722020-05-27 Tom Tromey <tom@tromey.com>
10473 Simon Marchi <simon.marchi@efficios.com>
10474
10475 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10476 (allocate_piece_closure): Set "per_objfile" member.
10477 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10478 (locexpr_describe_location, loclist_describe_location): Use new
10479 member.
10480 * dwarf2/read.c (read_call_site_scope)
10481 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10482 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10483 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10484 handle_data_member_location): Set per_objfile member.
10485 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10486 member.
10487 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10488
d3473f0c
TT
104892020-05-27 Tom Tromey <tom@tromey.com>
10490
10491 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10492 allocate_signatured_type>: Declare new methods.
10493 <m_num_psymtabs>: New member.
10494 (struct dwarf2_per_cu_data) <index>: New member.
10495 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10496 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10497 (create_cu_from_index_list): Use allocate_per_cu.
10498 (create_signatured_type_table_from_index)
10499 (create_signatured_type_table_from_debug_names)
10500 (create_debug_type_hash_table, add_type_unit)
10501 (read_comp_units_from_section): Use allocate_signatured_type.
10502
5717c425
TT
105032020-05-27 Tom Tromey <tom@tromey.com>
10504
10505 * psymtab.c (partial_map_expand_apply)
10506 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10507 (psym_lookup_global_symbol_language)
10508 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10509 (psym_print_stats, psym_expand_symtabs_for_function)
10510 (psym_map_symbol_filenames, psym_map_matching_symbols)
10511 (psym_expand_symtabs_matching)
10512 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10513 (maintenance_check_psymtabs): Update.
10514 * psympriv.h (struct partial_symtab) <readin_p,
10515 get_compunit_symtab>: Add objfile parameter.
10516 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10517 Likewise.
10518 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10519 get_compunit_symtab>: Likewise.
10520 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10521
45940949
TT
105222020-05-27 Tom Tromey <tom@tromey.com>
10523
10524 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10525 member.
10526 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10527 (create_cu_from_index_list)
10528 (create_signatured_type_table_from_index)
10529 (create_signatured_type_table_from_debug_names)
10530 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10531 (dwarf2_create_include_psymtab)
10532 (create_debug_type_hash_table, add_type_unit)
10533 (create_type_unit_group, read_comp_units_from_section)
10534 (dwarf2_compute_name, create_cus_hash_table)
10535 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10536 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10537 obstack.
10538 (dw2_get_real_path): Likewise. Change argument to
10539 dwarf2_per_objfile.
10540
f8c6d152
LM
105412020-05-27 Luis Machado <luis.machado@linaro.org>
10542
10543 PR tdep/26000
10544 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10545 for ldrd (immediate).
10546
e98d2e6d
PW
105472020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10548
10549 * command.h: Add comment giving the name of class_tui.
10550 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10551 create the fake command for the help for class_tui.
10552
53a47a3e
TT
105532020-05-26 Tom Tromey <tromey@adacore.com>
10554
10555 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10556 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10557 (val_atr): New function.
10558 (value_val_atr): Use it.
10559 * ada-valprint.c (print_optional_low_bound): Change low bound
10560 handling for enums.
10561 (val_print_packed_array_elements): Don't call discrete_position.
10562 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10563 discrete_position for enum types.
10564 * language.c (default_print_array_index): Change type.
10565 * language.h (struct language_defn) <la_print_array_index>: Add
10566 index_type parameter, change type of index_value.
10567 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10568 (default_print_array_index): Update.
10569 * valprint.c (maybe_print_array_index): Don't call
10570 value_from_longest. Update.
10571 (value_print_array_elements): Don't call discrete_position.
10572
0bc2354b
TT
105732020-05-26 Tom Tromey <tromey@adacore.com>
10574
10575 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10576 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10577
1218a4bf
CDA
105782020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10579
10580 PR gdb/13519
10581 * avr-tdep.c (avr_integer_to_address): Return data or code
10582 address accordingly to the second 'type' argument of the
10583 function.
10584
92651b1d
MW
105852020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10586
10587 * infcmd.c, inferior.h: (construct_inferior_arguments):
10588 Moved function from here to gdbsupport/common-inferior.{h,cc}
10589
0a4f5f8c
TT
105902020-05-23 Tom Tromey <tom@tromey.com>
10591
10592 Revert commit eca1f90c:
10593 * NEWS: Remove entry for completion styling.
10594 * completer.c (_rl_completion_prefix_display_length): Move
10595 declaration later.
10596 (gdb_fnprint): Revert.
10597 (gdb_display_match_list_1): Likewise.
10598 * cli/cli-style.c (completion_prefix_style)
10599 (completion_difference_style, completion_suffix_style): Remove.
10600 (_initialize_cli_style): Revert.
10601 * cli/cli-style.h (completion_prefix_style)
10602 (completion_difference_style, completion_suffix_style): Don't
10603 declare.
10604
e08bd6c5
PA
106052020-05-24 Pedro Alves <palves@redhat.com>
10606
10607 * symtab.c (completion_list_add_name): Return boolean indication
10608 of whether the symbol matched.
10609 (completion_list_add_symbol): Don't try to remove C++ aliases if
10610 the symbol didn't match in the first place.
10611 * symtab.h (completion_list_add_name): Return bool.
10612
ceacbf6e
SM
106132020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10614
10615 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10616 type::field.
10617
26f16254
JB
106182020-05-23 Joel Brobecker <brobecker@adacore.com>
10619
10620 GDB 9.2 released.
10621
eca1f90c
TT
106222020-05-23 Tom Tromey <tom@tromey.com>
10623
10624 * NEWS: Add entry for completion styling.
10625 * completer.c (_rl_completion_prefix_display_length): Move
10626 declaration earlier.
10627 (gdb_fnprint): Use completion_style.
10628 (gdb_display_match_list_1): Likewise.
10629 * cli/cli-style.c (completion_prefix_style)
10630 (completion_difference_style, completion_suffix_style): New
10631 globals.
10632 (_initialize_cli_style): Register new globals.
10633 * cli/cli-style.h (completion_prefix_style)
10634 (completion_difference_style, completion_suffix_style): Declare.
10635
51e2cfa2
PA
106362020-05-23 Pedro Alves <palves@redhat.com>
10637
10638 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10639 (parse_escape): Use ISDIGIT instead of isdigit.
10640 (puts_debug): Use gdb_isprint instead of isprint.
10641 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10642 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10643 ISSPACE instead of isspace.
10644 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10645 instead of isspace.
10646 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10647 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10648 instead of isxdigit and ISDIGIT instead of isdigit.
10649
80fc5e77
SM
106502020-05-22 Simon Marchi <simon.marchi@efficios.com>
10651
10652 * gdbtypes.h (struct type) <field>: New method.
10653 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10654 or type::field.
10655
3cabb6b0
SM
106562020-05-22 Simon Marchi <simon.marchi@efficios.com>
10657
10658 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10659 (TYPE_FIELDS): Use type::fields. Change all call sites that
10660 modify the propery to use type::set_fields instead.
10661
1f704f76
SM
106622020-05-22 Simon Marchi <simon.marchi@efficios.com>
10663
10664 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10665 type::num_fields instead.
10666
5e33d5f4
SM
106672020-05-22 Simon Marchi <simon.marchi@efficios.com>
10668
10669 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10670 methods.
10671 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10672 that modify the number of fields to use type::set_num_fields
10673 instead.
10674
9392ebb3
TT
106752020-05-22 Tom Tromey <tromey@adacore.com>
10676
10677 * compile/compile-object-load.h (munmap_list_free): Don't
10678 declare.
10679
7c13f4e8
AB
106802020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10681
10682 * annotate.c (annotate_source_line): Update return type, add call
10683 to update current symtab and line.
10684 * annotate.h (annotate_source_line): Update return type, and
10685 extend header comment.
10686 * source.c (info_line_command): Check annotation_level before
10687 calling annotate_source_line.
10688 * stack.c (print_frame_info): If calling annotate_source_line
10689 returns true, then don't print any other source line information.
10690
aa370940
SM
106912020-05-21 Simon Marchi <simon.marchi@efficios.com>
10692
10693 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10694
84d53fa9
SM
106952020-05-21 Simon Marchi <simon.marchi@efficios.com>
10696
10697 * coffread.c (patch_type): Remove NULL check before xfree.
10698 * corefile.c (set_gnutarget): Likewise.
10699 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10700 * exec.c (build_section_table): Likewise.
10701 * remote.c (remote_target::pass_signals): Likewise.
10702 * utils.c (n_spaces): Likewise.
10703 * cli/cli-script.c (document_command): Likewise.
10704 * i386-windows-tdep.c (core_process_module_section): Likewise.
10705 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10706
9d428aae
SM
107072020-05-20 Simon Marchi <simon.marchi@efficios.com>
10708
10709 * symfile.c (reread_symbols): Clear objfile's section_offsets
10710 vector and section indices, re-compute them by calling
10711 sym_offsets.
10712
250106a7
TT
107132020-05-20 Tom Tromey <tromey@adacore.com>
10714
10715 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10716 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10717
9a0bacfb
TV
107182020-05-20 Tom de Vries <tdevries@suse.de>
10719
10720 PR symtab/25833
10721 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10722
7b958a48
AM
107232020-05-20 Alan Modra <amodra@gmail.com>
10724
10725 PR 25993
10726 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10727 bfd_set_filename.
10728 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10729 passed to bfd_set_filename.
10730 * symfile-mem.c (add_vsyscall_page): Likewise for string
10731 passed to symbol_file_add_from_memory.
10732 (symbol_file_add_from_memory): Make name param a const char* and
10733 don't strdup.
10734
c7e97679
AM
107352020-05-20 Alan Modra <amodra@gmail.com>
10736
10737 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10738 rather than accessing bfd->filename directly.
10739 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10740 and use bfd_section_name.
10741 * dwarf2/frame.c (decode_frame_entry): Likewise.
10742 * exec.c (exec_set_section_address): Likewise.
10743 * solib-aix.c (solib_aix_bfd_open): Likewise.
10744 * stap-probe.c (get_stap_base_address): Likewise.
10745 * symfile.c (reread_symbols): Likewise.
10746
563c591b
TT
107472020-05-19 Tom Tromey <tromey@adacore.com>
10748
10749 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10750
f408d82c
SM
107512020-05-19 Simon Marchi <simon.marchi@efficios.com>
10752
10753 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10754
98c59b52
PA
107552020-05-19 Pedro Alves <palves@redhat.com>
10756
10757 * NEWS (set exec-file-mismatch): Adjust entry.
10758 * exec.c: Include "build-id.h".
10759 (validate_exec_file): Try to match build IDs instead of filenames.
10760 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10761 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10762 and pass down 'warn_if_slow'.
10763 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10764 gdb_bfd_open_closure to pass it down.
10765 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10766
4111f652
PA
107672020-05-19 Pedro Alves <palves@redhat.com>
10768
10769 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10770 * target.c (target_fileio_open_1): Rename to target_fileio_open
10771 and make extern. Use bool.
10772 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10773 (target_fileio_read_alloc_1): Adjust.
10774 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10775 (target_fileio_open_warn_if_slow): Delete declaration.
10776
ad80db5b
PA
107772020-05-19 Pedro Alves <palves@redhat.com>
10778
10779 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10780 Adjust all callers.
10781
1d6ce4d3
YS
107822020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10783
10784 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10785 whether disp is negative.
10786
9005fbbb
SM
107872020-05-19 Simon Marchi <simon.marchi@efficios.com>
10788
10789 * symfile.h (struct symfile_segment_data)
10790 <~symfile_segment_data>: Remove.
10791 <segment_info>: Change to std::vector.
10792 * symfile.c (default_symfile_segments): Update.
10793 * elfread.c (elf_symfile_segments): Update.
10794
68b888ff
SM
107952020-05-19 Simon Marchi <simon.marchi@efficios.com>
10796
10797 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10798 <segments>: New.
10799 <segment_bases, segment_sizes>: Remove.
10800 * symfile.c (default_symfile_segments): Update.
10801 * elfread.c (elf_symfile_segments): Update.
10802 * remote.c (remote_target::get_offsets): Update.
10803 * solib-target.c (solib_target_relocate_section_addresses):
10804 Update.
10805
62982abd
SM
108062020-05-19 Simon Marchi <simon.marchi@efficios.com>
10807
10808 * symfile.h (struct symfile_segment_data): Initialize fields.
10809 <~symfile_segment_data>: Add.
10810 (symfile_segment_data_up): New.
10811 (struct sym_fns) <sym_segments>: Return a
10812 symfile_segment_data_up.
10813 (default_symfile_segments): Return a symfile_segment_data_up.
10814 (free_symfile_segment_data): Remove.
10815 (get_symfile_segment_data): Return a symfile_segment_data_up.
10816 * symfile.c (default_symfile_segments): Likewise.
10817 (get_symfile_segment_data): Likewise.
10818 (free_symfile_segment_data): Remove.
10819 (symfile_find_segment_sections): Update.
10820 * elfread.c (elf_symfile_segments): Return a
10821 symfile_segment_data_up.
10822 * remote.c (remote_target::get_offsets): Update.
10823 * solib-target.c (solib_target_relocate_section_addresses):
10824 Update.
10825 * symfile-debug.c (debug_sym_segments): Return a
10826 symfile_segment_data_up.
10827
7f204339
RO
108282020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10829
e52a0f1b
RO
10830 PR build/25981
10831 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10832 Hardcode register numbers.
10833
7f204339
RO
10834 PR build/25981
10835 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10836 procfs_find_LDT_entry): Remove.
10837 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10838 procfs_find_LDT_entry): Remove.
10839 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10840 Remove.
10841
7f32a4d5
PA
108422020-05-17 Pedro Alves <palves@redhat.com>
10843 Andrew Burgess <andrew.burgess@embecosm.com>
10844 Keno Fischer <keno@juliacomputing.com>
10845
10846 PR gdb/25741
10847 * breakpoint.c (build_target_condition_list): Update comments.
10848 (build_target_command_list): Update comments and skip matching
10849 locations.
10850 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10851 a separate function. Simplify "set breakpoint auto-hw off"
10852 handling.
10853 (insert_breakpoints): Update comment.
10854 (tracepoint_locations_match): New parameter. For breakpoints,
10855 compare location types too, if the caller wants to.
10856 (handle_automatic_hardware_breakpoints): New functions.
10857 (bp_location_is_less_than): Also sort by location type and
10858 hardware breakpoint length.
10859 (update_global_location_list): Handle "set breakpoint auto-hw on"
10860 here.
10861 (update_breakpoint_locations): Ask breakpoint_locations_match to
10862 ignore location types.
10863
7d93a1e0
SM
108642020-05-16 Simon Marchi <simon.marchi@efficios.com>
10865
10866 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10867 type::name instead.
10868
d0e39ea2
SM
108692020-05-16 Simon Marchi <simon.marchi@efficios.com>
10870
10871 * gdbtypes.h (struct type) <name, set_name>: New methods.
10872 (TYPE_CODE): Use type::name. Change all call sites used to set
10873 the name to use type::set_name instead.
10874
2dab0c7b
TT
108752020-05-16 Tom Tromey <tom@tromey.com>
10876
10877 * top.c (quit_force): Update.
10878 * infrun.c (handle_no_resumed): Update.
10879 * top.h (all_uis): New function.
10880 (ALL_UIS): Remove.
10881
59f7bd8d
SM
108822020-05-16 Simon Marchi <simon.marchi@efficios.com>
10883
10884 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10885
9bf058f0
PA
108862020-05-16 Pedro Alves <palves@redhat.com>
10887
10888 * ia64-linux-nat.c
10889 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10890 Declare method.
10891 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10892
8f86ae1a
SM
108932020-05-15 Simon Marchi <simon.marchi@efficios.com>
10894
10895 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10896 (sparc64_adi_info): Likewise.
10897
d6bc0792
TT
108982020-05-15 Tom Tromey <tom@tromey.com>
10899
10900 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10901 block_objfile.
10902 (lookup_objfile_from_block): Remove.
10903 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10904 (lookup_global_symbol): Use block_objfile.
10905 * symtab.h (lookup_objfile_from_block): Don't declare.
10906 * printcmd.c (clear_dangling_display_expressions): Use
10907 block_objfile.
10908 * parse.c (operator_check_standard): Use block_objfile.
10909
8c14c3a3
TT
109102020-05-15 Tom Tromey <tom@tromey.com>
10911
10912 * language.c (language_alloc_type_symbol): Set
10913 SYMBOL_SECTION.
10914 * symtab.c (initialize_objfile_symbol): Remove.
10915 (allocate_symbol): Remove.
10916 (allocate_template_symbol): Remove.
10917 * dwarf2/read.c (fixup_go_packaging): Use "new".
10918 (new_symbol): Use "new".
10919 (read_variable): Don't call initialize_objfile_symbol. Use
10920 "new".
10921 (read_func_scope): Use "new".
10922 * xcoffread.c (process_xcoff_symbol): Don't call
10923 initialize_objfile_symbol.
10924 (SYMBOL_DUP): Remove.
10925 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10926 "new".
10927 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10928 (allocate_template_symbol): Don't declare.
10929 (struct symbol): Add copy constructor. Change defaults.
10930 * jit.c (finalize_symtab): Use "new".
10931 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10932 Use "new".
10933 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10934 (common_block_end): Use "new".
10935 * mdebugread.c (parse_symbol): Use "new".
10936 (new_symbol): Likewise.
10937
5b4a1a8d
PW
109382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10939
10940 * NEWS: Mention changes to help and apropos.
10941
57b4f16e
PW
109422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10943
10944 * command.h (enum command_class): Improve comments, document
10945 that class_alias is for user-defined aliases, give the class
10946 name for each class, remove unused class_xdb.
10947 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10948 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10949 by a precise class.
10950 * infcmd.c (_initialize_infcmd): Likewise.
10951 * reverse.c (_initialize_reverse): Likewise.
10952 * stack.c (_initialize_stack): Likewise.
10953 * symfile.c (_initialize_symfile): Likewise.
10954 * tracepoint.c (_initialize_tracepoint): Likewise.
10955
7c05caf7
PW
109562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10957
10958 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10959 when their aliased command is traversed.
10960 (help_cmd): Add fput_command_names_styled call to
10961 output command name and aliases when command has an alias.
10962
3b3aaacb
PW
109632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10964
10965 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10966 * cli/cli-decode.c (help_cmd_list): Declare as static,
10967 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10968 a command together with the command.
10969 (fput_command_name_styled, fput_command_names_styled): New functions.
10970 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10971 fput_command_name_styled.
10972 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10973 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10974
7aa1b46f
PW
109752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10976
10977 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10978 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10979 * command.h (cmd_show_list): Likewise.
10980 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10981 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10982
89bcba74
PW
109832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10984
10985 * unittests/command-def-selftests.c (traverse_command_structure):
10986 Verify all commands of a list have the same prefix command and
10987 that only the top cmdlist commands have a null prefix.
10988
3f4d92eb
PW
109892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10990
10991 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10992 as prefix, not one of its aliases.
10993 (set_cmd_prefix): Remove.
10994 (do_add_cmd): Centralize the setting of the prefix of a command, when
10995 command is defined after its full chain of prefix commands.
10996 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10997 (add_setshow_cmd_full): Likewise.
10998 (update_prefix_field_of_prefixed_commands): New function.
10999 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11000 update_prefix_field_of_prefixed_commands.
11001 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11002 addresses of remote_set_cmdlist and remote_show_cmdlist given
11003 as argument, not the address of an argument.
11004 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11005 * gdb/remote.c (_initialize_remote): Likewise.
11006
0605465f
PW
110072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11008
11009 * cli/cli-cmds.c (alias_command): Check for an existing alias
11010 using lookup_cmd_composition, as valid_command_p is too strict
11011 and forbids aliases that are the prefix of an existing alias
11012 or command.
11013 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11014 command is properly recognised as a valid command.
11015
58e6ac70
PW
110162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11017
11018 * unittests/help-doc-selftests.c: Rename to
11019 unittests/command-def-selftests.c
11020 * unittests/command-def-selftests.c (help_doc_tests): Update some
11021 comments.
11022 (command_structure_tests, traverse_command_structure): New namespace
11023 and function.
11024 (command_structure_invariants_tests): New function.
11025 (_initialize_command_def_selftests) Renamed from
11026 _initialize_help_doc_selftests, register command_structure_invariants
11027 selftest.
11028
a7b9ceb8
PW
110292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11030
11031 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11032 an alias of 'show'.
11033
b2188a06
JB
110342020-05-15 Joel Brobecker <brobecker@adacore.com>
11035
11036 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11037 ada_is_fixed_point_type. Update all callers.
11038 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11039 all callers.
11040 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11041 Update all callers.
11042 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11043 print_fixed_point_type. Update all callers.
11044 * ada-valprint.c (ada_value_print_num): Replace call to
11045 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11046
a51951c2
KB
110472020-05-14 Kevin Buettner <kevinb@redhat.com>
11048
11049 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11050 processors.
11051 (cpu_supports_bts): Add CV_AMD case.
11052
29d6859f
LM
110532020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11054 Simon Marchi <simon.marchi@efficios.com>
11055
11056 * infrun.c (stop_all_threads): Collect multiple wait events at
11057 each pass.
11058
78134374
SM
110592020-05-14 Simon Marchi <simon.marchi@efficios.com>
11060
11061 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11062 type::code instead.
11063
67607e24
SM
110642020-05-14 Simon Marchi <simon.marchi@efficios.com>
11065
11066 * gdbtypes.h (struct type) <code, set_code>: New methods.
11067 (TYPE_CODE): Use type::code. Change all call sites used to set
11068 the code to use type::set_code instead.
11069
a05575d3
TBA
110702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11071 Tom de Vries <tdevries@suse.de>
11072 Pedro Alves <palves@redhat.com>
11073
11074 PR threads/25478
11075 * infrun.c (stop_all_threads): Do NOT ignore
11076 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11077 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11078 received.
11079 (handle_no_resumed): Remove code handling a live inferior with no
11080 threads.
11081 * remote.c (has_single_non_exited_thread): New.
11082 (remote_target::update_thread_list): Do not delete a thread if is
11083 the last thread of the process.
11084 * thread.c (thread_select): Call delete_exited_threads instead of
11085 prune_threads.
11086
6ad82919
TBA
110872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11088
11089 * infrun.c (stop_all_threads): Enable/disable thread events of all
11090 targets. Move a debug message denoting the end of the function
11091 into the SCOPED_EXIT block.
11092
d890404b
TBA
110932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11094
11095 * process-stratum-target.h: Include <set>.
11096 (all_non_exited_process_targets, switch_to_target_no_thread): New
11097 function declarations.
11098 * process-stratum-target.c (all_non_exited_process_targets)
11099 (switch_to_target_no_thread): New function implementations.
11100
293b3ebc
TBA
111012020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11102
11103 * infrun.c (handle_inferior_event): Extract out a piece of code
11104 into...
11105 (mark_non_executing_threads): ...this new function.
11106
7ca9b62a
TBA
111072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11108
11109 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11110 use.
11111
fc75c28b
TBA
111122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11113
11114 * regcache.c (regcache_read_pc_protected): New function
11115 implementation that returns 0 if the PC cannot read via
11116 'regcache_read_pc'.
11117 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11118 instead of 'regcache_read_pc'.
11119 (keep_going_pass_signal): Ditto.
11120
a89febbd
TT
111212020-05-13 Tom Tromey <tromey@adacore.com>
11122
11123 * ada-lang.c (align_value): Remove.
11124 (ada_template_to_fixed_record_type_1): Use align_up.
11125
f7e23710
TBA
111262020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11127
11128 * async-event.c: Update the copyright year.
11129 * async-event.h: Update the copyright year.
11130
02ff80c2
SM
111312020-05-12 Simon Marchi <simon.marchi@efficios.com>
11132
11133 * objfiles.h (is_addr_in_objfile,
11134 shared_objfile_contains_address_p): Return bool.
11135 * objfile.c (is_addr_in_objfile,
11136 shared_objfile_contains_address_p): Return bool.
11137
4fd6c7e8
TT
111382020-05-11 Tom Tromey <tromey@adacore.com>
11139
11140 * cli/cli-cmds.c (info_command): Restore.
11141 (_initialize_cli_cmds): Use add_prefix_command for "info".
11142 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11143
5eb68a39
TT
111442020-05-11 Tom Tromey <tromey@adacore.com>
11145
11146 * ada-lang.c (ada_value_primitive_field): Now public.
11147 * ada-lang.h (ada_value_primitive_field): Declare.
11148 * ada-valprint.c (print_field_values): Use
11149 ada_value_primitive_field for wrapper fields.
11150
7666722f
TV
111512020-05-11 Tom de Vries <tdevries@suse.de>
11152
11153 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11154 MODULE_DOMAIN.
11155
3ee6bb11
TV
111562020-05-11 Tom de Vries <tdevries@suse.de>
11157
11158 PR symtab/25941
11159 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11160 with length 0, if not gdb-produced.
11161 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11162
43434996
TV
111632020-05-09 Tom de Vries <tdevries@suse.de>
11164
11165 PR gdb/25955
11166 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11167 calculation.
11168
2f78cffc
TT
111692020-05-09 Tom Tromey <tom@tromey.com>
11170
11171 * top.c (server_command): Now bool.
11172 * top.h (server_command): Now bool.
11173
4f7bc5ed
TT
111742020-05-08 Tom Tromey <tromey@adacore.com>
11175
11176 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11177 already being processed.
11178
8be4b118
TT
111792020-05-08 Tom Tromey <tom@tromey.com>
11180
11181 * printcmd.c (struct display) <next>: Remove.
11182 <display>: New constructor.
11183 <exp_string>: Now a std::string.
11184 <enabled_p>: Now a bool.
11185 (display_number): Move definition earlier.
11186 (displays): Rename from display_chain. Now a std::vector.
11187 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11188 (display_command): Update.
11189 (do_one_display, disable_display)
11190 (enable_disable_display_command, do_enable_disable_display):
11191 Update.
11192 (free_display): Remove.
11193 (clear_displays): Rewrite.
11194 (delete_display): Update.
11195 (map_display_numbers): Use function_view. Remove "data"
11196 parameter. Update.
11197 (do_delete_display): Remove.
11198 (undisplay_command): Update.
11199 (do_one_display, do_displays, disable_display)
11200 (info_display_command): Update.
11201 (do_enable_disable_display): Remove.
11202 (enable_disable_display_command)
11203 (clear_dangling_display_expressions): Update.
11204
94c93c35
TT
112052020-05-08 Tom Tromey <tom@tromey.com>
11206
11207 * symtab.c (set_symbol_cache_size)
11208 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11209 (maintenance_print_symbol_cache_statistics): Update.
11210 * symmisc.c (print_symbol_bcache_statistics)
11211 (print_objfile_statistics, maintenance_print_objfiles)
11212 (maintenance_info_symtabs, maintenance_check_symtabs)
11213 (maintenance_expand_symtabs, maintenance_info_line_tables):
11214 Update.
11215 * symfile-debug.c (set_debug_symfile): Update.
11216 * source.c (forget_cached_source_info): Update.
11217 * python/python.c (gdbpy_progspaces): Update.
11218 * psymtab.c (maintenance_info_psymtabs): Update.
11219 * probe.c (parse_probes): Update.
11220 * linespec.c (iterate_over_all_matching_symtabs)
11221 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11222 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11223 * exec.c (exec_target::close): Update.
11224 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11225 * breakpoint.c (print_one_breakpoint_location)
11226 (create_longjmp_master_breakpoint)
11227 (create_std_terminate_master_breakpoint): Update.
11228 * progspace.c (program_spaces): Now a std::vector.
11229 (maybe_new_address_space): Update.
11230 (add_program_space): Remove.
11231 (program_space::program_space): Update.
11232 (remove_program_space): Update.
11233 (number_of_program_spaces): Remove.
11234 (print_program_space, update_address_spaces): Update.
11235 * progspace.h (program_spaces): Change type.
11236 (ALL_PSPACES): Remove.
11237 (number_of_program_spaces): Don't declare.
11238 (struct program_space) <next>: Remove.
11239
a1fd1ac9
TT
112402020-05-08 Tom Tromey <tom@tromey.com>
11241
11242 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11243 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11244 (enable_break): Update.
11245 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11246 (frv_fdpic_find_canonical_descriptor): Update.
11247 (frv_fetch_objfile_link_map): Update.
11248 * progspace.c (program_space::free_all_objfiles): Update.
11249 (program_space::solibs): New method.
11250 * progspace.h (struct program_space) <solibs>: New method.
11251 * solist.h (master_so_list): Don't declare.
11252 (ALL_SO_LIBS): Remove.
11253 * solib.h (so_list_head): Remove.
11254 (update_solib_list): Update comment.
11255 * solib.c (master_so_list): Remove.
11256 (solib_used, update_solib_list, solib_add)
11257 (info_sharedlibrary_command, clear_solib)
11258 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11259
38eae084
TT
112602020-05-08 Tom Tromey <tom@tromey.com>
11261
11262 * extension.c (extension_languages): Now a std::array.
11263 (ALL_EXTENSION_LANGUAGES): Remove.
11264 (get_ext_lang_defn, get_ext_lang_of_file)
11265 (eval_ext_lang_from_control_command): Update.
11266 (finish_ext_lang_initialization)
11267 (auto_load_ext_lang_scripts_for_objfile)
11268 (ext_lang_type_printers::ext_lang_type_printers)
11269 (apply_ext_lang_type_printers)
11270 (ext_lang_type_printers::~ext_lang_type_printers)
11271 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11272 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11273 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11274 (get_matching_xmethod_workers, ext_lang_colorize)
11275 (ext_lang_before_prompt): Update.
11276 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11277
596dc4ad
TT
112782020-05-08 Tom Tromey <tom@tromey.com>
11279
11280 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11281 overload.
11282 <swap_string, m_string>: Remove.
11283 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11284 Update.
11285 * stabsread.c (define_symbol, read_type): Update.
11286 * linespec.c (find_linespec_symbols): Update.
11287 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11288 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11289 * dbxread.c (read_dbx_symtab): Update.
11290 * cp-support.h (cp_canonicalize_string_full)
11291 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11292 Return unique_xmalloc_ptr.
11293 * cp-support.c (inspect_type): Update.
11294 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11295 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11296 Likewise.
11297 * c-typeprint.c (print_name_maybe_canonical): Update.
11298 * break-catch-throw.c (check_status_exception_catchpoint):
11299 Update.
11300
bf4cb9be
TV
113012020-05-08 Tom de Vries <tdevries@suse.de>
11302
11303 * infrun.c (follow_fork): Copy current_line and current_symtab to
11304 child thread.
11305
a1b68f28
SM
113062020-05-07 Simon Marchi <simon.marchi@efficios.com>
11307
11308 * async-event.c (struct async_signal_handler, struct
11309 async_event_handler): Reformat, remove typedef.
11310
98d48915
SM
113112020-05-07 Simon Marchi <simon.marchi@efficios.com>
11312
11313 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11314 access thistype->main_type->dyn_prop_list directly.
11315
7aa91313
SM
113162020-05-07 Simon Marchi <simon.marchi@efficios.com>
11317
11318 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11319 (remove_dyn_prop): Remove. Update all users to use
11320 type::remove_dyn_prop.
11321 * gdbtypes.c (remove_dyn_prop): Rename to...
11322 (type::remove_dyn_prop): ... this.
11323
5c54719c
SM
113242020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11325
11326 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11327 (add_dyn_prop): Remove. Update all users to use
11328 type::add_dyn_prop.
11329 * gdbtypes.c (add_dyn_prop): Rename to...
11330 (type::add_dyn_prop): ... this.
11331
24e99c6c
SM
113322020-05-07 Simon Marchi <simon.marchi@efficios.com>
11333
11334 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11335 (get_dyn_prop): Remove. Update all users to use
11336 type::dyn_prop.
11337 * gdbtypes.c (get_dyn_prop): Rename to...
11338 (type::dyn_prop): ... this.
11339
0d4bf016
SM
113402020-05-06 Simon Marchi <simon.marchi@efficios.com>
11341
11342 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11343
ac4a4f1c
SM
113442020-05-06 Simon Marchi <simon.marchi@efficios.com>
11345
11346 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11347 instruction, skip it if it's there.
11348
a3bbacc1
SM
113492020-05-05 Simon Marchi <simon.marchi@efficios.com>
11350
11351 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11352
c3236f84
SM
113532020-05-04 Simon Marchi <simon.marchi@efficios.com>
11354
11355 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11356 * gdbtypes.c (recursive_dump_type): Remove use of
11357 TYPE_INCOMPLETE.
11358
3b6acaee
TT
113592020-05-03 Tom Tromey <tom@tromey.com>
11360
11361 * breakpoint.c (catch_command, tcatch_command): Remove.
11362 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11363 add_show_prefix_cmd.
11364 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11365 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11366 Remove.
11367 (add_internal_problem_command): Use add_basic_prefix_cmd,
11368 add_show_prefix_cmd.
11369 * mips-tdep.c (set_mipsfpu_command): Remove.
11370 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11371 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11372 (_initialize_index_cache): Use add_basic_prefix_cmd.
11373 * memattr.c (dummy_cmd): Remove.
11374 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11375 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11376 (_initialize_tui_win): Use add_basic_prefix_cmd,
11377 add_show_prefix_cmd.
11378 * cli/cli-logging.c (set_logging_command): Remove.
11379 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11380 add_show_prefix_cmd.
11381 (show_logging_command): Remove.
11382 * target.c (target_command): Remove.
11383 (add_target): Use add_basic_prefix_cmd.
11384
a51119cd
HD
113852020-05-02 Hannes Domani <ssbssa@yahoo.de>
11386
11387 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11388
652fc23a 113892020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11390
652fc23a
PW
11391 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11392 info_command.
11393
117539e6
KR
113942020-04-30 Kamil Rytarowski <n54@gmx.com>
11395
11396 * nbsd-nat.c (nbsd_enable_proc_events)
11397 (nbsd_nat_target::post_startup_inferior): Add.
11398 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11399 (nbsd_nat_target::update_thread_list): Rewrite.
11400 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11401 "PTRACE_LWP_CREATE".
11402 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11403
102e38eb 114042020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11405
102e38eb
PW
11406 * stack.c (_initialize_stack): Remove duplicated creation
11407 of "frame" command and "f" alias.
11408
ee9d1e5f
HD
114092020-04-30 Hannes Domani <ssbssa@yahoo.de>
11410
11411 PR gdb/18706
11412 * gdbtypes.c (check_typedef): Calculate size of array of
11413 stubbed type.
11414
627c7fb8
HD
114152020-04-30 Hannes Domani <ssbssa@yahoo.de>
11416
11417 PR gdb/15559
11418 * i386-tdep.c (i386_push_dummy_call): Call
11419 i386_thiscall_push_dummy_call.
11420 (i386_thiscall_push_dummy_call): New function.
11421 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11422 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11423 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11424
ffc2844e
SM
114252020-04-29 Simon Marchi <simon.marchi@efficios.com>
11426
11427 * gdbarch.sh (do_read): Add shellcheck disable directive for
11428 warning SC2162.
11429
1207375d
SM
114302020-04-29 Simon Marchi <simon.marchi@efficios.com>
11431
11432 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11433 "referenced but not assigned" warning.
11434
9fdb2916
SM
114352020-04-29 Simon Marchi <simon.marchi@efficios.com>
11436
11437 * gdbarch.sh: Remove code that sets fallbackdefault.
11438
759cea5e
SM
114392020-04-29 Simon Marchi <simon.marchi@efficios.com>
11440
11441 * gdbarch.sh: Use shell operators && and || instead of
11442 -a and -o.
11443
cb02ab24
SM
114442020-04-29 Simon Marchi <simon.marchi@efficios.com>
11445
11446 * gdbarch.sh: Use $(...) instead of `...`.
11447
a6fc5ffc
SM
114482020-04-29 Simon Marchi <simon.marchi@efficios.com>
11449
11450 * gdbarch.sh: Use double quotes around variables.
11451
8d113d13
SM
114522020-04-29 Simon Marchi <simon.marchi@efficios.com>
11453
11454 * gdbarch.sh: Use %s with printf, instead of variables in the
11455 format string.
11456
ed6acedd
TT
114572020-04-29 Tom Tromey <tromey@adacore.com>
11458
11459 PR ada/25875:
11460 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11461 type fields here.
11462 (read_enumeration_type): Call
11463 update_enumeration_type_from_children later. Update comments.
11464 (process_enumeration_scope): Don't create type fields.
11465
b68b1b58
KR
114662020-04-29 Kamil Rytarowski <n54@gmx.com>
11467
11468 * nbsd-tdep.c: Include "xml-syscall.h".
11469 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11470
f94b2e03
KR
114712020-04-29 Kamil Rytarowski <n54@gmx.com>
11472
11473 * nbsd-nat.c: Include "sys/wait.h".
11474 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11475 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11476 (nbsd_nat_target::remove_exec_catchpoint)
11477 (nbsd_nat_target::set_syscall_catchpoint): Add.
11478 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11479 (nbsd_nat_target::insert_exec_catchpoint)
11480 (nbsd_nat_target::remove_exec_catchpoint)
11481 (nbsd_nat_target::set_syscall_catchpoint): Add.
11482 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11483 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11484 `nbsd_get_syscall_number'.
11485
fc49bc72
TT
114862020-04-29 Tom Tromey <tom@tromey.com>
11487
11488 * stack.c (print_block_frame_labels): Remove.
11489
d642b692
HD
114902020-04-29 Hannes Domani <ssbssa@yahoo.de>
11491
11492 PR gdb/17320
11493 * ada-valprint.c (val_print_packed_array_elements): Move array
11494 end bracket to new line.
11495 (ada_val_print_string): Remove extra spaces before first array
11496 element.
11497 * c-valprint.c (c_value_print_array): Likewise.
11498 * m2-valprint.c (m2_print_array_contents): Likewise.
11499 (m2_value_print_inner): Likewise.
11500 * p-valprint.c (pascal_value_print_inner): Likewise.
11501 * valprint.c (generic_val_print_array): Likewise.
11502 (value_print_array_elements): Move first array element and array
11503 end bracket to new line.
11504
ea90f227
TV
115052020-04-29 Tom de Vries <tdevries@suse.de>
11506
11507 PR symtab/25889
11508 * linespec.c (find_method): Fix ix calculation.
11509
4498ef4f
KR
115102020-04-28 Kamil Rytarowski <n54@gmx.com>
11511
11512 * syscalls/update-netbsd.sh: New file.
11513 * syscalls/netbsd.xml: Regenerate.
11514 * data-directory/Makefile.in: Register `netbsd.xml' in
11515 `SYSCALLS_FILES'.
11516
a55e30b5
SM
115172020-04-28 Simon Marchi <simon.marchi@efficios.com>
11518
11519 * syscalls/update-freebsd.sh: Add double quotes.
11520
2b2fbab8
TT
115212020-04-28 Tom Tromey <tom@tromey.com>
11522
11523 * NEWS: Update.
11524 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11525 (cmdpy_init): Allow class_tui.
11526
a65189c9
TV
115272020-04-28 Mark Williams <mark@myosotissp.com>
11528
11529 PR gdb/24480
11530 * dwarf2read.c: Add missing assingments to list_in_scope when
11531 start_symtab was already called.
11532
1b95cdb7
SM
115332020-04-28 Simon Marchi <simon.marchi@efficios.com>
11534
11535 PR gdb/25881
11536 * dwarf2/read.c (offset_map_type): Use
11537 gdb:hash_enum<sect_offset> as hash function.
11538
15cd93d0
TV
115392020-04-28 Tom de Vries <tdevries@suse.de>
11540
11541 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11542 with DW_AT_signature.
11543
1eb39914
SM
115442020-04-27 Simon Marchi <simon.marchi@efficios.com>
11545
11546 * configure.ac: Remove check for fs_base/gs_base in
11547 user_regs_struct.
11548 * configure: Re-generate.
11549 * config.in: Re-generate.
11550 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11551 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11552 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11553
991a3e2e
LM
115542020-04-27 Luis Machado <luis.machado@linaro.org>
11555
11556 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11557 problematic inline frame unwinding situation.
11558 * frame.c (frame_id_computed_p): New function.
11559 * frame.h (frame_id_computed_p): New prototype.
11560
361ba0e8
TT
115612020-04-26 Tom Tromey <tom@tromey.com>
11562
11563 * command.h (enum command_class) <class_pseudo>: Remove.
11564
bc3609fd
PW
115652020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11566
11567 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11568 and whitespace.
11569
b9771db7
KR
115702020-04-25 Kamil Rytarowski <n54@gmx.com>
11571
ec16513e
SM
11572 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11573 `PT_GET_PROCESS_STATE' block.
b9771db7 11574
7151c1af
TT
115752020-04-24 Tom Tromey <tom@tromey.com>
11576
11577 * symtab.h (symbol_get_demangled_name): Don't declare.
11578 * symtab.c (symbol_get_demangled_name): Remove.
11579 (general_symbol_info::natural_name)
11580 (general_symbol_info::demangled_name): Update.
11581
906bb4c5
TT
115822020-04-24 Tom Tromey <tom@tromey.com>
11583
11584 PR rust/25025:
11585 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11586
bcfe6157
TT
115872020-04-24 Tom Tromey <tom@tromey.com>
11588
11589 PR symtab/12707:
11590 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11591 exists.
11592 (new_symbol): Likewise.
11593 * compile/compile-object-load.c (get_out_value_type): Use
11594 symbol_matches_search_name.
11595
f049a313
TT
115962020-04-24 Tom Tromey <tom@tromey.com>
11597
11598 * dwarf2/read.c (add_partial_symbol): Do not call
11599 compute_and_set_names.
11600
76e288d1
TT
116012020-04-24 Tom Tromey <tom@tromey.com>
11602
11603 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11604 overload.
11605
2467f4f6
TT
116062020-04-24 Tom Tromey <tom@tromey.com>
11607
11608 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11609 (add_psymbol_to_list): New overload. Make old overload call new
11610 one.
11611 * psympriv.h (add_psymbol_to_list): New overload.
11612
e61108c9
TT
116132020-04-24 Tom Tromey <tom@tromey.com>
11614
11615 * dwarf2/read.c (partial_die_info::read) <case
11616 DW_AT_linkage_name>: Use value_as_string.
11617 (dwarf2_string_attr): Use value_as_string.
11618 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11619 method.
11620 * dwarf2/attribute.c (attribute::value_as_string): New method.
11621
8c87a452
TT
116222020-04-24 Tom Tromey <tom@tromey.com>
11623
11624 * symtab.c (general_symbol_info::natural_name)
11625 (general_symbol_info::demangled_name): Check for language_rust.
11626
787de330
TT
116272020-04-24 Tom Tromey <tom@tromey.com>
11628
11629 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11630 (dwarf2_physname): ... from here.
11631 (partial_die_info::read): Add Rust "{" hack.
11632
ff985671
TT
116332020-04-24 Tom Tromey <tom@tromey.com>
11634
11635 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11636 method.
11637 (symbol_set_demangled_name): Don't declare.
11638 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11639 symbol_set_demangled_name.
11640 (general_symbol_info::set_language)
11641 (general_symbol_info::compute_and_set_names): Update.
11642 * minsyms.c (minimal_symbol_reader::install): Update.
11643 * dwarf2/read.c (new_symbol): Update.
11644
1acda803
TT
116452020-04-24 Tom Tromey <tromey@adacore.com>
11646
11647 PR python/23662:
11648 * python/py-type.c (convert_field): Handle
11649 FIELD_LOC_KIND_DWARF_BLOCK.
11650 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11651 (typy_get_dynamic): Nw function.
11652 (type_object_getset): Add "dynamic".
11653 * NEWS: Add entry.
11654
d656f129
TT
116552020-04-24 Tom Tromey <tromey@adacore.com>
11656
11657 * ada-typeprint.c (print_choices, print_variant_part)
11658 (print_record_field_types_dynamic): New functions.
11659 (print_record_field_types): Use print_record_field_types_dynamic.
11660
7d79de9a
TT
116612020-04-24 Tom Tromey <tromey@adacore.com>
11662
11663 * dwarf2/read.c (handle_data_member_location): New overload.
11664 (dwarf2_add_field): Use it.
11665 (decode_locdesc): Add "computed" parameter. Update comment.
11666 * gdbtypes.c (is_dynamic_type_internal): Also look for
11667 FIELD_LOC_KIND_DWARF_BLOCK.
11668 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11669 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11670 virtual base classes.
11671 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11672 FIELD_LOC_KIND_DWARF_BLOCK.
11673
f8e89861
TT
116742020-04-24 Tom Tromey <tromey@adacore.com>
11675
11676 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11677 * gdbtypes.c (is_dynamic_type_internal): Check
11678 TYPE_HAS_DYNAMIC_LENGTH.
11679 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11680 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11681 New macros.
11682 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11683 constant.
11684
9c6a1327
TT
116852020-04-24 Tom Tromey <tromey@adacore.com>
11686
11687 * dwarf2/read.c (struct variant_field): Rewrite.
11688 (struct variant_part_builder): New.
11689 (struct nextfield): Remove "variant" field. Add "offset".
11690 (struct field_info): Add "current_variant_part" and
11691 "variant_parts".
11692 (alloc_discriminant_info): Remove.
11693 (alloc_rust_variant): New function.
11694 (quirk_rust_enum): Update.
11695 (dwarf2_add_field): Set "offset" member. Don't handle
11696 DW_TAG_variant_part.
11697 (offset_map_type): New typedef.
11698 (convert_variant_range, create_one_variant)
11699 (create_one_variant_part, create_variant_parts)
11700 (add_variant_property): New functions.
11701 (dwarf2_attach_fields_to_type): Call add_variant_property.
11702 (read_structure_type): Don't handle DW_TAG_variant_part.
11703 (handle_variant_part, handle_variant): New functions.
11704 (handle_struct_member_die): Use them.
11705 (process_structure_scope): Don't handle variant parts.
11706 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11707 (struct discriminant_info): Remove.
11708 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11709 (struct main_type) <flag_discriminated_union>: Remove.
11710 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11711 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11712 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11713 Update.
11714 * valops.c (value_union_variant): Remove.
11715 * value.h (value_union_variant): Don't declare.
11716
b249d2c2
TT
117172020-04-24 Tom Tromey <tromey@adacore.com>
11718
11719 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11720 (ada_value_primitive_packed_val): Update.
11721 * ada-valprint.c (ada_value_print_1): Update.
11722 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11723 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11724 just an address. Use evaluate_for_locexpr_baton.
11725 (dwarf2_evaluate_property): Update.
11726 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11727 array_view.
11728 * findvar.c (default_read_var_value): Update.
11729 * gdbtypes.c (compute_variant_fields_inner)
11730 (resolve_dynamic_type_internal): Update.
11731 (resolve_dynamic_type): Change type of valaddr parameter.
11732 * gdbtypes.h (resolve_dynamic_type): Update.
11733 * valarith.c (value_subscripted_rvalue): Update.
11734 * value.c (value_from_contents_and_address): Update.
11735
61122aa9
TT
117362020-04-24 Tom Tromey <tromey@adacore.com>
11737
11738 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11739 "push_initial_value" parameter.
11740 (dwarf2_evaluate_property): Likewise.
11741 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11742
ef83a141
TT
117432020-04-24 Tom Tromey <tromey@adacore.com>
11744
11745 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11746 (variant::matches, compute_variant_fields_recurse)
11747 (compute_variant_fields_inner, compute_variant_fields): New
11748 functions.
11749 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11750 Use resolved_type after type is made.
11751 (operator==): Add new cases.
11752 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11753 (struct discriminant_range, struct variant, struct variant_part):
11754 New.
11755 (union dynamic_prop_data) <variant_parts, original_type>: New
11756 members.
11757 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11758 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11759 constants.
11760 * value.c (unpack_bits_as_long): Now public.
11761 * value.h (unpack_bits_as_long): Declare.
11762
675127ec
TT
117632020-04-24 Tom Tromey <tromey@adacore.com>
11764
11765 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11766 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11767
9852ceef
HD
117682020-04-24 Hannes Domani <ssbssa@yahoo.de>
11769
11770 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11771
7632c6ce
KR
117722020-04-24 Kamil Rytarowski <n54@gmx.com>
11773
11774 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11775 (remove_fork_catchpoint, post_startup_inferior)
11776 (post_attach): Move...
11777 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11778 (remove_fork_catchpoint, post_startup_inferior)
11779 (post_attach): ...here.
11780 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11781 (remove_fork_catchpoint, post_startup_inferior)
11782 (post_attach): Move...
11783 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11784 (remove_fork_catchpoint, post_startup_inferior)
11785 (post_attach): ...here.
11786
7be2bb4f
TT
117872020-04-24 Tom Tromey <tromey@adacore.com>
11788
11789 * nat/windows-nat.h (struct windows_thread_info)
11790 <pc_adjusted>: New member.
11791 * windows-nat.c (windows_fetch_one_register): Check
11792 pc_adjusted.
11793 (windows_nat_target::get_windows_debug_event)
11794 (windows_nat_target::wait): Set pc_adjusted.
11795
f80cb3b4
TV
117962020-04-24 Tom de Vries <tdevries@suse.de>
11797
11798 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11799 Run gdb-add-index inside temp dir.
11800
29514b87
TT
118012020-04-23 Tom Tromey <tromey@adacore.com>
11802
11803 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11804 in loop.
11805
5939967b
LM
118062020-04-23 Luis Machado <luis.machado@linaro.org>
11807
11808 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11809 get_frame_register instead of gdbarch_unwind_pc.
11810
70bc38f5
TV
118112020-04-23 Tom de Vries <tdevries@suse.de>
11812
11813 * symtab.c (lookup_global_symbol): Prefer def over decl.
11814
de82891c
TV
118152020-04-23 Tom de Vries <tdevries@suse.de>
11816
11817 PR symtab/25807
11818 * block.c (best_symbol, better_symbol): Promote to external.
11819 * block.h (best_symbol, better_symbol): Declare.
11820 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11821 decl.
11822
ecc6c606
TT
118232020-04-23 Tom Tromey <tromey@adacore.com>
11824
11825 PR ada/25837:
11826 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11827 "const char *", not a "const std::string &".
11828 <name_and_matcher::operator==>: Update.
11829 * unittests/lookup_name_info-selftests.c: Change type of
11830 "result".
11831
740480b8
TT
118322020-04-23 Tom Tromey <tom@tromey.com>
11833
11834 * inferior.h (iterate_over_inferiors): Don't declare.
11835 * inferior.c (iterate_over_inferiors): Remove.
11836 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11837 Remove.
11838 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11839 use iterate_over_inferiors.
11840 (darwin_resume_inferior_it)
11841 (struct resume_inferior_threads_param)
11842 (darwin_resume_inferior_threads_it): Remove.
11843 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11844
ae3ab1f0
TV
118452020-04-23 Tom de Vries <tdevries@suse.de>
11846
11847 * blockframe.c (find_pc_partial_function): Use
11848 find_pc_sect_compunit_symtab rather than
11849 objfile->sf->qf->find_pc_sect_compunit_symtab.
11850
317d2668
TV
118512020-04-22 Tom de Vries <tdevries@suse.de>
11852
11853 PR symtab/25764
11854 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11855 in psymtabs.
11856
eea9e357
TV
118572020-04-22 Tom de Vries <tdevries@suse.de>
11858
11859 PR symtab/25801
11860 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11861 symtabs.
11862
3d5afab3
TV
118632020-04-22 Tom de Vries <tdevries@suse.de>
11864
11865 PR symtab/25700
11866 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11867 CU if already created.
11868
d43b7a2d
TBA
118692020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11870
11871 * infrun.c (displaced_step_fixup): Switch to the event_thread
11872 before calling displaced_step_restore, not after.
11873
d89edf9b
MM
118742020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11875
11876 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11877 its inferior is not recorded by us.
11878 (record_btrace_target_open): Replace call to
11879 all_non_exited_threads () with call to current_inferior
11880 ()->non_exited_threads ().
11881 (record_btrace_target::stop_recording): Likewise.
11882 (record_btrace_target::close): Likewise.
11883 (record_btrace_target::wait): Likewise.
11884 (record_btrace_target::record_stop_replaying): Likewise.
11885
5897fd49
MM
118862020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11887
11888 * btrace.c (btrace_enable): Throw an error on double enables and
11889 when enabling recording fails.
11890 (btrace_disable): Throw an error if the thread is not recorded.
11891
1a476b6d
MM
118922020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11893
11894 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11895 request if we do not have a thread_info.
11896
4778a5f8
TV
118972020-04-21 Tom de Vries <tdevries@suse.de>
11898
11899 PR gdb/25471
11900 * thread.c
11901 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11902 exception in get_frame_id.
11903
0fa7617d
TT
119042020-04-20 Tom Tromey <tromey@adacore.com>
11905
11906 * python/python.c (struct gdbpy_event): Mark move constructor as
11907 noexcept.
11908 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11909 constructor as noexcept.
11910 * completer.h (struct completion_result): Mark move constructor as
11911 noexcept.
11912 * completer.c (completion_result::completion_result): Use
11913 initialization style. Don't call reset_match_list.
11914
ad23bda0
MS
119152020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11916
11917 * MAINTAINERS (Write After Approval): Add myself.
11918
45e1f031
TT
119192020-04-18 Tom Tromey <tom@tromey.com>
11920
11921 * windows-tdep.c (init_w32_command_list)
11922 (w32_prefix_command_valid): Restore.
11923 (_initialize_windows_tdep): Call init_w32_command_list.
11924
08feed99
TT
119252020-04-18 Tom Tromey <tom@tromey.com>
11926
11927 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11928 * value.c (value_fn_field): Update.
11929 * valops.c (find_function_in_inferior)
11930 (value_allocate_space_in_inferior): Update.
11931 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11932 Update.
11933 * tui/tui-source.c (tui_source_window::set_contents): Update.
11934 * symtab.c (lookup_global_or_static_symbol)
11935 (find_function_start_sal_1, skip_prologue_sal)
11936 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11937 * symmisc.c (dump_msymbols, dump_symtab_1)
11938 (maintenance_print_one_line_table): Update.
11939 * symfile.c (init_entry_point_info, section_is_mapped)
11940 (list_overlays_command, simple_read_overlay_table)
11941 (simple_overlay_update_1): Update.
11942 * stap-probe.c (handle_stap_probe): Update.
11943 * stabsread.c (dbx_init_float_type, define_symbol)
11944 (read_one_struct_field, read_enum_type, read_range_type): Update.
11945 * source.c (info_line_command): Update.
11946 * python/python.c (gdbpy_source_objfile_script)
11947 (gdbpy_execute_objfile_script): Update.
11948 * python/py-type.c (save_objfile_types): Update.
11949 * python/py-objfile.c (py_free_objfile): Update.
11950 * python/py-inferior.c (python_new_objfile): Update.
11951 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11952 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11953 (maintenance_check_psymtabs): Update.
11954 * printcmd.c (info_address_command): Update.
11955 * objfiles.h (struct objfile) <arch>: New method, from
11956 get_objfile_arch.
11957 (get_objfile_arch): Don't declare.
11958 * objfiles.c (get_objfile_arch): Remove.
11959 (filter_overlapping_sections): Update.
11960 * minsyms.c (msymbol_is_function): Update.
11961 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11962 (output_nondebug_symbol): Update.
11963 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11964 (mdebug_expand_psymtab): Update.
11965 * machoread.c (macho_add_oso_symfile): Update.
11966 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11967 Update.
11968 * linux-fork.c (checkpoint_command): Update.
11969 * linespec.c (convert_linespec_to_sals): Update.
11970 * jit.c (finalize_symtab): Update.
11971 * infrun.c (insert_exception_resume_from_probe): Update.
11972 * ia64-tdep.c (ia64_find_unwind_table): Update.
11973 * hppa-tdep.c (internalize_unwinds): Update.
11974 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11975 Update.
11976 * gcore.c (call_target_sbrk): Update.
11977 * elfread.c (record_minimal_symbol, elf_symtab_read)
11978 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11979 (elf_gnu_ifunc_resolve_by_got): Update.
11980 * dwarf2/read.c (create_addrmap_from_index)
11981 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11982 (read_debug_names_from_section)
11983 (process_psymtab_comp_unit_reader, add_partial_symbol)
11984 (add_partial_subprogram, process_full_comp_unit)
11985 (read_file_scope, read_func_scope, read_lexical_block_scope)
11986 (read_call_site_scope, dwarf2_ranges_read)
11987 (dwarf2_record_block_ranges, dwarf2_add_field)
11988 (mark_common_block_symbol_computed, read_tag_pointer_type)
11989 (read_tag_string_type, dwarf2_init_float_type)
11990 (dwarf2_init_complex_target_type, read_base_type)
11991 (partial_die_info::read, partial_die_info::read)
11992 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11993 (dwarf2_fetch_die_loc_sect_off): Update.
11994 * dwarf2/loc.c (dwarf2_find_location_expression)
11995 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11996 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11997 (dwarf2_loc_desc_get_symbol_read_needs)
11998 (locexpr_describe_location_piece, locexpr_describe_location_1)
11999 (loclist_describe_location): Update.
12000 * dwarf2/index-write.c (write_debug_names): Update.
12001 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12002 * dtrace-probe.c (dtrace_process_dof): Update.
12003 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12004 (process_one_symbol): Update.
12005 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12006 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12007 (coff_read_enum_type): Update.
12008 * cli/cli-cmds.c (edit_command, list_command): Update.
12009 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12010 * breakpoint.c (create_overlay_event_breakpoint)
12011 (create_longjmp_master_breakpoint)
12012 (create_std_terminate_master_breakpoint)
12013 (create_exception_master_breakpoint, get_sal_arch): Update.
12014 * block.c (block_gdbarch): Update.
12015 * annotate.c (annotate_source_line): Update.
12016
0743fc83
TT
120172020-04-17 Tom Tromey <tromey@adacore.com>
12018
12019 * auto-load.c (show_auto_load_cmd): Remove.
12020 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12021 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12022 (maintenance_print_arc_command): Remove.
12023 * tui/tui-win.c (tui_command): Remove.
12024 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12025 * tui/tui-layout.c (tui_layout_command): Remove.
12026 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12027 * python/python.c (user_set_python, user_show_python): Remove.
12028 (_initialize_python): Use add_basic_prefix_cmd,
12029 add_show_prefix_cmd.
12030 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12031 (install_gdb_commands): Use add_basic_prefix_cmd,
12032 add_show_prefix_cmd.
12033 (info_guile_command): Remove.
12034 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12035 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12036 add_show_prefix_cmd.
12037 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12038 Remove do_set and do_show parameters.
12039 * cli/cli-style.c (set_style, show_style): Remove.
12040 (_initialize_cli_style): Use add_basic_prefix_cmd,
12041 add_show_prefix_cmd.
12042 (cli_style_option::add_setshow_commands): Remove do_set and
12043 do_show parameters.
12044 (cli_style_option::add_setshow_commands): Use
12045 add_basic_prefix_cmd, add_show_prefix_cmd.
12046 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12047 (set_style_name): Remove.
12048 * cli/cli-dump.c (dump_command, append_command): Remove.
12049 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12050 (tekhex_dump_command, binary_dump_command)
12051 (binary_append_command): Remove.
12052 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12053 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12054 (init_w32_command_list): Remove; move into ...
12055 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12056 * valprint.c (set_print, show_print, set_print_raw)
12057 (show_print_raw): Remove.
12058 (_initialize_valprint): Use add_basic_prefix_cmd,
12059 add_show_prefix_cmd.
12060 * typeprint.c (set_print_type, show_print_type): Remove.
12061 (_initialize_typeprint): Use add_basic_prefix_cmd,
12062 add_show_prefix_cmd.
12063 * record.c (set_record_command, show_record_command): Remove.
12064 (_initialize_record): Use add_basic_prefix_cmd,
12065 add_show_prefix_cmd.
12066 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12067 add_show_prefix_cmd.
12068 (info_command, show_command, set_debug, show_debug): Remove.
12069 * top.h (set_history, show_history): Don't declare.
12070 * top.c (set_history, show_history): Remove.
12071 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12072 (unset_tdesc_cmd): Remove.
12073 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12074 add_show_prefix_cmd.
12075 * symtab.c (info_module_command): Remove.
12076 (_initialize_symtab): Use add_basic_prefix_cmd.
12077 * symfile.c (overlay_command): Remove.
12078 (_initialize_symfile): Use add_basic_prefix_cmd.
12079 * sparc64-tdep.c (info_adi_command): Remove.
12080 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12081 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12082 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12083 add_show_prefix_cmd.
12084 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12085 (_initialize_serial): Use add_basic_prefix_cmd,
12086 add_show_prefix_cmd.
12087 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12088 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12089 add_show_prefix_cmd.
12090 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12091 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12092 add_show_prefix_cmd.
12093 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12094 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12095 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12096 add_show_prefix_cmd.
12097 * remote.c (remote_command, set_remote_cmd): Remove.
12098 (_initialize_remote): Use add_basic_prefix_cmd.
12099 * record-full.c (set_record_full_command)
12100 (show_record_full_command): Remove.
12101 (_initialize_record_full): Use add_basic_prefix_cmd,
12102 add_show_prefix_cmd.
12103 * record-btrace.c (cmd_set_record_btrace)
12104 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12105 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12106 (cmd_show_record_btrace_pt): Remove.
12107 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12108 add_show_prefix_cmd.
12109 * ravenscar-thread.c (set_ravenscar_command)
12110 (show_ravenscar_command): Remove.
12111 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12112 add_show_prefix_cmd.
12113 * mips-tdep.c (show_mips_command, set_mips_command)
12114 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12115 add_show_prefix_cmd.
12116 * maint.c (maintenance_command, maintenance_info_command)
12117 (maintenance_check_command, maintenance_print_command)
12118 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12119 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12120 add_show_prefix_cmd.
12121 (show_per_command_cmd): Remove.
12122 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12123 Remove.
12124 (maintenance_show_test_settings_cmd): Remove.
12125 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12126 add_show_prefix_cmd.
12127 * maint-test-options.c (maintenance_test_options_command):
12128 Remove.
12129 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12130 * macrocmd.c (macro_command): Remove
12131 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12132 * language.c (set_check, show_check): Remove.
12133 (_initialize_language): Use add_basic_prefix_cmd,
12134 add_show_prefix_cmd.
12135 * infcmd.c (unset_command): Remove.
12136 (_initialize_infcmd): Use add_basic_prefix_cmd.
12137 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12138 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12139 add_show_prefix_cmd.
12140 * go32-nat.c (go32_info_dos_command): Remove.
12141 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12142 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12143 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12144 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12145 (_initialize_frame): Use add_basic_prefix_cmd,
12146 add_show_prefix_cmd.
12147 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12148 (_initialize_dcache): Use add_basic_prefix_cmd,
12149 add_show_prefix_cmd.
12150 * cp-support.c (maint_cplus_command): Remove.
12151 (_initialize_cp_support): Use add_basic_prefix_cmd.
12152 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12153 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12154 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12155 add_basic_prefix_cmd, add_show_prefix_cmd.
12156 * breakpoint.c (save_command): Remove.
12157 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12158 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12159 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12160 add_show_prefix_cmd.
12161 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12162 (set_ada_command, show_ada_command): Remove.
12163 (_initialize_ada_language): Use add_basic_prefix_cmd,
12164 add_show_prefix_cmd.
12165 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12166
3557f442
KR
121672020-04-16 Kamil Rytarowski <n54@gmx.com>
12168
12169 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12170 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12171
16197208
SM
121722020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12173
12174 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12175 warning messages.
12176
00ac85d3
SM
121772020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12178
12179 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12180 import table is not at beginning of .idata section.
12181
381ce63f
PA
121822020-04-16 Pedro Alves <palves@redhat.com>
12183
12184 * inferior.c (delete_inferior): Use delete operator directly
12185 instead of delete_program_space.
12186 * progspace.c (add_program_space): New, factored out from
12187 program_space::program_space.
12188 (remove_program_space): New, factored out from
12189 delete_program_space.
12190 (program_space::program_space): Remove intro comment. Rewrite.
12191 (program_space::~program_space): Remove intro comment. Call
12192 remove_program_space.
12193 (delete_program_space): Delete.
12194 * progspace.h (program_space::program_space): Make explicit. Move
12195 intro comment here, adjusted.
12196 (program_space::~program_space): Move intro comment here,
12197 adjusted.
12198 (delete_program_space): Remove.
12199
a010605f
TT
122002020-04-16 Tom Tromey <tromey@adacore.com>
12201
12202 * windows-nat.c (windows_nat::handle_access_violation): New
12203 function.
12204 * nat/windows-nat.h (handle_access_violation): Declare.
12205 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12206 windows-nat.c. Call handle_access_violation.
12207
efba5c23
TV
122082020-04-16 Tom de Vries <tdevries@suse.de>
12209
12210 PR symtab/25791
12211 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12212 CUs without psymtab.
12213
97ed802d
KB
122142020-04-16 Kevin Buettner <kevinb@redhat.com>
12215
12216 * python/python.c (do_start_initialization): Don't call
12217 PyEval_InitThreads for Python 3.9 and beyond.
12218
c7d64809
KR
122192020-04-15 Kamil Rytarowski <n54@gmx.com>
12220
12221 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12222 thread functions.
12223 (obsd_nat_target::wait): Likewise.
12224
ce127a96
TT
122252020-04-15 Tom Tromey <tromey@adacore.com>
12226
12227 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12228 (DEBUG_EXCEPT): Use debug_printf.
12229
99f1bc6a
AB
122302020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12231
12232 * completer.c (class completion_tracker::completion_hash_entry)
12233 <hash_name>: New member function.
12234 (completion_tracker::discard_completions): New callback to hash a
12235 completion_hash_entry, pass this to htab_create_alloc.
12236
a0e9b532
JT
122372016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12238
12239 * windows-nat.c (windows_make_so): Warn rather than stopping with
12240 an error if realpath() fails.
12241
06ca5dd4
KR
122422020-04-14 Kamil Rytarowski <n54@gmx.com>
12243
12244 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12245 (nbsd_nat_target::info_proc): Add do_status.
12246
194d088f
TV
122472020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12248 Tom de Vries <tdevries@suse.de>
12249
12250 PR symtab/25718
12251 * psympriv.h (struct partial_symtab::read_symtab)
12252 (struct partial_symtab::expand_psymtab)
12253 (struct partial_symtab::read_dependencies): Update comments.
12254 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12255 read_symtab for includer.
12256 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12257 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12258 (struct dwarf2_include_psymtab::m_readin): Remove.
12259 (struct dwarf2_include_psymtab::includer): New member function.
12260 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12261
c1a66c06
TV
122622020-04-14 Tom de Vries <tdevries@suse.de>
12263
12264 PR symtab/25720
12265 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12266 with NULL symbol_matcher and lookup_name.
12267 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12268 and lookup_name.
12269 * dwarf2/read.c (dw2_expand_symtabs_matching)
12270 (dw2_debug_names_expand_symtabs_matching): Same.
12271 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12272 Make lookup_name a pointer. Update comment.
12273 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12274 lookup_name being a pointer.
12275 * symfile.c (expand_symtabs_matching): Same.
12276 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12277 * linespec.c (iterate_over_all_matching_symtabs): Same.
12278
400b5eca
TT
122792020-04-13 Tom Tromey <tom@tromey.com>
12280
12281 * run-on-main-thread.c: Update include.
12282 * unittests/main-thread-selftests.c: Update include.
12283 * tui/tui-win.c: Update include.
12284 * tui/tui-io.c: Update include.
12285 * tui/tui-interp.c: Update include.
12286 * tui/tui-hooks.c: Update include.
12287 * top.h: Update include.
12288 * top.c: Update include.
12289 * ser-base.c: Update include.
12290 * remote.c: Update include.
12291 * remote-notif.c: Update include.
12292 * remote-fileio.c: Update include.
12293 * record-full.c: Update include.
12294 * record-btrace.c: Update include.
12295 * python/python.c: Update include.
12296 * posix-hdep.c: Update include.
12297 * mingw-hdep.c: Update include.
12298 * mi/mi-main.c: Update include.
12299 * mi/mi-interp.c: Update include.
12300 * main.c: Update include.
12301 * linux-nat.c: Update include.
12302 * interps.c: Update include.
12303 * infrun.c: Update include.
12304 * inf-loop.c: Update include.
12305 * event-top.c: Update include.
12306 * event-loop.c: Move to ../gdbsupport/.
12307 * event-loop.h: Move to ../gdbsupport/.
12308 * async-event.h: Update include.
12309 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12310
93b54c8e
TT
123112020-04-13 Tom Tromey <tom@tromey.com>
12312
12313 * tui/tui-win.c: Include async-event.h.
12314 * remote.c: Include async-event.h.
12315 * remote-notif.c: Include async-event.h.
12316 * record-full.c: Include async-event.h.
12317 * record-btrace.c: Include async-event.h.
12318 * infrun.c: Include async-event.h.
12319 * event-top.c: Include async-event.h.
12320 * event-loop.h: Move some declarations to async-event.h.
12321 * event-loop.c: Don't include ser-event.h or top.h. Move some
12322 code to async-event.c.
12323 * async-event.h: New file.
12324 * async-event.c: New file.
12325 * Makefile.in (COMMON_SFILES): Add async-event.c.
12326 (HFILES_NO_SRCDIR): Add async-event.h.
12327
c1cd3163
TT
123282020-04-13 Tom Tromey <tom@tromey.com>
12329
12330 * utils.c (flush_streams): New function.
12331 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12332
29f2bf4f
TT
123332020-04-13 Tom Tromey <tom@tromey.com>
12334
12335 * event-loop.c (handle_file_event): Use warning, not
12336 printf_unfiltered.
12337
98029d02
TT
123382020-04-13 Tom Tromey <tom@tromey.com>
12339
12340 * event-loop.c: Include <chrono>.
12341
06cc9596
TT
123422020-04-13 Tom Tromey <tom@tromey.com>
12343
12344 * gdb_select.h: Move to ../gdbsupport/.
12345 * event-loop.c: Update include path.
12346 * top.c: Update include path.
12347 * ser-base.c: Update include path.
12348 * ui-file.c: Update include path.
12349 * ser-tcp.c: Update include path.
12350 * guile/scm-ports.c: Update include path.
12351 * posix-hdep.c: Update include path.
12352 * ser-unix.c: Update include path.
12353 * gdb_usleep.c: Update include path.
12354 * mingw-hdep.c: Update include path.
12355 * inflow.c: Update include path.
12356 * infrun.c: Update include path.
12357 * event-top.c: Update include path.
12358
8ae8e197
TT
123592020-04-13 Tom Tromey <tom@tromey.com>
12360
12361 * configure: Rebuild.
12362 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12363
58cf28e8
TT
123642020-04-13 Tom Tromey <tom@tromey.com>
12365
12366 * event-loop.h (start_event_loop): Don't declare.
12367 * event-loop.c (start_event_loop): Move...
12368 * main.c (start_event_loop): ...here. Now static.
12369
b7f999ae
SDJ
123702020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12371
12372 * MAINTAINERS: Update my email address.
12373
1085dfd4
KR
123742020-04-12 Kamil Rytarowski <n54@gmx.com>
12375
12376 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12377 IP_ALL.
12378
49d1d1f5
KR
123792020-04-12 Kamil Rytarowski <n54@gmx.com>
12380
12381 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12382 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12383
b4848d2a
KR
123842020-04-12 Kamil Rytarowski <n54@gmx.com>
12385
12386 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12387 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12388
51c133d5
KR
123892020-04-12 Kamil Rytarowski <n54@gmx.com>
12390
12391 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12392
54b8cbd0
KR
123932020-04-11 Kamil Rytarowski <n54@gmx.com>
12394
12395 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12396 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12397 (nbsd_nat_target::info_proc): New functions.
12398 * nbsd-nat.c (kinfo_get_vmmap): New function.
12399 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12400 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12401 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12402 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12403 functions.
12404 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12405 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12406 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12407 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12408 (KINFO_VME_FLAG_GROWS_DOWN): New.
12409
cf83625d
AS
124102020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12411
12412 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12413 bit shift.
12414
0c4311ab
TT
124152020-04-10 Tom Tromey <tromey@adacore.com>
12416
12417 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12418
3e65b3e9
TT
124192020-04-10 Tom Tromey <tromey@adacore.com>
12420
12421 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12422 separate debug files.
12423
13302e95
HD
124242020-04-10 Hannes Domani <ssbssa@yahoo.de>
12425
12426 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12427 Move to...
12428 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12429 ... here.
12430 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12431 Check for STATUS_WX86_BREAKPOINT.
12432 (windows_nat_target::wait): Same.
12433
bdfc1e8a
TV
124342020-04-10 Tom de Vries <tdevries@suse.de>
12435
12436 PR cli/25808
12437 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12438
f4460aec
SM
124392020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12440
12441 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12442 (Write After Approval): Remove Tom de Vries.
12443
a25198bb
BE
124442020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12445
12446 revert partially:
12447 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12448
aac66a4c
SM
12449 * buildsym.c (record_line): Fix undefined behavior and preserve
12450 lines at eof.
a25198bb 12451
206c98a6
KR
124522020-04-09 Kamil Rytarowski <n54@gmx.com>
12453
12454 * auxv.h (svr4_auxv_parse): New.
12455 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12456 and generic_auxv_parse.
12457 (svr4_auxv_parse): Add.
12458 * obsd-tdep.c: Include "auxv.h".
12459 (obsd_auxv_parse): Remove.
12460 (obsd_init_abi): Remove comment.
12461 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12462 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12463 * nbsd-tdep.c: Include "auxv.h".
12464 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12465
71fbdbaf
TT
124662020-04-08 Tom Tromey <tromey@adacore.com>
12467
12468 * nat/windows-nat.h (last_wait_event): Don't declare.
12469 (wait_for_debug_event): Update comment.
12470 * nat/windows-nat.c (last_wait_event): Now static.
12471
2c1d95e8
TT
124722020-04-08 Tom Tromey <tromey@adacore.com>
12473
12474 * windows-nat.c (wait_for_debug_event): Move to
12475 nat/windows-nat.c.
12476 * nat/windows-nat.h (wait_for_debug_event): Declare.
12477 * nat/windows-nat.c (wait_for_debug_event): Move from
12478 windows-nat.c. No longer static.
12479
d2977bc4
TT
124802020-04-08 Tom Tromey <tromey@adacore.com>
12481
12482 * windows-nat.c (get_windows_debug_event): Use
12483 fetch_pending_stop.
12484 * nat/windows-nat.h (fetch_pending_stop): Declare.
12485 * nat/windows-nat.c (fetch_pending_stop): New function.
12486
e758e19c
TT
124872020-04-08 Tom Tromey <tromey@adacore.com>
12488
12489 * windows-nat.c (windows_continue): Use matching_pending_stop and
12490 continue_last_debug_event.
12491 * nat/windows-nat.h (matching_pending_stop)
12492 (continue_last_debug_event): Declare.
12493 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12494 (matching_pending_stop, continue_last_debug_event): New
12495 functions.
12496
8d30e395
TT
124972020-04-08 Tom Tromey <tromey@adacore.com>
12498
12499 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12500 (handle_exception_result): Move to nat/windows-nat.h.
12501 (DEBUG_EXCEPTION_SIMPLE): Remove.
12502 (windows_nat::handle_ms_vc_exception): New function.
12503 (handle_exception): Move to nat/windows-nat.c.
12504 (get_windows_debug_event): Update.
12505 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12506 nat/windows-nat.c.
12507 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12508 (handle_exception_result): Move from windows-nat.c.
12509 (handle_exception): Declare.
12510 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12511 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12512 windows-nat.c.
12513
29de418d
TT
125142020-04-08 Tom Tromey <tromey@adacore.com>
12515
12516 * windows-nat.c (exception_count, event_count): Remove.
12517 (handle_exception, get_windows_debug_event)
12518 (do_initial_windows_stuff): Update.
12519
a816ba18
TT
125202020-04-08 Tom Tromey <tromey@adacore.com>
12521
12522 * windows-nat.c (windows_nat::handle_load_dll)
12523 (windows_nat::handle_unload_dll): Rename. No longer static.
12524 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12525 Declare.
12526
a00caa12
TT
125272020-04-08 Tom Tromey <tromey@adacore.com>
12528
12529 * complaints.h (stop_whining): Declare at top-level.
12530 (complaint): Don't declare stop_whining.
12531
d41b524f
TT
125322020-04-08 Tom Tromey <tromey@adacore.com>
12533
12534 * windows-nat.c (windows_nat::handle_output_debug_string):
12535 Rename. No longer static.
12536 * nat/windows-nat.h (handle_output_debug_string): Declare.
12537
3c76026d
TT
125382020-04-08 Tom Tromey <tromey@adacore.com>
12539
12540 * windows-nat.c (current_process_handle, current_process_id)
12541 (main_thread_id, last_sig, current_event, last_wait_event)
12542 (current_windows_thread, desired_stop_thread_id, pending_stops)
12543 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12544 (display_selectors, fake_create_process)
12545 (get_windows_debug_event): Update.
12546 * nat/windows-nat.h (current_process_handle, current_process_id)
12547 (main_thread_id, last_sig, current_event, last_wait_event)
12548 (current_windows_thread, desired_stop_thread_id, pending_stops)
12549 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12550 * nat/windows-nat.c (current_process_handle, current_process_id)
12551 (main_thread_id, last_sig, current_event, last_wait_event)
12552 (current_windows_thread, desired_stop_thread_id, pending_stops)
12553 (siginfo_er): New globals. Move from windows-nat.c.
12554
9d8679cc
TT
125552020-04-08 Tom Tromey <tromey@adacore.com>
12556
12557 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12558 (handle_load_dll): Update.
12559 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12560
28688adf
TT
125612020-04-08 Tom Tromey <tromey@adacore.com>
12562
12563 * windows-nat.c (enum thread_disposition_type): Move to
12564 nat/windows-nat.h.
12565 (windows_nat::thread_rec): Rename from thread_rec. No longer
12566 static.
12567 (windows_add_thread, windows_nat_target::fetch_registers)
12568 (windows_nat_target::store_registers, handle_exception)
12569 (windows_nat_target::resume, get_windows_debug_event)
12570 (windows_nat_target::get_tib_address)
12571 (windows_nat_target::thread_name)
12572 (windows_nat_target::thread_alive): Update.
12573 * nat/windows-nat.h (enum thread_disposition_type): Move from
12574 windows-nat.c.
12575 (thread_rec): Declare.
12576
4834dad0
TT
125772020-04-08 Tom Tromey <tromey@adacore.com>
12578
12579 * windows-nat.c: Add "using namespace".
12580 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12581 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12582
65bafd5b
TT
125832020-04-08 Tom Tromey <tromey@adacore.com>
12584
12585 * nat/windows-nat.h (struct windows_thread_info): Declare
12586 destructor.
12587 * nat/windows-nat.c (~windows_thread_info): New.
12588
0a4afda3
TT
125892020-04-08 Tom Tromey <tromey@adacore.com>
12590
12591 PR gdb/22992
12592 * windows-nat.c (current_event): Update comment.
12593 (last_wait_event, desired_stop_thread_id): New globals.
12594 (struct pending_stop): New.
12595 (pending_stops): New global.
12596 (windows_nat_target) <stopped_by_sw_breakpoint>
12597 <supports_stopped_by_sw_breakpoint>: New methods.
12598 (windows_fetch_one_register): Add assertions. Adjust PC.
12599 (windows_continue): Handle pending stops. Suspend other threads
12600 when stepping. Use last_wait_event
12601 (wait_for_debug_event): New function.
12602 (get_windows_debug_event): Use wait_for_debug_event. Handle
12603 pending stops. Queue spurious stops.
12604 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12605 (windows_nat_target::kill): Use wait_for_debug_event.
12606 * nat/windows-nat.h (struct windows_thread_info)
12607 <stopped_at_software_breakpoint>: New field.
12608 * nat/windows-nat.c (windows_thread_info::resume): Clear
12609 stopped_at_software_breakpoint.
12610
8e61ebec
TT
126112020-04-08 Tom Tromey <tromey@adacore.com>
12612
12613 * windows-nat.c (enum thread_disposition_type): New.
12614 (thread_rec): Replace "get_context" parameter with "disposition";
12615 change type.
12616 (windows_add_thread, windows_nat_target::fetch_registers)
12617 (windows_nat_target::store_registers, handle_exception)
12618 (windows_nat_target::resume, get_windows_debug_event)
12619 (windows_nat_target::get_tib_address)
12620 (windows_nat_target::thread_name)
12621 (windows_nat_target::thread_alive): Update.
12622
98a03287
TT
126232020-04-08 Tom Tromey <tromey@adacore.com>
12624
12625 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12626 (windows_continue): Use windows_continue::resume.
12627 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12628 resume>: Declare new methods.
12629 * nat/windows-nat.c: New file.
12630 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12631
7c7411bc
TT
126322020-04-08 Tom Tromey <tromey@adacore.com>
12633
12634 * windows-nat.c (windows_add_thread, windows_delete_thread)
12635 (windows_nat_target::fetch_registers)
12636 (windows_nat_target::store_registers, fake_create_process)
12637 (windows_nat_target::resume, windows_nat_target::resume)
12638 (get_windows_debug_event, windows_nat_target::wait)
12639 (windows_nat_target::pid_to_str)
12640 (windows_nat_target::get_tib_address)
12641 (windows_nat_target::get_ada_task_ptid)
12642 (windows_nat_target::thread_name)
12643 (windows_nat_target::thread_alive): Use lwp, not tid.
12644
2950fdf7
TT
126452020-04-08 Tom Tromey <tromey@adacore.com>
12646
12647 * windows-nat.c (handle_exception)
12648 (windows_nat_target::thread_name): Update.
12649 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12650 <name>: Now unique_xmalloc_ptr.
12651
62fe396b
TT
126522020-04-08 Tom Tromey <tromey@adacore.com>
12653
12654 * windows-nat.c (thread_rec)
12655 (windows_nat_target::fetch_registers): Update.
12656 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12657 Update comment.
12658 <debug_registers_changed, reload_context>: Now bool.
12659
e9534bd2
TT
126602020-04-08 Tom Tromey <tromey@adacore.com>
12661
12662 * windows-nat.c (windows_add_thread): Use new.
12663 (windows_init_thread_list, windows_delete_thread): Use delete.
12664 (get_windows_debug_event): Update.
12665 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12666 destructor, and initializers.
12667
ae1f8880
TT
126682020-04-08 Tom Tromey <tromey@adacore.com>
12669
12670 * windows-nat.c (struct windows_thread_info): Remove.
12671 * nat/windows-nat.h: New file.
12672
55a1e039
TT
126732020-04-08 Tom Tromey <tromey@adacore.com>
12674
12675 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12676 (thread_rec, windows_add_thread, windows_delete_thread)
12677 (windows_continue): Update.
12678
93366324
TT
126792020-04-08 Tom Tromey <tromey@adacore.com>
12680
12681 * windows-nat.c (struct windows_thread_info): Remove typedef.
12682 (thread_head): Remove.
12683 (thread_list): New global.
12684 (thread_rec, windows_add_thread, windows_init_thread_list)
12685 (windows_delete_thread, windows_continue): Update.
12686
0f2265e2
SM
126872020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12688
12689 * windows-tdep.h (windows_init_abi): Add comment.
12690 (cygwin_init_abi): New declaration.
12691 * windows-tdep.c: Split signal enumeration in two, one for
12692 Windows and one for Cygwin.
12693 (windows_gdb_signal_to_target): Only deal with signal of the
12694 Windows OS ABI.
12695 (cygwin_gdb_signal_to_target): New function.
12696 (windows_init_abi): Rename to windows_init_abi_common, don't set
12697 gdb_signal_to_target gdbarch method. Add new new function with
12698 this name.
12699 (cygwin_init_abi): New function.
12700 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12701 comment. Don't call windows_init_abi.
12702 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12703 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12704 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12705 i386_windows_init_abi_common, don't call windows_init_abi. Add
12706 a new function of this name.
12707 (i386_cygwin_init_abi): New function.
12708 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12709 OS ABI Cygwin.
12710
3810f182
SM
127112020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12712
12713 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12714 parameter.c.
12715 (dwarf2_read_gdb_index): Update.
12716
063f8e80
KR
127172020-04-07 Kamil Rytarowski <n54@gmx.com>
12718
12719 * nbsd-tdep.c: Include "objfiles.h".
12720 (nbsd_skip_solib_resolver): New.
12721 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12722
85a9510c 127232020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12724
12725 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12726 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12727 with DW_LLE_base_addressx are being emitted in DWARFv5.
12728 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12729 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12730 unsigned integer.
12731
9fc3eaae 127322020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12733
12734 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12735 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12736 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12737 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12738 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12739 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12740 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12741
12742
41144253 127432020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12744
12745 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12746 (read_loclist_index): New function definition.
12747 (lookup_loclist_base): New function definition.
12748 (read_loclist_header): New function definition.
12749 (dwarf2_cu): Add loclist_base and loclist_header field.
12750 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12751 (read_full_die_1): Read the value of DW_AT_loclists_base.
12752 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12753 (read_attribute_value): Handle DW_FORM_loclistx.
12754 (skip_one_die): Handle DW_FORM_loclistx.
12755 (loclist_header): New structure declaration.
12756 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12757
9f4e76a4
SM
127582020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12759
12760 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12761 constructor. Remove `addr` parameter from other constructor and
12762 add `per_cu` parameter.
12763 * dwarf2/read.c (create_partial_symtab): Update.
12764
25c11aca
TV
127652020-04-07 Tom de Vries <tdevries@suse.de>
12766
12767 PR symtab/25796
12768 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12769 (partial_die_info::fixup): Inherit has_const_value.
12770
5707e24b
TV
127712020-04-07 Tom de Vries <tdevries@suse.de>
12772
12773 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12774 symbols without address.
12775
05f00e22
KR
127762020-04-06 Kamil Rytarowski <n54@gmx.com>
12777
12778 * nbsd-nat.h (struct thread_info): Add forward declaration.
12779 (nbsd_nat_target::thread_alive): Add.
12780 (nbsd_nat_target::thread_name): Likewise.
12781 (nbsd_nat_target::update_thread_list): Likewise.
12782 (update_thread_list::post_attach): Likewise.
12783 (post_attach::pid_to_str): Likewise.
12784 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12785 (nbsd_thread_lister): Add.
12786 (nbsd_nat_target::thread_alive): Likewise.
12787 (nbsd_nat_target::thread_name): Likewise.
12788 (nbsd_add_threads): Likewise.
12789 (update_thread_list::post_attach): Likewise.
12790 (nbsd_nat_target::update_thread_list): Likewise.
12791 (post_attach::pid_to_str): Likewise.
12792
6ee448cc
TT
127932020-04-06 Tom Tromey <tromey@adacore.com>
12794
12795 * ada-valprint.c (print_variant_part): Extract the variant field.
12796 (print_field_values): Use the field as the outer value when
12797 recursing.
12798
dea34e8c
TT
127992020-04-06 Tom Tromey <tromey@adacore.com>
12800
12801 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12802 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12803 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12804 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12805 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12806
93689ce9
TT
128072020-04-06 Tom Tromey <tromey@adacore.com>
12808
12809 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12810 TYPE_CODE_ERROR.
12811
79743962
KR
128122020-04-06 Kamil Rytarowski <n54@gmx.com>
12813
12814 * nbsd-tdep.c: Include "gdbarch.h".
12815 Define enum with NetBSD signal numbers.
12816 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12817 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12818 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12819 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12820 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12821 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12822 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12823 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12824 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12825 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12826 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12827 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12828
9e7c9a03
HD
128292020-04-03 Hannes Domani <ssbssa@yahoo.de>
12830
12831 PR gdb/25325
12832 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12833
d9e49b61
TT
128342020-04-03 Tom Tromey <tromey@adacore.com>
12835
12836 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12837 Read constant block.
12838
e0fc5c3f
SM
128392020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12840
12841 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12842 (gdb_bfd_get_full_section_contents): New declaration.
12843 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12844 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12845 gdb_bfd_get_full_section_contents.
12846
e2ff18a0
SM
128472020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12848
12849 * exec.c (build_section_table): Replace internal_error with
12850 gdb_assert.
12851 (section_table_xfer_memory_partial): Likewise.
12852 * mdebugread.c (parse_partial_symbols): Likewise.
12853 * psymtab.c (lookup_partial_symbol): Likewise.
12854 * utils.c (wrap_here): Likewise.
12855
0830d301
TT
128562020-04-02 Tom Tromey <tromey@adacore.com>
12857
12858 * f-lang.c (build_fortran_types): Use arch_type to initialize
12859 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12860
e7da7f8f
TT
128612020-04-02 Tom Tromey <tromey@adacore.com>
12862
12863 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12864 of attributes.
12865
c90d28ac
AB
128662020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12867 Bernd Edlinger <bernd.edlinger@hotmail.de>
12868 Tom Tromey <tromey@adacore.com>
12869
12870 * buildsym.c (buildsym_compunit::record_line): Remove
12871 deduplication code.
12872
1aa98955
TV
128732020-04-02 Tom de Vries <tdevries@suse.de>
12874
12875 PR ada/24671
12876 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12877
d3214198
TV
128782020-04-02 Tom de Vries <tdevries@suse.de>
12879
12880 * dwarf2/read.c (dwarf2_gdb_index_functions,
12881 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12882 NULL.
12883 * psymtab.c (psym_lookup_global_symbol_language): New function.
12884 (psym_functions): Init psym_lookup_global_symbol_language with
12885 psym_lookup_global_symbol_language.
12886 * symfile-debug.c (debug_sym_quick_functions): Init
12887 lookup_global_symbol_language with NULL.
12888 * symfile.c (set_initial_language): Remove fixme comment.
12889 * symfile.h (struct quick_symbol_functions): Add
12890 lookup_global_symbol_language.
12891 * symtab.c (find_quick_global_symbol_language): New function.
12892 (find_main_name): Use find_quick_global_symbol_language.
12893
2836752f
SM
128942020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12895
12896 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12897
64dc2d4b
BE
128982020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12899
12900 * buildsym.c (record_line): Fix undefined behavior and preserve
12901 lines at eof.
12902
bbe3dc41
BE
129032020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12904
12905 * buildsym.c (record_line): Fix the resizing condition.
12906
6b4a335b
TT
129072020-04-01 Tom Tromey <tom@tromey.com>
12908
12909 * value.h (value_literal_complex): Add comment.
12910 * valops.c (value_literal_complex): Refer to value.h.
12911
3638a098
TT
129122020-04-01 Tom Tromey <tom@tromey.com>
12913
12914 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12915 (scalar_type): New rule, from typebase.
12916 (typebase): Use scalar_type. Recognize complex types.
12917 (field_name): Handle FLOAT_KEYWORD.
12918 (ident_tokens): Add _Complex and __complex__.
12919
c34e8714
TT
129202020-04-01 Tom Tromey <tom@tromey.com>
12921
12922 PR exp/25299:
12923 * valarith.c (promotion_type, complex_binop): New functions.
12924 (scalar_binop): Handle complex numbers. Use promotion_type.
12925 (value_pos, value_neg, value_complement): Handle complex numbers.
12926
fa649bb7
TT
129272020-04-01 Tom Tromey <tom@tromey.com>
12928
12929 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12930 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12931 (parse_number): Handle complex numbers.
12932
981c08ce
TT
129332020-04-01 Tom Tromey <tom@tromey.com>
12934
12935 * c-valprint.c (c_decorations): Change complex suffix to "i".
12936
4c99290d
TT
129372020-04-01 Tom Tromey <tom@tromey.com>
12938
12939 * valprint.c (generic_value_print_complex): Use accessors.
12940 * value.h (value_real_part, value_imaginary_part): Declare.
12941 * valops.c (value_real_part, value_imaginary_part): New
12942 functions.
12943 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12944
5b930b45
TT
129452020-04-01 Tom Tromey <tom@tromey.com>
12946
12947 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12948 (read_range_type): Update.
12949 * mdebugread.c (basic_type): Update.
12950 * go-lang.c (build_go_types): Use init_complex_type.
12951 * gdbtypes.h (struct main_type) <complex_type>: New member.
12952 (init_complex_type): Update.
12953 (arch_complex_type): Don't declare.
12954 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12955 Make name if none given. Use alloc_type_copy. Look for cached
12956 complex type.
12957 (arch_complex_type): Remove.
12958 (gdbtypes_post_init): Use init_complex_type.
12959 * f-lang.c (build_fortran_types): Use init_complex_type.
12960 * dwarf2/read.c (read_base_type): Update.
12961 * d-lang.c (build_d_types): Use init_complex_type.
12962 * ctfread.c (read_base_type): Update.
12963
53cccef1
TBA
129642020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12965
12966 * infrun.c (stop_all_threads): Update assertion, plus when
12967 stopping threads, take into account that we might be trying
12968 to stop an all-stop target.
12969 (stop_waiting): Call 'stop_all_threads' if there exists a
12970 non-stop target.
12971
a0714d30
TBA
129722020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12973
12974 * target.h (exists_non_stop_target): New function declaration.
12975 * target.c (exists_non_stop_target): New function.
12976
60e22c1e
HD
129772020-04-01 Hannes Domani <ssbssa@yahoo.de>
12978
12979 PR gdb/24789
12980 * eval.c (is_integral_or_integral_reference): New function.
12981 (evaluate_subexp_standard): Allow integer references in
12982 pointer arithmetic.
12983
e139a727
TBA
129842020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12985
12986 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12987 check for no ptid in the stop reply when the target is non-stop.
12988
e0802d59
TT
129892020-04-01 Tom Tromey <tromey@adacore.com>
12990
12991 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12992 "name" parameter to rvalue reference. Initialize m_name_holder.
12993 <lookup_name_info>: New overloads.
12994 <name>: Return gdb::string_view.
12995 <c_str>: New method.
12996 <make_ignore_params>: Update.
12997 <search_name_hash>: Update.
12998 <language_lookup_name>: Return const char *.
12999 <m_name>: Change type.
13000 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13001 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13002 (lookup_name_info::match_any): Update.
13003 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13004 Update.
13005 * minsyms.c (linkage_name_str): Update.
13006 * language.c (default_symbol_name_matcher): Update.
13007 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13008 Update.
13009 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13010 (ada_lookup_name_info::ada_lookup_name_info): Update.
13011 (literal_symbol_name_matcher): Update.
13012
8c072cb6
TT
130132020-04-01 Tom Tromey <tromey@adacore.com>
13014
13015 * psymtab.c (psymtab_search_name): Remove function.
13016 (psym_lookup_symbol): Create search name and lookup name here.
13017 (lookup_partial_symbol): Remove "name" parameter; add
13018 lookup_name.
13019 (psym_expand_symtabs_for_function): Update.
13020
6f29a534
TT
130212020-03-31 Joel Jones <joelkevinjones@gmail.com>
13022
13023 PR tui/25597:
13024 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13025
af62665e
TT
130262020-03-31 Tom Tromey <tromey@adacore.com>
13027
13028 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13029 memcpy.
13030
d1a89da5
NC
130312020-03-30 Nelson Chu <nelson.chu@sifive.com>
13032
13033 * features/riscv/32bit-csr.xml: Regenerated.
13034 * features/riscv/64bit-csr.xml: Regenerated.
13035
d8af9068
TT
130362020-03-30 Tom Tromey <tromey@adacore.com>
13037
13038 * ada-valprint.c (print_variant_part): Update.
13039 * ada-lang.h (ada_which_variant_applies): Update.
13040 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13041 outer_valaddr parameters; replace with "outer" value parameter.
13042 (to_fixed_variant_branch_type): Update.
13043
227c0bf4
PFC
130442020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13045
13046 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13047 <list>. Remove inclusion of observable.h.
13048 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13049 (struct arch_lwp_info): New struct.
13050 (class ppc_linux_dreg_interface): New class.
13051 (struct ppc_linux_process_info): New struct.
13052 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13053 <low_new_clone, low_forget_process, low_prepare_to_resume>
13054 <copy_thread_dreg_state, mark_thread_stale>
13055 <mark_debug_registers_changed, register_hw_breakpoint>
13056 <clear_hw_breakpoint, register_wp, clear_wp>
13057 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13058 <num_memory_accesses, get_trigger_type>
13059 <create_watchpoint_request, hwdebug_point_cmp>
13060 <init_arch_lwp_info, get_arch_lwp_info>
13061 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13062 methods.
13063 <struct ptid_hash>: New inner struct.
13064 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13065 members.
13066 (saved_dabr_value, hwdebug_info, max_slots_number)
13067 (struct hw_break_tuple, struct thread_points, ppc_threads)
13068 (have_ptrace_hwdebug_interface)
13069 (hwdebug_find_thread_points_by_tid)
13070 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13071 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13072 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13073 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13074 use m_dreg_interface.
13075 (hwdebug_point_cmp): Change to...
13076 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13077 reference arguments instead of pointers.
13078 (ppc_linux_nat_target::ranged_break_num_registers): Use
13079 m_dreg_interface.
13080 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13081 m_dreg_interface. Call register_hw_breakpoint.
13082 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13083 m_dreg_interface. Call clear_hw_breakpoint.
13084 (get_trigger_type): Change to...
13085 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13086 comment.
13087 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13088 use m_dreg_interface. Call register_hw_breakpoint.
13089 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13090 use m_dreg_interface. Call clear_hw_breakpoint.
13091 (can_use_watchpoint_cond_accel): Change to...
13092 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13093 method. Update comment, use m_dreg_interface and
13094 m_process_info.
13095 (calculate_dvc): Change to...
13096 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13097 m_dreg_interface.
13098 (num_memory_accesses): Change to...
13099 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13100 (check_condition): Change to...
13101 (ppc_linux_nat_target::check_condition): ...this method.
13102 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13103 comment, use m_dreg_interface.
13104 (create_watchpoint_request): Change to...
13105 (ppc_linux_nat_target::create_watchpoint_request): ...this
13106 method. Use m_dreg_interface.
13107 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13108 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13109 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13110 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13111 (ppc_linux_nat_target::low_forget_process)
13112 (ppc_linux_nat_target::low_new_fork)
13113 (ppc_linux_nat_target::low_new_clone)
13114 (ppc_linux_nat_target::low_delete_thread)
13115 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13116 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13117 only call mark_thread_stale.
13118 (ppc_linux_thread_exit): Remove.
13119 (ppc_linux_nat_target::stopped_data_address): Change to...
13120 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13121 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13122 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13123 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13124 comment. Call low_stopped_data_address.
13125 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13126 m_dreg_interface.
13127 (ppc_linux_nat_target::masked_watch_num_registers): Use
13128 m_dreg_interface.
13129 (ppc_linux_nat_target::copy_thread_dreg_state)
13130 (ppc_linux_nat_target::mark_thread_stale)
13131 (ppc_linux_nat_target::mark_debug_registers_changed)
13132 (ppc_linux_nat_target::register_hw_breakpoint)
13133 (ppc_linux_nat_target::clear_hw_breakpoint)
13134 (ppc_linux_nat_target::register_wp)
13135 (ppc_linux_nat_target::clear_wp)
13136 (ppc_linux_nat_target::init_arch_lwp_info)
13137 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13138 (_initialize_ppc_linux_nat): Remove observer callback.
13139
4db10d8f
PFC
131402020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13141
13142 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13143 (ppc_linux_nat_target::auxv_parse)
13144 (ppc_linux_nat_target::read_description)
13145 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13146 Move up.
13147
1310c1b0
PFC
131482020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13149
13150 * linux-nat.h (low_new_clone): New method.
13151 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13152
69b037c3
SM
131532020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13154
13155 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13156 (dbx_expand_psymtab): ... this.
13157 (start_psymtab): Update.
13158 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13159 (mdebug_expand_psymtab): ... this.
13160 (parse_partial_symbols): Update.
13161 (new_psymtab): Update.
13162 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13163 (xcoff_expand_psymtab): ... this.
13164 (xcoff_start_psymtab): Update.
13165
48993951
SM
131662020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13167
13168 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13169 <expand_dependencies>: ... this.
13170 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13171 (partial_symtab::expand_dependencies): ... this.
13172 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13173 Update.
13174 (dwarf2_psymtab::expand_psymtab): Update.
13175 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13176 * mdebugread.c (psymtab_to_symtab_1): Update.
13177 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13178
3ad83046
SM
131792020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13180
13181 * psympriv.h (discard_psymtab): Remove.
13182 * dbxread.c (dbx_end_psymtab): Update.
13183 * xcoffread.c (xcoff_end_psymtab): Update.
13184
4d1b9ab6
TT
131852020-03-28 Tom Tromey <tom@tromey.com>
13186
13187 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13188 comment.
13189
f1749218
TT
131902020-03-28 Tom Tromey <tom@tromey.com>
13191
13192 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13193
ebea7626
HD
131942020-03-27 Hannes Domani <ssbssa@yahoo.de>
13195
13196 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13197
a879b4d5
JB
131982020-03-26 John Baldwin <jhb@FreeBSD.org>
13199
13200 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13201
0826b30a
TT
132022020-03-26 Tom Tromey <tom@tromey.com>
13203
13204 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13205 (mark_common_block_symbol_computed, read_tag_string_type)
13206 (attr_to_dynamic_prop, read_subrange_type): Update.
13207 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13208 to be methods on struct attribute.
13209 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13210 (read_call_site_scope, partial_die_info::read)
13211 (partial_die_info::read, lookup_die_type, follow_die_ref):
13212 Update.
13213 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13214 from dwarf2_get_ref_die_offset.
13215 (attribute::constant_value): New method, from
13216 dwarf2_get_attr_constant_value.
13217 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13218 Declare method.
13219 <constant_value>: New method.
13220
2b2558bf
TT
132212020-03-26 Tom Tromey <tom@tromey.com>
13222
13223 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13224 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13225 (dwarf_type_encoding_name): Move to stringify.c.
13226 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13227 * dwarf2/stringify.c: New file.
13228 * dwarf2/stringify.h: New file.
13229
eeb64781
TT
132302020-03-26 Tom Tromey <tom@tromey.com>
13231
13232 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13233 Rewrite.
13234
a39fdb41
TT
132352020-03-26 Tom Tromey <tom@tromey.com>
13236
13237 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13238 methods.
13239 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13240 (lookup_ranges_base): Likewise.
13241 (read_cutu_die_from_dwo, read_full_die_1): Update.
13242
436c571c
TT
132432020-03-26 Tom Tromey <tom@tromey.com>
13244
13245 * dwarf2/read.c (read_import_statement, read_file_scope)
13246 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13247 (read_lexical_block_scope, read_call_site_scope)
13248 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13249 (handle_struct_member_die, process_structure_scope)
13250 (update_enumeration_type_from_children)
13251 (process_enumeration_scope, read_array_type, read_common_block)
13252 (read_namespace, read_module, read_subroutine_type): Update.
13253 (sibling_die): Remove.
13254
052c8bb8
TT
132552020-03-26 Tom Tromey <tom@tromey.com>
13256
13257 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13258 (build_type_psymtabs_reader, read_structure_type)
13259 (read_enumeration_type, read_full_die_1): Update.
13260 (dwarf2_attr_no_follow): Move to die.h.
13261 * dwarf2/die.h (struct die_info) <attr>: New method.
13262
2b24b6e4
TT
132632020-03-26 Tom Tromey <tom@tromey.com>
13264
13265 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13266 <base_address>: Now an optional.
13267 (dwarf2_find_base_address, dwarf2_rnglists_process)
13268 (dwarf2_ranges_process, fill_in_loclist_baton)
13269 (dwarf2_symbol_mark_computed): Update.
13270
c2d50fd0
TT
132712020-03-26 Tom Tromey <tom@tromey.com>
13272
13273 * dwarf2/read.c (struct die_info): Move to die.h.
13274 * dwarf2/die.h: New file.
13275
0df7ad3a
TT
132762020-03-26 Tom Tromey <tom@tromey.com>
13277
13278 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13279 * dwarf2/read.c
13280 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13281 Move to line-header.c.
13282 (read_checked_initial_length_and_offset, read_formatted_entries):
13283 Likewise.
13284 (dwarf_decode_line_header): Split into two.
13285 * dwarf2/line-header.c
13286 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13287 Move from read.c.
13288 (read_checked_initial_length_and_offset, read_formatted_entries):
13289 Likewise.
13290 (dwarf_decode_line_header): New function, split from read.c.
13291
86c0bb4c
TT
132922020-03-26 Tom Tromey <tom@tromey.com>
13293
13294 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13295 Declare method.
13296 * dwarf2/read.c (read_attribute_value): Update.
13297 (dwarf2_per_objfile::read_line_string): Rename from
13298 read_indirect_line_string.
13299 (read_formatted_entries): Update.
13300
2ef46c2f
TT
133012020-03-26 Tom Tromey <tom@tromey.com>
13302
13303 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13304 variable.
13305
4f9c1eda
TT
133062020-03-26 Tom Tromey <tom@tromey.com>
13307
13308 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13309 const.
13310 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13311 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13312 parameter const.
13313
5a0e026f
TT
133142020-03-26 Tom Tromey <tom@tromey.com>
13315
13316 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13317 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13318 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13319 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13320
8844c11b
TT
133212020-03-26 Tom Tromey <tom@tromey.com>
13322
13323 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13324 file_names_size, file_full_name, file_file_name>: Use const.
13325 <file_name_at, file_names>: Add const overload.
13326 * dwarf2/line-header.c (line_header::file_file_name)
13327 (line_header::file_full_name): Update.
13328
c90ec28a
TT
133292020-03-26 Tom Tromey <tom@tromey.com>
13330
13331 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13332 (macro_start_file, consume_improper_spaces)
13333 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13334 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13335 (dwarf_decode_macros): Move to macro.c.
13336 * dwarf2/macro.c: New file.
13337 * dwarf2/macro.h: New file.
13338 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13339
4f44ae6c
TT
133402020-03-26 Tom Tromey <tom@tromey.com>
13341
13342 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13343 method.
13344 * dwarf2/section.c: New method. From
13345 read_indirect_string_at_offset_from.
13346 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13347 (read_indirect_string_at_offset_from): Move to section.c.
13348 (read_indirect_string_at_offset): Rewrite.
13349 (read_indirect_line_string_at_offset): Remove.
13350 (read_indirect_string, read_indirect_line_string)
13351 (dwarf_decode_macro_bytes): Update.
13352
a0194fa8
TT
133532020-03-26 Tom Tromey <tom@tromey.com>
13354
13355 * dwarf2/section.h (struct dwarf2_section_info)
13356 <overload_complaint>: Declare.
13357 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13358 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13359 Rename from dwarf2_section_buffer_overflow_complaint.
13360 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13361 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13362
3d27bbdb
TT
133632020-03-26 Tom Tromey <tom@tromey.com>
13364
13365 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13366 Declare.
13367 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13368 Move from read.c.
13369 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13370 to section.c.
13371
9eac9650
TT
133722020-03-26 Tom Tromey <tom@tromey.com>
13373
13374 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13375
bf80d710
TT
133762020-03-26 Tom Tromey <tom@tromey.com>
13377
13378 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13379 "builder".
13380 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13381 parameter.
13382 (dwarf_decode_macros): Update.
13383
0314b390
TT
133842020-03-26 Tom Tromey <tom@tromey.com>
13385
13386 * dwarf2/read.c (read_attribute_value): Update.
13387 (read_indirect_string_from_dwz): Move to dwz.c; change into
13388 method.
13389 (dwarf_decode_macro_bytes): Update.
13390 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13391 * dwarf2/dwz.c: New file.
13392 * Makefile.in (COMMON_SFILES): Add dwz.c.
13393
9fda78b6
TT
133942020-03-26 Tom Tromey <tom@tromey.com>
13395
13396 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13397 * dwarf2/read.c: Add include.
13398 * dwarf2/index-write.c: Add include.
13399 * dwarf2/index-cache.c: Add include.
13400 * dwarf2/dwz.h: New file.
13401
33aa3c10
TT
134022020-03-25 Tom Tromey <tom@tromey.com>
13403
13404 * compile/compile-object-load.c (get_out_value_type): Mention
13405 correct symbol name in error message.
13406
d503b685
HD
134072020-03-25 Hannes Domani <ssbssa@yahoo.de>
13408
13409 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13410
7b1eff95
TV
134112020-03-25 Tom de Vries <tdevries@suse.de>
13412
13413 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13414 * symmisc.c (dump_symtab_1): Print user and includes fields.
13415 (maintenance_info_symtabs): Same.
13416
dd895392
AB
134172020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13418
13419 PR gdb/25534
13420 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13421 (riscv_regcache_cooked_write): New function.
13422 (riscv_push_dummy_call): Use new function.
13423 (riscv_return_value): Likewise.
13424
5ab2fbf1
SM
134252020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13426
13427 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13428 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13429 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13430 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13431 * infrun.c (follow_fork): Likewise.
13432 (follow_fork_inferior): Likewise.
13433 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13434 * linux-nat.h (class linux_nat_target): Likewise.
13435 * remote.c (class remote_target) <follow_fork>: Likewise.
13436 (remote_target::follow_fork): Likewise.
13437 * target-delegates.c: Re-generate.
13438 * target.c (default_follow_fork): Likewise.
13439 (target_follow_fork): Likewise.
13440 * target.h (struct target_ops) <follow_fork>: Likewise.
13441 (target_follow_fork): Likewise.
13442
a64fafb5
TV
134432020-03-24 Tom de Vries <tdevries@suse.de>
13444
13445 * psymtab.c (maintenance_info_psymtabs): Print user field.
13446
fe26d3a3
TT
134472020-03-20 Tom Tromey <tromey@adacore.com>
13448
13449 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13450 const.
13451 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13452 const.
13453
c884cc46
SM
134542020-03-20 Simon Marchi <simon.marchi@efficios.com>
13455
13456 * ptrace.m4: Don't check for ptrace declaration.
13457 * config.in: Re-generate.
13458 * configure: Re-generate.
13459 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13460 not defined.
13461
1ff700c2
KR
134622020-03-20 Kamil Rytarowski <n54@gmx.com>
13463
13464 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13465 `PTRACE_TYPE_RET'.
13466 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13467 * sparc-nat.c (gdb_ptrace): Likewise.
13468 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13469
f7d4f0b1
TT
134702020-03-20 Tom Tromey <tromey@adacore.com>
13471
13472 * c-exp.y (lex_one_token): Fix assert.
13473
f67210ff
TT
134742020-03-20 Tom Tromey <tromey@adacore.com>
13475
13476 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13477 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13478 strncpy call.
13479
1773be9e
TT
134802020-03-20 Tom Tromey <tromey@adacore.com>
13481
13482 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13483
70304be9
TT
134842020-03-20 Tom Tromey <tromey@adacore.com>
13485
13486 * ada-valprint.c (print_variant_part): Remove parameters; switch
13487 to value-based API.
13488 (print_field_values): Likewise.
13489 (ada_val_print_struct_union): Likewise.
13490 (ada_value_print_1): Update.
13491
9faa006d
KR
134922020-03-20 Kamil Rytarowski <n54@gmx.com>
13493
13494 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13495 nbsd_nat_target instead of inf_ptrace_target.
13496 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13497 nbsd_nat_target.
13498
4a90f062
KR
134992020-03-20 Kamil Rytarowski <n54@gmx.com>
13500
13501 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13502 it to the ptrace call.
13503 * (store_registers): Likewise.
13504
135052020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13506
13507 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13508 it to the ptrace call.
13509 * (store_registers): Likewise.
13510
2d07da27
LM
135112020-03-19 Luis Machado <luis.machado@linaro.org>
13512
13513 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13514 valid, fetch vg value from ptrace.
13515
f09db380
KR
135162020-03-19 Kamil Rytarowski <n54@gmx.com>
13517 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13518 * inf-ptrace.c: Likewise.
13519 * (gdb_ptrace): Add.
13520 * (inf_ptrace_target::resume): Update.
13521 * (inf_ptrace_target::xfer_partial): Likewise.
13522 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13523 * (inf_ptrace_peek_poke): Update.
13524
fcc7376e
KR
135252020-03-19 Kamil Rytarowski <n54@gmx.com>
13526
13527 * x86-bsd-nat.c (gdb_ptrace): New.
13528 * (x86bsd_dr_set): Add new argument `ptid'.
13529 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13530 x86bsd_dr_set_addr): Update.
13531
cada5fc9
AB
135322020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13533
13534 * remote.c (remote_target::process_stop_reply): Handle events for
13535 all threads differently.
13536
19a2740f
AB
135372020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13538
13539 * completer.c (completion_tracker::remove_completion): Define new
13540 function.
13541 * completer.h (completion_tracker::remove_completion): Declare new
13542 function.
13543 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13544 when adding a C++ function symbol.
13545
724fd9ba
AB
135462020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13547
13548 * completer.c (completion_tracker::completion_hash_entry): Define
13549 new class.
13550 (advance_to_filename_complete_word_point): Call
13551 recompute_lowest_common_denominator.
13552 (completion_tracker::completion_tracker): Call discard_completions
13553 to setup the hash table.
13554 (completion_tracker::discard_completions): Allow for being called
13555 from the constructor, pass new equal function, and element deleter
13556 when constructing the hash table. Initialise new class member
13557 variables.
13558 (completion_tracker::maybe_add_completion): Remove use of
13559 m_entries_vec, and store more information into m_entries_hash.
13560 (completion_tracker::recompute_lcd_visitor): New function, most
13561 content taken from...
13562 (completion_tracker::recompute_lowest_common_denominator):
13563 ...here, this now just visits each item in the hash calling the
13564 above visitor.
13565 (completion_tracker::build_completion_result): Remove use of
13566 m_entries_vec, call recompute_lowest_common_denominator.
13567 * completer.h (completion_tracker::have_completions): Remove use
13568 of m_entries_vec.
13569 (completion_tracker::completion_hash_entry): Declare new class.
13570 (completion_tracker::recompute_lowest_common_denominator): Change
13571 function signature.
13572 (completion_tracker::recompute_lcd_visitor): Declare new function.
13573 (completion_tracker::m_entries_vec): Delete.
13574 (completion_tracker::m_entries_hash): Initialize to NULL.
13575 (completion_tracker::m_lowest_common_denominator_valid): New
13576 member variable.
13577 (completion_tracker::m_lowest_common_denominator_max_length): New
13578 member variable.
13579
5a82b8a1
KR
135802020-03-17 Kamil Rytarowski <n54@gmx.com>
13581
13582 * regformats/regdef.h: Put reg in gdb namespace.
13583
fb516a69
KR
135842020-03-17 Kamil Rytarowski <n54@gmx.com>
13585
13586 * i386-bsd-nat.c (gdb_ptrace): New.
13587 * (i386bsd_fetch_inferior_registers,
13588 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13589 * (i386bsd_fetch_inferior_registers,
13590 i386bsd_store_inferior_registers) Use gdb_ptrace.
13591
1c0aa1fb
KR
135922020-03-17 Kamil Rytarowski <n54@gmx.com>
13593
13594 * amd64-bsd-nat.c (gdb_ptrace): New.
13595 * (amd64bsd_fetch_inferior_registers,
13596 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13597 * (amd64bsd_fetch_inferior_registers,
13598 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13599
5ccd2fb7
KR
136002020-03-17 Kamil Rytarowski <n54@gmx.com>
13601
13602 * user-regs.c (user_reg::read): Rename to...
13603 (user_reg::xread): ...this.
13604 * (append_user_reg): Rename argument `read' to `xread'.
13605 * (user_reg_add_builtin): Likewise.
13606 * (user_reg_add): Likewise.
13607 * (value_of_user_reg): Likewise.
13608
2108a63a
KR
136092020-03-17 Kamil Rytarowski <n54@gmx.com>
13610
13611 * sparc-nat.c (gdb_ptrace): New.
13612 * sparc-nat.c (sparc_fetch_inferior_registers)
13613 (sparc_store_inferior_registers) Remove obsolete comment.
13614 * sparc-nat.c (sparc_fetch_inferior_registers)
13615 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13616 * sparc-nat.c (sparc_fetch_inferior_registers)
13617 (sparc_store_inferior_registers) Use gdb_ptrace.
13618
a225c9a8
KR
136192020-03-17 Kamil Rytarowski <n54@gmx.com>
13620
13621 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13622 it to the ptrace call.
13623 * sh-nbsd-nat.c (store_registers): Likewise.
13624
98097623
KR
136252020-03-17 Kamil Rytarowski <n54@gmx.com>
13626
13627 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13628 nbsd_nat_target instead of inf_ptrace_target.
13629 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13630 nbsd_nat_target.
13631
9e38d619
KR
136322020-03-17 Kamil Rytarowski <n54@gmx.com>
13633
13634 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13635
a2ecbe9f
KR
136362020-03-17 Kamil Rytarowski <n54@gmx.com>
13637
13638 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13639 <sys/sysctl.h>.
13640 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13641
58990295
TV
136422020-03-17 Tom de Vries <tdevries@suse.de>
13643
13644 PR gdb/23710
13645 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13646 fields.
13647 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13648 fields.
13649 (process_imported_unit_die): Skip import of c++ CUs.
13650
771dd3a8
TT
136512020-03-16 Tom Tromey <tom@tromey.com>
13652
13653 * p-valprint.c (pascal_object_print_value): Initialize
13654 base_value.
13655
817a7585
AK
136562020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13657 Shahab Vahedi <shahab@synopsys.com>
13658
13659 * Makefile.in: Add arch/arc.o
13660 * configure.tgt: Likewise.
13661 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13662 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13663 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13664 * arc-tdep.h (arc_read_description): Add proto type.
13665 * arch/arc.c: New file.
13666 * arch/arc.h: Likewise.
13667 * features/Makefile: Replace old target descriptions with new.
13668 * features/arc-arcompact.c: Remove.
13669 * features/arc-arcompact.xml: Likewise.
13670 * features/arc-v2.c: Likewise
13671 * features/arc-v2.xml: Likewise
13672 * features/arc/aux-arcompact.xml: New file.
13673 * features/arc/aux-v2.xml: Likewise.
13674 * features/arc/core-arcompact.xml: Likewise.
13675 * features/arc/core-v2.xml: Likewise.
13676 * features/arc/aux-arcompact.c: Generate.
13677 * features/arc/aux-v2.c: Likewise.
13678 * features/arc/core-arcompact.c: Likewise.
13679 * features/arc/core-v2.c: Likewise.
13680 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13681
67430cd0
TT
136822020-03-16 Tom Tromey <tromey@adacore.com>
13683
13684 PR gdb/25663:
13685 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13686 putting value into bcache.
13687
30efb6c7
SM
136882020-03-16 Simon Marchi <simon.marchi@efficios.com>
13689
13690 PR gdb/21500
13691 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13692 to...
13693 (amd64_windows_init_abi_common): ... this. Don't set size of
13694 long type.
13695 (amd64_windows_init_abi): New function.
13696 (amd64_cygwin_init_abi): New function.
13697 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13698 the Cygwin OS ABI.
13699 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13700 comment.
13701
8db52437
SM
137022020-03-16 Simon Marchi <simon.marchi@efficios.com>
13703
13704 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13705 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13706 (pe_import_directory_entry): New struct type.
13707 (is_linked_with_cygwin_dll): New function.
13708 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13709 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13710 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13711
5982a56a
SM
137122020-03-16 Simon Marchi <simon.marchi@efficios.com>
13713
13714 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13715 i386_cygwin_core_osabi_sniffer.
13716
7a1998df
SM
137172020-03-16 Simon Marchi <simon.marchi@efficios.com>
13718
13719 * i386-cygwin-tdep.c: Rename to...
13720 * i386-windows-tdep.c: ... this.
13721 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13722 i386-windows-tdep.c.
13723 * configure.tgt: Likewise.
13724
053205cc
SM
137252020-03-16 Simon Marchi <simon.marchi@efficios.com>
13726
13727 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13728 * osabi.c (gdb_osabi_names): Add "Windows".
13729 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13730 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13731 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13732 i386_cygwin_osabi_sniffer.
13733 (_initialize_i386_cygwin_tdep): Register OS ABI
13734 GDB_OSABI_WINDOWS for i386.
13735 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13736 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13737 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13738 for x86-64.
13739 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13740 when the target matches '*-*-mingw*'.
13741
fe4b2ee6
SM
137422020-03-16 Simon Marchi <simon.marchi@efficios.com>
13743
13744 * defs.h (enum gdb_osabi): Move to...
13745 * osabi.h (enum gdb_osabi): ... here.
13746 * gdbarch.sh: Include osabi.h in gdbarch.h.
13747 * gdbarch.h: Re-generate.
13748
cb9b645d
SM
137492020-03-16 Simon Marchi <simon.marchi@efficios.com>
13750
13751 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13752 function.
13753 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13754
3293bbaf
TT
137552020-03-14 Tom Tromey <tom@tromey.com>
13756
13757 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13758 for C++.
13759 (c_type_print_modifier): Likewise. Add "language" parameter.
13760 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13761 (c_type_print_base_1): Update.
13762 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13763 constants.
13764 * type-stack.c (type_stack::insert): Handle tp_atomic and
13765 tp_restrict.
13766 (type_stack::follow_type_instance_flags): Likewise.
13767 (type_stack::follow_types): Likewise. Merge type-following code.
13768 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13769 (space_identifier, cv_with_space_id)
13770 (const_or_volatile_or_space_identifier_noopt)
13771 (const_or_volatile_or_space_identifier): Remove.
13772 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13773 rules.
13774 (ptr_operator, typebase): Update.
13775 (enum token_flag) <FLAG_C>: New constant.
13776 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13777 "_Atomic".
13778 (lex_one_token): Handle FLAG_C.
13779
154151a6
KR
137802020-03-14 Kamil Rytarowski <n54@gmx.com>
13781
13782 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13783 it to the ptrace call.
13784 * m68k-bsd-nat.c (store_registers): Likewise.
13785
bc107784
KR
137862020-03-14 Kamil Rytarowski <n54@gmx.com>
13787
13788 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13789 gdb_byte *.
13790 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13791 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13792 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13793
01a80117
KR
137942020-03-14 Kamil Rytarowski <n54@gmx.com>
13795
13796 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13797 nbsd_nat_target instead of inf_ptrace_target.
13798 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13799 nbsd_nat_target.
13800
f90280ca
KR
138012020-03-14 Kamil Rytarowski <n54@gmx.com>
13802
13803 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13804 register_t.
13805
6def66f1
KR
138062020-03-14 Kamil Rytarowski <n54@gmx.com>
13807
13808 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13809 it to the ptrace call.
13810 * alpha-bsd-nat.c (store_registers): Likewise.
13811
66eaca97
KR
138122020-03-14 Kamil Rytarowski <n54@gmx.com>
13813
13814 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13815 includes.
13816 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13817 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13818 fill_fpregset): Likewise.
13819
4fed520b
KR
138202020-03-14 Kamil Rytarowski <n54@gmx.com>
13821
13822 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13823 nbsd_nat_target instead of inf_ptrace_target.
13824 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13825 nbsd_nat_target.
13826
2190cf06
KR
138272020-03-14 Kamil Rytarowski <n54@gmx.com>
13828
13829 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13830 register_t.
13831
75c56d3d
KR
138322020-03-14 Kamil Rytarowski <n54@gmx.com>
13833
13834 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13835 it to the ptrace call.
13836 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13837 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13838 * arm-nbsd-nat.c (store_register): Likewise.
13839 * arm-nbsd-nat.c (store_regs): Likewise.
13840 * arm-nbsd-nat.c (store_fp_register): Likewise.
13841 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13842
6018d381
KR
138432020-03-14 Kamil Rytarowski <n54@gmx.com>
13844
13845 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13846 nbsd_nat_target instead of inf_ptrace_target.
13847 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13848 nbsd_nat_target.
13849
013f99f0
KR
138502020-03-14 Kamil Rytarowski <n54@gmx.com>
13851
13852 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13853 it to the ptrace call.
13854 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13855
12753073
KR
138562020-03-14 Kamil Rytarowski <n54@gmx.com>
13857
6227b330
KR
13858 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13859 it to the ptrace call.
13860 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13861
138622020-03-14 Kamil Rytarowski <n54@gmx.com>
13863
13864 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13865 gdb_byte *.
12753073
KR
13866 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13867
d5be5fa4
KR
138682020-03-14 Kamil Rytarowski <n54@gmx.com>
13869
13870 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13871 instead of inf_ptrace_target.
13872 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13873 nbsd_nat_target.
13874
8110f842
KR
138752020-03-14 Kamil Rytarowski <n54@gmx.com>
13876
13877 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13878 register_t.
13879
52feded7
KR
138802020-03-14 Kamil Rytarowski <n54@gmx.com>
13881
13882 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13883 register_t.
13884
25567eee
KR
138852020-03-14 Kamil Rytarowski <n54@gmx.com>
13886
13887 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13888 register_t.
13889
426a9c18
TT
138902020-03-13 Tom Tromey <tom@tromey.com>
13891
13892 * value.h (val_print): Don't declare.
13893 * valprint.h (val_print_array_elements)
13894 (val_print_scalar_formatted, generic_val_print): Don't declare.
13895 * valprint.c (generic_val_print_array): Take a struct value.
13896 (generic_val_print_ptr, generic_val_print_memberptr)
13897 (generic_val_print_bool, generic_val_print_int)
13898 (generic_val_print_char, generic_val_print_complex)
13899 (generic_val_print): Remove.
13900 (generic_value_print): Update.
13901 (do_val_print): Remove unused parameters. Don't call
13902 la_val_print.
13903 (val_print): Remove.
13904 (common_val_print): Update. Don't call value_check_printable.
13905 (val_print_scalar_formatted, val_print_array_elements): Remove.
13906 * rust-lang.c (rust_val_print): Remove.
13907 (rust_language_defn): Update.
13908 * p-valprint.c (pascal_val_print): Remove.
13909 (pascal_value_print_inner): Update.
13910 (pascal_object_print_val_fields, pascal_object_print_val):
13911 Remove.
13912 (pascal_object_print_static_field): Update.
13913 * p-lang.h (pascal_val_print): Don't declare.
13914 * p-lang.c (pascal_language_defn): Update.
13915 * opencl-lang.c (opencl_language_defn): Update.
13916 * objc-lang.c (objc_language_defn): Update.
13917 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13918 * m2-lang.h (m2_val_print): Don't declare.
13919 * m2-lang.c (m2_language_defn): Update.
13920 * language.h (struct language_defn) <la_val_print>: Remove.
13921 * language.c (unk_lang_value_print_inner): Rename. Change
13922 argument types.
13923 (unknown_language_defn, auto_language_defn): Update.
13924 * go-valprint.c (go_val_print): Remove.
13925 * go-lang.h (go_val_print): Don't declare.
13926 * go-lang.c (go_language_defn): Update.
13927 * f-valprint.c (f_val_print): Remove.
13928 * f-lang.h (f_value_print): Don't declare.
13929 * f-lang.c (f_language_defn): Update.
13930 * d-valprint.c (d_val_print): Remove.
13931 * d-lang.h (d_value_print): Don't declare.
13932 * d-lang.c (d_language_defn): Update.
13933 * cp-valprint.c (cp_print_value_fields)
13934 (cp_print_value_fields_rtti, cp_print_value): Remove.
13935 (cp_print_static_field): Update.
13936 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13937 (c_val_print_struct, c_val_print_union, c_val_print_int)
13938 (c_val_print_memberptr, c_val_print): Remove.
13939 * c-lang.h (c_val_print_array, cp_print_value_fields)
13940 (cp_print_value_fields_rtti): Don't declare.
13941 * c-lang.c (c_language_defn, cplus_language_defn)
13942 (asm_language_defn, minimal_language_defn): Update.
13943 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13944 (ada_val_print_enum): Take a struct value.
13945 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13946 (ada_val_print): Remove.
13947 (ada_value_print_1): Update.
13948 (printable_val_type): Remove.
13949 * ada-lang.h (ada_val_print): Don't declare.
13950 * ada-lang.c (ada_language_defn): Update.
13951
42331a1e
TT
139522020-03-13 Tom Tromey <tom@tromey.com>
13953
13954 * valprint.c (do_val_print): Update.
13955 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13956 a struct value.
13957 (value_to_value_object_no_release): Declare.
13958 * python/py-value.c (value_to_value_object_no_release): New
13959 function.
13960 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13961 struct value.
13962 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13963 function.
13964 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13965 a struct value.
13966 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13967 Declare.
13968 (gdbscm_apply_val_pretty_printer): Take a struct value.
13969 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13970 value.
13971 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13972 value.
13973 * extension-priv.h (struct extension_language_ops)
13974 <apply_val_pretty_printer>: Take a struct value.
13975 * cp-valprint.c (cp_print_value): Create a struct value.
13976 (cp_print_value): Update.
13977
3a916a97
TT
139782020-03-13 Tom Tromey <tom@tromey.com>
13979
13980 * ada-valprint.c (print_field_values): Call common_val_print.
13981
b59eac37
TT
139822020-03-13 Tom Tromey <tom@tromey.com>
13983
13984 * ada-valprint.c (val_print_packed_array_elements): Remove
13985 bitoffset and val parameters. Call common_val_print.
13986 (ada_val_print_string): Remove offset, address, and original_value
13987 parameters.
13988 (ada_val_print_array): Update.
13989 (ada_value_print_array): New function.
13990 (ada_value_print_1): Call it.
13991
03371129
TT
139922020-03-13 Tom Tromey <tom@tromey.com>
13993
13994 * ada-valprint.c (ada_value_print): Use common_val_print.
13995
2e088f8b
TT
139962020-03-13 Tom Tromey <tom@tromey.com>
13997
13998 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13999
39ef85a8
TT
140002020-03-13 Tom Tromey <tom@tromey.com>
14001
14002 * ada-valprint.c (ada_value_print_num): New function.
14003 (ada_value_print_1): Use it.
14004
b9fa6e07
TT
140052020-03-13 Tom Tromey <tom@tromey.com>
14006
14007 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14008
416595d6
TT
140092020-03-13 Tom Tromey <tom@tromey.com>
14010
14011 * ada-valprint.c (ada_value_print_ptr): New function.
14012 (ada_value_print_1): Use it.
14013
5b5e15ec
TT
140142020-03-13 Tom Tromey <tom@tromey.com>
14015
14016 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14017 call common_val_print.
14018 (ada_val_print_1): Update.
14019 (ada_value_print_1): New function.
14020 (ada_value_print_inner): Rewrite.
14021
fbf54e75
TT
140222020-03-13 Tom Tromey <tom@tromey.com>
14023
14024 * cp-valprint.c (cp_print_value_fields): Update.
14025 (cp_print_value): New function.
14026
64b653ca
TT
140272020-03-13 Tom Tromey <tom@tromey.com>
14028
14029 * m2-valprint.c (m2_value_print_inner): Use
14030 cp_print_value_fields.
14031 * cp-valprint.c (cp_print_value_fields): New function.
14032 * c-valprint.c (c_value_print_struct): New function.
14033 (c_value_print_inner): Use c_value_print_struct.
14034 * c-lang.h (cp_print_value_fields): Declare.
14035
6999f067
TT
140362020-03-13 Tom Tromey <tom@tromey.com>
14037
14038 * c-valprint.c (c_value_print_array): New function.
14039 (c_value_print_inner): Use it.
14040
ce80b8bd
TT
140412020-03-13 Tom Tromey <tom@tromey.com>
14042
14043 * c-valprint.c (c_value_print_memberptr): New function.
14044 (c_value_print_inner): Use it.
14045
2faac269
TT
140462020-03-13 Tom Tromey <tom@tromey.com>
14047
14048 * c-valprint.c (c_value_print_int): New function.
14049 (c_value_print_inner): Use it.
14050
da3e2c29
TT
140512020-03-13 Tom Tromey <tom@tromey.com>
14052
14053 * c-valprint.c (c_value_print_ptr): New function.
14054 (c_value_print_inner): Use it.
14055
50836231
TT
140562020-03-13 Tom Tromey <tom@tromey.com>
14057
14058 * c-valprint.c (c_value_print_inner): Rewrite.
14059
4f412b6e
TT
140602020-03-13 Tom Tromey <tom@tromey.com>
14061
14062 * valprint.c (generic_value_print_complex): New function.
14063 (generic_value_print): Use it.
14064
f5354008
TT
140652020-03-13 Tom Tromey <tom@tromey.com>
14066
14067 * valprint.c (generic_val_print_float): Don't call
14068 val_print_scalar_formatted.
14069 (generic_val_print, generic_value_print): Update.
14070
3eec3b05
TT
140712020-03-13 Tom Tromey <tom@tromey.com>
14072
14073 * valprint.c (generic_value_print_char): New function
14074 (generic_value_print): Use it.
14075
fdddfccb
TT
140762020-03-13 Tom Tromey <tom@tromey.com>
14077
14078 * valprint.c (generic_value_print_int): New function.
14079 (generic_value_print): Use it.
14080
6dde7521
TT
140812020-03-13 Tom Tromey <tom@tromey.com>
14082
14083 * valprint.c (generic_value_print_bool): New function.
14084 (generic_value_print): Use it.
14085
4112d2e6
TT
140862020-03-13 Tom Tromey <tom@tromey.com>
14087
14088 * valprint.c (generic_val_print_func): Simplify.
14089 (generic_val_print, generic_value_print): Update.
14090
65786af6
TT
140912020-03-13 Tom Tromey <tom@tromey.com>
14092
14093 * valprint.c (generic_val_print_flags): Remove.
14094 (generic_val_print, generic_value_print): Update.
14095 (val_print_type_code_flags): Add original_value parameter.
14096
40f3ce18
TT
140972020-03-13 Tom Tromey <tom@tromey.com>
14098
14099 * valprint.c (generic_val_print): Update.
14100 (generic_value_print): Update.
14101 * valprint.c (generic_val_print_enum): Don't call
14102 val_print_scalar_formatted.
14103
2a5b130b
TT
141042020-03-13 Tom Tromey <tom@tromey.com>
14105
14106 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14107 * valprint.c (generic_value_print_ptr): New function.
14108
abc66ce9
TT
141092020-03-13 Tom Tromey <tom@tromey.com>
14110
14111 * valprint.c (generic_value_print): Rewrite.
14112
07a32858
TT
141132020-03-13 Tom Tromey <tom@tromey.com>
14114
14115 * p-valprint.c (pascal_object_print_value_fields)
14116 (pascal_object_print_value): New functions.
14117
64d64d3a
TT
141182020-03-13 Tom Tromey <tom@tromey.com>
14119
14120 * p-valprint.c (pascal_value_print_inner): Rewrite.
14121
6a95a1f5
TT
141222020-03-13 Tom Tromey <tom@tromey.com>
14123
14124 * f-valprint.c (f_value_print_innner): Rewrite.
14125
59fcdac6
TT
141262020-03-13 Tom Tromey <tom@tromey.com>
14127
14128 * m2-valprint.c (m2_print_unbounded_array): New overload.
14129 (m2_print_unbounded_array): Update.
14130 (m2_print_array_contents): Take a struct value.
14131 (m2_value_print_inner): Rewrite.
14132
d133c3e1
TT
141332020-03-13 Tom Tromey <tom@tromey.com>
14134
14135 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14136 (d_value_print_inner): New function.
14137 * d-lang.h (d_value_print_inner): Declare.
14138 * d-lang.c (d_language_defn): Use d_value_print_inner.
14139
23b0f06b
TT
141402020-03-13 Tom Tromey <tom@tromey.com>
14141
14142 * go-valprint.c (go_value_print_inner): New function.
14143 * go-lang.h (go_value_print_inner): Declare.
14144 * go-lang.c (go_language_defn): Use go_value_print_inner.
14145
5f56f7cb
TT
141462020-03-13 Tom Tromey <tom@tromey.com>
14147
14148 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14149 API.
14150 (rust_val_print): Rewrite.
14151 (rust_value_print_inner): New function, from rust_val_print.
14152 (rust_language_defn): Use rust_value_print_inner.
14153
26792ee0
TT
141542020-03-13 Tom Tromey <tom@tromey.com>
14155
14156 * ada-valprint.c (ada_value_print_inner): New function.
14157 * ada-lang.h (ada_value_print_inner): Declare.
14158 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14159
24051bbe
TT
141602020-03-13 Tom Tromey <tom@tromey.com>
14161
14162 * f-valprint.c (f_value_print_innner): New function.
14163 * f-lang.h (f_value_print_innner): Declare.
14164 * f-lang.c (f_language_defn): Use f_value_print_innner.
14165
c0941be6
TT
141662020-03-13 Tom Tromey <tom@tromey.com>
14167
14168 * p-valprint.c (pascal_value_print_inner): New function.
14169 * p-lang.h (pascal_value_print_inner): Declare.
14170 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14171
62c4663d
TT
141722020-03-13 Tom Tromey <tom@tromey.com>
14173
14174 * m2-valprint.c (m2_value_print_inner): New function.
14175 * m2-lang.h (m2_value_print_inner): Declare.
14176 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14177
62182190
TT
141782020-03-13 Tom Tromey <tom@tromey.com>
14179
14180 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14181 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14182 * c-valprint.c (c_value_print_inner): New function.
14183 * c-lang.h (c_value_print_inner): Declare.
14184 * c-lang.c (c_language_defn, cplus_language_defn)
14185 (asm_language_defn, minimal_language_defn): Use
14186 c_value_print_inner.
14187
1e592a8a
TT
141882020-03-13 Tom Tromey <tom@tromey.com>
14189
14190 * p-valprint.c (pascal_object_print_value_fields): Now static.
14191 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14192
7fe471e9
TT
141932020-03-13 Tom Tromey <tom@tromey.com>
14194
14195 * c-valprint.c (c_val_print_array): Simplify.
14196
d121c6ce
TT
141972020-03-13 Tom Tromey <tom@tromey.com>
14198
14199 * valprint.c (value_print_array_elements): New function.
14200 * valprint.h (value_print_array_elements): Declare.
14201
4dba70ee
TT
142022020-03-13 Tom Tromey <tom@tromey.com>
14203
14204 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14205 * mips-tdep.c (mips_print_register): Use
14206 value_print_scalar_formatted.
14207
4f9ae810
TT
142082020-03-13 Tom Tromey <tom@tromey.com>
14209
14210 * valprint.h (value_print_scalar_formatted): Declare.
14211 * valprint.c (value_print_scalar_formatted): New function.
14212
156bfec9
TT
142132020-03-13 Tom Tromey <tom@tromey.com>
14214
14215 * valprint.h (generic_value_print): Declare.
14216 * valprint.c (generic_value_print): New function.
14217
2b4e573d
TT
142182020-03-13 Tom Tromey <tom@tromey.com>
14219
14220 * valprint.c (do_val_print): Call la_value_print_inner, if
14221 available.
14222 * rust-lang.c (rust_language_defn): Update.
14223 * p-lang.c (pascal_language_defn): Update.
14224 * opencl-lang.c (opencl_language_defn): Update.
14225 * objc-lang.c (objc_language_defn): Update.
14226 * m2-lang.c (m2_language_defn): Update.
14227 * language.h (struct language_defn) <la_value_print_inner>: New
14228 member.
14229 * language.c (unknown_language_defn, auto_language_defn): Update.
14230 * go-lang.c (go_language_defn): Update.
14231 * f-lang.c (f_language_defn): Update.
14232 * d-lang.c (d_language_defn): Update.
14233 * c-lang.c (c_language_defn, cplus_language_defn)
14234 (asm_language_defn, minimal_language_defn): Update.
14235 * ada-lang.c (ada_language_defn): Update.
14236
a1f6a07c
TT
142372020-03-13 Tom Tromey <tom@tromey.com>
14238
14239 * c-valprint.c (c_value_print): Use common_val_print.
14240
410cf315
TT
142412020-03-13 Tom Tromey <tom@tromey.com>
14242
14243 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14244
72a45c93
TT
142452020-03-13 Tom Tromey <tom@tromey.com>
14246
14247 * f-valprint.c (f77_print_array_1, f_val_print): Use
14248 common_val_print.
14249
040f66bd
TT
142502020-03-13 Tom Tromey <tom@tromey.com>
14251
14252 * riscv-tdep.c (riscv_print_one_register_info): Use
14253 common_val_print.
14254
a6e05a6c
TT
142552020-03-13 Tom Tromey <tom@tromey.com>
14256
14257 * mi/mi-main.c (output_register): Use common_val_print.
14258
3444c526
TT
142592020-03-13 Tom Tromey <tom@tromey.com>
14260
14261 * infcmd.c (default_print_one_register_info): Use
14262 common_val_print.
14263
c2a44efe
TT
142642020-03-13 Tom Tromey <tom@tromey.com>
14265
14266 * valprint.h (common_val_print_checked): Declare.
14267 * valprint.c (common_val_print_checked): New function.
14268 * stack.c (print_frame_arg): Use common_val_print_checked.
14269
b0c26e99
TT
142702020-03-13 Tom Tromey <tom@tromey.com>
14271
14272 * valprint.c (do_val_print): New function, from val_print.
14273 (val_print): Use do_val_print.
14274 (common_val_print): Use do_val_print.
14275
ce3acbe9
TT
142762020-03-13 Tom Tromey <tom@tromey.com>
14277
14278 * valprint.c (value_print): Use scoped_value_mark.
14279
96c7f873
TV
142802020-03-13 Tom de Vries <tdevries@suse.de>
14281
14282 PR symtab/25646
14283 * psymtab.c (partial_symtab::partial_symtab): Don't set
14284 globals_offset and statics_offset. Push element onto
14285 current_global_psymbols and current_static_psymbols stacks.
14286 (concat): New function.
14287 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14288 element from current_global_psymbols and current_static_psymbols
14289 stacks. Concat popped elements to global_psymbols and
14290 static_symbols.
14291 (add_psymbol_to_list): Use current_global_psymbols and
14292 current_static_psymbols stacks.
14293 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14294 current_static_psymbols fields.
14295
6ba0a321
CB
142962020-03-12 Christian Biesinger <cbiesinger@google.com>
14297
14298 * corelow.c (sniff_core_bfd): Remove.
14299 (class core_target) <m_core_vec>: Remove.
14300 (core_target::core_target): Update.
14301 (core_file_fns): Remove.
14302 (deprecated_add_core_fns): Remove.
14303 (default_core_sniffer): Remove.
14304 (sniff_core_bfd): Remove.
14305 (default_check_format): Remove.
14306 (gdb_check_format): Remove.
14307 (core_target_open): Update.
14308 (core_target::get_core_register_section): Update.
14309 (get_core_registers_cb): Update.
14310 (core_target::fetch_registers): Update.
14311 * gdbcore.h (struct core_fns): Remove.
14312 (deprecated_add_core_fns): Remove.
14313 (default_core_sniffer): Remove.
14314 (default_check_format): Remove.
14315
227031b2
TT
143162020-03-12 Tom Tromey <tom@tromey.com>
14317
14318 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14319 CORE_ADDR.
14320 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14321
53807e9f
TT
143222020-03-12 Tom Tromey <tom@tromey.com>
14323
14324 * remote.c (remote_target::download_tracepoint)
14325 (remote_target::enable_tracepoint)
14326 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14327 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14328 sprintf_vma.
14329
64f25102
TT
143302020-03-12 Tom Tromey <tom@tromey.com>
14331
14332 * symfile-mem.c: Update CORE_ADDR size assert.
14333
272cd5a3
SM
143342020-03-12 Simon Marchi <simon.marchi@efficios.com>
14335
14336 * selftest.m4: Move to gdbsupport/.
14337 * acinclude.m4: Update path to selftest.m4.
14338
74cd3f9d
SM
143392020-03-12 Simon Marchi <simon.marchi@efficios.com>
14340
14341 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14342 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14343 gdbarch-selfselftests.c and selftest-arch.c.
14344 (SUBDIR_UNITTESTS_OBS): Rename to...
14345 (SELFTESTS_OBS): ... this.
14346 (COMMON_SFILES): Remove disasm-selftests.c and
14347 gdbarch-selftests.c.
14348 * configure.ac: Don't add selftest-arch.{c,o} to
14349 CONFIG_{SRCS,OBS}.
14350 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14351 preprocessor conditions.
14352
db6878ac
SM
143532020-03-12 Simon Marchi <simon.marchi@efficios.com>
14354
14355 * configure.ac: Don't source bfd/development.sh.
14356 * selftest.m4: Modify comment.
14357 * configure: Re-generate.
14358
4d696a5c
SM
143592020-03-12 Simon Marchi <simon.marchi@efficios.com>
14360
14361 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14362 not "true" or "false".
14363 * configure: Re-generate.
14364
8dd8e1c7
CB
143652020-03-12 Christian Biesinger <cbiesinger@google.com>
14366
14367 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14368 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14369 renamed to arm_nbsd_supply_gregset.
14370 (fetch_register): Update to call arm_nbsd_supply_gregset.
14371 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14372 (arm_netbsd_nat_target::fetch_registers): Update.
14373 (fetch_elfcore_registers): Removed.
14374 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14375 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14376 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14377 not require NetBSD system headers.
14378 (arm_nbsd_regset): New struct.
14379 (arm_nbsd_iterate_over_regset_sections): New function.
14380 (arm_netbsd_init_abi_common): Updated to call
14381 set_gdbarch_iterate_over_regset_sections.
14382 * arm-nbsd-tdep.h: New file.
14383
dd69bf7a
KB
143842020-03-11 Kevin Buettner <kevinb@redhat.com>
14385
14386 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14387 recursion.
14388
a0761e34
SM
143892020-03-11 Simon Marchi <simon.marchi@efficios.com>
14390
14391 * configure: Re-generate.
14392
e7a82140
TT
143932020-03-11 Tom Tromey <tromey@adacore.com>
14394
14395 * ada-typeprint.c (print_choices): Fix comment.
14396
dcc050c8
AB
143972020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14398
14399 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14400 previous item in the list, when the list has no items.
14401
1c33af77
TV
144022020-03-11 Tom de Vries <tdevries@suse.de>
14403
14404 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14405 PROP_LOCLIST handling code.
14406
8c95582d
AB
144072020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14408
14409 * buildsym-legacy.c (record_line): Pass extra parameter to
14410 record_line.
14411 * buildsym.c (buildsym_compunit::record_line): Take an extra
14412 parameter, reduce duplication in the line table, and record the
14413 is_stmt flag in the line table.
14414 * buildsym.h (buildsym_compunit::record_line): Add extra
14415 parameter.
14416 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14417 non-statement lines.
14418 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14419 this to the symtab builder.
14420 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14421 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14422 through to dwarf_record_line_1.
14423 * infrun.c (process_event_stop_test): When stepping, don't stop at
14424 a non-statement instruction, and only refresh the step info when
14425 we land in the middle of a line's range. Also add an extra
14426 comment.
14427 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14428 field.
14429 * record-btrace.c (btrace_find_line_range): Only record lines
14430 marked as is-statement.
14431 * stack.c (frame_show_address): Show the frame address if we are
14432 in a non-statement sal.
14433 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14434 (maintenance_print_one_line_table): Print a header for the is_stmt
14435 column, and include is_stmt information in the output.
14436 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14437 preference to non-statements.
14438 (find_pcs_for_symtab_line): Prefer is-statement entries.
14439 (find_line_common): Likewise.
14440 * symtab.h (struct linetable_entry): Add is_stmt field.
14441 (struct symtab_and_line): Likewise.
14442 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14443 arranging the line table.
14444
e4003a34
TV
144452020-03-07 Tom de Vries <tdevries@suse.de>
14446
14447 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14448 DIE.
14449
e8932576
TT
144502020-03-07 Tom Tromey <tom@tromey.com>
14451
14452 * valops.c (value_literal_complex): Remove obsolete comment.
14453 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14454 comment.
14455
29734269
SM
144562020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14457
14458 * infrun.h: Forward-declare thread_info.
14459 (set_step_info): Add thread_info parameter, add doc.
14460 * infrun.c (set_step_info): Add thread_info parameter, move doc
14461 to header.
14462 * infrun.c (process_event_stop_test): Pass thread to
14463 set_step_info call.
14464 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14465 set_step_info.
14466 (prepare_one_step): Add thread_info parameter, pass it to
14467 set_step_frame and prepare_one_step (recursive) call.
14468 (step_1): Pass thread to prepare_one_step call.
14469 (step_command_fsm::should_stop): Pass thread to
14470 prepare_one_step.
14471 (until_next_fsm): Pass thread to set_step_frame call.
14472 (finish_command): Pass thread to set_step_info call.
14473
b7d64b29
HD
144742020-03-06 Hannes Domani <ssbssa@yahoo.de>
14475
14476 * windows-tdep.c (windows_solib_create_inferior_hook):
14477 Check if inferior is running.
14478
09f2921c
TV
144792020-03-06 Tom de Vries <tdevries@suse.de>
14480
14481 * NEWS: Fix "the the".
14482 * ctfread.c: Same.
14483
fd760e79
TV
144842020-03-06 Tom de Vries <tdevries@suse.de>
14485
14486 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14487
20ea4a60
AB
144882020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14489
14490 * .dir-locals.el: Add a comment referencing the other copies of
14491 this file.
14492
0afbabf0
JB
144932020-03-05 John Baldwin <jhb@FreeBSD.org>
14494
14495 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14496 psargs.
14497
842806cb
TBA
144982020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14499
14500 * .gitattributes: New file.
14501
be1e3d3e
TT
145022020-03-04 Tom Tromey <tom@tromey.com>
14503
14504 * symmisc.c (print_symbol_bcache_statistics)
14505 (print_objfile_statistics): Update.
14506 * symfile.c (allocate_symtab): Use intern.
14507 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14508 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14509 macro_cache>: Remove.
14510 <string_cache>: New member.
14511 (struct objfile) <intern>: New methods.
14512 * elfread.c (elf_symtab_read): Use intern.
14513 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14514 (dwarf2_compute_name, dwarf2_physname)
14515 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14516 names.
14517 (guess_partial_die_structure_name): Update.
14518 (partial_die_info::fixup): Intern name.
14519 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14520 name.
14521 (dwarf2_name): Intern name. Update.
14522 * buildsym.c (buildsym_compunit::get_macro_table): Use
14523 string_cache.
14524
4e7625fd
TT
145252020-03-04 Tom Tromey <tom@tromey.com>
14526
14527 * jit.c (bfd_open_from_target_memory): Make "target" const.
14528 * corefile.c (gnutarget): Now const.
14529 * gdbcore.h (gnutarget): Now const.
14530
46f9f931
HD
145312020-03-04 Hannes Domani <ssbssa@yahoo.de>
14532
14533 * NEWS: Mention support for WOW64 processes.
14534 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14535 (amd64_windows_segment_register_p): Remove static.
14536 (_initialize_amd64_windows_nat): Update.
14537 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14538 * i386-windows-nat.c (context_offset): Update.
14539 (i386_mappings): Rename and remove static.
14540 (i386_windows_segment_register_p): Remove static.
14541 (_initialize_i386_windows_nat): Update.
14542 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14543 (STATUS_WX86_SINGLE_STEP): New macro.
14544 (EnumProcessModulesEx): New macro.
14545 (Wow64SuspendThread): New macro.
14546 (Wow64GetThreadContext): New macro.
14547 (Wow64SetThreadContext): New macro.
14548 (Wow64GetThreadSelectorEntry): New macro.
14549 (windows_set_context_register_offsets): Add static.
14550 (windows_set_segment_register_p): Likewise.
14551 (windows_add_thread): Adapt for WOW64 processes.
14552 (windows_fetch_one_register): Likewise.
14553 (windows_nat_target::fetch_registers): Likewise.
14554 (windows_store_one_register): Likewise.
14555 (display_selector): Likewise.
14556 (display_selectors): Likewise.
14557 (handle_exception): Likewise.
14558 (windows_continue): Likewise.
14559 (windows_nat_target::resume): Likewise.
14560 (windows_add_all_dlls): Likewise.
14561 (do_initial_windows_stuff): Likewise.
14562 (windows_nat_target::attach): Likewise.
14563 (windows_get_exec_module_filename): Likewise.
14564 (windows_nat_target::create_inferior): Likewise.
14565 (windows_xfer_siginfo): Likewise.
14566 (_initialize_loadable): Initialize Wow64SuspendThread,
14567 Wow64GetThreadContext, Wow64SetThreadContext,
14568 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14569 * windows-nat.h (windows_set_context_register_offsets):
14570 Remove declaration.
14571 (windows_set_segment_register_p): Likewise.
14572 (i386_windows_segment_register_p): Add declaration.
14573 (amd64_windows_segment_register_p): Likewise.
14574
440cf44e
LM
145752020-03-04 Luis Machado <luis.machado@linaro.org>
14576
14577 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14578 in "info registers" for AArch64/ARM.
14579
14580 The change caused "info registers" to not print GPR's.
14581
14582 gdb/ChangeLog:
14583
14584 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14585
14586 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14587 when reg->group is empty and reggroup is not.
14588
1009d92f
TT
145892020-03-03 Tom Tromey <tromey@adacore.com>
14590
14591 * dwarf2/frame.c (struct dwarf2_frame_cache)
14592 <checked_tailcall_bottom, entry_cfa_sp_offset,
14593 entry_cfa_sp_offset_p>: Remove members.
14594 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14595 (dwarf2_frame_prev_register): Don't call
14596 dwarf2_tailcall_sniffer_first.
14597 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14598 * frame-unwind.c (add_unwinder): New fuction.
14599 (frame_unwind_init): Use it. Add tailcall unwinder.
14600
5e5d66b6
AB
146012020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14602 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14603
14604 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14605 value should be printed as true.
14606
584cf46d
HD
146072020-03-03 Hannes Domani <ssbssa@yahoo.de>
14608
14609 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14610 (windows_init_abi): Set and use windows_so_ops.
14611
7b973adc
SDJ
146122020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14613
14614 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14615 when verifying if dealing with a convenience variable.
14616
bb7b70ab
LM
146172020-03-03 Luis Machado <luis.machado@linaro.org>
14618
14619 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14620
9822cb57
SM
146212020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14622
14623 * infrun.c (gdbarch_supports_displaced_stepping): New.
14624 (use_displaced_stepping): Break up conditions in smaller pieces.
14625 Use gdbarch_supports_displaced_stepping.
14626 (displaced_step_prepare_throw): Use
14627 gdbarch_supports_displaced_stepping.
14628
63e163f2
AB
146292020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14630
14631 * NEWS: Mention new behaviour of the history filename.
14632 * top.c (write_history_p): Add comment.
14633 (show_write_history_p): Add header comment, give a different
14634 message when history writing is on, but the history filename is
14635 empty.
14636 (history_filename): Add comment.
14637 (history_filename_empty): New function.
14638 (show_history_filename): Add header comment, give a different
14639 message when the filename is empty.
14640 (init_history): Compare history_filename against nullptr, and only
14641 read history if the filename is not empty.
14642 (set_history_filename): Add header comment, and only make
14643 non-empty filenames absolute.
14644 (init_main): Make the filename argument to 'set history filename'
14645 optional.
14646
81b86b97
CB
146472020-03-02 Christian Biesinger <cbiesinger@google.com>
14648
14649 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14650 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14651 (fetch_fp_register): Update.
14652 (fetch_fp_regs): Update.
14653 (store_fp_register): Update.
14654 (store_fp_regs): Update.
14655 (arm_netbsd_nat_target::read_description): New function.
14656 (fetch_elfcore_registers): Update.
14657
24ed6739
AB
146582020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14659
14660 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14661 general_thread if the stop reply is missing a thread-id.
14662 (remote_target::process_stop_reply): Use the first non-exited
14663 thread if the target didn't pass a thread-id.
14664 * infrun.c (do_target_wait): Move call to
14665 switch_to_inferior_no_thread to ....
14666 (do_target_wait_1): ... here.
14667
a84bb2a0
JT
146682020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14669
14670 * debuginfod-support.c: Include defs.h first.
14671
658dadf0
TV
146722020-02-28 Tom de Vries <tdevries@suse.de>
14673
14674 * symfile.c (set_initial_language): Use default language for lookup.
14675
4ebe4877
SM
146762020-02-28 Simon Marchi <simon.marchi@efficios.com>
14677
14678 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14679 reader variable, pass `this` to read_cutu_die_from_dwo.
14680
e5da1139
AM
146812020-02-27 Aaron Merey <amerey@redhat.com>
14682
14683 * source.c (open_source_file): Check for nullptr when computing
14684 srcpath.
14685
317f7127
TT
146862020-02-27 Tom Tromey <tromey@adacore.com>
14687
14688 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14689 member.
14690 (dwarf2_add_field): Don't update nfields.
14691 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14692
3104d9ee
AB
146932020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14694
14695 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14696 abs.
14697
b83470bf
TT
146982020-02-26 Tom Tromey <tom@tromey.com>
14699
14700 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14701 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14702 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14703 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14704 per_cu_data.
14705
edfe0a0c
TT
147062020-02-26 Tom Tromey <tom@tromey.com>
14707
14708 * dwarf2/index-write.c (psym_index_map): Change type.
14709 (add_address_entry_worker, write_one_signatured_type)
14710 (recursively_count_psymbols, recursively_write_psymbols)
14711 (class debug_names, psyms_seen_size, write_gdbindex)
14712 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14713
0d79cdc4
AM
147142020-02-26 Aaron Merey <amerey@redhat.com>
14715
14716 * Makefile.in: Handle optional debuginfod support.
14717 * NEWS: Update.
14718 * README: Add --with-debuginfod summary.
14719 * config.in: Regenerate.
14720 * configure: Regenerate.
14721 * configure.ac: Handle optional debuginfod support.
14722 * debuginfod-support.c: debuginfod helper functions.
14723 * debuginfod-support.h: Ditto.
14724 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14725 summary.
14726 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14727 when a dwz file cannot be found.
14728 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14729 debuginfo file cannot be found.
14730 * source.c (open_source_file): Query debuginfod servers when a
14731 source file cannot be found.
14732 * top.c (print_gdb_configuration): Include
14733 --{with,without}-debuginfod in the output.
14734
b65ce565
JG
147352020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14736
14737 * thread.c (thr_try_catch_cmd): Print thread name.
14738
d4c9a4f8
SM
147392020-02-26 Simon Marchi <simon.marchi@efficios.com>
14740
14741 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14742 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14743 dwarf2_fetch_die_type_sect_off): Move to...
14744 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14745 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14746 dwarf2_fetch_die_type_sect_off): ... here.
14747 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14748 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14749 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14750
0dce4280
TV
147512020-02-26 Tom de Vries <tdevries@suse.de>
14752
14753 PR gdb/25603
14754 * symfile.c (set_initial_language): Exit-early if
14755 language_mode == language_mode_manual.
14756
450a1bfc
SM
147572020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14758
14759 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14760 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14761 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14762
9e80cfa1
AB
147632020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14764
14765 * gdbtypes.c (create_array_type_with_stride): Handle negative
14766 array strides.
14767 * valarith.c (value_subscripted_rvalue): Likewise.
14768
09624f1f
LM
147692020-02-25 Luis Machado <luis.machado@linaro.org>
14770
14771 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14772
8cb5117c
SM
147732020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14774
14775 * loc.h (dwarf2_get_die_type): Move to...
14776 * read.h (dwarf2_get_die_type): ... here.
14777 * read.c (dwarf2_get_die_type): Move doc to header.
14778
c325c44e
JB
147792020-02-25 Joel Brobecker <brobecker@adacore.com>
14780
14781 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14782 'gnulib/Makefile.in' to the list.
14783
4ac93832
TT
147842020-02-24 Tom Tromey <tom@tromey.com>
14785
14786 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14787 Remove.
14788 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14789 XOBNEWVEC.
14790
197400e8
TT
147912020-02-24 Tom Tromey <tom@tromey.com>
14792
14793 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14794 New method.
14795 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14796 (dw2_do_instantiate_symtab, dw2_get_file_names)
14797 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14798
76935768
TT
147992020-02-24 Tom Tromey <tom@tromey.com>
14800
14801 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14802 make_scoped_restore.
14803 (dwarf2_psymtab::read_symtab): Don't clear
14804 reading_partial_symbols.
14805
a88ef40d
TV
148062020-02-24 Tom de Vries <tdevries@suse.de>
14807
14808 PR gdb/25592
14809 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14810
c9af6521
TV
148112020-02-24 Tom de Vries <tdevries@suse.de>
14812
14813 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14814 commands layout next/prev/regs.
14815
5707a07a
TT
148162020-02-22 Tom Tromey <tom@tromey.com>
14817
14818 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14819 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14820
3b0fb49e
TT
148212020-02-22 Tom Tromey <tom@tromey.com>
14822
14823 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14824
283be8bf
TT
148252020-02-22 Tom Tromey <tom@tromey.com>
14826
14827 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14828 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14829 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14830 * tui/tui.c (_initialize_tui): Add usage text.
14831
ca793b96
TT
148322020-02-22 Tom Tromey <tom@tromey.com>
14833
14834 * tui/tui-win.c (tui_set_focus_command)
14835 (tui_set_win_height_command): Use error_no_arg.
14836 (_initialize_tui_win): Update help text.
14837 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14838
432b5c40
TT
148392020-02-22 Tom Tromey <tom@tromey.com>
14840
14841 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14842 * tui/tui-disasm.h (struct tui_disasm_window)
14843 <display_start_addr>: Declare.
14844 * tui/tui-source.h (struct tui_source_window)
14845 <display_start_addr>: Declare.
14846 * tui/tui-winsource.h (struct tui_source_window_base)
14847 <show_source_line, display_start_addr>: New methods.
14848 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14849 Rename and move to protected section.
14850 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14851 (tui_source_window_base::do_erase_source_content): Update.
14852 (tui_source_window_base::show_source_line): Now a method.
14853 (tui_source_window_base::show_source_content)
14854 (tui_source_window_base::tui_source_window_base)
14855 (tui_source_window_base::rerender)
14856 (tui_source_window_base::refill)
14857 (tui_source_window_base::do_scroll_horizontal)
14858 (tui_source_window_base::set_is_exec_point_at)
14859 (tui_source_window_base::update_breakpoint_info)
14860 (tui_source_window_base::update_exec_info): Update.
14861 * tui/tui-source.c (tui_source_window::set_contents)
14862 (tui_source_window::showing_source_p)
14863 (tui_source_window::do_scroll_vertical)
14864 (tui_source_window::location_matches_p)
14865 (tui_source_window::line_is_displayed): Update.
14866 (tui_source_window::display_start_addr): New method.
14867 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14868 (tui_disasm_window::do_scroll_vertical)
14869 (tui_disasm_window::location_matches_p): Update.
14870 (tui_disasm_window::display_start_addr): New method.
14871
01b1af32
TT
148722020-02-22 Tom Tromey <tom@tromey.com>
14873
14874 * NEWS: Add entry for gdb.register_window_type.
14875 * tui/tui-layout.h (window_factory): New typedef.
14876 (tui_register_window): Declare.
14877 * tui/tui-layout.c (saved_tui_windows): New global.
14878 (tui_apply_current_layout): Use it.
14879 (tui_register_window): New function.
14880 * python/python.c (do_start_initialization): Call
14881 gdbpy_initialize_tui.
14882 (python_GdbMethods): Add "register_window_type" function.
14883 * python/python-internal.h (gdbpy_register_tui_window)
14884 (gdbpy_initialize_tui): Declare.
14885 * python/py-tui.c: New file.
14886 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14887
fc96d20b
TT
148882020-02-22 Tom Tromey <tom@tromey.com>
14889
14890 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14891
935c78c0
TT
148922020-02-22 Tom Tromey <tom@tromey.com>
14893
14894 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14895 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14896 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14897 (tui_set_win_focus_to): Move from tui-win.c.
14898
0240c8f1
TT
148992020-02-22 Tom Tromey <tom@tromey.com>
14900
14901 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14902 functions.
14903 (known_window_types): New global.
14904 (tui_get_window_by_name): Reimplement.
14905 (initialize_known_windows): New function.
14906 (validate_window_name): Rewrite.
14907 (_initialize_tui_layout): Call initialize_known_windows.
14908
fdb01f0c
TT
149092020-02-22 Tom Tromey <tom@tromey.com>
14910
14911 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14912 Remove constants.
14913 * tui/tui-winsource.h (struct tui_source_window_base)
14914 <tui_source_window_base>: Remove parameter.
14915 * tui/tui-winsource.c
14916 (tui_source_window_base::tui_source_window_base): Remove
14917 parameter.
14918 (tui_source_window_base::refill): Update.
14919 * tui/tui-stack.h (struct tui_locator_window)
14920 <tui_locator_window>: Update.
14921 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14922 Default the constructor.
14923 * tui/tui-regs.h (struct tui_data_item_window)
14924 <tui_data_item_window>: Default the constructor.
14925 (struct tui_data_window) <tui_data_window>: Likewise.
14926 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14927 Default the constructor.
14928 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14929 Default the constructor.
14930 <type>: Remove.
14931 (struct tui_win_info) <tui_win_info>: Default the constructor.
14932 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14933 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14934 Default the constructor.
14935
865a5aec
TT
149362020-02-22 Tom Tromey <tom@tromey.com>
14937
14938 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14939 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14940 * tui/tui-win.c (tui_resize_all): Don't call
14941 tui_delete_invisible_windows.
14942 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14943 done.
14944 (tui_set_layout): Update.
14945 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14946 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14947 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14948
e098d18c
TT
149492020-02-22 Tom Tromey <tom@tromey.com>
14950
14951 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14952 correctly.
14953
eb9c8874
TT
149542020-02-22 Tom Tromey <tom@tromey.com>
14955
14956 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14957
7eed1a8e
TT
149582020-02-22 Tom Tromey <tom@tromey.com>
14959
14960 * tui/tui-winsource.h (struct tui_source_window_iterator)
14961 <inner_iterator>: New etytypedef.
14962 <tui_source_window_iterator>: Take "end" parameter.
14963 <tui_source_window_iterator>: Take iterator.
14964 <operator*, advance>: Update.
14965 <m_iter>: Change type.
14966 <m_end>: New field.
14967 (struct tui_source_windows) <begin, end>: Update.
14968 * tui/tui-layout.c (tui_windows): New global.
14969 (tui_apply_current_layout): Clear tui_windows.
14970 (tui_layout_window::apply): Update tui_windows.
14971 * tui/tui-data.h (tui_windows): Declare.
14972 (all_tui_windows): Now inline function.
14973 (class tui_window_iterator, struct all_tui_windows): Remove.
14974
7c043ba6
TT
149752020-02-22 Tom Tromey <tom@tromey.com>
14976
14977 PR tui/17850:
14978 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14979 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14980 "height" argument.
14981 (class tui_layout_window) <get_sizes>: Likewise.
14982 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14983 argument.
14984 <get_sizes>: Add "height" argument.
14985 <m_vertical>: New field.
14986 * tui/tui-layout.c (tui_layout_split::clone): Update.
14987 (tui_layout_split::get_sizes): Add "height" argument.
14988 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14989 (tui_new_layout_command): Parse "-horizontal".
14990 (_initialize_tui_layout): Update help string.
14991 (tui_layout_split::specification): Add "-horizontal" when needed.
14992 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14993 argument.
14994 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14995 New methods.
14996
6bc56648
TT
149972020-02-22 Tom Tromey <tom@tromey.com>
14998
14999 * tui/tui-layout.h (enum tui_adjust_result): New.
15000 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15001 (class tui_layout_window) <adjust_size>: Return
15002 tui_adjust_result. Rewrite.
15003 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15004 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15005
c22fef7e
TT
150062020-02-22 Tom Tromey <tom@tromey.com>
15007
15008 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15009 parameter and return types.
15010 (class tui_layout_base) <specification>: Add "depth".
15011 (class tui_layout_window) <specification>: Add "depth".
15012 (class tui_layout_split) <specification>: Add "depth".
15013 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15014 and return types.
15015 (tui_new_layout_command): Parse sub-layouts.
15016 (_initialize_tui_layout): Update help string.
15017 (tui_layout_window::specification): Add "depth".
15018 (add_layout_command): Update.
15019
ee325b61
TT
150202020-02-22 Tom Tromey <tom@tromey.com>
15021
15022 * NEWS: Add "tui new-layout" item.
15023 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15024 Add new-layout command to help text.
15025 (validate_window_name): New function.
15026 (tui_new_layout_command): New function.
15027 (_initialize_tui_layout): Register "new-layout".
15028 (tui_layout_window::specification): New method.
15029 (tui_layout_window::specification): New method.
15030 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15031 method.
15032 (class tui_layout_window) <specification>: New method.
15033 (class tui_layout_split) <specification>: New method.
15034
416eb92d
TT
150352020-02-22 Tom Tromey <tom@tromey.com>
15036
15037 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15038 * tui/tui-win.c (window_name_completer): Update comment.
15039 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15040 Declare method.
15041 (class tui_layout_window) <replace_window>: Likewise.
15042 (class tui_layout_split) <replace_window>: Likewise.
15043 (tui_set_layout): Don't declare.
15044 (tui_set_initial_layout): Declare function.
15045 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15046 (asm_regs_layout): New globals.
15047 (tui_current_layout, show_layout): Remove.
15048 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15049 (find_layout, tui_apply_layout): New function.
15050 (layout_completer): Remove.
15051 (tui_next_layout): Reimplement.
15052 (tui_next_layout_command): New function.
15053 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15054 (tui_regs_layout): Reimplement.
15055 (tui_regs_layout_command): New function.
15056 (extract_display_start_addr): Rewrite.
15057 (next_layout, prev_layout): Remove.
15058 (tui_layout_window::replace_window): New method.
15059 (tui_layout_split::replace_window): New method.
15060 (destroy_layout): New function.
15061 (layout_list): New global.
15062 (add_layout_command): New function.
15063 (initialize_layouts): Update.
15064 (tui_layout_command): New function.
15065 (_initialize_tui_layout): Install "layout" commands.
15066 * tui/tui-data.h (enum tui_layout_type): Remove.
15067 (tui_current_layout): Don't declare.
15068
0dbc2fc7
TT
150692020-02-22 Tom Tromey <tom@tromey.com>
15070
15071 * tui/tui-regs.c (tui_reg_layout): Remove.
15072 (tui_reg_command): Use tui_regs_layout.
15073 * tui/tui-layout.h (tui_reg_command): Declare.
15074 * tui/tui-layout.c (tui_reg_command): New function.
15075
5afe342e
TT
150762020-02-22 Tom Tromey <tom@tromey.com>
15077
15078 * tui/tui.c (tui_rl_delete_other_windows): Call
15079 tui_remove_some_windows.
15080 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15081 Declare method.
15082 (class tui_layout_window) <remove_windows>: New method.
15083 (class tui_layout_split) <remove_windows>: Declare.
15084 (tui_remove_some_windows): Declare.
15085 * tui/tui-layout.c (tui_remove_some_windows): New function.
15086 (tui_layout_split::remove_windows): New method.
15087
427326a8
TT
150882020-02-22 Tom Tromey <tom@tromey.com>
15089
15090 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15091 * tui/tui-layout.h (tui_next_layout): Declare.
15092 * tui/tui-layout.c (tui_next_layout): New function.
15093
3fe12b6d
TT
150942020-02-22 Tom Tromey <tom@tromey.com>
15095
15096 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15097 correct coordinates.
15098
59b8b5d2
TT
150992020-02-22 Tom Tromey <tom@tromey.com>
15100
15101 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15102 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15103 DATA_WIN case.
15104
2a3d458b
TT
151052020-02-22 Tom Tromey <tom@tromey.com>
15106
15107 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15108 TUI_DISASM_WIN, not tui_win_list.
15109
3f0cbb04
TT
151102020-02-22 Tom Tromey <tom@tromey.com>
15111
15112 * valprint.c (generic_val_print_enum_1)
15113 (val_print_type_code_flags): Style member names.
15114 * rust-lang.c (val_print_struct, rust_print_enum)
15115 (rust_print_struct_def, rust_internal_print_type): Style member
15116 names.
15117 * p-valprint.c (pascal_object_print_value_fields): Style member
15118 names. Only call fprintf_symbol_filtered for static members.
15119 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15120 * f-valprint.c (f_val_print): Style member names.
15121 * f-typeprint.c (f_type_print_base): Style member names.
15122 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15123 call fprintf_symbol_filtered for static members.
15124 (cp_print_class_member): Style member names.
15125 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15126 member names.
15127 * ada-valprint.c (ada_print_scalar): Style enum names.
15128 (ada_val_print_enum): Likewise.
15129 * ada-typeprint.c (print_enum_type): Style enum names.
15130
d4d947ae
TT
151312020-02-21 Tom Tromey <tom@tromey.com>
15132
15133 * psympriv.h (struct partial_symtab): Update comment.
15134
e94e944b
TT
151352020-02-21 Tom Tromey <tromey@adacore.com>
15136
15137 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15138 type is CORE_ADDR.
15139
1eb73179
TV
151402020-02-21 Tom de Vries <tdevries@suse.de>
15141
15142 PR gdb/25534
15143 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15144 if dependencies[i]->user != NULL.
15145
4f180d53
AT
151462020-02-21 Ali Tamur <tamur@google.com>
15147
15148 * dwarf2/read.c (dwarf2_name): Add null check.
15149
22b6cd70
TT
151502020-02-20 Tom Tromey <tom@tromey.com>
15151
15152 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15153 ">=", in binary search.
15154 (dwarf2_find_containing_comp_unit): New overload.
15155 (run_test): New self-test.
15156 (_initialize_dwarf2_read): Register new test.
15157
bd0cf5a6
NC
151582020-02-20 Nelson Chu <nelson.chu@sifive.com>
15159
15160 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15161 * riscv-tdep.h: Likewise.
15162 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15163 rv32-only CSR.
15164 * features/riscv/64bit-csr.xml: Regenerated.
15165
3f702acd
SDJ
151662020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15167 Tom Tromey <tom@tromey.com>
15168
15169 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15170 of 'fputc_unfiltered'.
15171 (putchar_unfiltered): Call 'fputc_unfiltered'.
15172 (fputc_unfiltered): Call 'fputs_unfiltered'.
15173
d13c7322
AB
151742020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15175
15176 * config.in: Regenerate.
15177 * configure: Regenerate.
15178 * configure.ac: Add --with-python-libdir option.
15179 * main.c: Use WITH_PYTHON_LIBDIR.
15180
869d8950
TT
151812020-02-19 Tom Tromey <tom@tromey.com>
15182
15183 * symtab.c (general_symbol_info::compute_and_set_names): Use
15184 obstack_strndup. Simplify call to symbol_set_demangled_name.
15185
298e9637
SM
151862020-02-19 Simon Marchi <simon.marchi@efficios.com>
15187
15188 * dwarf2/read.c (allocate_signatured_type_table,
15189 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15190 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15191 Remove objfile parameter, update all callers.
15192
08410482
DE
151932020-02-19 Doug Evans <dje@google.com>
15194
15195 PR rust/25535
15196 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15197 rust_enum_variant calculation.
15198
dfdeeca1
TT
151992020-02-19 Tom Tromey <tromey@adacore.com>
15200
15201 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15202
2ef5453b
TT
152032020-02-19 Tom Tromey <tromey@adacore.com>
15204
15205 * ada-lang.c (cache_symbol): Use obstack_strdup.
15206
9f1528a1
AB
152072020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15208
15209 * configure: Regenerate.
15210
d3c22fa8
TT
152112020-02-19 Tom Tromey <tromey@adacore.com>
15212
15213 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15214 NULL check.
15215
bf84f706
MR
152162020-02-19 Maciej W. Rozycki <macro@wdc.com>
15217
15218 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15219
d1c9b20f
AB
152202020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15221
15222 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15223 if GDBSERVER is not defined.
15224 (riscv_tdesc_cache): Likewise, also store const target_desc.
15225 (STATIC_IN_GDB): Define.
15226 (riscv_create_target_description): Update declaration with
15227 STATIC_IN_GDB.
15228 (riscv_lookup_target_description): New function, only define if
15229 GDBSERVER is not defined.
15230 * arch/riscv.h (riscv_create_target_description): Declare only
15231 when GDBSERVER is defined.
15232 (riscv_lookup_target_description): New declaration when GDBSERVER
15233 is not defined.
15234 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15235 (riscv_linux_read_features): ...this, and return
15236 riscv_gdbarch_features instead of target_desc.
15237 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15238 (riscv_linux_read_description): Rename to...
15239 (riscv_linux_read_features): ...this.
15240 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15241 Update to use riscv_gdbarch_features and
15242 riscv_lookup_target_description.
15243 * riscv-tdep.c (riscv_find_default_target_description): Use
15244 riscv_lookup_target_description instead of
15245 riscv_create_target_description.
15246
373d7ac0
SM
152472020-02-18 Simon Marchi <simon.marchi@efficios.com>
15248
15249 * valprint.c (generic_val_print_enum_1): When printing a flag
15250 enum with value 0 and there is no enumerator with value 0, print
15251 just "0" instead of "(unknown: 0x0)".
15252
b29a2df0
SM
152532020-02-18 Simon Marchi <simon.marchi@efficios.com>
15254
15255 * valprint.c (generic_val_print_enum_1): Print unknown part of
15256 flag enum in hex.
15257
6740f0cc
SM
152582020-02-18 Simon Marchi <simon.marchi@efficios.com>
15259
15260 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15261 flag enums to contain duplicate enumerators.
15262 * valprint.c (generic_val_print_enum_1): Update comment.
15263
edd45eb0
SM
152642020-02-18 Simon Marchi <simon.marchi@efficios.com>
15265
15266 * dwarf2/read.c: Include "count-one-bits.h".
15267 (update_enumeration_type_from_children): If an enumerator has
15268 multiple bits set, don't treat the enumeration as a "flag enum".
15269 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15270 of flag enums have 0 or 1 bit set.
15271
6d0cf446
BE
152722020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15273
15274 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15275 conversion.
15276 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15277 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15278 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15279 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15280 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15281
7001c1b7
SM
152822020-02-18 Simon Marchi <simon.marchi@efficios.com>
15283
15284 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15285
fdb61c6c
SM
152862020-02-14 Simon Marchi <simon.marchi@efficios.com>
15287
15288 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15289 displaced_step_closure_up.
15290 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15291 (struct displaced_step_closure_up):
15292 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15293 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15294 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15295 Likewise.
15296 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15297 * gdbarch.c, gdbarch.h: Re-generate.
15298 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15299 displaced_step_closure_up.
15300 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15301 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15302 * infrun.h (displaced_step_closure_up): New type alias.
15303 (struct displaced_step_inferior_state) <step_closure>: Change
15304 type to displaced_step_closure_up.
15305 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15306 displaced_step_closure_up.
15307 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15308
a4a38eb4
TT
153092020-02-14 Tom Tromey <tom@tromey.com>
15310
15311 * minidebug.c (gnu_debug_key): New global.
15312 (find_separate_debug_file_in_section): Use it.
15313
e8217e61
SM
153142020-02-14 Simon Marchi <simon.marchi@efficios.com>
15315
15316 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15317 std::unique_ptr.
15318 * gdbarch.c: Re-generate.
15319 * gdbarch.h: Re-generate.
15320 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15321 change.
15322 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15323 type to std::unique_ptr.
15324 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15325 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15326 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15327 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15328 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15329 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15330 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15331 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15332 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15333
d8d83535
SM
153342020-02-14 Simon Marchi <simon.marchi@efficios.com>
15335
15336 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15337 std::unique_ptr.
15338 (displaced_step_clear): Rename to...
15339 (displaced_step_reset): ... this. Just call displaced->reset ().
15340 (displaced_step_clear_cleanup): Rename to...
15341 (displaced_step_reset_cleanup): ... this.
15342 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15343 (displaced_step_fixup): Likewise.
15344 (resume_1): Likewise.
15345 (handle_inferior_event): Restore child's memory before calling
15346 displaced_step_fixup on the parent.
15347 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15348 to std::unique_ptr.
15349 <step_closure>: Change type to std::unique_ptr.
15350
5f661e03
SM
153512020-02-14 Simon Marchi <simon.marchi@efficios.com>
15352
15353 * arm-tdep.c: Include count-one-bits.h.
15354 (cleanup_block_store_pc): Use count_one_bits.
15355 (cleanup_block_load_pc): Use count_one_bits.
15356 (arm_copy_block_xfer): Use count_one_bits.
15357 (thumb2_copy_block_xfer): Use count_one_bits.
15358 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15359 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15360 (thumb_get_next_pcs_raw): Use count_one_bits.
15361 (arm_get_next_pcs_raw): Use count_one_bits_l.
15362 * arch/arm.c (bitcount): Remove.
15363 * arch/arm.h (bitcount): Remove.
15364
8084e579
TT
153652020-02-14 Tom Tromey <tromey@adacore.com>
15366
15367 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15368 Update.
15369 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15370 * dwarf2/loc.c (call_site_find_chain_1): Return
15371 unique_xmalloc_ptr.
15372 (call_site_find_chain): Likewise.
15373
258bf0ee
RB
153742020-02-14 Richard Biener <rguenther@suse.de>
15375
15376 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15377 on expression with division operators.
15378
f98a8458
AKS
153792020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15380
15381 * MAINTAINERS (Write After Approval): Adding myself.
15382
d1437c0e
TT
153832020-02-12 Tom Tromey <tom@tromey.com>
15384
15385 * event-loop.c (event_data, gdb_event, event_handler_func):
15386 Remove.
15387
3d4560f7
TT
153882020-02-12 Tom Tromey <tom@tromey.com>
15389
15390 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15391 (dwarf2_frame_objfile_data): Add comment.
15392 (find_comp_unit, set_comp_unit): New functions.
15393 (dwarf2_frame_find_fde): Use find_comp_unit.
15394 (dwarf2_build_frame_info): Use set_comp_unit.
15395
21982304
TT
153962020-02-12 Tom Tromey <tom@tromey.com>
15397
15398 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15399 (comp_unit): Don't initialize objfile.
15400 (execute_cfa_program): Add text_offset parameter.
15401 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15402 (dwarf2_frame_cache): Update.
15403 (dwarf2_build_frame_info): Don't set "objfile" member.
15404
4debb237
TT
154052020-02-12 Tom Tromey <tom@tromey.com>
15406
15407 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15408 (decode_frame_entry): Likewise.
15409 (dwarf2_build_frame_info): Update.
15410
0d404d44
TT
154112020-02-12 Tom Tromey <tom@tromey.com>
15412
15413 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15414 (decode_frame_entry_1): Use the comp_unit obstack.
15415
a7a3ae5c
TT
154162020-02-12 Tom Tromey <tom@tromey.com>
15417
15418 * dwarf2/frame.c (struct comp_unit): Add initializers and
15419 constructor.
15420 (dwarf2_frame_objfile_data): Store a comp_unit.
15421 (dwarf2_frame_find_fde): Update.
15422 (dwarf2_build_frame_info): Use "new".
15423
a9d65418
TT
154242020-02-12 Tom Tromey <tom@tromey.com>
15425
15426 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15427 (dwarf2_fde_table): Typedef for std::vector.
15428 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15429 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15430 (decode_frame_entry): Update.
15431 (dwarf2_build_frame_info): Use "new".
15432
7559c217
CB
154332020-02-12 Christian Biesinger <cbiesinger@google.com>
15434
15435 * arm-tdep.c (arm_gdbarch_init): Update.
15436 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15437 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15438 have_neon, is_m>: Change to bool.
15439
aeefc73c
CB
154402020-02-12 Christian Biesinger <cbiesinger@google.com>
15441
15442 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15443
d27b8e5f
TT
154442020-02-12 Tom Tromey <tom@tromey.com>
15445
15446 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15447
cd5900f3
HD
154482020-02-12 Hannes Domani <ssbssa@yahoo.de>
15449
15450 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15451 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15452
f056b22b
TT
154532020-02-11 Tom Tromey <tom@tromey.com>
15454
15455 * psymtab.h: Update comment.
15456
f92ff6b5
TT
154572020-02-11 Tom Tromey <tom@tromey.com>
15458
15459 * gdb_obstack.h (struct auto_obstack): Use
15460 DISABLE_COPY_AND_ASSIGN.
15461
3fd6912b
TT
154622020-02-11 Tom Tromey <tom@tromey.com>
15463
15464 * dwarf2/frame.h (struct objfile): Don't forward declare.
15465
69ed9b74
CB
154662020-02-11 Christian Biesinger <cbiesinger@google.com>
15467
15468 * cris-tdep.c (cris_supply_gregset): Change signature to match
15469 what struct regset expects.
15470 (cris_regset): New struct.
15471 (fetch_core_registers): Remove.
15472 (cris_iterate_over_regset_sections): New function.
15473 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15474 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15475
bda874f6
CB
154762020-02-11 Christian Biesinger <cbiesinger@google.com>
15477
15478 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15479 registers.
15480
754e1564
CB
154812020-02-11 Christian Biesinger <cbiesinger@google.com>
15482
15483 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15484
8ddd8e0e
SM
154852020-02-11 Simon Marchi <simon.marchi@efficios.com>
15486
15487 * configure: Re-generate.
15488
898e7f60
SM
154892020-02-11 Simon Marchi <simon.marchi@efficios.com>
15490
15491 * configure: Re-generate.
15492
58df732b
SM
154932020-02-11 Simon Marchi <simon.marchi@efficios.com>
15494
15495 * acinclude: Update warning.m4 path.
15496 * warning.m4: Move to gdbsupport.
15497
da5bd37e
TT
154982020-02-11 Tom Tromey <tromey@adacore.com>
15499
15500 * remote.c (remote_console_output): Update.
15501 * printcmd.c (printf_command): Update.
15502 * event-loop.c (gdb_wait_for_event): Update.
15503 * linux-nat.c (sigchld_handler): Update.
15504 * remote-sim.c (gdb_os_write_stdout): Update.
15505 (gdb_os_flush_stdout): Update.
15506 (gdb_os_flush_stderr): Update.
15507 (gdb_os_write_stderr): Update.
15508 * exceptions.c (print_exception): Update.
15509 * remote-fileio.c (remote_fileio_func_read): Update.
15510 (remote_fileio_func_write): Update.
15511 * tui/tui.c (tui_enable): Update.
15512 * tui/tui-interp.c (tui_interp::init): Update.
15513 * utils.c (init_page_info): Update.
15514 (putchar_unfiltered, fputc_unfiltered): Update.
15515 (gdb_flush): Update.
15516 (emit_style_escape): Update.
15517 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15518 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15519 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15520 (stderr_file::write): Update.
15521 (stderr_file::puts): Update.
15522 * ui-file.h (ui_file_isatty, ui_file_write)
15523 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15524 (ui_file_puts): Don't declare.
15525
85f0dd3c
TV
155262020-02-10 Tom de Vries <tdevries@suse.de>
15527
15528 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15529 sentinel to char *.
15530
2e927613
TV
155312020-02-09 Tom de Vries <tdevries@suse.de>
15532
15533 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15534 filename if it matches "<artificial>".
15535
6bafc845
HD
155362020-02-09 Hannes Domani <ssbssa@yahoo.de>
15537
15538 * windows-tdep.c (struct enum_value_name): New struct.
15539 (create_enum): New function.
15540 (windows_get_siginfo_type): Create and use enum types.
15541
7928d571
HD
155422020-02-09 Hannes Domani <ssbssa@yahoo.de>
15543
15544 * NEWS: Mention $_siginfo support for Windows.
15545 * windows-nat.c (handle_exception): Set siginfo_er.
15546 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15547 (windows_xfer_siginfo): New function.
15548 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15549 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15550 (init_windows_gdbarch_data): New function.
15551 (get_windows_gdbarch_data): New function.
15552 (windows_get_siginfo_type): New function.
15553 (windows_init_abi): Register windows_get_siginfo_type.
15554 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15555
6751ebae
TT
155562020-02-08 Tom Tromey <tom@tromey.com>
15557
15558 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15559 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15560 <keep>: Declare method.
15561 <m_keep>: Remove member.
15562 <~cutu_reader>: Remove.
15563 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15564 (cutu_reader::cutu_reader): Update.
15565 (cutu_reader::keep): Rename from ~cutu_reader.
15566 (process_psymtab_comp_unit, build_type_psymtabs_1)
15567 (process_skeletonless_type_unit, load_partial_comp_unit)
15568 (load_full_comp_unit, dwarf2_read_addr_index)
15569 (read_signatured_type): Update.
15570
135f5437
TT
155712020-02-08 Tom Tromey <tom@tromey.com>
15572
15573 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15574 "want_partial_unit" parameter.
15575 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15576 Inline check for DW_TAG_partial_unit.
15577 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15578
9f66ff1c
TT
155792020-02-08 Tom Tromey <tom@tromey.com>
15580
15581 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15582 read.c.
15583 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15584 read.c.
15585
c8a7a66f
TT
155862020-02-08 Tom Tromey <tom@tromey.com>
15587
15588 * dwarf2/read.c (read_address): Move to comp-unit.c.
15589 (dwarf2_rnglists_process, dwarf2_ranges_process)
15590 (read_attribute_value, dwarf_decode_lines_1)
15591 (var_decode_location, decode_locdesc): Update.
15592 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15593 read.c. Remove "cu" parameter.
15594 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15595 method.
15596
8266302d
TT
155972020-02-08 Tom Tromey <tom@tromey.com>
15598
15599 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15600 (read_indirect_line_string): Update.
15601 * dwarf2/comp-unit.c (read_offset): Remove.
15602 (read_comp_unit_head): Update.
15603 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15604 method.
15605 (read_offset): Don't declare.
15606
4057dfde
TT
156072020-02-08 Tom Tromey <tom@tromey.com>
15608
15609 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15610 * dwarf2/read.c (struct comp_unit_head): Move to
15611 dwarf2/comp-unit.h.
15612 (enum class rcuh_kind): Move to comp-unit.h.
15613 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15614 (read_comp_unit_head, error_check_comp_unit_head)
15615 (read_and_check_comp_unit_head): Move to comp-unit.c.
15616 (read_offset, dwarf_unit_type_name): Likewise.
15617 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15618 (cutu_reader::cutu_reader, read_call_site_scope)
15619 (find_partial_die, follow_die_offset): Update.
15620 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15621
24aa364d
TT
156222020-02-08 Tom Tromey <tom@tromey.com>
15623
15624 * dwarf2/read.c (read_offset_1): Move to leb.c.
15625 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15626 (dwarf_decode_macro_bytes): Update.
15627 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15628 * dwarf2/leb.h (read_offset): Declare.
15629
2c7d5afc
TT
156302020-02-08 Tom Tromey <tom@tromey.com>
15631
15632 * dwarf2/read.c (dwarf2_section_size): Remove.
15633 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15634 Update.
15635 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15636
4075cb26
TT
156372020-02-08 Tom Tromey <tom@tromey.com>
15638
15639 * dwarf2/read.c (read_initial_length): Move to leb.c.
15640 * dwarf2/leb.h (read_initial_length): Declare.
15641 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15642 handle_nonstd parameter.
15643 * dwarf2/frame.c (read_initial_length): Remove.
15644 (decode_frame_entry_1): Update.
15645
09ba997f
TT
156462020-02-08 Tom Tromey <tom@tromey.com>
15647
15648 * dwarf2/loc.c (dwarf2_find_location_expression)
15649 (dwarf_evaluate_loc_desc::get_tls_address)
15650 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15651 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15652 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15653 (dwarf2_compile_property_to_c)
15654 (dwarf2_loc_desc_get_symbol_read_needs)
15655 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15656 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15657 (loclist_describe_location, loclist_tracepoint_var_ref)
15658 (loclist_generate_c_location): Update.
15659 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15660 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15661 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15662 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15663 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15664 (dwarf2_per_cu_data::addr_size)
15665 (dwarf2_per_cu_data::ref_addr_size)
15666 (dwarf2_per_cu_data::text_offset)
15667 (dwarf2_per_cu_data::addr_type): Now methods.
15668 (per_cu_header_read_in): Make per_cu "const".
15669 (dwarf2_version): Remove.
15670 (dwarf2_per_cu_data::int_type): Now a method.
15671 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15672 (set_die_type, read_array_type, read_subrange_index_type)
15673 (read_tag_string_type, read_subrange_type): Update.
15674 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15675 offset_size, ref_addr_size, text_offset, addr_type, version,
15676 objfile, int_type, addr_sized_int_type>: Declare methods.
15677
96c738c0
TT
156782020-02-08 Tom Tromey <tom@tromey.com>
15679
15680 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15681 Move earlier.
15682
8fdd972c
TT
156832020-02-08 Tom Tromey <tom@tromey.com>
15684
15685 * dwarf2/read.h (dwarf_line_debug): Declare.
15686 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15687 * dwarf2/read.c: Move line_header code to new files.
15688 (dwarf_line_debug): No longer static.
15689 * dwarf2/line-header.c: New file.
15690 * dwarf2/line-header.h: New file.
15691
03075812
TT
156922020-02-08 Tom Tromey <tom@tromey.com>
15693
15694 * dwarf2/read.c (struct line_header) <file_full_name,
15695 file_file_name>: Return unique_xmalloc_ptr.
15696 (line_header::file_file_name): Update.
15697 (line_header::file_full_name): Update.
15698 (dw2_get_file_names_reader): Update.
15699 (macro_start_file): Update.
15700
bb822404
TT
157012020-02-08 Tom Tromey <tom@tromey.com>
15702
15703 * dwarf2/read.c (struct line_header) <file_full_name,
15704 file_file_name>: Declare methods.
15705 (dw2_get_file_names_reader): Update.
15706 (file_file_name): Now a method.
15707 (file_full_name): Likewise.
15708 (macro_start_file): Update.
15709
009b64fc
TT
157102020-02-08 Tom Tromey <tom@tromey.com>
15711
15712 * dwarf2/read.c (dwarf_always_disassemble)
15713 (show_dwarf_always_disassemble): Move to loc.c.
15714 (_initialize_dwarf2_read): Move "always-disassemble" registration
15715 to loc.c.
15716 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15717 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15718 static.
15719 (show_dwarf_always_disassemble): Move from read.c.
15720 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15721
5895093f
TT
157222020-02-08 Tom Tromey <tom@tromey.com>
15723
15724 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15725 (create_quick_file_names_table): Return htab_up.
15726 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15727 Update.
15728 * dwarf2/read.h (struct dwarf2_per_objfile)
15729 <quick_file_names_table>: Now htab_up.
15730
b3b32279
TT
157312020-02-08 Tom Tromey <tom@tromey.com>
15732
15733 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15734
1d33d811
TT
157352020-02-08 Tom Tromey <tom@tromey.com>
15736
15737 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15738 Rewrite.
15739 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15740 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15741 (abbrev_table::abbrev_table): No longer inline.
15742 (ABBREV_HASH_SIZE): Remove.
15743 (abbrev_table::m_abbrevs): Now an htab_up.
15744
86de1d91
TT
157452020-02-08 Tom Tromey <tom@tromey.com>
15746
15747 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15748 (cutu_reader): Update.
15749 (build_type_psymtabs_1): Update.
15750 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15751 (abbrev_table::alloc_abbrev): Update.
15752 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15753 (abbrev_table::read): New static method, renamed from
15754 abbrev_table_read_table.
15755 (abbrev_table::alloc_abbrev)
15756 (abbrev_table::add_abbrev): Now private.
15757 (abbrev_table::abbrev_table): Now private.
15758 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15759
0335378b
TT
157602020-02-08 Tom Tromey <tom@tromey.com>
15761
15762 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15763 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15764 htab_up.
15765
48b490f2
TT
157662020-02-08 Tom Tromey <tom@tromey.com>
15767
15768 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15769 htab_up.
15770 (lookup_dwo_unit_in_dwp): Update.
15771 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15772 on obstack.
15773
bc68fb19
TT
157742020-02-08 Tom Tromey <tom@tromey.com>
15775
15776 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15777 obstack.
15778
d15acc42
TT
157792020-02-08 Tom Tromey <tom@tromey.com>
15780
15781 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15782 line_header_hash.
15783 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15784 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15785 Change type to htab_up.
15786
eaa5fa8b
TT
157872020-02-08 Tom Tromey <tom@tromey.com>
15788
15789 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15790 htab_up. Don't allocate on obstack.
15791 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15792 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15793 Change type to htab_up.
15794
b0b6a987
TT
157952020-02-08 Tom Tromey <tom@tromey.com>
15796
15797 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15798 Change type to htab_up.
15799 * dwarf2/read.c (create_signatured_type_table_from_index)
15800 (create_signatured_type_table_from_debug_names)
15801 (create_all_type_units, add_type_unit)
15802 (lookup_dwo_signatured_type, lookup_signatured_type)
15803 (process_skeletonless_type_unit): Update.
15804 (create_debug_type_hash_table, create_debug_types_hash_table):
15805 Change type of types_htab.
15806 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15807 htab_up. Don't allocate on obstack.
15808 (create_cus_hash_table): Change type of cus_htab parameter.
15809 (struct dwo_file) <cus, tus>: Now htab_up.
15810 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15811 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15812 (queue_and_load_all_dwo_tus): Update.
15813 * dwarf2/index-write.c (write_gdbindex): Update.
15814 (write_debug_names): Update.
15815
39856def
TT
158162020-02-08 Tom Tromey <tom@tromey.com>
15817
15818 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15819 dwarf2/read.c. Remove "next" member. Add constructor ntad
15820 destructor.
15821 (struct dwarf2_per_objfile) <queue>: New member.
15822 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15823 dwarf2/read.h.
15824 (dwarf2_queue, dwarf2_queue_tail): Remove.
15825 (class dwarf2_queue_guard): Add parameter to constructor. Use
15826 DISABLE_COPY_AND_ASSIGN.
15827 <m_per_objfile>: New member.
15828 <~dwarf2_queue_guard>: Rewrite.
15829 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15830 Update.
15831 (~dwarf2_queue_item): New.
15832
3e225074
TT
158332020-02-08 Tom Tromey <tom@tromey.com>
15834
15835 * dwarf2/read.c (struct die_info) <has_children>: New member.
15836 (dw2_get_file_names_reader): Remove has_children.
15837 (dw2_get_file_names): Update.
15838 (read_cutu_die_from_dwo): Remove has_children.
15839 (cutu_reader::init_tu_and_read_dwo_dies)
15840 (cutu_reader::cutu_reader): Update.
15841 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15842 Remove has_children.
15843 (build_type_psymtabs_1, process_skeletonless_type_unit)
15844 (load_partial_comp_unit, load_full_comp_unit): Update.
15845 (create_dwo_cu_reader): Remove has_children.
15846 (create_cus_hash_table, read_die_and_children): Update.
15847 (read_full_die_1,read_full_die): Remove has_children.
15848 (read_signatured_type): Update.
15849 (class cutu_reader) <has_children>: Remove.
15850
82ca8957
TT
158512020-02-08 Tom Tromey <tom@tromey.com>
15852
15853 * dwarf2/expr.c: Rename from dwarf2expr.c.
15854 * dwarf2/expr.h: Rename from dwarf2expr.h.
15855 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15856 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15857 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15858 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15859 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15860 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15861 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15862 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15863 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15864 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15865 * dwarf2/loc.c: Rename from dwarf2loc.c.
15866 * dwarf2/loc.h: Rename from dwarf2loc.h.
15867 * dwarf2/read.c: Rename from dwarf2read.c.
15868 * dwarf2/read.h: Rename from dwarf2read.h.
15869 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15870 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15871 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15872 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15873 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15874 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15875 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15876 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15877 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15878 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15879 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15880 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15881 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15882 Update.
15883 * Makefile.in (COMMON_SFILES): Update.
15884 (HFILES_NO_SRCDIR): Update.
15885
9e35d499
TT
158862020-02-08 Tom Tromey <tom@tromey.com>
15887
15888 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15889 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15890
1eba2311
TT
158912020-02-08 Tom Tromey <tom@tromey.com>
15892
15893 * dwarf2read.h (struct die_info): Don't declare.
15894
e41c2da2
TT
158952020-02-08 Tom Tromey <tom@tromey.com>
15896
15897 * dwarf2read.h (die_info_ptr): Remove typedef.
15898
4fc6c0d5
TT
158992020-02-08 Tom Tromey <tom@tromey.com>
15900
15901 * dwarf2read.c (read_call_site_scope)
15902 (handle_data_member_location, dwarf2_add_member_fn)
15903 (mark_common_block_symbol_computed, read_common_block)
15904 (attr_to_dynamic_prop, partial_die_info::read)
15905 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15906 (dwarf2_symbol_mark_computed, set_die_type): Update.
15907 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15908 method.
15909 (attr_form_is_block): Don't declare.
15910 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15911
cd6c91b4
TT
159122020-02-08 Tom Tromey <tom@tromey.com>
15913
15914 * dwarf2read.c (dwarf2_find_base_address, )
15915 (read_call_site_scope, rust_containing_type)
15916 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15917 (handle_data_member_location, dwarf2_add_member_fn)
15918 (get_alignment, read_structure_type, process_structure_scope)
15919 (mark_common_block_symbol_computed, read_common_block)
15920 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15921 (partial_die_info::read, read_attribute_value, new_symbol)
15922 (lookup_die_type, dwarf2_get_ref_die_offset)
15923 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15924 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15925 (dwarf2_symbol_mark_computed): Update.
15926 * dwarf2/attribute.h (struct attribute) <value_as_address,
15927 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15928 methods.
15929 (value_as_address, attr_form_is_section_offset)
15930 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15931 * dwarf2/attribute.c (attribute::value_as_address)
15932 (attribute::form_is_section_offset, attribute::form_is_constant)
15933 (attribute::form_is_ref): Now methods.
15934
162dce55
TT
159352020-02-08 Tom Tromey <tom@tromey.com>
15936
15937 * dwarf2read.c (struct attribute, DW_STRING)
15938 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15939 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15940 (attr_form_is_block, attr_form_is_section_offset)
15941 (attr_form_is_constant, attr_form_is_ref): Move.
15942 * dwarf2/attribute.h: New file.
15943 * dwarf2/attribute.c: New file, from dwarf2read.c.
15944 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15945
3054dd54
TT
159462020-02-08 Tom Tromey <tom@tromey.com>
15947
15948 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15949 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15950 Move.
15951 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15952 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15953 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15954 abbrev.c.
15955 * dwarf2/abbrev.h: New file.
15956 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15957 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15958
96b79293
TT
159592020-02-08 Tom Tromey <tom@tromey.com>
15960
15961 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15962 (dwarf2_section_size, dwarf2_get_section_info)
15963 (create_signatured_type_table_from_debug_names)
15964 (create_addrmap_from_aranges, read_debug_names_from_section)
15965 (get_gdb_index_contents_from_section, read_comp_unit_head)
15966 (error_check_comp_unit_head, read_abbrev_offset)
15967 (create_debug_type_hash_table, init_cu_die_reader)
15968 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15969 (read_comp_units_from_section, create_cus_hash_table)
15970 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15971 (create_dwp_v2_section, dwarf2_rnglists_process)
15972 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15973 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15974 (read_indirect_string_from_dwz, read_addr_index_1)
15975 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15976 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15977 (fill_in_loclist_baton): Update.
15978 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15979 get_containing_section, get_bfd_owner, get_bfd_section,
15980 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15981 (dwarf2_read_section, get_section_name, get_section_file_name)
15982 (get_containing_section, get_section_bfd_owner)
15983 (get_section_bfd_section, get_section_name, get_section_file_name)
15984 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15985 declare.
15986 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15987 (dwarf2_section_info::get_bfd_owner)
15988 (dwarf2_section_info::get_bfd_section)
15989 (dwarf2_section_info::get_name)
15990 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15991 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15992 (dwarf2_section_info::read): Now methods.
15993 * dwarf-index-write.c (class debug_names): Update.
15994
2c86cff9
TT
159952020-02-08 Tom Tromey <tom@tromey.com>
15996
15997 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15998 Move to dwarf2/section.h.
15999 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16000 (get_section_bfd_section, get_section_name)
16001 (get_section_file_name, get_section_id, get_section_flags)
16002 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16003 dwarf2/section.c.
16004 * dwarf2/section.h: New file.
16005 * dwarf2/section.c: New file, from dwarf2read.c.
16006 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16007
f4382c45
TT
160082020-02-08 Tom Tromey <tom@tromey.com>
16009
16010 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16011 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16012 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16013 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16014 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16015 * dwarf2/leb.h: New file, from dwarf2read.c.
16016 * dwarf2/leb.c: New file, from dwarf2read.c.
16017 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16018 Remove.
16019 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16020 (COMMON_SFILES): Add dwarf2/leb.c.
16021
01840b7a
JB
160222020-02-08 Joel Brobecker <brobecker@adacore.com>
16023
16024 GDB 9.1 released.
16025
dfcb27e4
IB
160262020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16027
16028 PR gdb/25190:
aac66a4c
SM
16029 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16030 * gdb/remote.c (remote_console_output): Update.
16031 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16032 (ui_file_puts): ...this.
16033 * gdb/ui-file.h (ui_file_puts): Add declaration.
16034 * gdb/utils.c (emit_style_escape): Update.
16035 (flush_wrap_buffer): Update.
16036 (fputs_maybe_filtered): Update.
16037 (fputs_unfiltered): Add function.
dfcb27e4 16038
faa17681
IB
160392020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16040
aac66a4c
SM
16041 * gdb/event-loop.c (gdb_wait_for_event): Update.
16042 * gdb/printcmd.c (printf_command): Update.
16043 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16044 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16045 (gdb_os_flush_stderr): Update.
16046 * gdb/remote.c (remote_console_output): Update.
16047 * gdb/ui-file.c (gdb_flush): Rename to...
16048 (ui_file_flush): ...this.
16049 (stderr_file::write): Update.
16050 (stderr_file::puts): Update.
16051 * gdb/ui-file.h (gdb_flush): Rename to...
16052 (ui_file_flush): ...this.
16053 * gdb/utils.c (gdb_flush): Add function.
16054 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 16055
5abbbe1d
TT
160562020-02-07 Tom Tromey <tromey@adacore.com>
16057
16058 PR breakpoints/24915:
16059 * source.c (find_and_open_source): Do not check basenames_may_differ.
16060
919adfe8
TT
160612020-02-07 Tom Tromey <tom@tromey.com>
16062
16063 * README: Update gdbserver documentation.
16064 * gdbserver: Move to top level.
16065 * configure.tgt (build_gdbserver): Remove.
16066 * configure.ac: Remove --enable-gdbserver.
16067 * configure: Rebuild.
16068 * Makefile.in (distclean): Don't mention gdbserver.
16069
1d5d29e7
SV
160702020-02-06 Shahab Vahedi <shahab@synopsys.com>
16071
16072 * source-cache.c (source_cache::ensure): Surround
16073 get_plain_source_lines with a try/catch.
16074 (source_cache::get_line_charpos): Get rid of try/catch
16075 and only check for the return value of "ensure".
16076 * tui/tui-source.c (tui_source_window::set_contents):
16077 Simplify "nlines" calculation.
16078
6eb1129c
SV
160792020-02-06 Shahab Vahedi <shahab@synopsys.com>
16080
16081 * MAINTAINERS (Write After Approval): Add myself.
16082
c6a42d11
CB
160832020-02-05 Christian Biesinger <cbiesinger@google.com>
16084
16085 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16086 function call.
16087
c8ecdda6
CB
160882020-02-05 Christian Biesinger <cbiesinger@google.com>
16089
16090 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16091
f6480e70
MR
160922020-02-05 Maciej W. Rozycki <macro@wdc.com>
16093
16094 * nat/riscv-linux-tdesc.h: New file.
16095 * nat/riscv-linux-tdesc.c: New file, taking code from...
16096 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16097 ... here.
16098 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16099 NATDEPFILES.
16100
dcc9fbc6
AB
161012020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16102
16103 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16104 we don't set the fake simulator ptid to the null_ptid.
16105
719546c4
SM
161062020-02-03 Simon Marchi <simon.marchi@efficios.com>
16107
16108 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16109 * gdbthread.h (class thread_info) <resumed>: Likewise.
16110 * infrun.c (resume_1): Likewise.
16111 (proceed): Likewise.
16112 (infrun_thread_stop_requested): Likewise.
16113 (stop_all_threads): Likewise.
16114 (handle_inferior_event): Likewise.
16115 (restart_threads): Likewise.
16116 (finish_step_over): Likewise.
16117 (keep_going_stepped_thread): Likewise.
16118 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16119 (linux_handle_extended_wait): Likewise.
16120 * record-btrace.c (get_thread_current_frame_id): Likewise.
16121 * record-full.c (record_full_wait_1): Likewise.
16122 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16123 * target.c (target_resume): Likewise.
16124 * thread.c (set_running_thread): Likewise.
16125
e409c542
AKS
161262020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16127
16128 * f-valprint.c (f77_print_array_1): Changed datatype of index
16129 variable to LONGEST from int to enable it to contain bound
16130 values correctly.
16131
ee98c0da
MR
161322020-02-03 Maciej W. Rozycki <macro@wdc.com>
16133
16134 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16135 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16136 offsets according to FLEN determined.
16137 (riscv_linux_nat_target::read_description): Determine FLEN
16138 dynamically.
16139 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16140 according to FLEN determined.
16141 (riscv_linux_nat_target::store_registers): Likewise.
16142
aa66aac4
SV
161432020-02-01 Shahab Vahedi <shahab@synopsys.com>
16144
16145 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16146 when reg->group is empty and reggroup is not.
16147
fd9faca8
TT
161482020-01-31 Tom Tromey <tromey@adacore.com>
16149
16150 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16151 Call beneath target's mourn_inferior after unpushing.
16152
42330a68
AB
161532020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16154
16155 PR tui/9765
16156 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16157 have enough lines to fill the screen, still return the lowest
16158 address we found.
16159
7a27a45b
AB
161602020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16161
16162 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16163 '-', '<', and '>' commands.
16164
c47f70e2
PA
161652020-01-29 Pedro Alves <palves@redhat.com>
16166 Sergio Durigan Junior <sergiodj@redhat.com>
16167
16168 * infcmd.c (construct_inferior_arguments): Assert that
16169 'argc' is greater than 0.
16170
5133a315
LM
161712020-01-29 Luis Machado <luis.machado@linaro.org>
16172
16173 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16174 (BRK_INSN_MASK): Define to 0xd4200000.
16175 (aarch64_program_breakpoint_here_p): New function.
16176 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16177 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16178 breakpoint.c.
16179 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16180 breakpoint.h
16181 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16182 call gdbarch_program_breakpoint_here_p.
16183 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16184 default_program_breakpoint_here_p, changed return type to bool and
16185 simplified.
16186 * breakpoint.h (program_breakpoint_here): Moved prototype to
16187 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16188 return type to bool.
16189 * gdbarch.c: Regenerate.
16190 * gdbarch.h: Regenerate.
16191 * gdbarch.sh (program_breakpoint_here_p): New method.
16192 * infrun.c (handle_signal_stop): Call
16193 gdbarch_program_breakpoint_here_p.
16194
168f8c6b
TT
161952020-01-26 Tom Tromey <tom@tromey.com>
16196
16197 * ctfread.c (struct ctf_fp_info): Reindent.
16198 (_initialize_ctfread): Remove.
16199
128a391f
TT
162002020-01-26 Tom Tromey <tom@tromey.com>
16201
16202 * psymtab.c (partial_map_expand_apply)
16203 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16204 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16205 (psym_print_stats, psym_expand_symtabs_for_function)
16206 (psym_map_symbol_filenames, psym_map_matching_symbols)
16207 (psym_expand_symtabs_matching)
16208 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16209 (maintenance_check_psymtabs): Use new methods.
16210 * psympriv.h (struct partial_symtab) <readin_p,
16211 get_compunit_symtab>: New methods.
16212 <readin, compunit_symtab>: Remove members.
16213 (struct standard_psymtab): New.
16214 (struct legacy_psymtab): Derive from standard_psymtab.
16215 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16216 standard_psymtab.
16217 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16218
0494dbec
TT
162192020-01-26 Tom Tromey <tom@tromey.com>
16220
16221 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16222 read_dependencies. Add assert.
16223 * psymtab.c (partial_symtab::read_dependencies): New method.
16224 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16225 method.
16226 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16227 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16228 read_dependencies.
16229 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16230 Add assert.
16231
8566b89b
TT
162322020-01-26 Tom Tromey <tom@tromey.com>
16233
16234 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16235 Call expand_psymtab.
16236 (xcoff_read_symtab): Call expand_psymtab.
16237 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16238 legacy_expand_psymtab.
16239 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16240 method.
16241 (struct legacy_psymtab) <expand_psymtab>: Implement.
16242 <legacy_expand_psymtab>: New member.
16243 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16244 (parse_partial_symbols): Set legacy_expand_psymtab.
16245 (psymtab_to_symtab_1): Change argument order. Call
16246 expand_psymtab.
16247 (new_psymtab): Set legacy_expand_psymtab.
16248 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16249 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16250 expand_psymtab.
16251 (dwarf2_psymtab::expand_psymtab): Rename from
16252 psymtab_to_symtab_1. Call expand_psymtab.
16253 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16254 (dbx_end_psymtab): Likewise.
16255 (dbx_psymtab_to_symtab_1): Change argument order. Call
16256 expand_psymtab.
16257 (dbx_read_symtab): Call expand_psymtab.
16258 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16259 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16260 (ctf_psymtab::read_symtab): Call expand_psymtab.
16261
077cbab2
TT
162622020-01-26 Tom Tromey <tom@tromey.com>
16263
16264 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16265 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16266 messages.
16267 * mdebugread.c (mdebug_read_symtab): Remove prints.
16268 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16269 assert.
16270 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16271
891813be
TT
162722020-01-26 Tom Tromey <tom@tromey.com>
16273
16274 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16275 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16276 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16277 legacy_symtab.
16278 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16279 * psymtab.c (psymtab_to_symtab): Call method.
16280 (dump_psymtab): Update.
16281 * psympriv.h (struct partial_symtab): Add virtual destructor.
16282 <read_symtab>: New method.
16283 (struct legacy_symtab): New.
16284 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16285 (struct pst_map) <pst>: Now a legacy_psymtab.
16286 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16287 (new_psymtab): Use legacy_psymtab.
16288 * dwarf2read.h (struct dwarf2_psymtab): New.
16289 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16290 * dwarf2read.c (dwarf2_create_include_psymtab)
16291 (dwarf2_build_include_psymtabs, create_type_unit_group)
16292 (create_partial_symtab, process_psymtab_comp_unit_reader)
16293 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16294 (set_partial_user): Use dwarf2_psymtab.
16295 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16296 (psymtab_to_symtab_1, process_full_comp_unit)
16297 (process_full_type_unit, dwarf2_ranges_read)
16298 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16299 (dwarf_decode_lines): Use dwarf2_psymtab.
16300 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16301 (add_address_entry_worker, write_one_signatured_type)
16302 (recursively_count_psymbols, recursively_write_psymbols)
16303 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16304 (write_debug_names): Likewise.
16305 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16306 <pst>: Now a legacy_psymtab.
16307 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16308 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16309 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16310 * ctfread.c (struct ctf_psymtab): New.
16311 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16312 ctf_psymtab.
16313 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16314 (create_partial_symtab): Return a ctf_psymtab.
16315 (scan_partial_symbols): Update.
16316
c3693a1d
TT
163172020-01-26 Tom Tromey <tom@tromey.com>
16318
16319 * xcoffread.c (xcoff_start_psymtab): Use new.
16320 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16321 renamed from start_psymtab_common.
16322 * psympriv.h (struct partial_symtab): Add new constructor.
16323 (start_psymtab_common): Don't declare.
16324 * mdebugread.c (parse_partial_symbols): Use new.
16325 * dwarf2read.c (create_partial_symtab): Use new.
16326 * dbxread.c (start_psymtab): Use new.
16327 * ctfread.c (create_partial_symtab): Use new.
16328
32caafd0
TT
163292020-01-26 Tom Tromey <tom@tromey.com>
16330
16331 * xcoffread.c (xcoff_end_psymtab): Use new.
16332 * psymtab.c (start_psymtab_common): Use new.
16333 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16334 Update.
16335 * psympriv.h (struct partial_symtab): Add parameters to
16336 constructor. Don't inline.
16337 (allocate_psymtab): Don't declare.
16338 * mdebugread.c (new_psymtab): Use new.
16339 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16340 * dbxread.c (dbx_end_psymtab): Use new.
16341
abaa2f23
TT
163422020-01-26 Tom Tromey <tom@tromey.com>
16343
16344 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16345 allocate_psymtab. Update documentation.
16346 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16347 allocate_psymtab. Do not use new.
16348 (allocate_psymtab): Use new. Update.
16349
6d94535f
TT
163502020-01-26 Tom Tromey <tom@tromey.com>
16351
16352 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16353 * psymtab.c (psym_print_stats): Update.
16354 * psympriv.h (struct partial_symtab) <readin,
16355 psymtabs_addrmap_supported, anonymous>: Now bool.
16356 * mdebugread.c (psymtab_to_symtab_1): Update.
16357 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16358 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16359 (process_full_comp_unit, process_full_type_unit): Update.
16360 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16361 * ctfread.c (psymtab_to_symtab): Update.
16362
6f17252b
TT
163632020-01-26 Tom Tromey <tom@tromey.com>
16364
16365 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16366 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16367 * psymtab.c (psymtab_storage): Delete psymtabs.
16368 (psymtab_storage::allocate_psymtab): Use new.
16369 (psymtab_storage::discard_psymtab): Use delete.
16370 * psympriv.h (struct partial_symtab): Add constructor and
16371 initializers.
16372
f6f1cebc
TT
163732020-01-26 Tom Tromey <tom@tromey.com>
16374
16375 * machoread.c: Do not include psympriv.h.
16376
e47e48f6
PW
163772020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16378
16379 * NEWS: Mention the new option and the set/show commands.
16380
a2fedca9
PW
163812020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16382
16383 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16384 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16385 (validate_exec_file): New variables, enums, functions.
16386 (exec_file_locate_attach, print_section_info): Style the filenames.
16387 (_initialize_exec): Install show_exec_file_mismatch_command and
16388 set_exec_file_mismatch_command.
16389 * gdbcore.h (validate_exec_file): Declare.
16390 * infcmd.c (attach_command): Call validate_exec_file.
16391 * remote.c ( remote_target::remote_add_inferior): Likewise.
16392
7ffa82e1
AB
163932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16394
16395 * frame.c (find_frame_sal): Move call to get_next_frame into more
16396 inner scope.
16397 * inline-frame.c (inilne_state) <inline_state>: Update argument
16398 types.
16399 (inilne_state) <skipped_symbol>: Rename to...
16400 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16401 (skip_inline_frames): Build vector of skipped symbols and use this
16402 to reate the inline_state.
16403 (inline_skipped_symbol): Add a comment and some assertions, fetch
16404 skipped symbol from the list.
16405
3d92a3e3
AB
164062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16407
16408 * buildsym.c (lte_is_less_than): Delete.
16409 (buildsym_compunit::end_symtab_with_blockvector): Create local
16410 lambda function to sort line table entries, and use
16411 std::stable_sort instead of std::sort.
16412 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16413 markers when looking for a previous line.
16414
94a72be7
AB
164152020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16416
16417 * dwarf2read.c (lnp_state_machine::record_line): Include
16418 end_sequence parameter in debug print out. Record the line if we
16419 are at an end_sequence marker even if it's not the start of a
16420 statement.
16421 * symmisc.c (maintenance_print_one_line_table): Print end of
16422 sequence markers with 'END' not '0'.
16423
53af73bf
PA
164242020-01-24 Pedro Alves <palves@redhat.com>
16425
16426 PR gdb/25410
16427 * thread.c (scoped_restore_current_thread::restore): Use
16428 switch_to_inferior_no_thread.
16429 * exec.c: Include "progspace-and-thread.h".
16430 (add_target_sections, remove_target_sections):
16431 scoped_restore_current_pspace_and_thread instead of
16432 scoped_restore_current_thread.
16433 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16434 and aspace to the inferior before calling clone_program_space.
16435 Remove stale comment.
16436
3050c6f4
CB
164372020-01-24 Christian Biesinger <cbiesinger@google.com>
16438
16439 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16440 (arm_netbsd_nat_target::fetch_registers): ...this.
16441 (arm_nbsd_nat_target::store_registers): Rename to...
16442 (arm_netbsd_nat_target::store_registers): ...this.
16443
73685c7e
CB
164442020-01-24 Christian Biesinger <cbiesinger@google.com>
16445
16446 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16447 register_t.
16448
89203d40
CB
164492020-01-24 Christian Biesinger <cbiesinger@google.com>
16450
16451 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16452 Update comment.
16453 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16454 Likewise.
16455 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16456 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16457 the correct replacement (iterate_over_regset_sections).
16458 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16459 Update comment.
16460
1ba1ac88
AB
164612020-01-24 Graham Markall <graham.markall@embecosm.com>
16462
16463 PR gdb/23718
16464 * gdb/python/python.c (execute_gdb_command): Call
16465 async_enable_stdin in catch block.
16466
f3364a6d
AB
164672020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16468
16469 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16470 SWITCH_THRU_ALL_UIS.
16471
733d0a67
AB
164722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16473
16474 PR tui/9765
16475 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16476 comment, add extra parameter, and update to store previous symbol
16477 when appropriate.
16478 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16479 add extra parameter.
16480 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16481 remove unneeded parameter, add try/catch around gdb_print_insn,
16482 rewrite to add items to asm_lines vector.
16483 (tui_find_backward_disassembly_start_address): New function.
16484 (tui_find_disassembly_address): Updated throughout.
16485 (tui_disasm_window::set_contents): Update for changes to
16486 tui_disassemble.
16487 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16488 number of lines to scroll.
16489
b3b3bada
SM
164902020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16491
16492 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16493 (SECT_OFF_DATA): Likewise.
16494 (SECT_OFF_RODATA): Likewise.
16495 (SECT_OFF_TEXT): Likewise.
16496 (SECT_OFF_BSS): Likewise.
16497 (struct objfile) <text_section_offset, data_section_offset>: New
16498 methods.
16499 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16500 objfile::text_section_offset.
16501 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16502 * coffread.c (coff_symtab_read): Likewise.
16503 (enter_linenos): Likewise.
16504 (process_coff_symbol): Likewise.
16505 * ctfread.c (get_objfile_text_range): Likewise.
16506 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16507 Use objfile::data_section_offset.
16508 * dwarf2-frame.c (execute_cfa_program): Use
16509 objfile::text_section_offset.
16510 (dwarf2_frame_find_fde): Likewise.
16511 * dwarf2read.c (create_addrmap_from_index): Likewise.
16512 (create_addrmap_from_aranges): Likewise.
16513 (dw2_find_pc_sect_compunit_symtab): Likewise.
16514 (process_psymtab_comp_unit_reader): Likewise.
16515 (add_partial_symbol): Likewise.
16516 (add_partial_subprogram): Likewise.
16517 (process_full_comp_unit): Likewise.
16518 (read_file_scope): Likewise.
16519 (read_func_scope): Likewise.
16520 (read_lexical_block_scope): Likewise.
16521 (read_call_site_scope): Likewise.
16522 (dwarf2_rnglists_process): Likewise.
16523 (dwarf2_ranges_process): Likewise.
16524 (dwarf2_ranges_read): Likewise.
16525 (dwarf_decode_lines_1): Likewise.
16526 (new_symbol): Likewise.
16527 (dwarf2_fetch_die_loc_sect_off): Likewise.
16528 (dwarf2_per_cu_text_offset): Likewise.
16529 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16530 * hppa-tdep.c (read_unwind_info): Likewise.
16531 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16532 * psympriv.h (struct partial_symtab): Likewise.
16533 * psymtab.c (find_pc_sect_psymtab): Likewise.
16534 * solib-svr4.c (enable_break): Likewise.
16535 * stap-probe.c (relocate_address): Use
16536 objfile::data_section_offset.
16537 * xcoffread.c (enter_line_range): Use
16538 objfile::text_section_offset.
16539 (read_xcoff_symtab): Likewise.
16540
ab53f382
SM
165412020-01-23 Simon Marchi <simon.marchi@efficios.com>
16542
16543 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16544 declaration to narrower scopes.
16545
e7eee665
SM
165462020-01-23 Simon Marchi <simon.marchi@efficios.com>
16547
16548 * darwin-nat.h (struct darwin_exception_msg, enum
16549 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16550 Move up.
16551 (class darwin_nat_target) <wait_1, check_new_threads,
16552 decode_exception_message, decode_message, stop_inferior,
16553 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16554 * darwin-nat.c (darwin_check_new_threads): Rename to...
16555 (darwin_nat_target::check_new_threads): ... this.
16556 (darwin_suspend_inferior_it): Remove.
16557 (darwin_decode_exception_message): Rename to...
16558 (darwin_nat_target::decode_exception_message): ... this.
16559 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16560 (darwin_decode_message): Rename to...
16561 (darwin_nat_target::decode_message): ... this.
16562 (cancel_breakpoint): Rename to...
16563 (darwin_nat_target::cancel_breakpoint): ... this.
16564 (darwin_wait): Rename to...
16565 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16566 instead of iterate_over_inferiors.
16567 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16568 (darwin_stop_inferior): Rename to...
16569 (darwin_nat_target::stop_inferior): ... this.
16570 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16571 (darwin_init_thread_list): Rename to...
16572 (darwin_nat_target::init_thread_list): ... this.
16573 (darwin_ptrace_him): Rename to...
16574 (darwin_nat_target::ptrace_him): ... this.
16575 (darwin_nat_target::create_inferior): Pass lambda function to
16576 fork_inferior.
16577 (darwin_nat_target::detach): Call stop_inferior instead of
16578 darwin_stop_inferior.
16579 * fork-inferior.h (fork_inferior): Change init_trace_fun
16580 parameter to gdb::function_view.
16581 * fork-inferior.c (fork_inferior): Likewise.
16582
c162ed3e
HD
165832020-01-23 Hannes Domani <ssbssa@yahoo.de>
16584
16585 * i386-cygwin-tdep.c (core_process_module_section): Update.
16586 * windows-nat.c (struct lm_info_windows): Add text_offset.
16587 (windows_xfer_shared_libraries): Update.
16588 * windows-tdep.c (windows_xfer_shared_library):
16589 Add text_offset_cached argument.
16590 * windows-tdep.h (windows_xfer_shared_library): Update.
16591
a1237872
SM
165922020-01-21 Simon Marchi <simon.marchi@efficios.com>
16593
16594 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16595
b3ee6dd9
SM
165962020-01-21 Simon Marchi <simon.marchi@efficios.com>
16597
16598 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16599 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16600 replace with range-based for.
16601 (gdbsim_interrupt_inferior): Remove.
16602 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16603 with a range-based for. Inline code from
16604 gdbsim_interrupt_inferior.
16605
f9fac3c8
SM
166062020-01-21 Simon Marchi <simon.marchi@efficios.com>
16607
16608 * infrun.c (proceed): Fix indentation.
16609
f6474de9
TT
166102020-01-21 Tom Tromey <tromey@adacore.com>
16611
16612 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16613 * python/python.c (python_extension_ops): Update.
16614 (gdbpy_colorize): New function.
16615 * python/lib/gdb/__init__.py (colorize): New function.
16616 * extension.h (ext_lang_colorize): Declare.
16617 * extension.c (ext_lang_colorize): New function.
16618 * extension-priv.h (struct extension_language_ops) <colorize>: New
16619 member.
16620 * cli/cli-style.c (_initialize_cli_style): Update help text.
16621
f0c702d4
LM
166222020-01-21 Luis Machado <luis.machado@linaro.org>
16623
16624 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16625 <cond>: Change type to bool.
16626 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16627 (aarch64_displaced_step_cb): Likewise.
16628 (aarch64_displaced_step_tb): Likewise.
16629
1ab139e5
LM
166302020-01-21 Luis Machado <luis.machado@linaro.org>
16631
16632 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16633 output.
16634
0c271889
LM
166352020-01-21 Luis Machado <luis.machado@linaro.org>
16636
16637 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16638 <pc_adjust>: Adjust the documentation.
16639 (aarch64_displaced_step_fixup): Check if PC really moved before
16640 adjusting it.
16641
4d89c1c7
TT
166422020-01-19 Tom Tromey <tom@tromey.com>
16643
16644 * disasm.c (~gdb_disassembler): New destructor.
16645 (gdb_buffered_insn_length): Call disassemble_free_target.
16646 * disasm.h (class gdb_disassembler): Declare destructor. Use
16647 DISABLE_COPY_AND_ASSIGN.
16648
c0ab21c2
TT
166492020-01-19 Tom Tromey <tom@tromey.com>
16650
16651 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16652 (die_reader_func_ftype): Remove.
16653 (cutu_reader): New class.
16654 (dw2_get_file_names_reader): Remove "data" parameter.
16655 (dw2_get_file_names): Use cutu_reader.
16656 (create_debug_type_hash_table): Update.
16657 (read_cutu_die_from_dwo): Update comment.
16658 (lookup_dwo_unit): Add dwo_name parameter.
16659 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16660 die_reader_func_ftype and data parameters.
16661 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16662 Remove die_reader_func_ftype and data parameters.
16663 (~cutu_reader): New; from init_cutu_and_read_dies.
16664 (cutu_reader::cutu_reader): Rename from
16665 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16666 and data parameters.
16667 (init_cutu_and_read_dies_simple): Remove.
16668 (struct process_psymtab_comp_unit_data): Remove.
16669 (process_psymtab_comp_unit_reader): Remove data parameter; add
16670 want_partial_unit and pretend_language parameters.
16671 (process_psymtab_comp_unit): Use cutu_reader.
16672 (build_type_psymtabs_reader): Remove data parameter.
16673 (build_type_psymtabs_1): Use cutu_reader.
16674 (process_skeletonless_type_unit): Likewise.
16675 (load_partial_comp_unit_reader): Remove.
16676 (load_partial_comp_unit): Use cutu_reader.
16677 (load_full_comp_unit_reader): Remove.
16678 (load_full_comp_unit): Use cutu_reader.
16679 (struct create_dwo_cu_data): Remove.
16680 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16681 dwo_unit parameters.
16682 (create_cus_hash_table): Use cutu_reader.
16683 (struct dwarf2_read_addr_index_data): Remove.
16684 (dwarf2_read_addr_index_reader): Remove.
16685 (dwarf2_read_addr_index): Use cutu_reader.
16686 (read_signatured_type_reader): Remove.
16687 (read_signatured_type): Use cutu_reader.
16688
45bbae5c
TT
166892020-01-19 Tom Tromey <tom@tromey.com>
16690
16691 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16692 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16693 (tui_wrefresh): Declare.
16694 * tui/tui-wingeneral.c (suppress_output): New global.
16695 (tui_suppress_output, ~tui_suppress_output): New constructor and
16696 destructor.
16697 (tui_wrefresh): New function.
16698 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16699 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16700 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16701 method.
16702 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16703 tui_wrefresh.
16704 (tui_data_window::no_refresh): New method.
16705 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16706 (tui_reg_command): Use tui_suppress_output
16707 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16708 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16709 method.
16710 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16711
4f13c1c0
TT
167122020-01-19 Tom Tromey <tom@tromey.com>
16713
16714 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16715 Handle case where symtab is null.
16716
fa47e446
SM
167172020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16718
16719 * linux-fork.c (one_fork_p): Simplify.
16720
26f42329
SM
167212020-01-17 Simon Marchi <simon.marchi@efficios.com>
16722
16723 * top.c (struct qt_args): Remove.
16724 (kill_or_detach): Change return type to void, replace `void *`
16725 parameter with a proper one.
16726 (print_inferior_quit_action): Likewise.
16727 (quit_confirm): Use range-based for loop to iterate over inferiors.
16728 (quit_force): Likewise.
16729
a9ac81b1
SM
167302020-01-17 Simon Marchi <simon.marchi@efficios.com>
16731
16732 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16733 `void *` parameter with proper parameters.
16734 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16735 (print_one_inferior): Change return type to void, replace `void *`
16736 parameter with proper parameters.
16737 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16738 inferiors.
16739 (get_other_inferior): Remove.
16740 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16741 inferiors.
16742
788eca49
SM
167432020-01-17 Simon Marchi <simon.marchi@efficios.com>
16744
16745 * mi/mi-interp.c (report_initial_inferior): Remove.
16746 (mi_interp::init): Use range-based for to iterate over inferiors.
16747
d9bc85b6
SM
167482020-01-17 Simon Marchi <simon.marchi@efficios.com>
16749
16750 * python/py-inferior.c (build_inferior_list): Remove.
16751 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16752
40c94099
CB
167532020-01-16 Christian Biesinger <cbiesinger@google.com>
16754
16755 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16756 (btrace_stitch_trace): Likewise.
16757 * charset.c (intermediate_encoding): Likewise (vaild).
16758 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16759 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16760 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16761
e0cdfe3c
HD
167622020-01-16 Hannes Domani <ssbssa@yahoo.de>
16763
16764 * windows-tdep.c (windows_get_tlb_type):
16765 Add rtl_user_process_parameters type.
16766
790f1718 167672020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16768 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16769
16770 PR build/24805
16771 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16772 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16773 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16774 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16775 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16776 (ps_plog): Redeclare exported functions with default visibility.
16777
3112ed97
NA
167782020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16779
16780 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16781 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16782
8dc3273e
SM
167832020-01-15 Simon Marchi <simon.marchi@efficios.com>
16784
16785 * infcmd.c (post_create_inferior): Use get_thread_regcache
16786 instead of get_current_regcache.
16787
ff47f4f0
TT
167882020-01-14 Tom Tromey <tom@tromey.com>
16789
16790 PR symtab/12535:
16791 * python/python.c (gdbpy_decode_line): Treat empty string the same
16792 as no argument.
16793
975f45b7
TT
167942020-01-14 Tom Tromey <tom@tromey.com>
16795
16796 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16797
25e57356
TT
167982020-01-14 Tom Tromey <tom@tromey.com>
16799
16800 * nat/linux-btrace.c: Don't include <config.h>.
16801 * nat/linux-ptrace.c: Don't include <config.h>.
16802 * nat/x86-linux-dregs.c: Don't include <config.h>.
16803
05ea2a05
TT
168042020-01-14 Tom Tromey <tom@tromey.com>
16805
16806 * configure: Rebuild.
16807 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16808
01027315
TT
168092020-01-14 Tom Tromey <tom@tromey.com>
16810
16811 * nat/x86-linux-dregs.c: Include configh.h.
16812 * nat/linux-ptrace.c: Include configh.h.
16813 * nat/linux-btrace.c: Include configh.h.
16814 * defs.h: Include config.h, bfd.h.
16815 * configure.ac: Don't source common.host.
16816 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16817 * configure: Rebuild.
16818 * acinclude.m4: Update path.
16819 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16820 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16821 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16822 (CLIBS): Add LIBSUPPORT.
16823 (CDEPS): Likewise.
16824 (COMMON_SFILES): Remove gdbsupport files.
16825 (HFILES_NO_SRCDIR): Likewise.
16826 (stamp-version): Update path to create-version.sh.
16827 (ALLDEPFILES): Remove gdbsupport files.
16828
b2ceabe8
TT
168292020-01-14 Tom Tromey <tom@tromey.com>
16830
16831 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16832 USE_WIN32API when needed.
16833 * configure.ac (USE_WIN32API): Don't define.
16834 (WIN32LIBS): Use WIN32APILIBS.
16835 * configure: Rebuild.
16836
25c51f71
TT
168372020-01-14 Tom Tromey <tom@tromey.com>
16838
16839 * configure: Rebuild.
16840 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16841
717c684d
BE
168422020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16843
16844 * skip.c (skip_function_command): Make skip w/o arguments use the
16845 name of the inlined function if pc is inside any inlined function.
16846
7da6a5b9
LM
168472020-01-14 Luis Machado <luis.machado@linaro.org>
16848
16849 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16850 * infrun.c (resume_1): Likewise.
16851 (handle_inferior_event): Remove stale comment.
16852 * linux-nat.c (linux_nat_target::resume): Update comments.
16853 (save_stop_reason): Likewise.
16854 (linux_nat_filter_event): Likewise.
16855 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16856
44e4c775
AB
168572020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16858
16859 * elfread.c (record_minimal_symbol): Set section index to 0 for
16860 non-allocatable sections.
16861
18a8505e
AT
16862
168632020-01-13 Ali Tamur <tamur@google.com>
16864
16865 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16866 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16867 to gdb::optional. Update comments.
16868 (dwo_file): Update comments.
16869 (read_attribute): Update API to take an additional out parameter,
16870 need_reprocess. This is used to mark attributes that need other
16871 attributes (e.g. str_offsets_base) for correct computation which may not
16872 have been read yet.
16873 (read_attribute_reprocess): New function declaration.
16874 (read_addr_index): Likewise.
16875 (read_dwo_str_index): Likewise.
16876 (read_stub_str_index): Likewise.
16877 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16878 (lookup_addr_base): New function definition.
16879 (lookup_ranges_base): Likewise.
16880 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16881 lookup_ranges_base.
16882 (init_cutu_and_read_dies): Update comments.
16883 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16884 unit. This is used to inherit parent's str_offsets_base and addr_base.
16885 Update comments.
16886 (init_cutu_and_read_dies_simple): Reflect API changes.
16887 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16888 (create_cus_hash_table): Change API to take parent compile unit.
16889 Reflect API changes.
16890 (open_and_init_dwo_file): Reflect API changes.
16891 (dwarf2_get_pc_bounds): Update comments.
16892 (dwarf2_record_block_ranges): Likewise.
16893 (read_full_die_1): Change implementation to reprocess attributes that
16894 need str_offsets_base and addr_base.
16895 (partial_die_info::read): Likewise.
16896 (read_attribute_reprocess): New function definition.
16897 (read_attribute_value): Change API to take an additional out parameter,
16898 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16899 when a non-dwo compile unit has index based attributes.
16900 (read_attribute): Reflect API changes.
16901 (read_addr_index_1): Reflect API changes. Update comments.
16902 (dwarf2_read_addr_index_data): Reflect API changes.
16903 (dwarf2_read_addr_index): Likewise.
16904 (read_str_index): Change API and implementation. This becomes a helper
16905 to be used by the new string index related methods. Update error
16906 message and comments.
16907 (read_dwo_str_index): New function definition.
16908 (read_stub_str_index): Likewise.
16909 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16910 * symfile.h (dwarf2_debug_sections): Likewise.
16911 * xcoffread.c (dwarf2_debug_sections): Likewise.
16912
0cac9354
SM
169132020-01-13 Simon Marchi <simon.marchi@efficios.com>
16914
16915 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16916 core_reg_sect type to gdb_byte *.
16917 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16918 * cris-tdep.c (fetch_core_registers): Likewise.
16919 * corelow.c (core_target::get_core_register_section): Change
16920 type of `contents` to gdb::byte_vector.
16921
9a6d629c
AB
169222020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16923
16924 * tui/tui-wingeneral.c (box_win): Position the title in the center
16925 of the border.
16926
d8b2f9e3
SM
169272020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16928
16929 * corelow.c (core_target::get_core_register_section): Use
16930 std::vector instead of alloca.
16931
bb564c58
SM
169322020-01-13 Simon Marchi <simon.marchi@efficios.com>
16933
16934 * warning.m4: Add -Wmissing-declarations to build_warnings.
16935 * configure: Re-generate.
16936
6b366111
SM
169372020-01-13 Simon Marchi <simon.marchi@efficios.com>
16938
16939 * python/python.c (init__gdb_module): Add declaration.
16940
6c265988
SM
169412020-01-13 Simon Marchi <simon.marchi@efficios.com>
16942
16943 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16944 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16945 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16946 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16947 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16948 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16949 * ada-exp.y (_initialize_ada_exp): Add declaration.
16950 * ada-lang.c (_initialize_ada_language): Add declaration.
16951 * ada-tasks.c (_initialize_tasks): Add declaration.
16952 * agent.c (_initialize_agent): Add declaration.
16953 * aix-thread.c (_initialize_aix_thread): Add declaration.
16954 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16955 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16956 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16957 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16958 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16959 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16960 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16961 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16962 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16963 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16964 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16965 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16966 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16967 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16968 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16969 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16970 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16971 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16972 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16973 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16974 * annotate.c (_initialize_annotate): Add declaration.
16975 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16976 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16977 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16978 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16979 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16980 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16981 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16982 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16983 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16984 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16985 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16986 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16987 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16988 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16989 * auto-load.c (_initialize_auto_load): Add declaration.
16990 * auxv.c (_initialize_auxv): Add declaration.
16991 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16992 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16993 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16994 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16995 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16996 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16997 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16998 * breakpoint.c (_initialize_breakpoint): Add declaration.
16999 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17000 * btrace.c (_initialize_btrace): Add declaration.
17001 * charset.c (_initialize_charset): Add declaration.
17002 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17003 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17004 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17005 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17006 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17007 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17008 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17009 * coffread.c (_initialize_coffread): Add declaration.
17010 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17011 * compile/compile.c (_initialize_compile): Add declaration.
17012 * complaints.c (_initialize_complaints): Add declaration.
17013 * completer.c (_initialize_completer): Add declaration.
17014 * copying.c (_initialize_copying): Add declaration.
17015 * corefile.c (_initialize_core): Add declaration.
17016 * corelow.c (_initialize_corelow): Add declaration.
17017 * cp-abi.c (_initialize_cp_abi): Add declaration.
17018 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17019 * cp-support.c (_initialize_cp_support): Add declaration.
17020 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17021 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17022 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17023 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17024 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17025 * ctfread.c (_initialize_ctfread): Add declaration.
17026 * d-lang.c (_initialize_d_language): Add declaration.
17027 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17028 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17029 * dbxread.c (_initialize_dbxread): Add declaration.
17030 * dcache.c (_initialize_dcache): Add declaration.
17031 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17032 * disasm.c (_initialize_disasm): Add declaration.
17033 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17034 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17035 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17036 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17037 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17038 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17039 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17040 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17041 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17042 * elfread.c (_initialize_elfread): Add declaration.
17043 * exec.c (_initialize_exec): Add declaration.
17044 * extension.c (_initialize_extension): Add declaration.
17045 * f-lang.c (_initialize_f_language): Add declaration.
17046 * f-valprint.c (_initialize_f_valprint): Add declaration.
17047 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17048 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17049 * filesystem.c (_initialize_filesystem): Add declaration.
17050 * findcmd.c (_initialize_mem_search): Add declaration.
17051 * findvar.c (_initialize_findvar): Add declaration.
17052 * fork-child.c (_initialize_fork_child): Add declaration.
17053 * frame-base.c (_initialize_frame_base): Add declaration.
17054 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17055 * frame.c (_initialize_frame): Add declaration.
17056 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17057 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17058 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17059 * gcore.c (_initialize_gcore): Add declaration.
17060 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17061 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17062 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17063 * gdbarch.c (_initialize_gdbarch): Add declaration.
17064 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17065 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17066 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17067 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17068 * go-lang.c (_initialize_go_language): Add declaration.
17069 * go32-nat.c (_initialize_go32_nat): Add declaration.
17070 * guile/guile.c (_initialize_guile): Add declaration.
17071 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17072 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17073 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17074 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17075 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17076 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17077 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17078 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17079 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17080 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17081 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17082 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17083 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17084 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17085 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17086 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17087 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17088 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17089 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17090 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17091 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17092 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17093 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17094 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17095 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17096 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17097 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17098 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17099 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17100 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17101 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17102 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17103 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17104 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17105 * infcall.c (_initialize_infcall): Add declaration.
17106 * infcmd.c (_initialize_infcmd): Add declaration.
17107 * inflow.c (_initialize_inflow): Add declaration.
17108 * infrun.c (_initialize_infrun): Add declaration.
17109 * interps.c (_initialize_interpreter): Add declaration.
17110 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17111 * jit.c (_initialize_jit): Add declaration.
17112 * language.c (_initialize_language): Add declaration.
17113 * linux-fork.c (_initialize_linux_fork): Add declaration.
17114 * linux-nat.c (_initialize_linux_nat): Add declaration.
17115 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17116 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17117 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17118 * m2-lang.c (_initialize_m2_language): Add declaration.
17119 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17120 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17121 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17122 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17123 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17124 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17125 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17126 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17127 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17128 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17129 * machoread.c (_initialize_machoread): Add declaration.
17130 * macrocmd.c (_initialize_macrocmd): Add declaration.
17131 * macroscope.c (_initialize_macroscope): Add declaration.
17132 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17133 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17134 * maint.c (_initialize_maint_cmds): Add declaration.
17135 * mdebugread.c (_initialize_mdebugread): Add declaration.
17136 * memattr.c (_initialize_mem): Add declaration.
17137 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17138 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17139 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17140 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17141 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17142 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17143 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17144 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17145 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17146 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17147 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17148 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17149 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17150 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17151 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17152 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17153 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17154 * mipsread.c (_initialize_mipsread): Add declaration.
17155 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17156 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17157 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17158 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17159 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17160 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17161 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17162 * nto-procfs.c (_initialize_procfs): Add declaration.
17163 * objc-lang.c (_initialize_objc_language): Add declaration.
17164 * observable.c (_initialize_observer): Add declaration.
17165 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17166 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17167 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17168 * osabi.c (_initialize_gdb_osabi): Add declaration.
17169 * osdata.c (_initialize_osdata): Add declaration.
17170 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17171 * parse.c (_initialize_parse): Add declaration.
17172 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17173 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17174 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17175 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17176 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17177 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17178 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17179 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17180 * printcmd.c (_initialize_printcmd): Add declaration.
17181 * probe.c (_initialize_probe): Add declaration.
17182 * proc-api.c (_initialize_proc_api): Add declaration.
17183 * proc-events.c (_initialize_proc_events): Add declaration.
17184 * proc-service.c (_initialize_proc_service): Add declaration.
17185 * procfs.c (_initialize_procfs): Add declaration.
17186 * producer.c (_initialize_producer): Add declaration.
17187 * psymtab.c (_initialize_psymtab): Add declaration.
17188 * python/python.c (_initialize_python): Add declaration.
17189 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17190 * record-btrace.c (_initialize_record_btrace): Add declaration.
17191 * record-full.c (_initialize_record_full): Add declaration.
17192 * record.c (_initialize_record): Add declaration.
17193 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17194 * regcache.c (_initialize_regcache): Add declaration.
17195 * reggroups.c (_initialize_reggroup): Add declaration.
17196 * remote-notif.c (_initialize_notif): Add declaration.
17197 * remote-sim.c (_initialize_remote_sim): Add declaration.
17198 * remote.c (_initialize_remote): Add declaration.
17199 * reverse.c (_initialize_reverse): Add declaration.
17200 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17201 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17202 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17203 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17204 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17205 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17206 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17207 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17208 Add declaration.
17209 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17210 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17211 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17212 * rust-exp.y (_initialize_rust_exp): Add declaration.
17213 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17214 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17215 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17216 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17217 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17218 * score-tdep.c (_initialize_score_tdep): Add declaration.
17219 * ser-go32.c (_initialize_ser_dos): Add declaration.
17220 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17221 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17222 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17223 * ser-uds.c (_initialize_ser_socket): Add declaration.
17224 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17225 * serial.c (_initialize_serial): Add declaration.
17226 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17227 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17228 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17229 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17230 * skip.c (_initialize_step_skip): Add declaration.
17231 * sol-thread.c (_initialize_sol_thread): Add declaration.
17232 * solib-aix.c (_initialize_solib_aix): Add declaration.
17233 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17234 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17235 * solib-frv.c (_initialize_frv_solib): Add declaration.
17236 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17237 * solib-target.c (_initialize_solib_target): Add declaration.
17238 * solib.c (_initialize_solib): Add declaration.
17239 * source-cache.c (_initialize_source_cache): Add declaration.
17240 * source.c (_initialize_source): Add declaration.
17241 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17242 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17243 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17244 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17245 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17246 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17247 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17248 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17249 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17250 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17251 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17252 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17253 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17254 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17255 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17256 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17257 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17258 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17259 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17260 * stabsread.c (_initialize_stabsread): Add declaration.
17261 * stack.c (_initialize_stack): Add declaration.
17262 * stap-probe.c (_initialize_stap_probe): Add declaration.
17263 * std-regs.c (_initialize_frame_reg): Add declaration.
17264 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17265 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17266 * symfile.c (_initialize_symfile): Add declaration.
17267 * symmisc.c (_initialize_symmisc): Add declaration.
17268 * symtab.c (_initialize_symtab): Add declaration.
17269 * target.c (_initialize_target): Add declaration.
17270 * target-connection.c (_initialize_target_connection): Add
17271 declaration.
17272 * target-dcache.c (_initialize_target_dcache): Add declaration.
17273 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17274 * thread.c (_initialize_thread): Add declaration.
17275 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17276 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17277 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17278 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17279 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17280 * tracectf.c (_initialize_ctf): Add declaration.
17281 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17282 * tracefile.c (_initialize_tracefile): Add declaration.
17283 * tracepoint.c (_initialize_tracepoint): Add declaration.
17284 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17285 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17286 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17287 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17288 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17289 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17290 * tui/tui.c (_initialize_tui): Add declaration.
17291 * typeprint.c (_initialize_typeprint): Add declaration.
17292 * ui-style.c (_initialize_ui_style): Add declaration.
17293 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17294 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17295 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17296 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17297 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17298 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17299 * unittests/filtered_iterator-selftests.c
17300 (_initialize_filtered_iterator_selftests): Add declaration.
17301 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17302 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17303 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17304 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17305 * unittests/main-thread-selftests.c
17306 (_initialize_main_thread_selftests): Add declaration.
17307 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17308 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17309 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17310 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17311 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17312 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17313 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17314 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17315 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17316 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17317 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17318 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17319 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17320 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17321 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17322 declaration.
17323 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17324 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17325 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17326 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17327 * user-regs.c (_initialize_user_regs): Add declaration.
17328 * utils.c (_initialize_utils): Add declaration.
17329 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17330 * valops.c (_initialize_valops): Add declaration.
17331 * valprint.c (_initialize_valprint): Add declaration.
17332 * value.c (_initialize_values): Add declaration.
17333 * varobj.c (_initialize_varobj): Add declaration.
17334 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17335 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17336 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17337 * windows-nat.c (_initialize_windows_nat): Add declaration.
17338 (_initialize_check_for_gdb_ini): Add declaration.
17339 (_initialize_loadable): Add declaration.
17340 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17341 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17342 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17343 * xcoffread.c (_initialize_xcoffread): Add declaration.
17344 * xml-support.c (_initialize_xml_support): Add declaration.
17345 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17346 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17347 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17348 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17349
e2de1eec
SM
173502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17351
17352 * regformats/regdat.sh: Generate declaration for init function.
17353
e0037b4c
SM
173542020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17355
17356 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17357 up.
17358 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17359 close_one_inferior>: New methods.
17360 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17361 pass down target to find_inferior_pid.
17362 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17363 Pass down target to find_inferior_ptid.
17364 (gdbsim_target::create_inferior): Pass down target to
17365 add_thread_silent.
17366 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17367 target down to find_inferior_ptid and switch_to_thread.
17368 (gdbsim_target::close): Update to call close_one_inferior.
17369 (struct resume_data): Remove.
17370 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17371 directly, rather than through a void pointer.
17372 (gdbsim_target::resume): Update to call resume_one_inferior.
17373
58920b5b
SM
173742020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17375
17376 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17377
4ec89149
PA
173782020-01-12 Pedro Alves <palves@redhat.com>
17379
17380 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17381 directly for the current inferior instead of
17382 discard_all_inferiors.
17383 (discard_all_inferiors): Delete.
17384
7c392d1d
TT
173852020-01-11 Tom Tromey <tom@tromey.com>
17386
17387 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17388 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17389 deprecated_safe_get_selected_frame.
17390
d9ebdab7
TBA
173912020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17392
17393 * inferior.c (print_inferior): Switch inferior before printing it.
17394
f3c469b9
PA
173952020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17396 Pedro Alves <palves@redhat.com>
17397
17398 * progspace-and-thread.c (switch_to_program_space_and_thread):
17399 Assert there's an inferior for PSPACE. Use
17400 switch_to_inferior_no_thread to switch the inferior too.
17401 * progspace.c (program_space::~program_space): Call
17402 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17403 (program_space::free_all_objfiles): Don't call clear_symtab_users
17404 here.
17405 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17406
65c574f6
PA
174072020-01-10 Pedro Alves <palves@redhat.com>
17408
17409 * NEWS: Mention multi-target debugging, "info connections", and
17410 "add-inferior -no-connection".
17411
2f4fcf00
PA
174122020-01-10 Pedro Alves <palves@redhat.com>
17413
17414 * infrun.c: Include "target-connection.h".
17415 (check_multi_target_resumption): New.
17416 (proceed): Call it.
17417 * target-connection.c (make_target_connection_string): Make
17418 extern.
17419 * target-connection.h (make_target_connection_string): Declare.
17420
121b3efd
PA
174212020-01-10 Pedro Alves <palves@redhat.com>
17422
17423 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17424 * inferior.c (uiout_field_connection): New function.
17425 (print_inferior): Add new "connection-id" column.
17426 (add_inferior_command): Show connection number/string of added
17427 inferior.
17428 * process-stratum-target.h
17429 (process_stratum_target::connection_string): New virtual method.
17430 (process_stratum_target::connection_number): New field.
17431 * remote.c (remote_target::connection_string): New override.
17432 * target-connection.c: New file.
17433 * target-connection.h: New file.
17434 * target.c (decref_target): Remove process_stratum targets from
17435 the connection list.
17436 (target_stack::push): Add process_stratum targets to the
17437 connection list.
17438
4f837581
PA
174392020-01-10 Pedro Alves <palves@redhat.com>
17440
17441 Revert:
17442 2016-04-12 Pedro Alves <palves@redhat.com>
17443 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17444 Remove references to name.
17445 * serial.h (struct serial) <name>: Delete.
17446
f4ec508e
PA
174472020-01-10 Pedro Alves <palves@redhat.com>
17448
17449 * gdbarch-selftests.c (register_to_value_test): Remove "target
17450 already pushed" check.
17451
5b6d1e4f
PA
174522020-01-10 Pedro Alves <palves@redhat.com>
17453 John Baldwin <jhb@FreeBSD.org>
17454
17455 * aarch64-linux-nat.c
17456 (aarch64_linux_nat_target::thread_architecture): Adjust.
17457 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17458 (task_command_1): Likewise.
17459 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17460 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17461 (aix_thread_target::store_registers)
17462 (aix_thread_target::thread_alive): Adjust.
17463 * amd64-fbsd-tdep.c: Include "inferior.h".
17464 (amd64fbsd_get_thread_local_address): Pass down target.
17465 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17466 thread's gdbarch instead of target_gdbarch.
17467 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17468 get_last_target_status.
17469 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17470 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17471 inferiors.
17472 (update_inserted_breakpoint_locations): Skip if inferiors with no
17473 execution.
17474 (update_global_location_list): When handling moribund locations,
17475 find representative inferior for location's pspace, and use thread
17476 count of its process_stratum target.
17477 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17478 * bsd-uthread.c (bsd_uthread_target::wait): Use
17479 as_process_stratum_target and adjust thread_change_ptid and
17480 add_thread calls.
17481 (bsd_uthread_target::update_thread_list): Use
17482 as_process_stratum_target and adjust find_thread_ptid,
17483 thread_change_ptid and add_thread calls.
17484 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17485 find_thread_ptid call.
17486 * corelow.c (add_to_thread_list): Adjust add_thread call.
17487 (core_target_open): Adjust add_thread_silent and thread_count
17488 calls.
17489 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17490 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17491 * event-top.c (async_disconnect): Pop targets from all inferiors.
17492 * exec.c (add_target_sections): Push exec target on all inferiors
17493 sharing the program space.
17494 (remove_target_sections): Remove the exec target from all
17495 inferiors sharing the program space.
17496 (exec_on_vfork): New.
17497 * exec.h (exec_on_vfork): Declare.
17498 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17499 Pass it down.
17500 (fbsd_nat_target::update_thread_list): Adjust.
17501 (fbsd_nat_target::resume): Adjust.
17502 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17503 down.
17504 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17505 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17506 get_thread_arch_regcache call.
17507 * fork-child.c (gdb_startup_inferior): Pass target down to
17508 startup_inferior and set_executing.
17509 * gdbthread.h (struct process_stratum_target): Forward declare.
17510 (add_thread, add_thread_silent, add_thread_with_info)
17511 (in_thread_list): Add process_stratum_target parameter.
17512 (find_thread_ptid(inferior*, ptid_t)): New overload.
17513 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17514 parameter.
17515 (all_threads()): Delete overload.
17516 (all_threads, all_non_exited_threads): Add process_stratum_target
17517 parameter.
17518 (all_threads_safe): Use brace initialization.
17519 (thread_count): Add process_stratum_target parameter.
17520 (set_resumed, set_running, set_stop_requested, set_executing)
17521 (threads_are_executing, finish_thread_state): Add
17522 process_stratum_target parameter.
17523 (switch_to_thread): Use is_current_thread.
17524 * i386-fbsd-tdep.c: Include "inferior.h".
17525 (i386fbsd_get_thread_local_address): Pass down target.
17526 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17527 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17528 have_inferiors check.
17529 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17530 (inf_ptrace_target::attach): Adjust.
17531 * infcall.c (run_inferior_call): Adjust.
17532 * infcmd.c (run_command_1): Pass target to
17533 scoped_finish_thread_state.
17534 (proceed_thread_callback): Skip inferiors with no execution.
17535 (continue_command): Rename 'all_threads' local to avoid hiding
17536 'all_threads' function. Adjust get_last_target_status call.
17537 (prepare_one_step): Adjust set_running call.
17538 (signal_command): Use user_visible_resume_target. Compare thread
17539 pointers instead of inferior_ptid.
17540 (info_program_command): Adjust to pass down target.
17541 (attach_command): Mark target's 'thread_executing' flag.
17542 (stop_current_target_threads_ns): New, factored out from ...
17543 (interrupt_target_1): ... this. Switch inferior before making
17544 target calls.
17545 * inferior-iter.h
17546 (struct all_inferiors_iterator, struct all_inferiors_range)
17547 (struct all_inferiors_safe_range)
17548 (struct all_non_exited_inferiors_range): Filter on
17549 process_stratum_target too. Remove explicit.
17550 * inferior.c (inferior::inferior): Push dummy target on target
17551 stack.
17552 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17553 Add process_stratum_target parameter, and pass it down.
17554 (have_live_inferiors): Adjust.
17555 (switch_to_inferior_and_push_target): New.
17556 (add_inferior_command, clone_inferior_command): Handle
17557 "-no-connection" parameter. Use
17558 switch_to_inferior_and_push_target.
17559 (_initialize_inferior): Mention "-no-connection" option in
17560 the help of "add-inferior" and "clone-inferior" commands.
17561 * inferior.h: Include "process-stratum-target.h".
17562 (interrupt_target_1): Use bool.
17563 (struct inferior) <push_target, unpush_target, target_is_pushed,
17564 find_target_beneath, top_target, process_target, target_at,
17565 m_stack>: New.
17566 (discard_all_inferiors): Delete.
17567 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17568 (all_inferiors, all_non_exited_inferiors): Add
17569 process_stratum_target parameter.
17570 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17571 (target_last_proc_target): New global.
17572 (follow_fork_inferior): Push target on new inferior. Pass target
17573 to add_thread_silent. Call exec_on_vfork. Handle target's
17574 reference count.
17575 (follow_fork): Adjust get_last_target_status call. Also consider
17576 target.
17577 (follow_exec): Push target on new inferior.
17578 (struct execution_control_state) <target>: New field.
17579 (user_visible_resume_target): New.
17580 (do_target_resume): Call target_async.
17581 (resume_1): Set target's threads_executing flag. Consider resume
17582 target.
17583 (commit_resume_all_targets): New.
17584 (proceed): Also consider resume target. Skip threads of inferiors
17585 with no execution. Commit resumtion in all targets.
17586 (start_remote): Pass current inferior to wait_for_inferior.
17587 (infrun_thread_stop_requested): Consider target as well. Pass
17588 thread_info pointer to clear_inline_frame_state instead of ptid.
17589 (infrun_thread_thread_exit): Consider target as well.
17590 (random_pending_event_thread): New inferior parameter. Use it.
17591 (do_target_wait): Rename to ...
17592 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17593 down.
17594 (threads_are_resumed_pending_p, do_target_wait): New.
17595 (prepare_for_detach): Adjust calls.
17596 (wait_for_inferior): New inferior parameter. Handle it. Use
17597 do_target_wait_1 instead of do_target_wait.
17598 (fetch_inferior_event): Adjust. Switch to representative
17599 inferior. Pass target down.
17600 (set_last_target_status): Add process_stratum_target parameter.
17601 Save target in global.
17602 (get_last_target_status): Add process_stratum_target parameter and
17603 handle it.
17604 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17605 (context_switch): Check inferior_ptid == null_ptid before calling
17606 inferior_thread().
17607 (get_inferior_stop_soon): Pass down target.
17608 (wait_one): Rename to ...
17609 (poll_one_curr_target): ... this.
17610 (struct wait_one_event): New.
17611 (wait_one): New.
17612 (stop_all_threads): Adjust.
17613 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17614 event's target.
17615 (switch_back_to_stepped_thread): Also consider target.
17616 (print_stop_event): Update.
17617 (normal_stop): Update. Also consider the resume target.
17618 * infrun.h (wait_for_inferior): Remove declaration.
17619 (user_visible_resume_target): New declaration.
17620 (get_last_target_status, set_last_target_status): New
17621 process_stratum_target parameter.
17622 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17623 process_stratum_target parameter, and use it.
17624 (clear_inline_frame_state (thread_info*)): New.
17625 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17626 process_stratum_target parameter.
17627 (clear_inline_frame_state (thread_info*)): Declare.
17628 * linux-fork.c (delete_checkpoint_command): Pass target down to
17629 find_thread_ptid.
17630 (checkpoint_command): Adjust.
17631 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17632 instead of just tweaking inferior_ptid.
17633 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17634 (exit_lwp): Pass target down to find_thread_ptid.
17635 (attach_proc_task_lwp_callback): Pass target down to
17636 add_thread/set_running/set_executing.
17637 (linux_nat_target::attach): Pass target down to
17638 thread_change_ptid.
17639 (get_detach_signal): Pass target down to find_thread_ptid.
17640 Consider last target status's target.
17641 (linux_resume_one_lwp_throw, resume_lwp)
17642 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17643 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17644 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17645 (linux_nat_target::async_wait_fd): New.
17646 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17647 target down.
17648 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17649 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17650 * linux-thread-db.c (struct thread_db_info::process_target): New
17651 field.
17652 (add_thread_db_info): Save target.
17653 (get_thread_db_info): New process_stratum_target parameter. Also
17654 match target.
17655 (delete_thread_db_info): New process_stratum_target parameter.
17656 Also match target.
17657 (thread_from_lwp): Adjust to pass down target.
17658 (thread_db_notice_clone): Pass down target.
17659 (check_thread_db_callback): Pass down target.
17660 (try_thread_db_load_1): Always push the thread_db target.
17661 (try_thread_db_load, record_thread): Pass target down.
17662 (thread_db_target::detach): Pass target down. Always unpush the
17663 thread_db target.
17664 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17665 target down. Always unpush the thread_db target.
17666 (find_new_threads_callback, thread_db_find_new_threads_2)
17667 (thread_db_target::update_thread_list): Pass target down.
17668 (thread_db_target::pid_to_str): Pass current inferior down.
17669 (thread_db_target::get_thread_local_address): Pass target down.
17670 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17671 target down.
17672 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17673 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17674 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17675 (procfs_init_inferior): Rename to ...
17676 (procfs_target::procfs_init_inferior): ... this and adjust.
17677 (procfs_target::create_inferior, procfs_notice_thread)
17678 (procfs_do_thread_registers): Adjust.
17679 * ppc-fbsd-tdep.c: Include "inferior.h".
17680 (ppcfbsd_get_thread_local_address): Pass down target.
17681 * proc-service.c (ps_xfer_memory): Switch current inferior and
17682 program space as well.
17683 (get_ps_regcache): Pass target down.
17684 * process-stratum-target.c
17685 (process_stratum_target::thread_address_space)
17686 (process_stratum_target::thread_architecture): Pass target down.
17687 * process-stratum-target.h
17688 (process_stratum_target::threads_executing): New field.
17689 (as_process_stratum_target): New.
17690 * ravenscar-thread.c
17691 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17692 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17693 down.
17694 * record-btrace.c (record_btrace_target::info_record): Adjust.
17695 (record_btrace_target::record_method)
17696 (record_btrace_target::record_is_replaying)
17697 (record_btrace_target::fetch_registers)
17698 (get_thread_current_frame_id, record_btrace_target::resume)
17699 (record_btrace_target::wait, record_btrace_target::stop): Pass
17700 target down.
17701 * record-full.c (record_full_wait_1): Switch to event thread.
17702 Pass target down.
17703 * regcache.c (regcache::regcache)
17704 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17705 process_stratum_target parameter and handle it.
17706 (current_thread_target): New global.
17707 (get_thread_regcache): Add process_stratum_target parameter and
17708 handle it. Switch inferior before calling target method.
17709 (get_thread_regcache): Pass target down.
17710 (get_thread_regcache_for_ptid): Pass target down.
17711 (registers_changed_ptid): Add process_stratum_target parameter and
17712 handle it.
17713 (registers_changed_thread, registers_changed): Pass target down.
17714 (test_get_thread_arch_aspace_regcache): New.
17715 (current_regcache_test): Define a couple local test_target_ops
17716 instances and use them for testing.
17717 (readwrite_regcache): Pass process_stratum_target parameter.
17718 (cooked_read_test, cooked_write_test): Pass mock_target down.
17719 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17720 (get_thread_arch_aspace_regcache): Add process_stratum_target
17721 parameter.
17722 (regcache::target): New method.
17723 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17724 (regcache::registers_changed_ptid): Add process_stratum_target
17725 parameter.
17726 (regcache::m_target): New field.
17727 (registers_changed_ptid): Add process_stratum_target parameter.
17728 * remote.c (remote_state::supports_vCont_probed): New field.
17729 (remote_target::async_wait_fd): New method.
17730 (remote_unpush_and_throw): Add remote_target parameter.
17731 (get_current_remote_target): Adjust.
17732 (remote_target::remote_add_inferior): Push target.
17733 (remote_target::remote_add_thread)
17734 (remote_target::remote_notice_new_inferior)
17735 (get_remote_thread_info): Pass target down.
17736 (remote_target::update_thread_list): Skip threads of inferiors
17737 bound to other targets. (remote_target::close): Don't discard
17738 inferiors. (remote_target::add_current_inferior_and_thread)
17739 (remote_target::process_initial_stop_replies)
17740 (remote_target::start_remote)
17741 (remote_target::remote_serial_quit_handler): Pass down target.
17742 (remote_target::remote_unpush_target): New remote_target
17743 parameter. Unpush the target from all inferiors.
17744 (remote_target::remote_unpush_and_throw): New remote_target
17745 parameter. Pass it down.
17746 (remote_target::open_1): Check whether the current inferior has
17747 execution instead of checking whether any inferior is live. Pass
17748 target down.
17749 (remote_target::remote_detach_1): Pass down target. Use
17750 remote_unpush_target.
17751 (extended_remote_target::attach): Pass down target.
17752 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17753 (remote_target::append_resumption): Pass down target.
17754 (remote_target::append_pending_thread_resumptions)
17755 (remote_target::remote_resume_with_hc, remote_target::resume)
17756 (remote_target::commit_resume): Pass down target.
17757 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17758 (remote_target::interrupt_query)
17759 (remote_target::remove_new_fork_children)
17760 (remote_target::check_pending_events_prevent_wildcard_vcont)
17761 (remote_target::remote_parse_stop_reply)
17762 (remote_target::process_stop_reply): Pass down target.
17763 (first_remote_resumed_thread): New remote_target parameter. Pass
17764 it down.
17765 (remote_target::wait_as): Pass down target.
17766 (unpush_and_perror): New remote_target parameter. Pass it down.
17767 (remote_target::readchar, remote_target::remote_serial_write)
17768 (remote_target::getpkt_or_notif_sane_1)
17769 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17770 down target.
17771 (remote_target::mourn_inferior): Pass down target. Use
17772 remote_unpush_target.
17773 (remote_target::core_of_thread)
17774 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17775 (remote_target::pid_to_exec_file)
17776 (remote_target::thread_handle_to_thread_info): Pass down target.
17777 (remote_target::async_wait_fd): New.
17778 * riscv-fbsd-tdep.c: Include "inferior.h".
17779 (riscv_fbsd_get_thread_local_address): Pass down target.
17780 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17781 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17782 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17783 Adjust.
17784 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17785 * solib-svr4.c (enable_break): Pass down target.
17786 * spu-multiarch.c (parse_spufs_run): Pass down target.
17787 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17788 * target-delegates.c: Regenerate.
17789 * target.c (g_target_stack): Delete.
17790 (current_top_target): Return the current inferior's top target.
17791 (target_has_execution_1): Refer to the passed-in inferior's top
17792 target.
17793 (target_supports_terminal_ours): Check whether the initial
17794 inferior was already created.
17795 (decref_target): New.
17796 (target_stack::push): Incref/decref the target.
17797 (push_target, push_target, unpush_target): Adjust.
17798 (target_stack::unpush): Defref target.
17799 (target_is_pushed): Return bool. Adjust to refer to the current
17800 inferior's target stack.
17801 (dispose_inferior): Delete, and inline parts ...
17802 (target_preopen): ... here. Only dispose of the current inferior.
17803 (target_detach): Hold strong target reference while detaching.
17804 Pass target down.
17805 (target_thread_name): Add assertion.
17806 (target_resume): Pass down target.
17807 (target_ops::beneath, find_target_at): Adjust to refer to the
17808 current inferior's target stack.
17809 (get_dummy_target): New.
17810 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17811 has a thread running.
17812 (initialize_targets): Rename to ...
17813 (_initialize_target): ... this.
17814 * target.h: Include "gdbsupport/refcounted-object.h".
17815 (struct target_ops): Inherit refcounted_object.
17816 (target_ops::shortname, target_ops::longname): Make const.
17817 (target_ops::async_wait_fd): New method.
17818 (decref_target): Declare.
17819 (struct target_ops_ref_policy): New.
17820 (target_ops_ref): New typedef.
17821 (get_dummy_target): Declare function.
17822 (target_is_pushed): Return bool.
17823 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17824 (all_matching_threads_iterator::all_matching_threads_iterator):
17825 Handle filter target.
17826 * thread-iter.h (struct all_matching_threads_iterator, struct
17827 all_matching_threads_range, class all_non_exited_threads_range):
17828 Filter by target too. Remove explicit.
17829 * thread.c (threads_executing): Delete.
17830 (inferior_thread): Pass down current inferior.
17831 (clear_thread_inferior_resources): Pass down thread pointer
17832 instead of ptid_t.
17833 (add_thread_silent, add_thread_with_info, add_thread): Add
17834 process_stratum_target parameter. Use it for thread and inferior
17835 searches.
17836 (is_current_thread): New.
17837 (thread_info::deletable): Use it.
17838 (find_thread_ptid, thread_count, in_thread_list)
17839 (thread_change_ptid, set_resumed, set_running): New
17840 process_stratum_target parameter. Pass it down.
17841 (set_executing): New process_stratum_target parameter. Pass it
17842 down. Adjust reference to 'threads_executing'.
17843 (threads_are_executing): New process_stratum_target parameter.
17844 Adjust reference to 'threads_executing'.
17845 (set_stop_requested, finish_thread_state): New
17846 process_stratum_target parameter. Pass it down.
17847 (switch_to_thread): Also match inferior.
17848 (switch_to_thread): New process_stratum_target parameter. Pass it
17849 down.
17850 (update_threads_executing): Reimplement.
17851 * top.c (quit_force): Pop targets from all inferior.
17852 (gdb_init): Don't call initialize_targets.
17853 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17854 Declare.
17855 (windows_add_thread, windows_delete_thread): Adjust.
17856 (get_windows_debug_event): Rename to ...
17857 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17858 * tracefile-tfile.c (tfile_target_open): Pass down target.
17859 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17860 Forward declare.
17861 (switch_to_thread): Add process_stratum_target parameter.
17862 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17863 parameter. Use it.
17864 (mi_on_resume): Pass target down.
17865 * nat/fork-inferior.c (startup_inferior): Add
17866 process_stratum_target parameter. Pass it down.
17867 * nat/fork-inferior.h (startup_inferior): Add
17868 process_stratum_target parameter.
17869 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17870
75c6c844
PA
178712020-01-10 Pedro Alves <palves@redhat.com>
17872
17873 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17874 directly. Instead find the first thread in the thread list and
17875 use switch_to_thread.
17876
78f2c40a
PA
178772020-01-10 Pedro Alves <palves@redhat.com>
17878
17879 * remote.c (remote_target::remote_add_inferior): Don't bind a
17880 process to the current inferior if the current inferior is already
17881 bound to a process.
17882
e7af6c70
TBA
178832020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17884 Pedro Alves <palves@redhat.com>
17885
17886 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17887 If no process is specified, return null_ptid instead of
17888 inferior_ptid.
17889 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17890 TARGET_WAITKIND_SIGNALLED with no pid.
17891
31ba933e
PA
178922020-01-10 Pedro Alves <palves@redhat.com>
17893
17894 * remote.c (first_remote_resumed_thread): New.
17895 (remote_target::wait_as): Use it as default event_ptid instead of
17896 inferior_ptid.
17897
735fc2ca
PA
178982020-01-10 Pedro Alves <palves@redhat.com>
17899
17900 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17901
c17e02e1
PA
179022020-01-10 Pedro Alves <palves@redhat.com>
17903
17904 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17905 not -1.
17906
ab1ddbcf
PA
179072020-01-10 Pedro Alves <palves@redhat.com>
17908
17909 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17910 ptid to get_last_target_status.
17911 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17912 ptid to get_last_target_status.
17913 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17914 get_last_target_status.
17915 (info_program_command): Don't pass a target_waitstatus to
17916 get_last_target_status.
17917 * infrun.c (init_wait_for_inferior): Use
17918 nullify_last_target_wait_ptid.
17919 (get_last_target_status): Handle nullptr arguments.
17920 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17921 (print_stop_event): Don't pass a ptid to get_last_target_status.
17922 (normal_stop): Don't pass a ptid to get_last_target_status.
17923 * infrun.h (get_last_target_status, set_last_target_status): Move
17924 comments here and update.
17925 (nullify_last_target_wait_ptid): Declare.
17926 * linux-fork.c (fork_load_infrun_state): Remove local extern
17927 declaration of nullify_last_target_wait_ptid.
17928 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17929 to get_last_target_status.
17930
f3f8ece4
PA
179312020-01-10 Pedro Alves <palves@redhat.com>
17932
17933 * gdbthread.h (scoped_restore_current_thread)
17934 <dont_restore, restore, m_dont_restore>: Declare.
17935 * thread.c (thread_alive): Add assertion. Return bool.
17936 (switch_to_thread_if_alive): New.
17937 (prune_threads): Switch inferior/thread.
17938 (print_thread_info_1): Switch thread before calling target methods.
17939 (scoped_restore_current_thread::restore): New, factored out from
17940 ...
17941 (scoped_restore_current_thread::~scoped_restore_current_thread):
17942 ... this.
17943 (scoped_restore_current_thread::scoped_restore_current_thread):
17944 Add assertion.
17945 (thread_apply_all_command, thread_select): Use
17946 switch_to_thread_if_alive.
17947 * infrun.c (proceed, restart_threads, handle_signal_stop)
17948 (switch_back_to_stepped_thread): Switch current thread before
17949 calling target methods.
17950
db2d40f7
PA
179512020-01-10 Pedro Alves <palves@redhat.com>
17952
17953 * inferior.c (switch_to_inferior_no_thread): New function,
17954 factored out from ...
17955 (inferior_command): ... here.
17956 * inferior.h (switch_to_inferior_no_thread): Declare.
17957 * mi/mi-main.c (run_one_inferior): Use
17958 switch_to_inferior_no_thread.
17959
bd420a2d
PA
179602020-01-10 Pedro Alves <palves@redhat.com>
17961
17962 * infcmd.c (kill_command): Remove dead code.
17963
ddf5db90
PA
179642020-01-10 Pedro Alves <palves@redhat.com>
17965
17966 * remote.c (remote_target::mourn_inferior): No longer check
17967 whether the target is running.
17968
5018ce90
PA
179692020-01-10 Pedro Alves <palves@redhat.com>
17970
17971 * corelow.c (core_target::has_execution): Change parameter type to
17972 inferior pointer.
17973 * inferior.c (number_of_live_inferiors): Use
17974 inferior::has_execution instead of target_has_execution_1.
17975 * inferior.h (inferior::has_execution): New.
17976 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17977 inferior::has_execution instead of target_has_execution_1.
17978 * process-stratum-target.c
17979 (process_stratum_target::has_execution): Change parameter type to
17980 inferior pointer. Check the inferior's PID instead of
17981 inferior_ptid.
17982 * process-stratum-target.h
17983 (process_stratum_target::has_execution): Change parameter type to
17984 inferior pointer.
17985 * record-full.c (record_full_core_target::has_execution): Change
17986 parameter type to inferior pointer.
17987 * target.c (target_has_execution_1): Change parameter type to
17988 inferior pointer.
17989 (target_has_execution_current): Adjust.
17990 * target.h (target_ops::has_execution): Change parameter type to
17991 inferior pointer.
17992 (target_has_execution_1): Change parameter type to inferior
17993 pointer. Change return type to bool.
17994 * tracefile.h (tracefile_target::has_execution): Change parameter
17995 type to inferior pointer.
17996
74375d18
PA
179972020-01-10 Pedro Alves <palves@redhat.com>
17998
17999 * exceptions.c (print_flush): Remove current_top_target() check.
18000
acdf84a6
PA
180012020-01-10 Pedro Alves <palves@redhat.com>
18002
18003 * remote.c (show_remote_exec_file): Show the current inferior's
18004 exec-file instead of the command variable's value.
18005
ec506636
PA
180062020-01-10 Pedro Alves <palves@redhat.com>
18007
18008 * record-full.c (record_full_resume_ptid): New global.
18009 (record_full_target::resume): Set it.
18010 (record_full_wait_1): Use record_full_resume_ptid instead of
18011 inferior_ptid.
18012
873657b9
PA
180132020-01-10 Pedro Alves <palves@redhat.com>
18014
18015 * gdbthread.h (scoped_restore_current_thread)
18016 <dont_restore, restore, m_dont_restore>: Declare.
18017 * thread.c (thread_alive): Add assertion. Return bool.
18018 (switch_to_thread_if_alive): New.
18019 (prune_threads): Switch inferior/thread.
18020 (print_thread_info_1): Switch thread before calling target methods.
18021 (scoped_restore_current_thread::restore): New, factored out from
18022 ...
18023 (scoped_restore_current_thread::~scoped_restore_current_thread):
18024 ... this.
18025 (scoped_restore_current_thread::scoped_restore_current_thread):
18026 Add assertion.
18027 (thread_apply_all_command, thread_select): Use
18028 switch_to_thread_if_alive.
18029
7f0ae84c
GB
180302020-01-10 George Barrett <bob@bob131.so>
18031
18032 * stap-probe.c (stap_modify_semaphore): Don't check for null
18033 semaphores.
18034 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18035 for null semaphores.
18036
f5a7c406
AB
180372020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18038
18039 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18040 all source windows, and maintain horizontal scroll status while
18041 doing so.
18042
9ae6bf64
TT
180432020-01-09 Tom Tromey <tom@tromey.com>
18044
18045 PR tui/18932:
18046 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18047 update_source_window, not print_source_lines.
18048
b2efe70c
AB
180492020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18050
18051 * tui/tui.c (tui_enable): Register tui hooks after calling
18052 tui_display_main.
18053
5f23a082
CB
180542020-01-09 Christian Biesinger <cbiesinger@google.com>
18055
18056 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18057
3061113b
SM
180582020-01-08 Simon Marchi <simon.marchi@efficios.com>
18059
18060 * thread.c (print_thread_info_1): Fix indentation.
18061
57d75002
CB
180622020-01-09 Christian Biesinger <cbiesinger@google.com>
18063
18064 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18065 unique_xmalloc_ptr outside the if to always free the demangled name.
18066
6a053cb1
TT
180672020-01-08 Tom Tromey <tromey@adacore.com>
18068
18069 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18070 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18071 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18072 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18073 Remove.
18074 (section_offsets): New typedef.
18075 * symtab.c (fixup_section, get_msymbol_address): Update.
18076 * symmisc.c (dump_msymbols): Update.
18077 * symfile.h (relative_addr_info_to_section_offsets)
18078 (symfile_map_offsets_to_segments): Update.
18079 * symfile.c (build_section_addr_info_from_objfile)
18080 (init_objfile_sect_indices): Update.
18081 (struct place_section_arg): Change type of "offsets".
18082 (place_section): Update.
18083 (relative_addr_info_to_section_offsets): Change type of
18084 "section_offsets". Remove "num_sections" parameter.
18085 (default_symfile_offsets, syms_from_objfile_1)
18086 (set_objfile_default_section_offset): Update.
18087 (reread_symbols): No need to preserve section offsets by hand.
18088 (symfile_map_offsets_to_segments): Change type of "offsets".
18089 * stap-probe.c (relocate_address): Update.
18090 * stabsread.h (process_one_symbol): Update.
18091 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18092 (solib_target_relocate_section_addresses): Update.
18093 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18094 Update.
18095 * solib-frv.c (frv_relocate_main_executable): Update.
18096 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18097 * solib-aix.c (solib_aix_get_section_offsets): Change return
18098 type.
18099 (solib_aix_solib_create_inferior_hook): Update.
18100 * remote.c (remote_target::get_offsets): Update.
18101 * psymtab.c (find_pc_sect_psymtab): Update.
18102 * psympriv.h (struct partial_symbol) <address, text_low,
18103 text_high>: Update.
18104 * objfiles.h (obj_section_offset): Update.
18105 (struct objfile) <section_offsets>: Change type.
18106 <num_sections>: Remove.
18107 (objfile_relocate): Update.
18108 * objfiles.c (entry_point_address_query): Update
18109 (relocate_one_symbol): Change type of "section_offsets".
18110 (objfile_relocate1, objfile_relocate1): Change type of
18111 "new_offsets".
18112 (objfile_rebase1): Update.
18113 * mipsread.c (mipscoff_symfile_read): Update.
18114 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18115 parameter.
18116 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18117 (parse_external, psymtab_to_symtab_1): Update.
18118 * machoread.c (macho_symfile_offsets): Update.
18119 * ia64-tdep.c (ia64_find_unwind_table): Update.
18120 * hppa-tdep.c (read_unwind_info): Update.
18121 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18122 * dwarf2read.c (create_addrmap_from_index)
18123 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18124 (process_psymtab_comp_unit_reader, add_partial_symbol)
18125 (add_partial_subprogram, process_full_comp_unit)
18126 (read_file_scope, read_func_scope, read_lexical_block_scope)
18127 (read_call_site_scope, dwarf2_rnglists_process)
18128 (dwarf2_ranges_process, dwarf2_ranges_read)
18129 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18130 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18131 Update.
18132 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18133 Update.
18134 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18135 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18136 (process_one_symbol): Change type of "section_offsets".
18137 * ctfread.c (get_objfile_text_range): Update.
18138 * coffread.c (coff_symtab_read, enter_linenos)
18139 (process_coff_symbol): Update.
18140 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18141 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18142
456e800a
TT
181432020-01-08 Tom Tromey <tromey@adacore.com>
18144
18145 * dwarf2read.c (parse_macro_definition): Use std::string.
18146 (parse_macro_definition): Likewise.
18147
6dfa2fc2
TT
181482020-01-08 Tom Tromey <tromey@adacore.com>
18149
18150 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18151 (ATTR_ALLOC_CHUNK): Remove.
18152
421d1616
TT
181532020-01-08 Tom Tromey <tromey@adacore.com>
18154
18155 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18156
43816ebc
TT
181572020-01-08 Tom Tromey <tromey@adacore.com>
18158
18159 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18160 (dwarf2_compute_name, open_dwo_file): Likewise.
18161 (process_enumeration_scope): Use std::vector.
18162 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18163 (partial_die_info::fixup, dwarf2_start_subfile)
18164 (guess_full_die_structure_name, dwarf2_name): Likewise.
18165 (determine_prefix): Update.
18166 (guess_full_die_structure_name): Make return type const.
18167 (partial_die_full_name): Return unique_xmalloc_ptr.
18168 (DW_FIELD_ALLOC_CHUNK): Remove.
18169
4212d509
TT
181702020-01-07 Tom Tromey <tromey@adacore.com>
18171
18172 PR build/24937:
18173 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18174
06a6207a
JT
181752020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18176
18177 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18178
153d79c4
AB
181792020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18180
18181 * stack.c (print_frame_info): Move disassemble_next_line code
18182 inside source_print block.
18183
66182876
EZ
181842020-01-06 Eli Zaretskii <eliz@gnu.org>
18185
18186 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18187 gdb/signals.h, as we are now using native signal symbols.
18188
cbfa8581
SV
181892020-01-06 Shahab Vahedi <shahab@synopsys.com>
18190
18191 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18192 overflow by an early check of content vs threshold.
aac66a4c 18193 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
18194 Likewise.
18195
3f602821
EZ
181962020-01-06 Eli Zaretskii <eliz@gnu.org>
18197
18198 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18199
a08c904d
JT
182002020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18201
18202 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18203 export table if no section contains it's RVA.
18204
89a65580
EZ
182052020-01-06 Eli Zaretskii <eliz@gnu.org>
18206
18207 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18208
8b7fcda2
HD
182092020-01-06 Hannes Domani <ssbssa@yahoo.de>
18210
18211 * source.c (print_source_lines_base): Set last_line_listed.
18212
a61b4f69
SV
182132020-01-06 Shahab Vahedi <shahab@synopsys.com>
18214
18215 * tui/tui-disasm.c: Remove trailing spaces.
18216
559e7e50
EZ
182172020-01-06 Eli Zaretskii <eliz@gnu.org>
18218 Pedro Alves <palves@redhat.com>
18219
18220 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18221 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18222 (windows_gdb_signal_to_target): New function, uses the above
18223 enumeration to convert GDB internal signal codes to equivalent
18224 Windows codes.
18225 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18226 * windows-nat.c: Include "gdb_wait.h".
18227 (get_windows_debug_event): Extract the fatal exception from the
18228 exit status and convert to the equivalent Posix signal number.
18229 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18230 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18231 * gdbsupport/gdb_wait.c: New file, implements
18232 windows_status_to_termsig.
18233 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18234 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18235
f2302a34
AB
182362020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18237
18238 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18239 show_layout.
18240
6a5206eb
LM
182412020-01-05 Luis Machado <luis.machado@linaro.org>
18242
18243 * aarch64-linux-nat.c
18244 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18245 and bfd_mach_aarch64.
18246
6ec1d75e
PW
182472020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18248
18249 * ui-file.c (stdio_file::can_emit_style_escape)
18250 (tee_file::can_emit_style_escape): Ensure style is used also on
18251 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18252 to gdb_stdout.
18253 * main.c (set_gdb_data_directory): Use file style to output the
18254 warning that the given pathname is not a directory.
18255 * top.c (show_history_filename, gdb_safe_append_history)
18256 (show_gdb_datadir): Use file style.
18257
44f81a76
HD
182582020-01-03 Hannes Domani <ssbssa@yahoo.de>
18259
18260 * solib-target.c (struct lm_info_target):
18261 Change offsets to be a unique_xmalloc_ptr.
18262 (solib_target_relocate_section_addresses): Update.
18263
25057eb0
HD
182642020-01-03 Hannes Domani <ssbssa@yahoo.de>
18265
18266 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18267
6e2118f5
BE
182682020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18269
18270 * MAINTAINERS (Write After Approval): Add myself.
18271
8133c7dc
LM
182722020-01-02 Luis Machado <luis.machado@linaro.org>
18273
18274 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18275 Cell BE architecture.
18276 * target.h (struct target_ops) <thread_architecture>: Likewise.
18277
48189bec
HD
182782020-01-01 Hannes Domani <ssbssa@yahoo.de>
18279
18280 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18281
ead1063b
HD
182822020-01-01 Hannes Domani <ssbssa@yahoo.de>
18283
18284 * MAINTAINERS (Write After Approval): Add myself.
18285
e5d78223
JB
182862020-01-01 Joel Brobecker <brobecker@adacore.com>
18287
18288 * gdbarch.sh: Update copyright year range of generated files.
18289
b811d2c2
JB
182902020-01-01 Joel Brobecker <brobecker@adacore.com>
18291
18292 Update copyright year range in all GDB files.
18293
5f4def5c
JB
182942020-01-01 Joel Brobecker <brobecker@adacore.com>
18295
18296 * copyright.py: Convert to Python 3.
18297
51fd4002
JB
182982020-01-01 Joel Brobecker <brobecker@adacore.com>
18299
18300 * copyright.py: Adapt after move of gnulib directory from gdb
18301 directory to toplevel directory.
18302
5fb651f2
JB
183032020-01-01 Joel Brobecker <brobecker@adacore.com>
18304
18305 * copyright.py (main): Exit if run from the wrong directory.
18306
5dd8bf88
JB
183072020-01-01 Joel Brobecker <brobecker@adacore.com>
18308
18309 * top.c (print_gdb_version): Change copyright year to 2020.
18310
9f71dacb 183112020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18312
9f71dacb 18313 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18314
9f71dacb 18315For older changes see ChangeLog-2019.
c906108c
SS
18316\f
18317Local Variables:
18318mode: change-log
18319left-margin: 8
18320fill-column: 74
18321version-control: never
57da7796 18322coding: utf-8
c906108c 18323End:
This page took 3.200718 seconds and 4 git commands to generate.