]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Be more careful when rewriting thick pointer array type
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e26624c6
TT
12020-12-14 Tom Tromey <tromey@adacore.com>
2
3 * dwarf2/read.c (rewrite_array_type): New function.
4 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
5
a3bdae4e
TT
62020-12-14 Tom Tromey <tromey@adacore.com>
7
8 * valarith.c (fixed_point_binop): Call error on division by zero.
9
f5756acc
TT
102020-12-13 Tom Tromey <tom@tromey.com>
11
12 * gdbtypes.c (safe_parse_type): Make argument const.
13 * value.h (parse_and_eval_type): Make argument const.
14 * eval.c (parse_and_eval_type): Make argument const.
15
ee9812a0
AB
162020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
17
18 * NEWS: Mention new commands.
19 * target-dcache.c: Add 'cli/cli-cmds.h' include.
20 (maint_flush_dcache_command): New function.
21 (_initialize_target_dcache): Create new 'maint flush dcache'
22 command.
23
50a5f187
AB
242020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
25
26 * NEWS: Mention new commands, and that the old commands are now
27 deprecated.
28 * cli/cli-cmds.c (maintenanceflushlist): Define.
29 * cli/cli-cmds.h (maintenanceflushlist): Declare.
30 * maint.c (_initialize_maint_cmds): Initialise
31 maintenanceflushlist.
32 * regcache.c: Add 'cli/cli-cmds.h' include.
33 (reg_flush_command): Add header comment.
34 (_initialize_regcache): Create new 'maint flush register-cache'
35 command, make 'flushregs' an alias.
36 * symtab.c: Add 'cli/cli-cmds.h' include.
37 (_initialize_symtab): Create new 'maint flush symbol-cache'
38 command, make old command an alias.
39
19c659f1
AB
402020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
41
42 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
43 result from lookup_cmd_composition_1, use the prefixes from both
44 the command and the alias instead.
45 (lookup_cmd_composition_1): Initial prefix command is the based on
46 the search list being passed in. Simplify the logic for tracking
47 the prefix command. Replace a use of alloca with a local
48 std::string.
49
44c77c32
AB
502020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
51
52 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
53 of NULL. Don't print message piece by piece, but sentence at a
54 time to allow internationalisation. Some whitespace cleanup.
55
9ef6d4a1
AB
562020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 PR cli/15104
59 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
60 deprecated_cmd_warning.
61 (deprecated_cmd_warning): Take extra parameter, call
62 lookup_cmd_composition_1 and pass new parameter through.
63 (lookup_cmd_composition_1): New function, takes implementation of
64 lookup_cmd_composition but with extra parameter.
65 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
66 passing in cmdlist.
67 * command.h (deprecated_cmd_warning): Add extra parameter to
68 declaration.
69 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
70
1536146f
AB
712020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
72
73 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
74 command.h, add extra parameter, and use this to guard giving a
75 warning.
76 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
77 include argument names in declaration, add new argument.
78 * completer.c (complete_line_internal_1): Remove unneeded
79 brackets, pass extra argument to lookup_cmd_1.
80
94ba44a6
SM
812020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
82
83 * infrun.h (debug_infrun): Make a bool.
84 * infrun.c (debug_infrun): Make a bool.
85 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
86 debug infrun".
87
74b773fc
SM
882020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
89
90 * displaced-stepping.h (displaced_debug_printf): Use
91 debug_prefixed_printf_cond.
92 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
93 (dwarf_read_debug_printf_v): Likewise.
94 * infrun.h (infrun_debug_printf): Likewise.
95 * linux-nat.c (linux_nat_debug_printf): Likewise.
96
02c72701
TT
972020-12-11 Tom Tromey <tom@tromey.com>
98
99 * p-exp.y (intvar): Remove global.
100 (DOLLAR_VARIABLE): Change type.
101 (start): Update.
102 (exp): Call write_dollar_variable here...
103 (yylex): ... not here.
104 * m2-exp.y (DOLLAR_VARIABLE): Change type.
105 (variable): Call write_dollar_variable here...
106 (yylex): ... not here.
107 * f-exp.y (DOLLAR_VARIABLE): Change type.
108 (exp): Call write_dollar_variable here...
109 (yylex): ... not here.
110
07d9937a
TT
1112020-12-11 Tom Tromey <tom@tromey.com>
112
113 * varobj.c (varobj_create): Update.
114 (install_variable): Return void.
115
1345dee2
TT
1162020-12-11 Tom Tromey <tom@tromey.com>
117
118 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
119
446d2c03
TT
1202020-12-11 Tom Tromey <tom@tromey.com>
121
122 * varobj.c (varobj_clear_saved_item): Remove.
123 (update_dynamic_varobj_children): Update.
124 (varobj::~varobj): Don't call varobj_clear_saved_item.
125
11106495
TT
1262020-12-11 Tom Tromey <tom@tromey.com>
127
128 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
129 (update_dynamic_varobj_children, create_child)
130 (create_child_with_value): Update.
131 * varobj-iter.h (struct varobj_item) <value>: Now a
132 value_ref_ptr.
133 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
134
24fd95b4
TT
1352020-12-11 Tom Tromey <tom@tromey.com>
136
137 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
138 (varobj_get_iterator): Return unique_ptr.
139 (update_dynamic_varobj_children, install_visualizer)
140 (varobj::~varobj): Update.
141 * python/python-internal.h (py_varobj_get_iterator): Return
142 unique_ptr.
143 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
144
74462664
TT
1452020-12-11 Tom Tromey <tom@tromey.com>
146
147 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
148 (varobj_clear_saved_item, update_dynamic_varobj_children):
149 Update.
150
60ee72f6
TT
1512020-12-11 Tom Tromey <tom@tromey.com>
152
153 * varobj.c (update_dynamic_varobj_children): Update.
154 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
155 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
156 type.
157 (py_varobj_iter::next): Likewise.
158
54746ce3
TT
1592020-12-11 Tom Tromey <tom@tromey.com>
160
161 * varobj.c (update_dynamic_varobj_children, install_visualizer)
162 (varobj::~varobj): Update.
163 * varobj-iter.h (struct varobj_iter): Change to interface class.
164 (struct varobj_iter_ops): Remove.
165 (varobj_iter_next, varobj_iter_delete): Remove.
166 * python/py-varobj.c (struct py_varobj_iter): Derive from
167 varobj_iter. Add constructor, destructor. Rename members.
168 (py_varobj_iter::~py_varobj_iter): Rename from
169 py_varobj_iter_dtor.
170 (py_varobj_iter::next): Rename from py_varobj_iter_next.
171 (py_varobj_iter_ops): Remove.
172 (py_varobj_iter): Rename from py_varobj_iter_ctor.
173 (py_varobj_iter_new): Remove.
174 (py_varobj_get_iterator): Update.
175
d8f168dd
TT
1762020-12-11 Tom Tromey <tom@tromey.com>
177
178 * varobj.h (all_root_varobjs): Take a function_view.
179 * varobj.c (all_root_varobjs): Take a function_view.
180 (varobj_invalidate_iter): Remove unused parameter.
181 (varobj_invalidate): Update.
182 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
183 (mi_cmd_var_update_iter): Change parameters.
184
76deb5d9
TT
1852020-12-11 Tom Tromey <tom@tromey.com>
186
187 * varobj.c (struct varobj_root) <next>: Remove.
188 (struct vlist): Remove.
189 (rootlist): Now a std::list.
190 (install_variable, uninstall_variable, all_root_varobjs): Update.
191
2c1413a9
TT
1922020-12-11 Tom Tromey <tom@tromey.com>
193
194 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
195 (varobj_table): Now htab_t.
196 (varobj_get_handle, install_variable, uninstall_variable):
197 Update.
198 (hash_varobj, eq_varobj_and_string): New functions.
199 (hash_varobj): Update.
200
b6433ede
TT
2012020-12-11 Tom Tromey <tom@tromey.com>
202
203 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
204 * ada-lang.c (check_status_exception): Update.
205 * breakpoint.c (free_bp_location): Remove.
206 (decref_bp_location): Use bp_location_ref_policy.
207 (bpstats::bpstats): Don't call incref_bp_location.
208 (bpstats::~bpstats): Remove.
209 (bpstats::bpstats): Update.
210 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
211 (bp_location::bp_location): Update.
212 (incref_bp_location): Remove.
213 (bkpt_print_it): Update.
214 * breakpoint.h (class bp_location): Derive from
215 refcounted_object.
216 (struct bpstats): Remove destructor.
217 <bp_location_at>: Now a bp_location_ref_ptr.
218 <refc>: Remove.
219 (bp_location_ref_ptr): New typedef.
220 (struct bp_location_ref_policy): New.
221
bfcb9db8
TT
2222020-12-11 Tom Tromey <tom@tromey.com>
223
224 * thread.c (class scoped_inc_dec_ref): Remove.
225 (tp_array_compar_ascending, tp_array_compar_descending): Change
226 parameter types.
227 (thread_apply_all_command): Use thread_info_ref.
228
d634cd0b
TT
2292020-12-11 Tom Tromey <tom@tromey.com>
230
231 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
232 (stop_context::stop_context): Update.
233 (stop_context::~stop_context): Remove.
234
51107df5
TT
2352020-12-11 Tom Tromey <tom@tromey.com>
236
237 * inferior.c (current_inferior_): Change type.
238 (current_inferior, set_current_inferior, initialize_inferiors):
239 Update.
240
15f4dddd
TT
2412020-12-11 Tom Tromey <tom@tromey.com>
242
243 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
244 Change type.
245
a9f14fa5
TT
2462020-12-11 Tom Tromey <tromey@adacore.com>
247
248 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
249 field.
250 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
251 (read_atcb): Use cpu_id_offset.
252
2ccee230
KB
2532020-12-10 Kevin Buettner <kevinb@redhat.com>
254
255 * ada-lang.c (ada_fold_name): Fix off-by-one error.
256
ae1f4d2d
LM
2572020-12-10 Luis Machado <luis.machado@linaro.org>
258
259 * breakpoint.c (should_be_inserted): Don't output newline.
260
6afcd2d4
LM
2612020-12-10 Luis Machado <luis.machado@linaro.org>
262
263 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
264 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
265 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
266 * arch/aarch64.h: ... here.
267 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
268 (aarch64_maybe_swab128): New function.
269 (aarch64_sve_regs_copy_to_reg_buf)
270 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
271 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
272 the data field.
273 (TF_REG_VALUE_BYTES): New enum value.
274 (trad_frame_value_bytes_p): New function.
275 (trad_frame_set_value_bytes): New function.
276 (trad_frame_set_reg_value_bytes): New function.
277 (trad_frame_get_prev_register): Handle register values saved as bytes.
278 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
279 (struct trad_frame_saved_reg) <data>: New field.
280 (trad_frame_set_value_bytes): New prototype.
281 (trad_frame_value_bytes_p): New prototype.
282
15cc148f
MS
2832020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
284
285 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
286 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
287 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
288
12932e2c
TT
2892020-12-09 Tom Tromey <tromey@adacore.com>
290
291 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
292
5cde1d82
TT
2932020-12-09 Tom Tromey <tromey@adacore.com>
294
295 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
296 and "denominator" to gdb_mpz. Handle block forms.
297 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
298 "denominator" to gdb_mpz.
299 (finish_fixed_point_type): Update.
300 (has_zero_over_zero_small_attribute): Update.
301
d9c3a9c0
TT
3022020-12-09 Tom Tromey <tromey@adacore.com>
303
304 * expprint.c (op_name): Update.
305 * expression.h (enum exp_opcode): Update.
306 * std-operator.def: Add more opcodes.
307 * ada-operator.def, fortran-operator.def: Remove, moving contents
308 into std-operator.def.
309
6ad368b8
SM
3102020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
311
312 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
313 Return {} instead of false.
314 (get_discrete_bounds): Compute high bound only if low bound is
315 valid.
316
5b56203a
SM
3172020-12-09 Simon Marchi <simon.marchi@efficios.com>
318
319 PR 26875, PR 26901
320 * gdbtypes.c (get_discrete_low_bound): Make non-static.
321 (get_discrete_high_bound): Make non-static.
322 * gdbtypes.h (get_discrete_low_bound): New declaration.
323 (get_discrete_high_bound): New declaration.
324 * valarith.c (value_subscript): Only fetch high bound if
325 necessary.
326
14c09924
SM
3272020-12-09 Simon Marchi <simon.marchi@efficios.com>
328
329 * gdbtypes.c (get_discrete_bounds): Implement with
330 get_discrete_low_bound and get_discrete_high_bound.
331 (get_discrete_low_bound): New.
332 (get_discrete_high_bound): New.
333
1f8d2881
SM
3342020-12-09 Simon Marchi <simon.marchi@efficios.com>
335
336 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
337 callers.
338 * gdbtypes.c (get_discrete_bounds): Return bool.
339
6244c119
SM
3402020-12-09 Simon Marchi <simon.marchi@efficios.com>
341
342 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
343 (ada_value_slice): Adjust.
344 (pos_atr): Adjust.
345 * gdbtypes.c (get_discrete_bounds): Adjust.
346 (discrete_position): Return optional.
347 * gdbtypes.h (discrete_position): Return optional.
348
a4915e8d
TT
3492020-12-07 Tom Tromey <tromey@adacore.com>
350
351 * maint.c (_initialize_maint_cmds): Use expression command
352 completer for "maint print type".
353
1f58f6c2
TBA
3542020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
355
356 * completer.c (complete_explicit_location): Also add keywords
357 that start with '-' to the completion list.
358
5759831a
TBA
3592020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
360
361 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
362 keyword may be followed by any keyword.
363 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
364 'toklen' in the case for "-force-condition".
365
21e051b3
TBA
3662020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
367
368 * main.c (catch_command_errors): Add a flag parameter; invoke
369 `bpstat_do_actions` if the flag is set.
370 (execute_cmdargs): Update a call to `catch_command_errors`.
371
f51f9f1d
TV
3722020-12-07 Tom de Vries <tdevries@suse.de>
373
374 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
375
00158a68
TT
3762020-12-06 Tom Tromey <tom@tromey.com>
377
378 PR ada/26999
379 * ada-lang.c (replace_operator_with_call): Rewrite.
380
296cfb88
GF
3812020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
382
383 PR breakpoints/27009
384 * s390-tdep.h (op_bc): Correct BC opcode value.
385
63c457b9
JB
3862020-12-06 Joel Brobecker <brobecker@adacore.com>
387
388 * gmp-utils.h (gdb_mpz::safe_export): New private method.
389 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
390 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
391 (gdb_mpz::safe_export): New method.
392 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
393 Update function description.
394 (check_as_integer_raises_out_of_range_error): New function.
395 (gdb_mpz_as_integer_out_of_range): New function.
396 (_initialize_gmp_utils_selftests): Register
397 gdb_mpz_as_integer_out_of_range as a selftest.
398
3c7ba803
JB
3992020-12-05 Joel Brobecker <brobecker@adacore.com>
400
401 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
402 TARGET_CHAR_BIT.
403 (gdb_mpz::write): Likewise.
404
372ff58f
SM
4052020-12-04 Simon Marchi <simon.marchi@efficios.com>
406
407 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
408 number of displaced step buffers.
409
480af54c
SM
4102020-12-04 Simon Marchi <simon.marchi@efficios.com>
411
412 * displaced-stepping.h (struct displaced_step_buffer): Rename
413 to...
414 (struct displaced_step_buffers): ... this.
415 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
416 <struct displaced_step_buffer>: New inner class.
417 <m_buffers>: New.
418 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
419 to...
420 (displaced_step_buffers::prepare): ... this, adjust for multiple
421 buffers.
422 (displaced_step_buffer::finish): Rename to...
423 (displaced_step_buffers::finish): ... this, adjust for multiple
424 buffers.
425 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
426 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
427 adjust for multiple buffers.
428 (displaced_step_buffer::restore_in_ptid): Rename to...
429 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
430 multiple buffers.
431 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
432 for num_disp_step_buffers.
433 * linux-tdep.c (struct linux_gdbarch_data)
434 <num_disp_step_buffers>: New field.
435 (struct linux_info) <disp_step_buf>: Rename to...
436 <disp_step_bufs>: ... this, change type to
437 displaced_step_buffers.
438 (linux_displaced_step_prepare): Use
439 linux_gdbarch_data::num_disp_step_buffers to create that number
440 of buffers.
441 (linux_displaced_step_finish): Adjust.
442 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
443 (linux_displaced_step_restore_all_in_ptid): Adjust.
444 (linux_init_abi): Change supports_displaced_step parameter for
445 num_disp_step_buffers, save it in linux_gdbarch_data.
446 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
447 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
448 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
449 supports_displaced_step parameter for num_disp_step_buffers.
450 (amd64_linux_init_abi): Adjust.
451 (amd64_x32_linux_init_abi): Adjust.
452 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
453 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
454 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
455 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
456 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
457 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
458 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
459 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
460 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
461 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
462 * m68k-linux-tdep.c (m68k_linux_init_abi):
463 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
464 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
465 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
466 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
467 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
468 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
469 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
470 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
471 Change type to displaced_step_buffers.
472 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
473 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
474 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
475 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
476 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
477 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
478 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
479
d9655058
SM
4802020-12-04 Simon Marchi <simon.marchi@efficios.com>
481
482 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
483 obkstack.
484 (_initialize_linux_tdep): Register pre-init gdb data instead of
485 post-init.
486
187b041e
SM
4872020-12-04 Simon Marchi <simon.marchi@efficios.com>
488
489 * displaced-stepping.h (struct
490 displaced_step_copy_insn_closure): Adjust comments.
491 (struct displaced_step_inferior_state) <step_thread,
492 step_gdbarch, step_closure, step_original, step_copy,
493 step_saved_copy>: Remove fields.
494 (struct displaced_step_thread_state): New.
495 (struct displaced_step_buffer): New.
496 * displaced-stepping.c (displaced_step_buffer::prepare): New.
497 (write_memory_ptid): Move from infrun.c.
498 (displaced_step_instruction_executed_successfully): New,
499 factored out of displaced_step_finish.
500 (displaced_step_buffer::finish): New.
501 (displaced_step_buffer::copy_insn_closure_by_addr): New.
502 (displaced_step_buffer::restore_in_ptid): New.
503 * gdbarch.sh (displaced_step_location): Remove.
504 (displaced_step_prepare, displaced_step_finish,
505 displaced_step_copy_insn_closure_by_addr,
506 displaced_step_restore_all_in_ptid): New.
507 * gdbarch.c: Re-generate.
508 * gdbarch.h: Re-generate.
509 * gdbthread.h (class thread_info) <displaced_step_state>: New
510 field.
511 (thread_step_over_chain_remove): New declaration.
512 (thread_step_over_chain_next): New declaration.
513 (thread_step_over_chain_length): New declaration.
514 * thread.c (thread_step_over_chain_remove): Make non-static.
515 (thread_step_over_chain_next): New.
516 (global_thread_step_over_chain_next): Use
517 thread_step_over_chain_next.
518 (thread_step_over_chain_length): New.
519 (global_thread_step_over_chain_enqueue): Add debug print.
520 (global_thread_step_over_chain_remove): Add debug print.
521 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
522 Remove.
523 * infrun.c (get_displaced_stepping_state): New.
524 (displaced_step_in_progress_any_inferior): Remove.
525 (displaced_step_in_progress_thread): Adjust.
526 (displaced_step_in_progress): Adjust.
527 (displaced_step_in_progress_any_thread): New.
528 (get_displaced_step_copy_insn_closure_by_addr): Remove.
529 (gdbarch_supports_displaced_stepping): Use
530 gdbarch_displaced_step_prepare_p.
531 (displaced_step_reset): Change parameter from inferior to
532 thread.
533 (displaced_step_prepare_throw): Implement using
534 gdbarch_displaced_step_prepare.
535 (write_memory_ptid): Move to displaced-step.c.
536 (displaced_step_restore): Remove.
537 (displaced_step_finish): Implement using
538 gdbarch_displaced_step_finish.
539 (start_step_over): Allow starting more than one displaced step.
540 (prepare_for_detach): Handle possibly multiple threads doing
541 displaced steps.
542 (handle_inferior_event): Handle possibility that fork event
543 happens while another thread displaced steps.
544 * linux-tdep.h (linux_displaced_step_prepare): New.
545 (linux_displaced_step_finish): New.
546 (linux_displaced_step_copy_insn_closure_by_addr): New.
547 (linux_displaced_step_restore_all_in_ptid): New.
548 (linux_init_abi): Add supports_displaced_step parameter.
549 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
550 (linux_displaced_step_prepare): New.
551 (linux_displaced_step_finish): New.
552 (linux_displaced_step_copy_insn_closure_by_addr): New.
553 (linux_displaced_step_restore_all_in_ptid): New.
554 (linux_init_abi): Add supports_displaced_step parameter,
555 register displaced step methods if true.
556 (_initialize_linux_tdep): Register inferior_execd observer.
557 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
558 supports_displaced_step parameter, adjust call to
559 linux_init_abi. Remove call to
560 set_gdbarch_displaced_step_location.
561 (amd64_linux_init_abi): Adjust call to
562 amd64_linux_init_abi_common.
563 (amd64_x32_linux_init_abi): Likewise.
564 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
565 linux_init_abi. Remove call to
566 set_gdbarch_displaced_step_location.
567 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
568 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
569 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
570 linux_init_abi.
571 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
572 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
573 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
574 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
575 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
576 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
577 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
578 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
579 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
580 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
581 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
582 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
583 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
584 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
585 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
586 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
587 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
588 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
589 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
590 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
591 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
592 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
593 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
594 linux_init_abi. Remove call to
595 set_gdbarch_displaced_step_location.
596 * arm-tdep.c (arm_pc_is_thumb): Call
597 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
598 get_displaced_step_copy_insn_closure_by_addr.
599 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
600 clear gdbarch methods.
601 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
602 (get_ppc_per_inferior): New function.
603 (ppc_displaced_step_prepare): New function.
604 (ppc_displaced_step_finish): New function.
605 (ppc_displaced_step_restore_all_in_ptid): New function.
606 (rs6000_gdbarch_init): Register new gdbarch methods.
607 * s390-tdep.c (s390_gdbarch_init): Don't call
608 set_gdbarch_displaced_step_location, set new gdbarch methods.
609
c7acb87b
SM
6102020-12-04 Simon Marchi <simon.marchi@efficios.com>
611
612 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
613 * aarch64-tdep.h: Include displaced-stepping.h.
614 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
615 Move here.
616 (displaced_step_copy_insn_closure_up): Move here.
617 (struct buf_displaced_step_copy_insn_closure): Move here.
618 (struct displaced_step_inferior_state): Move here.
619 (debug_displaced): Move here.
620 (displaced_debug_printf_1): Move here.
621 (displaced_debug_printf): Move here.
622 * displaced-stepping.c: New file.
623 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
624 * gdbarch.h: Re-generate.
625 * inferior.h: Include displaced-stepping.h.
626 * infrun.h (debug_displaced): Move to displaced-stepping.h.
627 (displaced_debug_printf_1): Likewise.
628 (displaced_debug_printf): Likewise.
629 (struct displaced_step_copy_insn_closure): Likewise.
630 (displaced_step_copy_insn_closure_up): Likewise.
631 (struct buf_displaced_step_copy_insn_closure): Likewise.
632 (struct displaced_step_inferior_state): Likewise.
633 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
634 (displaced_debug_printf_1): Likewise.
635 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
636 Likewise.
637 (_initialize_infrun): Don't register "set/show debug displaced".
638
94b24c74
SM
6392020-12-04 Simon Marchi <simon.marchi@efficios.com>
640
641 * linux-tdep.c (get_linux_inferior_data): Add inferior
642 parameter.
643 (linux_vsyscall_range): Pass current inferior.
644
bab37966
SM
6452020-12-04 Simon Marchi <simon.marchi@efficios.com>
646
647 * infrun.c (displaced_step_prepare_throw): Change return type to
648 displaced_step_prepare_status.
649 (displaced_step_prepare): Likewise.
650 (displaced_step_finish): Change return type to
651 displaced_step_finish_status.
652 (resume_1): Adjust.
653 (stop_all_threads): Adjust.
654 * displaced-stepping.h: New file.
655
7def77a1
SM
6562020-12-04 Simon Marchi <simon.marchi@efficios.com>
657
658 * infrun.c (displaced_step_fixup): Rename to...
659 (displaced_step_finish): ... this, update all callers.
660
1152d984
SM
6612020-12-04 Simon Marchi <simon.marchi@efficios.com>
662
663 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
664 (get_displaced_step_copy_insn_closure_by_addr): ... this.
665 Update all users.
666 (displaced_step_closure): Rename to...
667 (displaced_step_copy_insn_closure): ... this. Update all users.
668 (displaced_step_closure_up): Rename to...
669 (displaced_step_copy_insn_closure_up). ... this. Update all
670 users.
671 (buf_displaced_step_closure): Rename to...
672 (buf_displaced_step_copy_insn_closure): ... this. Update all
673 users.
674 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
675 (get_displaced_step_copy_insn_closure_by_addr): ... this.
676 Update all users.
677 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
678 (aarch64_displaced_step_copy_insn_closure): ... this. Update
679 all users.
680 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
681 (amd64_displaced_step_copy_insn_closure): ... this. Update all
682 users.
683 * arm-tdep.h (arm_displaced_step_closure): Rename to...
684 (arm_displaced_step_copy_insn_closure): ... this. Update all
685 users.
686 * i386-tdep.h (i386_displaced_step_closure): Rename to...
687 (i386_displaced_step_copy_insn_closure): ... this. Update all
688 users.
689 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
690 (ppc_displaced_step_copy_insn_closure): ... this. Update all
691 users.
692 * s390-tdep.c (s390_displaced_step_closure): Rename to...
693 (s390_displaced_step_copy_insn_closure): ... this. Update all
694 users.
695 * gdbarch.h: Re-generate.
696 * gdbarch.c: Re-generate.
697
28d5518b
SM
6982020-12-04 Simon Marchi <simon.marchi@efficios.com>
699
700 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
701 (global_thread_step_over_chain_enqueue): ... this. Update all
702 users.
703 (thread_step_over_chain_remove): Rename to...
704 (global_thread_step_over_chain_remove): ... this. Update all
705 users.
706 (thread_step_over_chain_next): Rename to...
707 (global_thread_step_over_chain_next): ... this. Update all
708 users.
709 * infrun.h (step_over_queue_head): Rename to...
710 (global_thread_step_over_chain_head): ... this. Update all
711 users.
712 * infrun.c (step_over_queue_head): Rename to...
713 (global_thread_step_over_chain_head): ... this. Update all
714 users.
715 * thread.c (step_over_chain_remove): Rename to...
716 (thread_step_over_chain_remove): ... this. Update all users.
717 (thread_step_over_chain_next): Rename to...
718 (global_thread_step_over_chain_next): ... this. Update all
719 users.
720 (thread_step_over_chain_enqueue): Rename to...
721 (global_thread_step_over_chain_enqueue): ... this. Update all
722 users.
723 (thread_step_over_chain_remove): Rename to...
724 (global_thread_step_over_chain_remove): ... this. Update all
725 users.
726
f5f01699
SM
7272020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
728
729 * infrun.c (get_displaced_stepping_state): Remove, change
730 callers to access the field directly.
731
c0aba012
SM
7322020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
733
734 * infrun.c (handle_inferior_event): Restore displaced step
735 buffer bytes in child process when handling fork, even if fork
736 happened in another thread than the displaced-stepping one.
737
3b7a962d
SM
7382020-12-04 Simon Marchi <simon.marchi@efficios.com>
739
740 * infrun.c (infrun_inferior_execd): New function.
741 (_initialize_infrun): Attach inferior_execd observer.
742
42a4fec5
SM
7432020-12-04 Simon Marchi <simon.marchi@efficios.com>
744
745 * observable.h (inferior_execd): Declare new observable.
746 * observable.c (inferior_execd): Declare new observable.
747 * infrun.c (follow_exec): Notify inferior_execd observer.
748 * jit.c (jit_inferior_created_hook): Make static.
749 (_initialize_jit): Register inferior_execd observer.
750 * jit.h (jit_inferior_created_hook): Remove declaration.
751 * solib.c (_initialize_solib): Register inferior_execd observer.
752
aafdfb4e
TV
7532020-12-04 Tom de Vries <tdevries@suse.de>
754
755 PR gdb/27003
756 * completer.c (completion_tracker::build_completion_result): Don't
757 access match_list[0][-1].
758
f99b5177
TT
7592020-12-04 Tom Tromey <tromey@adacore.com>
760
761 * linespec.c (struct linespec_token): Rename; remove typedef.
762 * guile/scm-block.c (struct block_smob): Remove typedef.
763 (struct block_syms_progress_smob): Likewise.
764 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
765 * guile/scm-symtab.c (symtab_smob): Remove typedef.
766 (struct sal_smob): Remove typedef.
767 * guile/scm-param.c (struct param_smob): Remove typedef.
768 * guile/scm-progspace.c (struct pspace_smob): Rename.
769 * guile/scm-objfile.c (struct objfile_smob): Rename.
770 * guile/scm-iterator.c (struct iterator_smob): Rename.
771 * guile/scm-frame.c (struct frame_smob): Rename.
772 * guile/scm-arch.c (struct arch_smob): Rename.
773 * guile/scm-type.c (struct field_smob): Remove typedef.
774 (struct type_smob): Rename.
775 * guile/scm-cmd.c (struct command_smob): Remove typedef.
776 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
777 * guile/scm-value.c (struct value_smob): Remove typedef.
778 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
779 * guile/guile-internal.h (struct scheme_variable)
780 (struct scheme_function, struct scheme_integer_constant)
781 (struct gdb_smob, struct chained_gdb_smob)
782 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
783 (objfile_smob, pspace_smob, type_smob): Remove typedef.
784 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
785 (struct pretty_printer_worker_smob): Remove typedef.
786 * guile/scm-exception.c (struct exception_smob): Remove typedef.
787 * python/py-block.c (struct block_object): Remove typedef.
788 (block_syms_iterator_object): Update.
789 (set_block): Update.
790 (block_syms_iterator_object): Remove typedef.
791 * python/py-inferior.c (struct membuf_object): Remove typedef.
792 * python/py-symtab.c (struct symtab_object): Remove typedef.
793 (set_symtab): Update.
794 (sal_object): Remove typedef.
795 (set_sal): Update.
796 * python/py-frame.c (frame_object): Remove typedef.
797 * python/py-record-btrace.c (struct btpy_list_object): Remove
798 typedef.
799 * python/py-arch.c (struct arch_object): Remove typedef.
800 * python/py-linetable.c (struct linetable_entry_object)
801 (linetable_object, struct ltpy_iterator_object): Remove typedef.
802 * python/py-events.h (eventregistry_object): Remove typedef.
803 (struct events_object): Remove typedef.
804 * python/python-internal.h (gdbpy_breakpoint_object): Remove
805 typedef.
806 (thread_object): Remove typedef.
807 * python/py-progspace.c (pspace_object): Remove typedef.
808 * python/py-value.c (struct value_object): Remove typedef.
809 * python/py-record.h (recpy_record_object): Remove typedef.
810 (struct recpy_element_object): Remove typedef.
811 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
812 * python/py-objfile.c (objfile_object): Remove typedef.
813 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
814 * python/py-type.c (type_object): Remove typedef.
815 (typy_iterator_object): Update.
816 (set_type): Update.
817 (field_object): Remove typedef.
818 (typy_iterator_object): Remove typedef.
819 * python/py-registers.c (register_descriptor_iterator_object):
820 Remove typedef.
821 (struct register_descriptor_object)
822 (struct reggroup_iterator_object, struct reggroup_object): Remove
823 typedef.
824 * python/py-record.c (recpy_gap_object): Remove typedef.
825 * python/py-symbol.c (symbol_object): Remove typedef.
826 (set_symbol): Update.
827 * python/py-event.h (event_object): Remove typedef.
828 * python/py-param.c (parmpy_object): Remove typedef.
829 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
830 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
831 (unwind_info_object, struct cached_frame_info): Likewise.
832
91f87213
TT
8332020-12-04 Tom Tromey <tromey@adacore.com>
834
835 * value.c (value_internal_function_name): Make return type const.
836 * value.h (value_internal_function_name): Make return type const.
837
5382f971
LM
8382020-12-04 Luis Machado <luis.machado@linaro.org>
839
840 * aarch64-tdep.c (submask, bit, bits): Remove.
841 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
842 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
843 (aarch64_decode_cb, aarch64_decode_tb)
844 (aarch64_decode_ldr_literal): Use sbits to extract a signed
845 immediate.
846 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
847
b6a6aa07
TV
8482020-12-04 Tom de Vries <tdevries@suse.de>
849
850 PR tdep/27007
851 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
852
0bc2e38d
SM
8532020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
854
855 PR gdb/26876
856 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
857 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
858
25428040
AB
8592020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
860
861 * arch/riscv.c: Include 'rv32e-xregs.c'.
862 (riscv_create_target_description): Update to handle rv32e.
863 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
864 member variable.
865 <operator==>: Update to account for new field.
866 <hash>: Likewise.
867 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
868 * features/riscv/rv32e-xregs.c: Generated.
869 * features/riscv/rv32e-xregs.xml: New file.
870 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
871 file.
872 (riscv_debug_infcall): Likewise.
873 (riscv_debug_unwinder): Likewise.
874 (riscv_debug_gdbarch): Likewise.
875 (enum riscv_register_required_status): Delete.
876 (struct riscv_register_feature): Add constructor, delete default
877 constructor, copy, and assign constructors.
878 (struct riscv_register_feature::register_info) <required>: Delete.
879 <check>: Update comment and arguments.
880 (struct riscv_register_feature) <name>: Change to member function.
881 <prefer_first_name>: Delete.
882 <tdesc_feature>: New member function.
883 <registers>: Rename to...
884 <m_registers>: ...this.
885 <m_feature_name>: New member variable.
886 (riscv_register_feature::register_info::check): Update arguments.
887 (riscv_xreg_feature): Rewrite as class, create a single static
888 instance of the class.
889 (riscv_freg_feature): Likewise.
890 (riscv_virtual_feature): Likewise.
891 (riscv_csr_feature): Likewise.
892 (riscv_create_csr_aliases): Has become a member function inside
893 riscv_csr_feature class.
894 (riscv_abi_embedded): New function definition.
895 (riscv_register_name): Adjust to use new feature objects.
896 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
897 and adjust available argument registers.
898 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
899 (riscv_check_tdesc_feature): Delete.
900 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
901 (riscv_gdbarch_init): Delete target description checking code, and
902 instead call to the new feature objects to perform the checks.
903 Reorder handling of no abi information case, allows small code
904 simplification.
905 (_initialize_riscv_tdep): Remove call, this is now done in the
906 riscv_csr_feature constructor.
907 * riscv-tdep.h (riscv_abi_embedded): Declare.
908
533b2ae0
AB
9092020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
910
911 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
912 DECLARE_CSR_ALIAS.
913
e4502042
AB
9142020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
915
916 * riscv-tdep.c (riscv_is_unknown_csr): New function,
917 implementation moved from riscv_register_reggroup_p.
918 (riscv_register_reggroup_p): Update group handling for unknown
919 CSRs.
920
2bf3b79d
SDJ
9212020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
922
923 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
924 (dwarf2_get_dwz_file): Convert 'filename' to a
925 std::string. Use dwz_search_other_debugdirs to search for DWZ
926 files in the debug-file-directories provided by the user as well.
927
77bf7e99
TT
9282020-12-01 Tom Tromey <tom@tromey.com>
929
930 * parse.c (expr_builder::expr_builder): Initialize expout.
931 (expr_builder::release): Use expression::resize.
932 (expression::expression, expression::~expression)
933 (expression::resize): New methods.
934 (write_exp_elt): Use expression::resize.
935 (prefixify_expression): Update.
936 (increase_expout_size): Use expression::resize.
937 * expression.h (struct expression): Add constructor, destructor.
938 <resize>: New method.
939 (expression_up): Change type.
940
539d71e8
RA
9412020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
942 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
943 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
944 set region.
945
7ce05d21
TV
9462020-11-30 Tom de Vries <tdevries@suse.de>
947
948 PR symtab/26905
949 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
950 is_reference parameter.
951 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
952
88b91969
TT
9532020-11-30 Tom Tromey <tom@tromey.com>
954
955 * rust-lang.c (rust_op_name): Remove.
956 (exp_descriptor_rust): Update.
957 * parser-defs.h (op_name_standard): Don't declare.
958 (struct exp_descriptor) <op_name>: Remove.
959 * parse.c (exp_descriptor_standard): Update.
960 * opencl-lang.c (exp_descriptor_opencl): Update.
961 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
962 * f-lang.c (op_name_f): Remove.
963 (f_language::exp_descriptor_tab): Update.
964 * expression.h (op_name): Update.
965 * expprint.c (op_name): Rewrite.
966 (op_name_standard): Remove.
967 (dump_raw_expression, dump_subexp): Update.
968 * c-lang.c (exp_descriptor_c): Update.
969 * ax-gdb.c (gen_expr): Update.
970 * ada-lang.c (ada_op_name): Remove.
971 (ada_exp_descriptor): Update.
972
1cd49c43
TT
9732020-11-30 Tom Tromey <tom@tromey.com>
974
975 * eval.c (init_array_element): Remove.
976 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
977
96fb9086
HD
9782020-11-29 Hannes Domani <ssbssa@yahoo.de>
979
980 PR tui/26973
981 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
982 static locator win info.
983
b4132322
AR
9842020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
985
986 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
987 program.
988
3df8c6af
AB
9892020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
990
991 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
992 is always initialized.
993
0ae45769
RA
9942020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
995 * MAINTAINERS (Write After Approval): Add myself.
996
239ca5e4
PW
9972020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
998
999 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1000 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1001
cbfa382a
TT
10022020-11-25 Tom Tromey <tom@tromey.com>
1003
1004 * eval.c (evaluate_subexp_standard): Remove unnecessary
1005 variables.
1006
af30c400
TT
10072020-11-25 Tom Tromey <tom@tromey.com>
1008
1009 * d-lang.c: Include parser-defs.h.
1010 * rust-lang.c: Include parser-defs.h.
1011 * c-lang.h: Do not include parser-defs.h.
1012
1c64f6cb
SM
10132020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1014
1015 * regcache.h (struct cached_reg): Remove typedef.
1016
2c20a601
JB
10172020-11-24 Joel Brobecker <brobecker@adacore.com>
1018
1019 * README: Fix the URL of the MPFR library.
1020
c609df64
JB
10212020-11-24 Joel Brobecker <brobecker@adacore.com>
1022
1023 * README: Document the --with-libgmp-prefix configure option.
1024
fa123c32
JB
10252020-11-24 Joel Brobecker <brobecker@adacore.com>
1026
1027 * NEWS: Add entry documenting support for DWARF-based fixed
1028 point types.
1029
0fb8bb02
JB
10302020-11-24 Joel Brobecker <brobecker@adacore.com>
1031
1032 * NEWS: Document that building GDB now requires GMP.
1033
4afa9fd9
JB
10342020-11-24 Joel Brobecker <brobecker@adacore.com>
1035
1036 * typeprint.c (print_type_scalar): Add handling of
1037 TYPE_CODE_FIXED_POINT.
1038
af619ce9
JB
10392020-11-24 Joel Brobecker <brobecker@adacore.com>
1040
1041 * valarith.c (fixed_point_binop): Replace the
1042 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1043 users accordingly.
1044
e6fcee3a
JB
10452020-11-24 Joel Brobecker <brobecker@adacore.com>
1046
1047 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1048 replacing fixed_point_scaling_factor. All callers updated
1049 throughout this project.
1050 (fixed_point_scaling_factor): Delete declaration.
1051 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1052 fixed_point_scaling_factor. Adjust implementation accordingly.
1053
d19937a7
JB
10542020-11-24 Joel Brobecker <brobecker@adacore.com>
1055
1056 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1057 replacing the fixed_point_type_base_type function. All callers
1058 updated throughout this project.
1059 (fixed_point_type_base_type): Remove declaration.
1060 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1061 fixed_point_type_base_type. Adjust implementation accordingly.
1062
2a12c336
JB
10632020-11-24 Joel Brobecker <brobecker@adacore.com>
1064
1065 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1066 New methods.
1067 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1068 (TYPE_FIXED_POINT_INFO): Delete macro.
1069 (allocate_fixed_point_type_info): Change return type to void.
1070 * gdbtypes.c (copy_type_recursive): Replace the use of
1071 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1072 (fixed_point_scaling_factor): Likewise.
1073 (allocate_fixed_point_type_info): Change return type to void.
1074 Adjust implementation accordingly.
1075 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1076 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1077
c9f0b43f
JB
10782020-11-24 Joel Brobecker <brobecker@adacore.com>
1079
1080 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1081 into one single gdb::array_view parameter.
1082 (gdb_mpz::write): Likewise.
1083 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1084 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1085 into one single gdb::array_view parameter.
1086 Adjust implementation accordingly.
1087 (gdb_mpz::write): Likewise.
1088 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1089 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1090 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1091
987b6703
JB
10922020-11-24 Joel Brobecker <brobecker@adacore.com>
1093
1094 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1095 Change return type to std::string. Update all callers.
1096 * gmp-utils.c (gmp_string_printf): Likewise.
1097
4fbb7cce
JB
10982020-11-24 Joel Brobecker <brobecker@adacore.com>
1099
1100 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1101 instead of mpq_set_ui to initialize our GMP rational.
1102
d6ab69dd
TV
11032020-11-23 Tom de Vries <tdevries@suse.de>
1104
1105 * debuginfod-support.c (debuginfod_source_query)
1106 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1107
dab72643
TT
11082020-11-21 Tom Tromey <tom@tromey.com>
1109
1110 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1111
c0ad05d5
SM
11122020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1113
1114 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1115 Pass 2.0 to pow.
1116 (gdb_mpz_write_all_from_small): Likewise.
1117
a43b29c9
SM
11182020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1119
1120 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1121 of abs.
1122
ae41200b
NA
11232020-11-20 Nick Alcock <nick.alcock@oracle.com>
1124
1125 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1126 ctf_arc_open_by_name.
1127
139633c3
NA
11282020-11-20 Nick Alcock <nick.alcock@oracle.com>
1129
1130 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1131 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1132
cbbcd7a7
PA
11332020-11-20 Pedro Alves <pedro@palves.net>
1134
1135 * language.c (language_arch_info::lookup_primitive_type): Use
1136 gdb::function_view instead of gdb::function.
1137 (template language_lookup_primitive_type): Rename to ...
1138 (language_lookup_primitive_type_1): ... this, and make static.
1139 (language_lookup_primitive_type(const struct language_defn *,
1140 struct gdbarch *, const char *): Make non-template.
1141 (language_lookup_primitive_type(const struct language_defn *,
1142 struct gdbarch *, std::function<bool (struct type *)>): Make
1143 non-template and use gdb::function_view.
1144 * language.h (language_arch_info::lookup_primitive_type): Use
1145 gdb::function_view instead of std::function.
1146 (language_lookup_primitive_type): No longer template.
1147 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1148 lambda instead of a std::function.
1149
d5ef21c3
AA
11502020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1151
1152 PR tdep/26916
1153 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1154 and STOCFH.
1155
a5adb8f3
SM
11562020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1157
1158 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1159
70125a45
SM
11602020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1161
1162 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1163 in `loop_cb` parameter.
1164 * gdbarch.c: Re-generate.
1165 * gdbarch.h: Re-generate.
1166 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1167 parameter.
1168 * arch-utils.h (default_read_core_file_mappings): Likewise.
1169 * corelow.c (core_target::build_file_mappings): Likewise.
1170 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1171 (linux_core_info_proc_mappings): Likewise.
1172
a5c641b5
AB
11732020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1174
1175 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1176 * NEWS: Mention new options.
1177 * f-array-walker.h: New file.
1178 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1179 (repack_array_slices): New static global.
1180 (show_repack_array_slices): New function.
1181 (fortran_array_slicing_debug): New static global.
1182 (show_fortran_array_slicing_debug): New function.
1183 (value_f90_subarray): Delete.
1184 (skip_undetermined_arglist): Delete.
1185 (class fortran_array_repacker_base_impl): New class.
1186 (class fortran_lazy_array_repacker_impl): New class.
1187 (class fortran_array_repacker_impl): New class.
1188 (fortran_value_subarray): Complete rewrite.
1189 (set_fortran_list): New static global.
1190 (show_fortran_list): Likewise.
1191 (_initialize_f_language): Register new commands.
1192 (fortran_adjust_dynamic_array_base_address_hack): New function.
1193 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1194 Declare.
1195 * f-valprint.c: Include 'f-array-walker.h'.
1196 (class fortran_array_printer_impl): New class.
1197 (f77_print_array_1): Delete.
1198 (f77_print_array): Delete.
1199 (fortran_print_array): New.
1200 (f_value_print_inner): Update to call fortran_print_array.
1201 * gdbtypes.c: Include 'f-lang.h'.
1202 (resolve_dynamic_type_internal): Call
1203 fortran_adjust_dynamic_array_base_address_hack.
1204
a15a5258
AB
12052020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1206
1207 * breakpoint.c (struct watch_options): New struct.
1208 (watch_option_defs): New static global.
1209 (make_watch_options_def_group): New function.
1210 (watch_maybe_just_location): Convert option parsing.
1211 (watch_command_completer): New function.
1212 (_initialize_breakpoint): Build help text using options mechanism.
1213
2e362716
AB
12142020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1215
1216 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1217 (watch_command_1): Update parameter types. Convert locals to
1218 bool.
1219 (watch_command_wrapper): Change parameter type.
1220 (watch_maybe_just_location): Change locals to bool.
1221 (rwatch_command_wrapper): Update parameter type.
1222 (awatch_command_wrapper): Update parameter type.
1223 * breakpoint.h (watch_command_wrapper): Change parameter type.
1224 (rwatch_command_wrapper): Update parameter type.
1225 (awatch_command_wrapper): Update parameter type.
1226 * eval.c (fetch_subexp_value): Change parameter type.
1227 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1228 'false' not '0'.
1229 * value.h (fetch_subexp_value): Change parameter type in
1230 declaration.
1231
b3ff61f8
AB
12322020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1233
1234 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1235 skip_spaces.
1236
5b7d45d3
KS
12372020-11-18 Keith Seitz <keiths@redhat.com>
1238
1239 * linux-tdep.c (dump_note_entry_p): Return true instead of
1240 checking `filename'.
1241
c44191f8
TV
12422020-11-18 Tom de Vries <tdevries@suse.de>
1243
1244 * debuginfod-support.c (debuginfod_source_query)
1245 (debuginfod_debuginfo_query): Also do early exit if
1246 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1247
5d8254e1
TV
12482020-11-18 Tom de Vries <tdevries@suse.de>
1249
1250 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1251 warning.
1252
584903d3
SM
12532020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1254
1255 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1256 callers. Move doc here.
1257 * gdbtypes.c (get_array_bounds): Return bool
1258
6f2643db
AB
12592020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1260
1261 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1262 assert.
1263 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1264 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1265 case to the default.
1266
037d7135
AB
12672020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * printcmd.c: Include 'safe-ctype.c'.
1270 (skip_over_slash_fmt): New function.
1271 (print_command_completer): Call skip_over_slash_fmt.
1272 (display_and_x_command_completer): New function.
1273 (_initialize_printcmd): Add command completion for 'x' and
1274 'display'.
1275
2b3cb400
PA
12762020-11-16 Pedro Alves <pedro@palves.net>
1277
1278 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1279 (get_prev_frame_always_1): ... to here.
1280 * inline-frame.c (inline_frame_this_id): Mention
1281 get_prev_frame_always_1 in comment.
1282
b74dbc20
JB
12832020-11-15 Joel Brobecker <brobecker@adacore.com>
1284
1285 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1286 handling.
1287 (value_less): Add fixed-point handling.
1288
0a12719e
JB
12892020-11-15 Joel Brobecker <brobecker@adacore.com>
1290
1291 * eval.c (binop_promote): Add fixed-point type handling.
1292 * valarith.c (fixed_point_binop): New function.
1293 (scalar_binop): Add fixed-point type handling.
1294 (value_neg): Add fixed-point type handling.
1295 * valops.c (value_cast_to_fixed_point): New function.
1296 (value_cast): Add fixed-point type handling.
1297
0c9150e4
JB
12982020-11-15 Joel Brobecker <brobecker@adacore.com>
1299
1300 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1301 range types.
1302 * c-typeprint.c (c_type_print_varspec_prefix)
1303 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1304 TYPE_CODE_FIXED_POINT handling.
1305 * p-typeprint.c (pascal_type_print_varspec_prefix)
1306 (pascal_type_print_varspec_suffix): Likewise.
1307 * typeprint.c (print_type_fixed_point): New function.
1308 * typeprint.h (print_type_fixed_point): Add declaration.
1309
b26daff9
JB
13102020-11-15 Joel Brobecker <brobecker@adacore.com>
1311
1312 * printcmd.c (print_scalar_formatted): Add fixed-point type
1313 handling when options->format is set.
1314
09584414
JB
13152020-11-15 Joel Brobecker <brobecker@adacore.com>
1316
1317 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1318 * dwarf2/read.c (get_dwarf2_rational_constant)
1319 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1320 (has_zero_over_zero_small_attribute): New functions.
1321 read_base_type, set_die_type): Add fixed-point type handling.
1322 * gdb-gdb.py.in: Add fixed-point type handling.
1323 * gdbtypes.c: #include "gmp-utils.h".
1324 (create_range_type, set_type_code): Add fixed-point type handling.
1325 (init_fixed_point_type): New function.
1326 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1327 (print_fixed_point_type_info): New function.
1328 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1329 handling.
1330 (fixed_point_type_storage): New typedef.
1331 (fixed_point_objfile_key): New static global.
1332 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1333 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1334 functions.
1335 * gdbtypes.h: #include "gmp-utils.h".
1336 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1337 (union type_specific) <fixed_point_info>: New field.
1338 (struct fixed_point_type_info): New struct.
1339 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1340 (init_fixed_point_type, is_fixed_point_type)
1341 (fixed_point_type_base_type, fixed_point_scaling_factor)
1342 (allocate_fixed_point_type_info): Add declarations.
1343 * valprint.c (generic_val_print_fixed_point): New function.
1344 (generic_value_print): Add fixed-point type handling.
1345 * value.c (value_as_address, unpack_long): Add fixed-point type
1346 handling.
1347
e55c6530
JB
13482020-11-15 Joel Brobecker <brobecker@adacore.com>
1349
1350 * utils.h (uinteger_pow): Add declaration.
1351 * utils.c (uinteger_pow): Moved here (without changes)...
1352 * valarith.c (uinteger_pow): ... from here.
1353
b34c74ab
JB
13542020-11-15 Joel Brobecker <brobecker@adacore.com>
1355
40d9d2fd 1356 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1357 * unittests/gmp-utils-selftests.c: New file.
1358 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1359 unittests/gmp-utils-selftests.c.
1360 (COMMON_SFILES) Add gmp-utils.c.
1361 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1362
1b4ac058
JB
13632020-11-15 Joel Brobecker <brobecker@adacore.com>
1364
1365 * configure.ac: Generate an error if a usable GMP library
1366 could not be found.
1367 * configure: Regenerate.
1368
2c947d9b
JB
13692020-11-15 Joel Brobecker <brobecker@adacore.com>
1370
1371 * configure.ac: Add support for --with-libgmp-prefix.
1372 * Makefile.in (LIBGMP): New variable.
1373 (CLIBS): Include $(LIBGMP).
1374 * configure, config.in: Regenerate
1375
9dd02fc0
AB
13762020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1377
1378 PR cli/26879
1379 * f-exp.y (COMPLETE): New token.
1380 (exp): Two new rules for tab-completion.
1381 (saw_name_at_eof): New static global.
1382 (last_was_structop): Likewise.
1383 (yylex): Set new variables, and return COMPLETE token at the end
1384 of the input stream in some cases.
1385
758cb810
TT
13862020-11-14 Tom Tromey <tom@tromey.com>
1387
1388 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1389
749065b7
TT
13902020-11-14 Tom Tromey <tom@tromey.com>
1391
1392 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1393
2c5b1849
SM
13942020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1395
1396 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1397
e8b2f0d9
TT
13982020-11-13 Tom Tromey <tom@tromey.com>
1399
1400 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1401 (convert_escape, parse_one_string): Constify.
1402
25f4c262
KS
14032020-11-13 Keith Seitz <keiths@redhat.com>
1404
1405 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1406 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1407 outside of ELF segments" warning for debugin
1408
9d3ab915
KS
14092020-11-13 Keith Seitz <keiths@redhat.com>
1410
1411 PR gdb/23034
1412 * elfread.c (elf_symfile_segments): Output a BFD file name
1413 for the "Loadable section ... outside of ELF segments" warning.
1414
9ecab40c
SM
14152020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1416
1417 PR gdb/26835
1418 * arm-tdep.c (class arm_instruction_reader): New.
1419 (target_arm_instruction_reader): New.
1420 (arm_analyze_prologue): Add instruction reader parameter and use
1421 it. Use arm_expand_immediate.
1422 (class target_arm_instruction_reader): Adjust.
1423 (arm_skip_prologue): Adjust.
1424 (arm_expand_immediate): New.
1425 (arm_scan_prologue): Adjust.
1426 (arm_analyze_prologue_test): New.
1427 (class test_arm_instruction_reader): New.
1428
5a7cf527
AB
14292020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1430
1431 * f-lang.c (fortran_argument_convert): Add declaration. Add
1432 header comment, taken from f-lang.h. Make static.
1433 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1434 (fortran_argument_convert): Delete declaration.
1435
7bea47f0
AB
14362020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1437
1438 * ada-exp.y (find_primitive_type): Make parameter const.
1439 * ada-lang.c (enum ada_primitive_types): Delete.
1440 (ada_language::language_arch_info): Update.
1441 * c-lang.c (enum c_primitive_types): Delete.
1442 (c_language_arch_info): Update.
1443 (enum cplus_primitive_types): Delete.
1444 (cplus_language::language_arch_info): Update.
1445 * d-lang.c (enum d_primitive_types): Delete.
1446 (d_language::language_arch_info): Update.
1447 * f-lang.c (enum f_primitive_types): Delete.
1448 (f_language::language_arch_info): Update.
1449 * go-lang.c (enum go_primitive_types): Delete.
1450 (go_language::language_arch_info): Update.
1451 * language.c (auto_or_unknown_language::language_arch_info):
1452 Update.
1453 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1454 (language_string_char_type): Add header comment, call function in
1455 language_arch_info.
1456 (language_bool_type): Likewise
1457 (language_arch_info::bool_type): Define.
1458 (language_lookup_primitive_type_1): Delete.
1459 (language_lookup_primitive_type): Rewrite as a templated function
1460 to call function in language_arch_info, then instantiate twice.
1461 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1462 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1463 (language_arch_info::lookup_primitive_type): Define twice with
1464 different signatures.
1465 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1466 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1467 member function in language_arch_info.
1468 * language.h (language_arch_info): Complete rewrite.
1469 (language_lookup_primitive_type): Make templated.
1470 * m2-lang.c (enum m2_primitive_types): Delete.
1471 (m2_language::language_arch_info): Update.
1472 * opencl-lang.c (OCL_P_TYPE): Delete.
1473 (enum opencl_primitive_types): Delete.
1474 (opencl_type_data): Delete.
1475 (builtin_opencl_type): Delete.
1476 (lookup_opencl_vector_type): Update.
1477 (opencl_language::language_arch_info): Update, lots of content
1478 moved from...
1479 (build_opencl_types): ...here. This function is now deleted.
1480 (_initialize_opencl_language): Delete.
1481 * p-lang.c (enum pascal_primitive_types): Delete.
1482 (pascal_language::language_arch_info): Update.
1483 * rust-lang.c (enum rust_primitive_types): Delete.
1484 (rust_language::language_arch_info): Update.
1485
bf6e5d01
SM
14862020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1487
1488 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1489 dwarf2_queue_guard.
1490
1350c3b4
SM
14912020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1492
1493 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1494 comment.
1495
6f738b01
SM
14962020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1497
1498 * dwarf2/read.c (dwarf_read_debug_printf,
1499 dwarf_read_debug_printf_v): New macros, use throughout the file.
1500
10c19fad
SV
15012020-11-12 Shahab Vahedi <shahab@synopsys.com>
1502
10806efd 1503 PR tdep/27015
10c19fad
SV
1504 * arc-linux-tdep.c (collect_register): Populate "eret" by
1505 "pc" value from the regcache when asked for "pc" value.
1506
1f2624a3
TT
15072020-11-12 Tom Tromey <tom@tromey.com>
1508
1509 PR rust/26799:
1510 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1511 exist.
1512
ab33b152
AB
15132020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1514
1515 * features/Makefile (XMLTOC): Add rx.xml.
1516 (FEATURE_XMLFILES): Remove rx.xml.
1517 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1518 * features/rx.c: Regenerate.
1519 * features/rx.xml: Wrap in `target` tags, and reindent.
1520 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1521 structure.
1522 (maint_print_c_tdesc_opt_def): New typedef.
1523 (maint_print_c_tdesc_opt_defs): New static global.
1524 (make_maint_print_c_tdesc_options_def_group): New function.
1525 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1526 print single feature C file for target descriptions containing a
1527 single feature.
1528 (maint_print_c_tdesc_cmd_completer): New function.
1529 (_initialize_target_descriptions): Update call to register command
1530 completer, and include command line flag in help text.
1531
550820e1
AB
15322020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1533
1534 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1535 numbers.
1536 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1537 enum values.
1538
baf20f76
TT
15392020-11-10 Tom Tromey <tom@tromey.com>
1540
1541 * value.h (internalvar_name): Update.
1542 * value.c (internalvar_name): Make return type const.
1543
caaece0e
TT
15442020-11-10 Tom Tromey <tom@tromey.com>
1545
1546 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1547 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1548 const.
1549
8e20b4be
TT
15502020-11-10 Tom Tromey <tom@tromey.com>
1551
1552 * objc-lang.h (value_nsstring): Update.
1553 * objc-lang.c (value_nsstring): Make "ptr" const.
1554
86775fab
AB
15552020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1556
1557 * expprint.c (print_subexp_funcall): Increment expression position
1558 after reading argument count.
1559 * f-lang.c (print_subexp_f): Skip over opcode before calling
1560 common function.
1561 (dump_subexp_body_f): Likewise.
1562
3fed4c0b
RG
15632020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1564
1565 PR python/26832
1566 * configure: Regenerate.
1567 * configure.ac: Check for python modules ctypes instead of
1568 itertools.
1569
ac3d4064
PA
15702020-11-06 Pedro Alves <pedro@palves.net>
1571
1572 * macroexp.c (struct macro_buffer): Split in two classes. Add
1573 uses adjusted.
1574 (struct shared_macro_buffer): New, factored out from struct
1575 macro_buffer.
1576 (struct growable_macro_buffer): New, factored out from struct
1577 macro_buffer.
1578 (set_token, get_comment, get_identifier, get_pp_number)
1579 (get_character_constant, get_string_literal, get_punctuator)
1580 (get_next_token_for_substitution): Constify parameters.
1581 (substitute_args): Constify locals.
1582
606decb2
TT
15832020-11-05 Tom Tromey <tom@tromey.com>
1584
1585 * dwarf2/read.c (read_cutu_die_from_dwo)
1586 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1587 (build_type_psymtabs_1): Update.
1588 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1589 parameter.
1590 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1591 Don't read section. Add assert.
1592
9c91c725
TT
15932020-11-04 Tom Tromey <tromey@adacore.com>
1594
1595 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1596
8d9fd3a1
TT
15972020-11-04 Tom Tromey <tromey@adacore.com>
1598
1599 * ada-typeprint.c (ada_print_type): Handle __T types.
1600
d8f62e84
TT
16012020-11-04 Tom Tromey <tromey@adacore.com>
1602
1603 * dwarf2/read.c (add_partial_symbol, process_die):
1604 Handle DW_TAG_array_type.
1605 (is_type_tag_for_partial): Add "lang" parameter.
1606 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1607
7ff5b937
TT
16082020-11-04 Tom Tromey <tromey@adacore.com>
1609
1610 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1611
10f6a3ad
TT
16122020-11-04 Tom Tromey <tromey@adacore.com>
1613
1614 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1615 array.
1616
b72795a8
TT
16172020-11-04 Tom Tromey <tromey@adacore.com>
1618
1619 * gdbtypes.c (update_static_array_size): Handle bit stride.
1620
24aa1b02
TT
16212020-11-04 Tom Tromey <tromey@adacore.com>
1622
1623 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1624
c9a28cbe
TT
16252020-11-04 Tom Tromey <tromey@adacore.com>
1626
1627 * ada-lang.c (ada_is_any_packed_array_type): New function.
1628 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1629
57567375
TT
16302020-11-04 Tom Tromey <tromey@adacore.com>
1631
1632 * dwarf2/read.c (recognize_bound_expression)
1633 (quirk_ada_thick_pointer): New functions.
1634 (read_array_type): Call quirk_ada_thick_pointer.
1635 (set_die_type): Add "skip_data_location" parameter.
1636 (quirk_ada_thick_pointer): New function.
1637 (process_structure_scope): Call quirk_ada_thick_pointer.
1638 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1639 (decode_packed_array_bitsize): Handle thick pointers without
1640 parallel types.
1641 (ada_is_gnat_encoded_packed_array_type): Rename from
1642 ada_is_packed_array_type.
1643 (ada_is_constrained_packed_array_type): Update.
1644 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1645 (ada_value_print_1): Use ada_get_decoded_value.
1646
a7400e44
TT
16472020-11-04 Tom Tromey <tromey@adacore.com>
1648
1649 * ada-lang.c (recursively_update_array_bitsize): New function.
1650 (decode_constrained_packed_array_type): Call it.
1651
75fd6a26
TT
16522020-11-04 Tom Tromey <tromey@adacore.com>
1653
1654 * ada-lang.c (to_fixed_array_type): Error if
1655 decode_constrained_packed_array_type returns NULL.
1656
93f9561e
TT
16572020-11-04 Tom Tromey <tromey@adacore.com>
1658
1659 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1660
257e02d8
TT
16612020-11-02 Tom Tromey <tromey@adacore.com>
1662
1663 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1664 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1665 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1666 * amd64-ravenscar-thread.c: New file.
1667 * amd64-ravenscar-thread.h: New file.
1668 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1669 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1670
74d877e5
AB
16712020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1672
1673 * main.c (execute_cmdargs): New function.
1674 (captured_main_1): Make use of execute_cmdargs.
1675
64aaad63
AB
16762020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1677
1678 * NEWS: Mention changes to config file search path.
1679 * main.c
1680
5b3d3560
TT
16812020-11-02 Tom Tromey <tromey@adacore.com>
1682
1683 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1684 (python_GdbModuleDef): Move earlier. Now static.
1685 (do_start_initialization): Consolidate some IS_PY3K blocks.
1686
dda83cd7
SM
16872020-11-02 Simon Marchi <simon.marchi@efficios.com>
1688
1689 * aarch64-linux-tdep.c: Fix indentation.
1690 * aarch64-ravenscar-thread.c: Fix indentation.
1691 * aarch64-tdep.c: Fix indentation.
1692 * aarch64-tdep.h: Fix indentation.
1693 * ada-lang.c: Fix indentation.
1694 * ada-lang.h: Fix indentation.
1695 * ada-tasks.c: Fix indentation.
1696 * ada-typeprint.c: Fix indentation.
1697 * ada-valprint.c: Fix indentation.
1698 * ada-varobj.c: Fix indentation.
1699 * addrmap.c: Fix indentation.
1700 * addrmap.h: Fix indentation.
1701 * agent.c: Fix indentation.
1702 * aix-thread.c: Fix indentation.
1703 * alpha-bsd-nat.c: Fix indentation.
1704 * alpha-linux-tdep.c: Fix indentation.
1705 * alpha-mdebug-tdep.c: Fix indentation.
1706 * alpha-nbsd-tdep.c: Fix indentation.
1707 * alpha-obsd-tdep.c: Fix indentation.
1708 * alpha-tdep.c: Fix indentation.
1709 * amd64-bsd-nat.c: Fix indentation.
1710 * amd64-darwin-tdep.c: Fix indentation.
1711 * amd64-linux-nat.c: Fix indentation.
1712 * amd64-linux-tdep.c: Fix indentation.
1713 * amd64-nat.c: Fix indentation.
1714 * amd64-obsd-tdep.c: Fix indentation.
1715 * amd64-tdep.c: Fix indentation.
1716 * amd64-windows-tdep.c: Fix indentation.
1717 * annotate.c: Fix indentation.
1718 * arc-tdep.c: Fix indentation.
1719 * arch-utils.c: Fix indentation.
1720 * arch/arm-get-next-pcs.c: Fix indentation.
1721 * arch/arm.c: Fix indentation.
1722 * arm-linux-nat.c: Fix indentation.
1723 * arm-linux-tdep.c: Fix indentation.
1724 * arm-nbsd-tdep.c: Fix indentation.
1725 * arm-pikeos-tdep.c: Fix indentation.
1726 * arm-tdep.c: Fix indentation.
1727 * arm-tdep.h: Fix indentation.
1728 * arm-wince-tdep.c: Fix indentation.
1729 * auto-load.c: Fix indentation.
1730 * auxv.c: Fix indentation.
1731 * avr-tdep.c: Fix indentation.
1732 * ax-gdb.c: Fix indentation.
1733 * ax-general.c: Fix indentation.
1734 * bfin-linux-tdep.c: Fix indentation.
1735 * block.c: Fix indentation.
1736 * block.h: Fix indentation.
1737 * blockframe.c: Fix indentation.
1738 * bpf-tdep.c: Fix indentation.
1739 * break-catch-sig.c: Fix indentation.
1740 * break-catch-syscall.c: Fix indentation.
1741 * break-catch-throw.c: Fix indentation.
1742 * breakpoint.c: Fix indentation.
1743 * breakpoint.h: Fix indentation.
1744 * bsd-uthread.c: Fix indentation.
1745 * btrace.c: Fix indentation.
1746 * build-id.c: Fix indentation.
1747 * buildsym-legacy.h: Fix indentation.
1748 * buildsym.c: Fix indentation.
1749 * c-typeprint.c: Fix indentation.
1750 * c-valprint.c: Fix indentation.
1751 * c-varobj.c: Fix indentation.
1752 * charset.c: Fix indentation.
1753 * cli/cli-cmds.c: Fix indentation.
1754 * cli/cli-decode.c: Fix indentation.
1755 * cli/cli-decode.h: Fix indentation.
1756 * cli/cli-script.c: Fix indentation.
1757 * cli/cli-setshow.c: Fix indentation.
1758 * coff-pe-read.c: Fix indentation.
1759 * coffread.c: Fix indentation.
1760 * compile/compile-cplus-types.c: Fix indentation.
1761 * compile/compile-object-load.c: Fix indentation.
1762 * compile/compile-object-run.c: Fix indentation.
1763 * completer.c: Fix indentation.
1764 * corefile.c: Fix indentation.
1765 * corelow.c: Fix indentation.
1766 * cp-abi.h: Fix indentation.
1767 * cp-namespace.c: Fix indentation.
1768 * cp-support.c: Fix indentation.
1769 * cp-valprint.c: Fix indentation.
1770 * cris-linux-tdep.c: Fix indentation.
1771 * cris-tdep.c: Fix indentation.
1772 * darwin-nat-info.c: Fix indentation.
1773 * darwin-nat.c: Fix indentation.
1774 * darwin-nat.h: Fix indentation.
1775 * dbxread.c: Fix indentation.
1776 * dcache.c: Fix indentation.
1777 * disasm.c: Fix indentation.
1778 * dtrace-probe.c: Fix indentation.
1779 * dwarf2/abbrev.c: Fix indentation.
1780 * dwarf2/attribute.c: Fix indentation.
1781 * dwarf2/expr.c: Fix indentation.
1782 * dwarf2/frame.c: Fix indentation.
1783 * dwarf2/index-cache.c: Fix indentation.
1784 * dwarf2/index-write.c: Fix indentation.
1785 * dwarf2/line-header.c: Fix indentation.
1786 * dwarf2/loc.c: Fix indentation.
1787 * dwarf2/macro.c: Fix indentation.
1788 * dwarf2/read.c: Fix indentation.
1789 * dwarf2/read.h: Fix indentation.
1790 * elfread.c: Fix indentation.
1791 * eval.c: Fix indentation.
1792 * event-top.c: Fix indentation.
1793 * exec.c: Fix indentation.
1794 * exec.h: Fix indentation.
1795 * expprint.c: Fix indentation.
1796 * f-lang.c: Fix indentation.
1797 * f-typeprint.c: Fix indentation.
1798 * f-valprint.c: Fix indentation.
1799 * fbsd-nat.c: Fix indentation.
1800 * fbsd-tdep.c: Fix indentation.
1801 * findvar.c: Fix indentation.
1802 * fork-child.c: Fix indentation.
1803 * frame-unwind.c: Fix indentation.
1804 * frame-unwind.h: Fix indentation.
1805 * frame.c: Fix indentation.
1806 * frv-linux-tdep.c: Fix indentation.
1807 * frv-tdep.c: Fix indentation.
1808 * frv-tdep.h: Fix indentation.
1809 * ft32-tdep.c: Fix indentation.
1810 * gcore.c: Fix indentation.
1811 * gdb_bfd.c: Fix indentation.
1812 * gdbarch.sh: Fix indentation.
1813 * gdbarch.c: Re-generate
1814 * gdbarch.h: Re-generate.
1815 * gdbcore.h: Fix indentation.
1816 * gdbthread.h: Fix indentation.
1817 * gdbtypes.c: Fix indentation.
1818 * gdbtypes.h: Fix indentation.
1819 * glibc-tdep.c: Fix indentation.
1820 * gnu-nat.c: Fix indentation.
1821 * gnu-nat.h: Fix indentation.
1822 * gnu-v2-abi.c: Fix indentation.
1823 * gnu-v3-abi.c: Fix indentation.
1824 * go32-nat.c: Fix indentation.
1825 * guile/guile-internal.h: Fix indentation.
1826 * guile/scm-cmd.c: Fix indentation.
1827 * guile/scm-frame.c: Fix indentation.
1828 * guile/scm-iterator.c: Fix indentation.
1829 * guile/scm-math.c: Fix indentation.
1830 * guile/scm-ports.c: Fix indentation.
1831 * guile/scm-pretty-print.c: Fix indentation.
1832 * guile/scm-value.c: Fix indentation.
1833 * h8300-tdep.c: Fix indentation.
1834 * hppa-linux-nat.c: Fix indentation.
1835 * hppa-linux-tdep.c: Fix indentation.
1836 * hppa-nbsd-nat.c: Fix indentation.
1837 * hppa-nbsd-tdep.c: Fix indentation.
1838 * hppa-obsd-nat.c: Fix indentation.
1839 * hppa-tdep.c: Fix indentation.
1840 * hppa-tdep.h: Fix indentation.
1841 * i386-bsd-nat.c: Fix indentation.
1842 * i386-darwin-nat.c: Fix indentation.
1843 * i386-darwin-tdep.c: Fix indentation.
1844 * i386-dicos-tdep.c: Fix indentation.
1845 * i386-gnu-nat.c: Fix indentation.
1846 * i386-linux-nat.c: Fix indentation.
1847 * i386-linux-tdep.c: Fix indentation.
1848 * i386-nto-tdep.c: Fix indentation.
1849 * i386-obsd-tdep.c: Fix indentation.
1850 * i386-sol2-nat.c: Fix indentation.
1851 * i386-tdep.c: Fix indentation.
1852 * i386-tdep.h: Fix indentation.
1853 * i386-windows-tdep.c: Fix indentation.
1854 * i387-tdep.c: Fix indentation.
1855 * i387-tdep.h: Fix indentation.
1856 * ia64-libunwind-tdep.c: Fix indentation.
1857 * ia64-libunwind-tdep.h: Fix indentation.
1858 * ia64-linux-nat.c: Fix indentation.
1859 * ia64-linux-tdep.c: Fix indentation.
1860 * ia64-tdep.c: Fix indentation.
1861 * ia64-tdep.h: Fix indentation.
1862 * ia64-vms-tdep.c: Fix indentation.
1863 * infcall.c: Fix indentation.
1864 * infcmd.c: Fix indentation.
1865 * inferior.c: Fix indentation.
1866 * infrun.c: Fix indentation.
1867 * iq2000-tdep.c: Fix indentation.
1868 * language.c: Fix indentation.
1869 * linespec.c: Fix indentation.
1870 * linux-fork.c: Fix indentation.
1871 * linux-nat.c: Fix indentation.
1872 * linux-tdep.c: Fix indentation.
1873 * linux-thread-db.c: Fix indentation.
1874 * lm32-tdep.c: Fix indentation.
1875 * m2-lang.c: Fix indentation.
1876 * m2-typeprint.c: Fix indentation.
1877 * m2-valprint.c: Fix indentation.
1878 * m32c-tdep.c: Fix indentation.
1879 * m32r-linux-tdep.c: Fix indentation.
1880 * m32r-tdep.c: Fix indentation.
1881 * m68hc11-tdep.c: Fix indentation.
1882 * m68k-bsd-nat.c: Fix indentation.
1883 * m68k-linux-nat.c: Fix indentation.
1884 * m68k-linux-tdep.c: Fix indentation.
1885 * m68k-tdep.c: Fix indentation.
1886 * machoread.c: Fix indentation.
1887 * macrocmd.c: Fix indentation.
1888 * macroexp.c: Fix indentation.
1889 * macroscope.c: Fix indentation.
1890 * macrotab.c: Fix indentation.
1891 * macrotab.h: Fix indentation.
1892 * main.c: Fix indentation.
1893 * mdebugread.c: Fix indentation.
1894 * mep-tdep.c: Fix indentation.
1895 * mi/mi-cmd-catch.c: Fix indentation.
1896 * mi/mi-cmd-disas.c: Fix indentation.
1897 * mi/mi-cmd-env.c: Fix indentation.
1898 * mi/mi-cmd-stack.c: Fix indentation.
1899 * mi/mi-cmd-var.c: Fix indentation.
1900 * mi/mi-cmds.c: Fix indentation.
1901 * mi/mi-main.c: Fix indentation.
1902 * mi/mi-parse.c: Fix indentation.
1903 * microblaze-tdep.c: Fix indentation.
1904 * minidebug.c: Fix indentation.
1905 * minsyms.c: Fix indentation.
1906 * mips-linux-nat.c: Fix indentation.
1907 * mips-linux-tdep.c: Fix indentation.
1908 * mips-nbsd-tdep.c: Fix indentation.
1909 * mips-tdep.c: Fix indentation.
1910 * mn10300-linux-tdep.c: Fix indentation.
1911 * mn10300-tdep.c: Fix indentation.
1912 * moxie-tdep.c: Fix indentation.
1913 * msp430-tdep.c: Fix indentation.
1914 * namespace.h: Fix indentation.
1915 * nat/fork-inferior.c: Fix indentation.
1916 * nat/gdb_ptrace.h: Fix indentation.
1917 * nat/linux-namespaces.c: Fix indentation.
1918 * nat/linux-osdata.c: Fix indentation.
1919 * nat/netbsd-nat.c: Fix indentation.
1920 * nat/x86-dregs.c: Fix indentation.
1921 * nbsd-nat.c: Fix indentation.
1922 * nbsd-tdep.c: Fix indentation.
1923 * nios2-linux-tdep.c: Fix indentation.
1924 * nios2-tdep.c: Fix indentation.
1925 * nto-procfs.c: Fix indentation.
1926 * nto-tdep.c: Fix indentation.
1927 * objfiles.c: Fix indentation.
1928 * objfiles.h: Fix indentation.
1929 * opencl-lang.c: Fix indentation.
1930 * or1k-tdep.c: Fix indentation.
1931 * osabi.c: Fix indentation.
1932 * osabi.h: Fix indentation.
1933 * osdata.c: Fix indentation.
1934 * p-lang.c: Fix indentation.
1935 * p-typeprint.c: Fix indentation.
1936 * p-valprint.c: Fix indentation.
1937 * parse.c: Fix indentation.
1938 * ppc-linux-nat.c: Fix indentation.
1939 * ppc-linux-tdep.c: Fix indentation.
1940 * ppc-nbsd-nat.c: Fix indentation.
1941 * ppc-nbsd-tdep.c: Fix indentation.
1942 * ppc-obsd-nat.c: Fix indentation.
1943 * ppc-ravenscar-thread.c: Fix indentation.
1944 * ppc-sysv-tdep.c: Fix indentation.
1945 * ppc64-tdep.c: Fix indentation.
1946 * printcmd.c: Fix indentation.
1947 * proc-api.c: Fix indentation.
1948 * producer.c: Fix indentation.
1949 * producer.h: Fix indentation.
1950 * prologue-value.c: Fix indentation.
1951 * prologue-value.h: Fix indentation.
1952 * psymtab.c: Fix indentation.
1953 * python/py-arch.c: Fix indentation.
1954 * python/py-bpevent.c: Fix indentation.
1955 * python/py-event.c: Fix indentation.
1956 * python/py-event.h: Fix indentation.
1957 * python/py-finishbreakpoint.c: Fix indentation.
1958 * python/py-frame.c: Fix indentation.
1959 * python/py-framefilter.c: Fix indentation.
1960 * python/py-inferior.c: Fix indentation.
1961 * python/py-infthread.c: Fix indentation.
1962 * python/py-objfile.c: Fix indentation.
1963 * python/py-prettyprint.c: Fix indentation.
1964 * python/py-registers.c: Fix indentation.
1965 * python/py-signalevent.c: Fix indentation.
1966 * python/py-stopevent.c: Fix indentation.
1967 * python/py-stopevent.h: Fix indentation.
1968 * python/py-threadevent.c: Fix indentation.
1969 * python/py-tui.c: Fix indentation.
1970 * python/py-unwind.c: Fix indentation.
1971 * python/py-value.c: Fix indentation.
1972 * python/py-xmethods.c: Fix indentation.
1973 * python/python-internal.h: Fix indentation.
1974 * python/python.c: Fix indentation.
1975 * ravenscar-thread.c: Fix indentation.
1976 * record-btrace.c: Fix indentation.
1977 * record-full.c: Fix indentation.
1978 * record.c: Fix indentation.
1979 * reggroups.c: Fix indentation.
1980 * regset.h: Fix indentation.
1981 * remote-fileio.c: Fix indentation.
1982 * remote.c: Fix indentation.
1983 * reverse.c: Fix indentation.
1984 * riscv-linux-tdep.c: Fix indentation.
1985 * riscv-ravenscar-thread.c: Fix indentation.
1986 * riscv-tdep.c: Fix indentation.
1987 * rl78-tdep.c: Fix indentation.
1988 * rs6000-aix-tdep.c: Fix indentation.
1989 * rs6000-lynx178-tdep.c: Fix indentation.
1990 * rs6000-nat.c: Fix indentation.
1991 * rs6000-tdep.c: Fix indentation.
1992 * rust-lang.c: Fix indentation.
1993 * rx-tdep.c: Fix indentation.
1994 * s12z-tdep.c: Fix indentation.
1995 * s390-linux-tdep.c: Fix indentation.
1996 * score-tdep.c: Fix indentation.
1997 * ser-base.c: Fix indentation.
1998 * ser-mingw.c: Fix indentation.
1999 * ser-uds.c: Fix indentation.
2000 * ser-unix.c: Fix indentation.
2001 * serial.c: Fix indentation.
2002 * sh-linux-tdep.c: Fix indentation.
2003 * sh-nbsd-tdep.c: Fix indentation.
2004 * sh-tdep.c: Fix indentation.
2005 * skip.c: Fix indentation.
2006 * sol-thread.c: Fix indentation.
2007 * solib-aix.c: Fix indentation.
2008 * solib-darwin.c: Fix indentation.
2009 * solib-frv.c: Fix indentation.
2010 * solib-svr4.c: Fix indentation.
2011 * solib.c: Fix indentation.
2012 * source.c: Fix indentation.
2013 * sparc-linux-tdep.c: Fix indentation.
2014 * sparc-nbsd-tdep.c: Fix indentation.
2015 * sparc-obsd-tdep.c: Fix indentation.
2016 * sparc-ravenscar-thread.c: Fix indentation.
2017 * sparc-tdep.c: Fix indentation.
2018 * sparc64-linux-tdep.c: Fix indentation.
2019 * sparc64-nbsd-tdep.c: Fix indentation.
2020 * sparc64-obsd-tdep.c: Fix indentation.
2021 * sparc64-tdep.c: Fix indentation.
2022 * stabsread.c: Fix indentation.
2023 * stack.c: Fix indentation.
2024 * stap-probe.c: Fix indentation.
2025 * stubs/ia64vms-stub.c: Fix indentation.
2026 * stubs/m32r-stub.c: Fix indentation.
2027 * stubs/m68k-stub.c: Fix indentation.
2028 * stubs/sh-stub.c: Fix indentation.
2029 * stubs/sparc-stub.c: Fix indentation.
2030 * symfile-mem.c: Fix indentation.
2031 * symfile.c: Fix indentation.
2032 * symfile.h: Fix indentation.
2033 * symmisc.c: Fix indentation.
2034 * symtab.c: Fix indentation.
2035 * symtab.h: Fix indentation.
2036 * target-float.c: Fix indentation.
2037 * target.c: Fix indentation.
2038 * target.h: Fix indentation.
2039 * tic6x-tdep.c: Fix indentation.
2040 * tilegx-linux-tdep.c: Fix indentation.
2041 * tilegx-tdep.c: Fix indentation.
2042 * top.c: Fix indentation.
2043 * tracefile-tfile.c: Fix indentation.
2044 * tracepoint.c: Fix indentation.
2045 * tui/tui-disasm.c: Fix indentation.
2046 * tui/tui-io.c: Fix indentation.
2047 * tui/tui-regs.c: Fix indentation.
2048 * tui/tui-stack.c: Fix indentation.
2049 * tui/tui-win.c: Fix indentation.
2050 * tui/tui-winsource.c: Fix indentation.
2051 * tui/tui.c: Fix indentation.
2052 * typeprint.c: Fix indentation.
2053 * ui-out.h: Fix indentation.
2054 * unittests/copy_bitwise-selftests.c: Fix indentation.
2055 * unittests/memory-map-selftests.c: Fix indentation.
2056 * utils.c: Fix indentation.
2057 * v850-tdep.c: Fix indentation.
2058 * valarith.c: Fix indentation.
2059 * valops.c: Fix indentation.
2060 * valprint.c: Fix indentation.
2061 * valprint.h: Fix indentation.
2062 * value.c: Fix indentation.
2063 * value.h: Fix indentation.
2064 * varobj.c: Fix indentation.
2065 * vax-tdep.c: Fix indentation.
2066 * windows-nat.c: Fix indentation.
2067 * windows-tdep.c: Fix indentation.
2068 * xcoffread.c: Fix indentation.
2069 * xml-syscall.c: Fix indentation.
2070 * xml-tdesc.c: Fix indentation.
2071 * xstormy16-tdep.c: Fix indentation.
2072 * xtensa-config.c: Fix indentation.
2073 * xtensa-linux-nat.c: Fix indentation.
2074 * xtensa-linux-tdep.c: Fix indentation.
2075 * xtensa-tdep.c: Fix indentation.
2076
e1f57067
AB
20772020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2078 Craig Blackmore <craig.blackmore@embecosm.com>
2079
2080 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2081 as an unsigned value.
2082
ae7754b2
TT
20832020-11-01 Tom Tromey <tom@tromey.com>
2084
2085 * dbxread.c (dbx_end_psymtab): Update.
2086 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2087 (build_type_psymtabs_reader): Update.
2088 * xcoffread.c (xcoff_end_psymtab): Update.
2089 * ctfread.c (scan_partial_symbols): Update.
2090 * psymtab.c (sort_pst_symbols): Remove.
2091 (partial_symtab::end): Rename from end_psymtab_common. Inline
2092 sort_pst_symbols.
2093 * psympriv.h (struct partial_symtab) <end>: New method.
2094 (end_psymtab_common): Don't declare.
2095
0684bb51
TT
20962020-11-01 Tom Tromey <tom@tromey.com>
2097
2098 * symmisc.c (count_psyms): New function.
2099 (print_objfile_statistics): Use it.
2100 * psymtab.c (append_psymbol_to_list): Remove.
2101 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2102 * objfiles.h (struct objstats) <n_psyms>: Remove.
2103
089002bb
TT
21042020-11-01 Tom Tromey <tom@tromey.com>
2105
2106 * dbxread.c (dbx_end_psymtab): Update.
2107 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2108 (build_type_psymtabs_reader): Update.
2109 * xcoffread.c (xcoff_end_psymtab): Update.
2110 * ctfread.c (scan_partial_symbols): Update.
2111 * psympriv.h (end_psymtab_common): Update.
2112 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2113 (sort_pst_symbols): Likewise.
2114
525454d6
TT
21152020-11-01 Tom Tromey <tom@tromey.com>
2116
2117 * dbxread.c (dbx_symfile_read): Update.
2118 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2119 * xcoffread.c (xcoff_initial_scan): Update.
2120 * psympriv.h (init_psymbol_list): Don't declare.
2121 * psymtab.c (init_psymbol_list): Remove.
2122
60bd1d53
JB
21232020-11-01 Joel Brobecker <brobecker@adacore.com>
2124
2125 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2126 gnat_encoded_fixed_type_info. Update all callers.
2127
db99d0d0
JB
21282020-11-01 Joel Brobecker <brobecker@adacore.com>
2129
2130 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2131 line too long.
2132
75f24e86
JB
21332020-11-01 Joel Brobecker <brobecker@adacore.com>
2134
2135 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2136 cast_from_fixed. Update all callers.
2137 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2138 Update all callers.
2139 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2140 Update all callers.
2141 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2142 ada_scaling_factor.
2143 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2144 to print_gnat_encoded_fixed_point_type.
2145 * ada-valprint.c: Likewise.
2146
4f0469cd
AB
21472020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2148
2149 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2150 (debug_prefixed_printf): Add check of debug_displaced flag.
2151 * linux-nat.c (linux_nat_debug_printf): Add check of
2152 debug_linux_nat flag.
2153
17417fb0
SM
21542020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2155
2156 * infrun.c (infrun_debug_printf_1): Remove.
2157 (displaced_debug_printf_1): Remove.
2158 (stop_all_threads): Use debug_prefixed_printf.
2159 * infrun.h (infrun_debug_printf_1): Remove.
2160 (infrun_debug_printf): Use debug_prefixed_printf.
2161 (displaced_debug_printf_1): Remove.
2162 (displaced_debug_printf): Use debug_prefixed_printf.
2163 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2164 (linux_nat_debug_printf): Use debug_prefixed_printf.
2165
ad6dba1c
SM
21662020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2167
2168 * configure: Re-generate.
2169 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2170 AC_LANG_PROGRAM.
2171
b6fb30ed
SM
21722020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2173
2174 * configure: Re-generate.
2175
5164c117
SM
21762020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2177
2178 * configure: Re-generate.
2179
864ca435
SM
21802020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2181
2182 * configure: Re-generate.
2183
b9442ec1
SM
21842020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2185
2186 * configure: Re-generate.
2187
294f2697
SM
21882020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2189
2190 * acinclude.m4: Modernize.
2191 * configure: Re-generate.
2192
5593a99a
SM
21932020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2194
2195 * configure.ac: Modernize.
2196 * configure: Re-generate.
2197
e41fda1d
SM
21982020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2199
2200 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2201 * configure: Re-generate.
2202 * configure.ac: Remove AM_PROG_CC_STDC.
2203
91e1a0ed
SM
22042020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2205
2206 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2207 AC_CANONICAL_SYSTEM.
2208 * configure: Re-generate.
2209
136821d9
SM
22102020-10-30 Simon Marchi <simon.marchi@efficios.com>
2211
2212 * infrun.h (displaced_debug_printf): New macro. Replace
2213 displaced debug prints throughout to use it.
2214 (displaced_debug_printf_1): New declaration.
2215 (displaced_step_dump_bytes): Return string, remove ui_file
2216 parameter, update all callers.
2217 * infrun.c (displaced_debug_printf_1): New function.
2218 (displaced_step_dump_bytes): Return string, remove ui_file
2219 parameter
2220
aa2045e7
SM
22212020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2222
2223 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2224
b1ec2735
TT
22252020-10-30 Tom Tromey <tromey@adacore.com>
2226
2227 * Makefile.in (stamp-init): Depend on config.status.
2228
b78b3a29
TBA
22292020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2230
2231 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2232
d70bdd3c
PA
22332020-10-30 Pedro Alves <pedro@palves.net>
2234
2235 * thread.c (lookup_selected_frame): Move ...
2236 * frame.c (lookup_selected_frame): ... here.
2237
79952e69
PA
22382020-10-30 Pedro Alves <pedro@palves.net>
2239
2240 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2241 * frame.c
2242 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2243 Use save_selected_frame. Save language as well.
2244 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2245 Use restore_selected_frame, and restore language as well.
2246 (selected_frame_id, selected_frame_level): New.
2247 (selected_frame): Update comments.
2248 (save_selected_frame, restore_selected_frame): New.
2249 (get_selected_frame): Use lookup_selected_frame.
2250 (get_selected_frame_if_set): Delete.
2251 (select_frame): Record selected_frame_level and selected_frame_id.
2252 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2253 fields.
2254 (get_selected_frame): Make 'message' parameter optional.
2255 (get_selected_frame_if_set): Delete declaration.
2256 (select_frame): Update comments.
2257 (save_selected_frame, restore_selected_frame)
2258 (lookup_selected_frame): Declare.
2259 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2260 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2261 New field.
2262 (save_infcall_control_state): Use save_selected_frame.
2263 (restore_selected_frame): Delete.
2264 (restore_infcall_control_state): Use restore_selected_frame.
2265 * stack.c (select_frame_command_core, frame_command_core): Use
2266 get_selected_frame.
2267 * thread.c (restore_selected_frame): Rename to ...
2268 (lookup_selected_frame): ... this and make extern. Select the
2269 current frame if the frame level is -1.
2270 (scoped_restore_current_thread::restore): Also restore the
2271 language.
2272 (scoped_restore_current_thread::~scoped_restore_current_thread):
2273 Don't try/catch.
2274 (scoped_restore_current_thread::scoped_restore_current_thread):
2275 Save the language as well. Use save_selected_frame.
2276
58103c33
SM
22772020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2278
2279 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2280 documentation.
2281 * gdbarch.h: Re-generate.
2282
40a53766
SM
22832020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2284
2285 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2286 parameter.
2287 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2288 Likewise.
2289 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2290 Likewise.
2291 * arch-utils.c (default_displaced_step_hw_singlestep):
2292 Likewise.
2293 * arch-utils.h (default_displaced_step_hw_singlestep):
2294 Likewise.
2295 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2296 Likewise.
2297 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2298 Likewise.
2299 * gdbarch.c: Re-generate.
2300 * gdbarch.h: Re-generate.
2301 * infrun.c (resume_1): Adjust.
2302
8407f91b
TT
23032020-10-29 Tom Tromey <tom@tromey.com>
2304
2305 * progspace.c (program_space::~program_space): Don't call
2306 exec_close.
2307
5008b3b2
TT
23082020-10-29 Tom Tromey <tom@tromey.com>
2309
2310 * exec.c (exec_target::close): Don't change current program
2311 space.
2312
d9eebde0
TT
23132020-10-29 Tom Tromey <tom@tromey.com>
2314
2315 * symfile.c (add_symbol_file_command): Update.
2316 * exec.c (program_space::add_target_sections): Rename.
2317 * symfile-mem.c (symbol_file_add_from_memory): Update.
2318 * progspace.h (struct program_space) <add_target_sections>:
2319 Declare new overload.
2320 * exec.h (add_target_sections_of_objfile): Don't declare.
2321
3769e227
TT
23222020-10-29 Tom Tromey <tom@tromey.com>
2323
2324 * solib.c (solib_map_sections): Update.
2325 * exec.c (program_space::add_target_sections): Now a method.
2326 (exec_file_attach): Update.
2327 * exec.h (add_target_sections): Don't declare.
2328 * progspace.h (struct program_space) <add_target_sections>:
2329 Declare.
2330
2a3f84af
TT
23312020-10-29 Tom Tromey <tom@tromey.com>
2332
2333 * progspace.h (struct program_space) <remove_target_sections>:
2334 Declare.
2335 * exec.c (program_space::remove_target_sections): Now a method.
2336 * exec.h (remove_target_sections): Don't declare.
2337
004eecfd
TT
23382020-10-29 Tom Tromey <tom@tromey.com>
2339
2340 * inferior.c (delete_inferior): Update.
2341 * progspace.c (program_space::empty): Rename from
2342 program_space_empty_p. Return bool.
2343 * progspace.h (struct program_space) <empty>: New method.
2344 (program_space_empty_p): Don't declare.
2345
e39fb971
TT
23462020-10-29 Tom Tromey <tom@tromey.com>
2347
2348 * progspace.c (program_space::~program_space): Don't call
2349 clear_program_space_solib_cache.
2350 (program_space::clear_solib_cache): Rename from
2351 clear_solib_cache.
2352 * solib.c (handle_solib_event): Update.
2353 * progspace.h (struct program_space) <clear_solib_cache>: New
2354 method.
2355 (clear_program_space_solib_cache): Don't declare.
2356
a42d7dd8
TT
23572020-10-29 Tom Tromey <tom@tromey.com>
2358
2359 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2360 * target.c (info_target_command): Update.
2361 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2362 (symbol_file_clear, reread_symbols): Update.
2363 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2364 * stabsread.c (scan_file_globals): Update.
2365 * solib.c (update_solib_list): Update.
2366 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2367 (svr4_fetch_objfile_link_map, enable_break)
2368 (svr4_relocate_main_executable)
2369 (svr4_iterate_over_objfiles_in_search_order): Update.
2370 * solib-frv.c (lm_base, enable_break)
2371 (frv_relocate_main_executable): Update.
2372 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2373 (frv_fetch_objfile_link_map): Update.
2374 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2375 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2376 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2377 * remote.c (remote_target::get_offsets): Update.
2378 (remote_target::start_remote)
2379 (extended_remote_target::post_attach): Update.
2380 * objfiles.c (entry_point_address_query): Update.
2381 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2382 * minsyms.c (get_symbol_leading_char): Update.
2383 * frame.c (inside_main_func): Update.
2384 * progspace.h (symfile_objfile): Remove macro.
2385
19f6550e
TT
23862020-10-29 Tom Tromey <tom@tromey.com>
2387
2388 * exec.c (exec_file_attach): Update.
2389 * progspace.c (program_space::exec_close): Update.
2390 * progspace.h (struct program_space) <ebfd>: Now a
2391 gdb_bfd_ref_ptr.
2392 <set_exec_bfd>: Change argument type.
2393 <exec_bfd>: Update.
2394
7e10abd1
TT
23952020-10-29 Tom Tromey <tom@tromey.com>
2396
2397 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2398 * symfile.c (reread_symbols): Update.
2399 * symfile-mem.c (add_symbol_file_from_memory_command)
2400 (add_vsyscall_page): Update.
2401 * source-cache.c (source_cache::get_plain_source_lines): Update.
2402 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2403 (svr4_current_sos_direct, svr4_exec_displacement)
2404 (svr4_relocate_main_executable): Update.
2405 (svr4_iterate_over_objfiles_in_search_order): Update.
2406 * solib-frv.c (enable_break2, enable_break): Update.
2407 * solib-dsbt.c (lm_base, enable_break): Update.
2408 * solib-darwin.c (find_program_interpreter)
2409 (darwin_solib_create_inferior_hook): Update.
2410 * sol-thread.c (rw_common, ps_pdmodel): Update.
2411 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2412 * remote.c (compare_sections_command)
2413 (remote_target::trace_set_readonly_regions): Update.
2414 * remote-sim.c (get_sim_inferior_data)
2415 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2416 (gdbsim_target_open, gdbsim_target::files_info): Update.
2417 * exec.h (exec_bfd): Remove macro.
2418 * progspace.c (initialize_progspace): Update.
2419 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2420 Update.
2421 * nto-procfs.c (nto_procfs_target::post_attach)
2422 (nto_procfs_target::create_inferior): Update.
2423 * maint.c (maintenance_info_sections): Update.
2424 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2425 Update.
2426 * infcmd.c (post_create_inferior): Update.
2427 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2428 (objfile_find_memory_regions): Update.
2429 * exec.c (validate_exec_file, exec_file_attach)
2430 (exec_read_partial_read_only, print_section_info): Update.
2431 * corelow.c (core_target_open): Update.
2432 * corefile.c (reopen_exec_file, validate_files): Update.
2433 * arm-tdep.c (gdb_print_insn_arm): Update.
2434 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2435 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2436 methods.
2437
b55221ab
TT
24382020-10-29 Tom Tromey <tom@tromey.com>
2439
2440 * progspace.h (current_target_sections): Remove macro.
2441 * solib-svr4.c (scan_dyntag): Update.
2442 * solib-dsbt.c (scan_dyntag): Update.
2443 * exec.c (exec_target::close): Update.
2444 (add_target_sections, add_target_sections_of_objfile)
2445 (remove_target_sections, exec_target::get_section_table)
2446 (exec_target::files_info, set_section_command)
2447 (exec_set_section_address, exec_target::has_memory)
2448 (exec_target::has_memory): Update.
2449
5a36e715
TT
24502020-10-29 Tom Tromey <tom@tromey.com>
2451
2452 * source-cache.c (source_cache::get_plain_source_lines): Use
2453 current_program_space.
2454 * corefile.c (reopen_exec_file): Use current_program_space.
2455 * exec.c (exec_file_attach): Use current_program_space.
2456 * exec.h (exec_bfd_mtime): Remove.
2457
784c8592
TT
24582020-10-29 Tom Tromey <tom@tromey.com>
2459
2460 * gcore.c (default_gcore_mach): Remove.
2461 (create_gcore_bfd): Update.
2462
8a4f1402
TT
24632020-10-29 Tom Tromey <tom@tromey.com>
2464
2465 * progspace.c (program_space::exec_close): New method, from
2466 exec_close in exec.c.
2467 * exec.c (exec_close): Move to progspace.c.
2468 (exec_target::close, exec_file_attach): Update.
2469 * progspace.h (struct program_space) <exec_close>: Declare
2470 method.
2471
c20cb686
TT
24722020-10-29 Tom Tromey <tom@tromey.com>
2473
2474 * progspace.h (struct program_space) <exec_filename>: Rename from
2475 pspace_exec_filename. Now a unique_xmalloc_ptr.
2476 * inferior.c (print_selected_inferior): Update.
2477 (print_inferior): Update.
2478 * mi/mi-main.c (print_one_inferior): Update.
2479 * exec.h (exec_filename): Remove macro.
2480 * corefile.c (get_exec_file): Update.
2481 * exec.c (exec_close): Update.
2482 (exec_file_attach): Update.
2483 * progspace.c (clone_program_space): Update.
2484 (print_program_space): Update.
2485
6be2a9ab
TT
24862020-10-29 Tom Tromey <tom@tromey.com>
2487
2488 * target-section.h (struct target_section): Add constructor.
2489 * exec.c (build_section_table, add_target_sections_of_objfile):
2490 Update.
2491 * corelow.c (core_target::build_file_mappings): Update.
2492
cfaa8f76
TBA
24932020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2494
2495 PR gdb/19318
2496 * inferior.c (detach_inferior_command): Restore the current thread.
2497 (kill_inferior_command): Ditto.
2498
1b00ef06
TV
24992020-10-28 Tom de Vries <tdevries@suse.de>
2500
2501 PR symtab/26772
2502 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2503 map, check it in the "best match" loop.
2504
7f40ce1a
SM
25052020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2506
2507 * m32c-tdep.c: Remove unused includes.
2508
5eb9e3f5
SM
25092020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2510
2511 * xtensa-tdep.c: Remove includes.
2512
b1d4d8d1
TBA
25132020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2514
2515 * breakpoint.c (struct condition_command_opts): New struct.
2516 (condition_command_option_defs): New static global.
2517 (make_condition_command_options_def_group): New function.
2518 (condition_completer): Update to consider the '-force' flag.
2519 (condition_command): Use gdb::option for the '-force' flag.
2520
bd24c5d6
TV
25212020-10-27 Tom de Vries <tdevries@suse.de>
2522
2523 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2524 symbols in section check.
2525
61eb46a4
TV
25262020-10-27 Tom de Vries <tdevries@suse.de>
2527
2528 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2529
733d554a
TBA
25302020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2531
2532 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2533 * breakpoint.c: Update the help text of the 'condition' and 'break'
2534 commands.
2535 (set_breakpoint_condition): Take a new bool parameter
2536 to control whether condition definition should be forced even when
2537 the condition expression is invalid in all of the current locations.
2538 (condition_command): Update the call to 'set_breakpoint_condition'.
2539 (find_condition_and_thread): Take the "-force-condition" flag into
2540 account.
2541 * linespec.c (linespec_keywords): Add "-force-condition" as an
2542 element.
2543 (FORCE_KEYWORD_INDEX): New #define.
2544 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2545 as a keyword.
2546 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2547 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2548 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2549 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2550
b5fa468f
TBA
25512020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2552
2553 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2554 * breakpoint.c (set_breakpoint_location_condition): New function.
2555 (set_breakpoint_condition): Disable a breakpoint location if parsing
2556 the condition string gives an error.
2557 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2558 (build_target_condition_list): Ditto.
2559 (build_target_command_list): Ditto.
2560 (build_bpstat_chain): Ditto.
2561 (print_one_breakpoint_location): Ditto.
2562 (print_one_breakpoint): Ditto.
2563 (breakpoint_1): Ditto.
2564 (bp_location::bp_location): Ditto.
2565 (locations_are_equal): Ditto.
2566 (update_breakpoint_locations): Ditto.
2567 (enable_disable_bp_num_loc): Ditto.
2568 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2569 (find_condition_and_thread_for_sals): New static function.
2570 (create_breakpoint): Call find_condition_and_thread_for_sals.
2571 (location_to_sals): Call find_condition_and_thread_for_sals instead
2572 of find_condition_and_thread.
2573
1c47ec3e
TV
25742020-10-26 Tom de Vries <tdevries@suse.de>
2575
2576 * dwarf2/read.c (process_full_comp_unit): Call
2577 dwarf2_find_base_address.
2578
6390859c
TT
25792020-10-26 Tom Tromey <tromey@adacore.com>
2580
2581 * gdbtypes.c (create_range_type): Revert previous patch. Add
2582 comment.
2583
d744f0f9
PA
25842020-10-26 Pedro Alves <pedro@palves.net>
2585
2586 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2587 (my_waitpid): Use gdb::handle_eintr.
2588
006811bc
SM
25892020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2590
2591 * acinclude.m4: Update ptrace.m4 path.
2592 * ptrace.m4: Moved to gdbsupport.
2593
c75e31a1
SM
25942020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2595
2596 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2597 instead of target_gdbarch.
2598
32495661
SM
25992020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2600
2601 * jit.c (jit_reader_load_command): Pass current inferior.
2602 (jit_inferior_init): Change parameter type to inferior, use it.
2603 (jit_inferior_created): Remove.
2604 (jit_inferior_created_hook): Pass inferior parameter down.
2605 (_initialize_jit): Use jit_inferior_created_hook instead of
2606 jit_inferior_created.
2607 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2608 * infrun.c (follow_exec): Pass inferior to
2609 jit_inferior_created_hook.
2610
3f66685e
SM
26112020-10-24 Simon Marchi <simon.marchi@efficios.com>
2612
2613 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2614 parameter and use it.
2615 (thread_db_inferior_created): Pass inferior argument.
2616
a0ff652f
SM
26172020-10-24 Simon Marchi <simon.marchi@efficios.com>
2618
2619 * aix-thread.c (aix_thread_inferior_created): Add inferior
2620 parameter.
2621 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2622 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2623 * jit.c (jit_inferior_created): Likewise.
2624 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2625 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2626 * observable.h (inferior_created): Likewise.
2627 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2628 * symfile-mem.c (add_vsyscall_page): Likewise.
2629 * infcmd.c (post_create_inferior): Pass inferior argument.
2630
3c67532c
JB
26312020-10-24 Joel Brobecker <brobecker@adacore.com>
2632
2633 GDB 10.1 released.
2634
8747316e
JB
26352020-10-23 Joel Brobecker <brobecker@adacore.com>
2636
2637 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2638 to ada_check_typedef.
2639
1a0ea399
AB
26402020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2641
2642 * f-exp.y (f_parse): Rename to...
2643 (f_language::parser): ...this.
2644 * f-lang.c (f_get_encoding): Rename to...
2645 (f_language::get_encoding): ...this.
2646 (f_op_print_tab): Rename to...
2647 (f_language::op_print_tab): ...this.
2648 (exp_descriptor_f): Rename to...
2649 (f_language::exp_descriptor_tab): ...this.
2650 (class f_language): Moved to f-lang.h.
2651 (f_language::language_arch_info): New function, moved out of class
2652 declaration.
2653 (f_language::search_name_hash): Likewise.
2654 (f_language::lookup_symbol_nonlocal): Likewise.
2655 (f_language::get_symbol_name_matcher_inner): Likewise.
2656 * f-lang.h: Add 'valprint.h' include.
2657 (class f_language): Moved here from f-lang.c.
2658 * f-typeprint.c (f_type_print_args): Delete commented out
2659 declaration.
2660 (f_print_typedef): Rename to...
2661 (f_language::print_typedef): ...this.
2662 (f_print_type): Rename to...
2663 (f_language::print_type): ...this.
2664 (f_type_print_varspec_prefix): Delete declaration and rename to...
2665 (f_language::f_type_print_varspec_prefix): ...this.
2666 (f_type_print_varspec_suffix): Delete declaration and rename to...
2667 (f_language::f_type_print_varspec_suffix): ...this.
2668 (f_type_print_base): Delete declaration and rename to...
2669 (f_language::f_type_print_base): ...this.
2670 * f-valprint.c (f_value_print_inner): Rename to...
2671 (f_language::value_print_inner): ...this.
2672 * parse.c: Delete 'f-lang.h' include.
2673
88cefd9b
AB
26742020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2675
2676 * language.h (language_defn::print_type): Add variable names in
2677 declaration, and update header comment.
2678
5399db93
AB
26792020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2680
2681 * ada-lang.c (ada_language::demangle): Rename to...
2682 (ada_language::demangle_symbol): ...this.
2683 * c-lang.c (cplus_language::demangle): Rename to...
2684 (cplus_language::demangle_symbol): ...this.
2685 * d-lang.c (d_language::demangle): Rename to...
2686 (d_language::demangle_symbol): ...this.
2687 * f-lang.c (f_language::demangle): Rename to...
2688 (f_language::demangle_symbol): ...this.
2689 * go-lang.c (go_language::demangle): Rename to...
2690 (go_language::demangle_symbol): ...this.
2691 * language.c (language_demangle): Update call to demangle_symbol.
2692 (auto_or_unknown_language::demangle): Rename to...
2693 (auto_or_unknown_language::demangle_symbol): ...this.
2694 * language.h (language_defn::demangle): Rename to...
2695 (language_defn::demangle_symbol): ...this.
2696 * objc-lang.c (objc_language::demangle): Rename to...
2697 (objc_language::demangle_symbol): ...this.
2698 * rust-lang.c (rust_language::demangle): Rename to...
2699 (rust_language::demangle_symbol): ...this.
2700
4b2f86ef
AB
27012020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2702
2703 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2704 (iterate_over_file_blocks): Replace use of macro with the macros
2705 definition.
2706
e74b39de
AB
27072020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2708
2709 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2710 * valprint.c (maybe_print_array_index): Replace use of macro with
2711 the macros definition.
2712
00c696a6
AB
27132020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2714
2715 * ada-lang.c (ada_language::print_array_index): Call value_print
2716 directly.
2717 * language.c (language_defn::print_array_index): Likewise.
2718 * language.h (LA_VALUE_PRINT): Delete.
2719 * valprint.c (value_print): Call value_print on the
2720 current_language directly.
2721
d3b67c56
AB
27222020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2723
2724 * language.h (LA_PRINT_TYPEDEF): Delete.
2725 * typeprint.c (typedef_print): Call print_typedef directly on the
2726 current_language object.
2727
790e2a12
AB
27282020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2729
2730 * m2-exp.y (m2_parse): Rename to...
2731 (m2_language::parser): ...this. Update function signature.
2732 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2733 (m2_op_print): Rename to...
2734 (m2_language::op_print_tab): ...this, and make const.
2735 (exp_descriptor_modula2): Rename to...
2736 (m2_language::exp_descriptor_modula2): ...this.
2737 (class m2_language): Move to m2-lang.h.
2738 (m2_language::language_arch_info): New function, moved out of
2739 class declaration.
2740 (m2_language::printchar): New function, body from m2_printchar.
2741 (m2_language::printstr): New function, moved out of class
2742 declaration.
2743 (m2_language::emitchar): Likewise.
2744 * m2-lang.h (m2_parse): Delete declaration.
2745 (m2_print_typedef): Delete declaration.
2746 (m2_value_print_inner): Delete declaration.
2747 (class m2_language): Class declaration moved from m2-lang.c,
2748 larger functions are left in m2-lang.c.
2749 * m2-typeprint.c (m2_print_typedef): Rename to...
2750 (m2_language::print_typedef): ...this, and update function
2751 signature.
2752 * m2-valprint.c (m2_value_print_inner): Rename to...
2753 (m2_language::value_print_inner): ...this, replace use of
2754 LA_PRINT_STRING with a direct call to printstr member function,
2755 and update recursive call.
2756
b01175fc
AB
27572020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2758
2759 * language.c (default_is_string_type_p): Delete, implementation
2760 moved into auto_or_unknown_language::is_string_type_p.
2761 (unk_op_print_tab): Moved into
2762 auto_or_unknown_language::opcode_print_table.
2763 (unknown_language_arch_info): Delete, implementation moved into
2764 auto_or_unknown_language::language_arch_info.
2765 (class auto_or_unknown_language): New class, member functions
2766 copied from unknown_language class, with some updates.
2767 (class unknown_language): Most member functions moved into
2768 auto_or_unknown_language class. Inherit from
2769 auto_or_unknown_language class.
2770 (class auto_language): Inherit from auto_or_unknown_language.
2771 Delete most member functions.
2772
1a97fe8c
HD
27732020-10-22 Hannes Domani <ssbssa@yahoo.de>
2774
2775 * stabsread.c (read_member_functions): Remove gdb_assert.
2776
6b9d0dfd
HD
27772020-10-22 Hannes Domani <ssbssa@yahoo.de>
2778
2779 * gdbtypes.c (init_complex_type): Check target type name.
2780
4b4bb603
SM
27812020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2782
2783 * target-debug.h (target_debug_print_struct_target_ops_p):
2784 Remove.
2785 (target_debug_print_async_callback_ftype_p): Remove.
2786 (target_debug_print_struct_trace_state_variable_p): Remove.
2787 (target_debug_print_struct_traceframe_info_p): Remove.
2788 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2789 (target_debug_print_enum_btrace_format): Remove.
2790 (target_debug_print_enum_info_proc_what): Remove.
2791 (target_debug_print_thread_info_pp): Remove.
2792
24f5300a
SM
27932020-10-22 Simon Marchi <simon.marchi@efficios.com>
2794
2795 * target.h (struct target_ops) <make_corefile_notes>:
2796 Change return type to unique pointer.
2797 * target.c (dummy_make_corefile_notes): Likewise.
2798 * exec.c (struct exec_target) <make_corefile_notes>:
2799 Likewise.
2800 (exec_target::make_corefile_notes): Likewise.
2801 * procfs.c (class procfs_target) <make_corefile_notes>:
2802 Likewise.
2803 (procfs_do_thread_registers): Adjust to unique pointer.
2804 (struct procfs_corefile_thread_data): Add constructor.
2805 <note_data>: Change type to unique pointer.
2806 (procfs_corefile_thread_callback): Adjust to unique pointer.
2807 (procfs_target::make_corefile_notes): Change return type to
2808 unique pointer.
2809 * target-delegates.c: Re-generate.
2810 * gcore.c (write_gcore_file_1): Adjust.
2811 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2812 New.
2813
5fb4027f
TV
28142020-10-22 Tom de Vries <tdevries@suse.de>
2815
2816 * block.c (find_block_in_blockvector): Make sure the returned block
2817 contains pc.
2818
4a636814
SM
28192020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2820
2821 PR gdb/26693
2822 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2823 parameter.
2824 (load_cu): Pass existing CU.
2825 (process_imported_unit_die): Likewise.
2826 (follow_die_offset): Likewise.
2827
1bd57575
LM
28282020-10-22 Luis Machado <luis.machado@linaro.org>
2829
2830 * corelow.c (core_target::xfer_partial): Also check for an empty
2831 m_core_unavailable_mappings vector.
2832
6b4c676c
AB
28332020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2834
2835 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2836 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2837 * f-exp.y (arglist): Allow for a series of subranges.
2838 (subrange): Add cases for subranges with strides.
2839 * f-lang.c (value_f90_subarray): Catch use of array strides and
2840 throw an error.
2841 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2842
f2d8e4c5
AB
28432020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2844
2845 * expprint.c (print_subexp_standard): Change enum range_type to
2846 range_flag and rename variables to match.
2847 (dump_subexp_body_standard): Likewise.
2848 * expression.h (enum range_type): Rename to...
2849 (enum range_flag): ...this.
2850 (range_types): Rename to...
2851 (range_flags): ...this.
2852 * f-lang.c (value_f90_subarray): Change enum range_type to
2853 range_flag and rename variables to match.
2854 * parse.c (operator_length_standard): Likewise.
2855 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2856 range_type to range_flag.
2857 * rust-lang.c (rust_evaluate_funcall): Likewise.
2858 (rust_range): Likewise.
2859 (rust_compute_range): Likewise.
2860 (rust_subscript): Likewise.
2861
2f1b18db
AB
28622020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2863
2864 * expprint.c (print_subexp_standard): Update to reflect changes to
2865 enum range_type.
2866 (dump_subexp_body_standard): Likewise.
2867 * expression.h (enum range_type): Convert to a bit field enum, and
2868 make the enum unsigned.
2869 * f-exp.y (subrange): Update to reflect changes to enum
2870 range_type.
2871 * f-lang.c (value_f90_subarray): Likewise.
2872 * parse.c (operator_length_standard): Likewise.
2873 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2874 * rust-lang.c (rust_range): Likewise.
2875 (rust_compute_range): Likewise.
2876 (rust_subscript): Likewise.
2877
a46d1843
SM
28782020-10-21 Simon Marchi <simon.marchi@efficios.com>
2879
2880 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2881 (displaced_step_in_progress): Fix comment.
2882
c21f37a8
SM
28832020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2884
2885 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2886 * gdbarch.c: Re-generate.
2887 * gdbarch.h: Re-generate.
2888 * gcore.c (write_gcore_file_1): Adjust.
2889 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2890 constructor.
2891 <note_data>: Change type to unique pointer.
2892 <abort_iteration>: Change type to bool.
2893 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2894 (fbsd_collect_thread_registers): Return void, adjust.
2895 (struct fbsd_corefile_thread_data): Add construtor.
2896 <note_data>: Change type to unique pointer.
2897 (fbsd_corefile_thread): Adjust.
2898 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2899 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2900 to unique pointer, adjust.
2901 (struct linux_collect_regset_section_cb_data): Add constructor.
2902 <note_data>: Change type to unique pointer.
2903 <abort_iteration>: Change type to bool.
2904 (linux_collect_thread_registers): Return void, adjust.
2905 (struct linux_corefile_thread_data): Add constructor.
2906 <note_data>: Change type to unique pointer.
2907 (linux_corefile_thread): Adjust.
2908 (linux_make_corefile_notes): Return unique pointer, adjust.
2909
07fbbd01
SM
29102020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2911
2912 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2913 * gdbarch.c: Re-generate.
2914 * gdbarch.h: Re-generate.
2915 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2916 bool.
2917 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2918 Likewise.
2919 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2920 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2921 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2922 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2923
39535193
SM
29242020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2925
2926 * gdbarch.sh: Make generated predicates return bool.
2927 * gdbarch.c: Re-generate.
2928 * gdbarch.h: Re-generate.
2929
ad523d01
TT
29302020-10-20 Tom Tromey <tom@tromey.com>
2931
2932 * varobj-iter.h (struct varobj_item): Remove typedef.
2933
c4464ade
SM
29342020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2935
2936 * infrun.c (currently_stepping): Change int to bool
2937 (maybe_software_singlestep): Likewise.
2938 (show_stop_on_solib_events): Likewise.
2939 (stepping_past_nonsteppable_watchpoint): Likewise.
2940 (displaced_step_in_progress_any_inferior): Likewise.
2941 (displaced_step_in_progress_thread): Likewise.
2942 (keep_going_stepped_thread): Likewise.
2943 (thread_still_needs_step_over): Likewise.
2944 (start_step_over): Likewise.
2945 (do_target_resume): Likewise.
2946 (resume_1): Likewise.
2947 (clear_proceed_status): Likewise.
2948 (thread_still_needs_step_over_bp): Likewise.
2949 (proceed): Likewise.
2950 (switch_back_to_stepped_thread): Likewise.
2951 (adjust_pc_after_break): Likewise.
2952 (stepped_in_from): Likewise.
2953 (handle_stop_requested): Likewise.
2954 (handle_syscall_event): Likewise.
2955 (handle_no_resumed): Likewise.
2956 (handle_inferior_event): Likewise.
2957 (finish_step_over): Likewise.
2958 (handle_signal_stop): Likewise.
2959 (process_event_stop_test): Likewise.
2960
2eb20436
SM
29612020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2962
2963 * infrun.c (get_displaced_stepping_state): Fix comment.
2964
e0c45ded
AS
29652020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2966
2967 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2968
22cc388e
TT
29692020-10-19 Tom Tromey <tromey@adacore.com>
2970
2971 PR tui/26719
2972 * tui/tui-winsource.h (struct tui_source_window_base)
2973 <refresh_window>: Rename from refresh_pad.
2974 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2975 Rename from refresh_pad.
2976 (tui_source_window_base::show_source_content)
2977 (tui_source_window_base::do_scroll_horizontal): Update.
2978
3c6eb4d4
TBA
29792020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2980
2981 * thread.c (_initialize_thread): Fine-tune the help text of
2982 'info threads'.
2983
26703721
TBA
29842020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2985
2986 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2987
61c26be8
MS
29882020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2989
2990 * breakpoint.c (handle_jit_event): Add an argument, change how
2991 `jit_event_handler` is called.
2992
932539d7
TT
29932020-10-17 Tom Tromey <tom@tromey.com>
2994
2995 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2996 (scan_xcoff_symtab): Update.
2997 * psymtab.h (class psymtab_storage) <global_psymbols,
2998 static_psymbols, current_global_psymbols,
2999 current_static_psymbols>: Remove.
3000 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3001 (match_partial_symbol, lookup_partial_symbol): Update.
3002 (print_partial_symbols): Change parameters.
3003 (dump_psymtab, recursively_search_psymtabs)
3004 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3005 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3006 (concat): Remove.
3007 (end_psymtab_common): Simplify.
3008 (append_psymbol_to_list): Change parameters.
3009 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3010 (init_psymbol_list): Simplify.
3011 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3012 * psympriv.h (struct partial_symtab) <empty>: New method.
3013 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3014 Remove.
3015 <global_psymbols, static_psymbols>: New members.
3016 <add_psymbol>: New methods.
3017 (add_psymbol_to_list): Don't declare.
3018 (psymbol_placement): Move earlier.
3019 * mdebugread.c (parse_partial_symbols): Update.
3020 (handle_psymbol_enumerators): Change parameters.
3021 (mdebug_expand_psymtab): Update.
3022 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3023 (add_partial_symbol): Update.
3024 * dwarf2/index-write.c (write_psymbols): Change parameters.
3025 (write_one_signatured_type): Update.
3026 (recursively_count_psymbols): Update.
3027 (recursively_write_psymbols): Update.
3028 (class debug_names) <recursively_write_psymbols>: Update.
3029 <write_psymbols>: Change parameters.
3030 <write_one_signatured_type>: Update.
3031 * dbxread.c (read_dbx_symtab): Update.
3032 (dbx_end_psymtab): Use partial_symtab::empty.
3033 * ctfread.c (struct ctf_context) <pst>: New member.
3034 (create_partial_symtab): Set it.
3035 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3036 (scan_partial_symbols): Use the psymtab's context. Update.
3037
cfabbd35
TT
30382020-10-17 Tom Tromey <tom@tromey.com>
3039
3040 * valprint.c (generic_value_print): Remove comment.
3041 * m2-valprint.c (m2_value_print_inner): Remove comment.
3042 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3043 type.
3044
520596f2
TV
30452020-10-17 Tom de Vries <tdevries@suse.de>
3046
3047 PR symtab/26317
3048 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3049 symbol main.
3050
76547ab3
TV
30512020-10-14 Tom de Vries <tdevries@suse.de>
3052
3053 PR gdb/26733
3054 * solib.c (solib_contains_address_p): Handle
3055 'solib->sections == nullptr'.
3056
d3a07122
SM
30572020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3058
3059 PR gdb/26642
3060 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3061 target can't do async.
3062 * target.c (target_wait): Assert that we don't pass
3063 TARGET_WNOHANG to a target that can't async.
3064
1b71cfcf
KR
30652020-10-13 Kamil Rytarowski <n54@gmx.com>
3066
3067 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3068 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3069 * alpha-bsd-nat.c: Adjust include.
3070 * alpha-bsd-tdep.h: Adjust comment.
3071 * alpha-nbsd-tdep.c: Rename to ...
3072 * alpha-netbsd-tdep.c: ... this, adjust include.
3073 * amd64-nbsd-nat.c: Rename to ...
3074 * amd64-netbsd-nat.c: ... this, adjust include.
3075 * amd64-nbsd-tdep.c: Rename to ...
3076 * amd64-netbsd-tdep.c: ... this, adjust include.
3077 * amd64-tdep.h: Adjust include.
3078 * arm-nbsd-nat.c: Rename to ...
3079 * arm-netbsd-nat.c: ... this, adjust include.
3080 * arm-nbsd-tdep.c: Rename to ...
3081 * arm-netbsd-tdep.c: ... this, adjust include.
3082 * arm-nbsd-tdep.h: Rename to ...
3083 * arm-netbsd-tdep.h: ... this, adjust include.
3084 * configure.nat: Adjust file lists.
3085 * configure.tgt: Likewise.
3086 * hppa-nbsd-nat.c: Rename to ...
3087 * hppa-netbsd-nat.c: ... this, adjust include.
3088 * hppa-nbsd-tdep.c: Rename to ...
3089 * hppa-netbsd-tdep.c: ... this, adjust include.
3090 * i386-nbsd-nat.c: Rename to ...
3091 * i386-netbsd-nat.c: ... this, adjust include.
3092 * i386-nbsd-tdep.c: Rename to ...
3093 * i386-netbsd-tdep.c: ... this, adjust include.
3094 * m68k-bsd-nat.c: Adjust include.
3095 * mips-nbsd-nat.c: Rename to ...
3096 * mips-netbsd-nat.c: ... this, adjust include.
3097 * mips-nbsd-tdep.c: Rename to ...
3098 * mips-netbsd-tdep.c: ... this, adjust include.
3099 * mips-nbsd-tdep.h: Rename to ...
3100 * mips-netbsd-tdep.h: ... this.
3101 * nbsd-nat.c: Rename to ...
3102 * netbsd-nat.c: ... this, adjust include.
3103 * nbsd-nat.h: Rename to ...
3104 * netbsd-nat.h: ... this, adjust include.
3105 * nbsd-tdep.c: Rename to ...
3106 * netbsd-tdep.c: ... this, adjust include.
3107 * nbsd-tdep.h: Rename to ...
3108 * netbsd-tdep.h: ... this.
3109 * ppc-nbsd-nat.c: Rename to ...
3110 * ppc-netbsd-nat.c: ... this, adjust include.
3111 * ppc-nbsd-tdep.c: Rename to ...
3112 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3113 * ppc-nbsd-tdep.h: Rename to ...
3114 * ppc-netbsd-tdep.h: ... this.
3115 * sh-nbsd-nat.c: Rename to ...
3116 * sh-netbsd-nat.c: ... this, adjust include.
3117 * sh-nbsd-tdep.c: Rename to ...
3118 * sh-netbsd-tdep.c: ... this, adjust include.
3119 * sparc-nbsd-nat.c: Rename to ...
3120 * sparc-netbsd-nat.c: ... this.
3121 * sparc-nbsd-tdep.c: Rename to ...
3122 * sparc-netbsd-tdep.c: ... this, adjust include.
3123 * sparc64-nbsd-nat.c: Rename to ...
3124 * sparc64-netbsd-nat.c: ... this.
3125 * sparc64-nbsd-tdep.c: Rename to ...
3126 * sparc64-netbsd-tdep.c: ... this, adjust include.
3127 * sparc64-tdep.h: Adjust comment.
3128 * vax-bsd-nat.c: Adjust include.
3129 * vax-nbsd-tdep.c: Rename to ...
3130 * vax-netbsd-tdep.c: ... this, adjust include.
3131
d7a78e5c
TT
31322020-10-12 Tom Tromey <tom@tromey.com>
3133
3134 * target.h (struct target_ops) <get_section_table>: Update.
3135 (target_get_section_table): Update.
3136 * target.c (target_get_section_table, target_section_by_addr)
3137 (memory_xfer_partial_1): Update.
3138 * target-section.h (target_section_table): Now an alias.
3139 * target-delegates.c: Rebuild.
3140 * target-debug.h (target_debug_print_target_section_table_p):
3141 Rename from target_debug_print_struct_target_section_table_p.
3142 * symfile.c (build_section_addr_info_from_section_table): Update.
3143 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3144 * solib-svr4.c (scan_dyntag): Update.
3145 * solib-dsbt.c (scan_dyntag): Update.
3146 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3147 Update.
3148 * record-full.c (record_full_core_target::xfer_partial): Update.
3149 * progspace.h (struct program_space) <target_sections>: Update.
3150 * exec.h (print_section_info): Update.
3151 * exec.c (exec_target::close, build_section_table)
3152 (add_target_sections, add_target_sections_of_objfile)
3153 (remove_target_sections, exec_on_vfork)
3154 (section_table_available_memory)
3155 (section_table_xfer_memory_partial)
3156 (exec_target::get_section_table, exec_target::xfer_partial)
3157 (print_section_info, set_section_command)
3158 (exec_set_section_address, exec_target::has_memory): Update.
3159 * corelow.c (core_target::build_file_mappings)
3160 (core_target::xfer_partial, core_target::info_proc_mappings)
3161 (core_target::info_proc_mappings): Update.
3162 * bfd-target.c (class target_bfd): Update
3163
eda214ce
TT
31642020-10-12 Tom Tromey <tom@tromey.com>
3165
3166 * progspace.c (program_space::~program_space): Don't call
3167 clear_section_table.
3168 * exec.h (clear_section_table): Don't declare.
3169 * exec.c (exec_target::close): Update.
3170 (clear_section_table): Remove.
3171
91840ee3
TT
31722020-10-12 Tom Tromey <tom@tromey.com>
3173
3174 * exec.c (add_target_sections_of_objfile): Simplify.
3175
2d128614
TT
31762020-10-12 Tom Tromey <tom@tromey.com>
3177
3178 * solib.c (solib_map_sections): Update.
3179 * record-full.c (record_full_core_open_1): Update.
3180 * exec.h (build_section_table): Return a target_section_table.
3181 * exec.c (exec_file_attach): Update.
3182 (build_section_table): Return a target_section_table.
3183 * corelow.c (core_target::core_target): Update.
3184 * bfd-target.c (target_bfd::target_bfd): Update.
3185
bb2a6777
TT
31862020-10-12 Tom Tromey <tom@tromey.com>
3187
3188 * target.c (target_section_by_addr, memory_xfer_partial_1):
3189 Update.
3190 * target-section.h (struct target_section_table): Use
3191 std::vector.
3192 * symfile.h (build_section_addr_info_from_section_table): Take a
3193 target_section_table.
3194 * symfile.c (build_section_addr_info_from_section_table): Take a
3195 target_section_table.
3196 * solist.h (struct so_list) <sections>: Change type.
3197 <sections_end>: Remove.
3198 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3199 (solib_contains_address_p): Update.
3200 * solib-svr4.c (scan_dyntag): Update.
3201 * solib-dsbt.c (scan_dyntag): Update.
3202 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3203 Update.
3204 * record-full.c (record_full_core_start, record_full_core_end):
3205 Remove.
3206 (record_full_core_sections): New global.
3207 (record_full_core_open_1, record_full_core_target::xfer_partial):
3208 Update.
3209 * exec.h (build_section_table, section_table_xfer_memory_partial)
3210 (add_target_sections): Take a target_section_table.
3211 * exec.c (exec_file_attach, clear_section_table): Update.
3212 (resize_section_table): Remove.
3213 (build_section_table, add_target_sections): Take a
3214 target_section_table.
3215 (add_target_sections_of_objfile, remove_target_sections)
3216 (exec_on_vfork): Update.
3217 (section_table_available_memory): Take a target_section_table.
3218 (section_table_read_available_memory): Update.
3219 (section_table_xfer_memory_partial): Take a target_section_table.
3220 (print_section_info, set_section_command)
3221 (exec_set_section_address, exec_target::has_memory): Update.
3222 * corelow.c (class core_target) <m_core_section_table,
3223 m_core_file_mappings>: Remove braces.
3224 <~core_target>: Remove.
3225 (core_target::core_target): Update.
3226 (core_target::~core_target): Remove.
3227 (core_target::build_file_mappings)
3228 (core_target::xfer_memory_via_mappings)
3229 (core_target::xfer_partial, core_target::info_proc_mappings):
3230 Update.
3231 * bfd-target.c (target_bfd::xfer_partial): Update.
3232 (target_bfd::target_bfd): Update.
3233 (target_bfd::~target_bfd): Remove.
3234
7b466b10
TT
32352020-10-12 Tom Tromey <tom@tromey.com>
3236
3237 * target.h (struct target_section, struct target_section_table):
3238 Move to target-section.h.
3239 * target-section.h: New file.
3240
87a37e5e
PA
32412020-10-12 Pedro Alves <pedro@palves.net>
3242
3243 PR exp/26602
3244 * valops.c (struct struct_field_searcher): New.
3245 (update_search_result): Rename to ...
3246 (struct_field_searcher::update_result): ... this. Simplify
3247 prototype. Record all found fields.
3248 (do_search_struct_field): Rename to ...
3249 (struct_field_searcher::search): ... this. Simplify prototype.
3250 Maintain stack of visited baseclass path. Call update_result for
3251 fields too. Keep searching fields in baseclasses instead of
3252 stopping at the first found field.
3253 (search_struct_field): Use struct_field_searcher. When looking
3254 for fields, report ambiguous access attempts.
3255
9370fd51
AB
32562020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3257
3258 * frame.c (inside_main_func): Check full symbols as well as
3259 minimal symbols.
3260
59c8a30b
JB
32612020-10-09 Joel Brobecker <brobecker@adacore.com>
3262
3263 * ada-lang.c (advance_wild_match): Rewrite the function's
3264 description. Change the type of target0, t0 and t1 to char.
3265
7c184d33
TT
32662020-10-09 Tom Tromey <tromey@adacore.com>
3267
3268 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3269
5c4258f4
TT
32702020-10-09 Tom Tromey <tromey@adacore.com>
3271
3272 * ada-lang.h (ada_encode): Return std::string.
3273 * ada-lang.c (ada_encode_1): Return std::string.
3274 (ada_encode): Likewise.
3275 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3276 Update.
3277 * ada-exp.y (block_lookup, write_var_or_type): Update.
3278
3d87245c
HD
32792020-10-09 Hannes Domani <ssbssa@yahoo.de>
3280
3281 PR exp/26714
3282 * printcmd.c (print_formatted): Handle void results as
3283 unformatted prints.
3284
bbb826f5
AB
32852020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3286
3287 * arch/aarch32.c (aarch32_create_target_description): Release the
3288 target_desc_up as late as possible.
3289 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3290 * arch/amd64.c (amd64_create_target_description): Likewise.
3291 * arch/arc.c (arc_create_target_description): Return a
3292 target_desc_up, don't release it.
3293 * arch/arc.h (arc_create_target_description): Update declaration.
3294 (arc_lookup_target_description): Move target_desc_up into the
3295 cache, and return a borrowed pointer.
3296 * arch/arm.c (arm_create_target_description): Release the
3297 target_desc_up as late as possible.
3298 * arch/i386.c (i386_create_target_description): Likewise.
3299 * arch/riscv.h (riscv_create_target_description): Update
3300 declaration to match definition.
3301 * arch/tic6x.c (tic6x_create_target_description): Release the
3302 target_desc_up as late as possible.
3303
361cb219
AB
33042020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3305
3306 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3307 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3308
f5c4b229
JV
33092020-10-09 Jan Vrany <jan.vrany@labware.com>
3310
3311 * source.c (directory_command): Notify observers that "directories"
3312 parameter has changed.
3313
b2701685
TT
33142020-10-08 Tom Tromey <tom@tromey.com>
3315
3316 * cli/cli-cmds.c (print_disassembly): Style function name and
3317 addresses. Add _() wrappers.
3318
ada508b6
SV
33192020-10-08 Shahab Vahedi <shahab@synopsys.com>
3320
3321 * NEWS: Mention ARC support in GDBserver.
3322
51a948fd
AB
33232020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3324
3325 * arch/aarch32.c (aarch32_create_target_description): Release
3326 unique_ptr returned from allocate_target_description.
3327 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3328 * arch/amd64.c (amd64_create_target_description): Likewise.
3329 * arch/arc.c (arc_create_target_description): Likewise.
3330 * arch/arm.c (arm_create_target_description): Likewise.
3331 * arch/i386.c (i386_create_target_description): Likewise.
3332 * arch/riscv.c (riscv_create_target_description): Update return
3333 type. Handle allocate_target_description returning a unique_ptr.
3334 (riscv_lookup_target_description): Update to handle unique_ptr.
3335 * arch/tic6x.c (tic6x_create_target_description): Release
3336 unique_ptr returned from allocate_target_description.
3337 * features/microblaze-with-stack-protect.c: Regenerate.
3338 * features/microblaze.c: Regenerate.
3339 * features/mips-dsp-linux.c: Regenerate.
3340 * features/mips-linux.c: Regenerate.
3341 * features/mips64-dsp-linux.c: Regenerate.
3342 * features/mips64-linux.c: Regenerate.
3343 * features/nds32.c: Regenerate.
3344 * features/nios2.c: Regenerate.
3345 * features/or1k.c: Regenerate.
3346 * features/rs6000/powerpc-32.c: Regenerate.
3347 * features/rs6000/powerpc-32l.c: Regenerate.
3348 * features/rs6000/powerpc-403.c: Regenerate.
3349 * features/rs6000/powerpc-403gc.c: Regenerate.
3350 * features/rs6000/powerpc-405.c: Regenerate.
3351 * features/rs6000/powerpc-505.c: Regenerate.
3352 * features/rs6000/powerpc-601.c: Regenerate.
3353 * features/rs6000/powerpc-602.c: Regenerate.
3354 * features/rs6000/powerpc-603.c: Regenerate.
3355 * features/rs6000/powerpc-604.c: Regenerate.
3356 * features/rs6000/powerpc-64.c: Regenerate.
3357 * features/rs6000/powerpc-64l.c: Regenerate.
3358 * features/rs6000/powerpc-7400.c: Regenerate.
3359 * features/rs6000/powerpc-750.c: Regenerate.
3360 * features/rs6000/powerpc-860.c: Regenerate.
3361 * features/rs6000/powerpc-altivec32.c: Regenerate.
3362 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3363 * features/rs6000/powerpc-altivec64.c: Regenerate.
3364 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3365 * features/rs6000/powerpc-e500.c: Regenerate.
3366 * features/rs6000/powerpc-e500l.c: Regenerate.
3367 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3368 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3369 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3370 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3371 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3372 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3373 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3374 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3375 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3376 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3377 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3378 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3379 * features/rs6000/powerpc-vsx32.c: Regenerate.
3380 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3381 * features/rs6000/powerpc-vsx64.c: Regenerate.
3382 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3383 * features/rs6000/rs6000.c: Regenerate.
3384 * features/rx.c: Regenerate.
3385 * features/s390-gs-linux64.c: Regenerate.
3386 * features/s390-linux32.c: Regenerate.
3387 * features/s390-linux32v1.c: Regenerate.
3388 * features/s390-linux32v2.c: Regenerate.
3389 * features/s390-linux64.c: Regenerate.
3390 * features/s390-linux64v1.c: Regenerate.
3391 * features/s390-linux64v2.c: Regenerate.
3392 * features/s390-te-linux64.c: Regenerate.
3393 * features/s390-tevx-linux64.c: Regenerate.
3394 * features/s390-vx-linux64.c: Regenerate.
3395 * features/s390x-gs-linux64.c: Regenerate.
3396 * features/s390x-linux64.c: Regenerate.
3397 * features/s390x-linux64v1.c: Regenerate.
3398 * features/s390x-linux64v2.c: Regenerate.
3399 * features/s390x-te-linux64.c: Regenerate.
3400 * features/s390x-tevx-linux64.c: Regenerate.
3401 * features/s390x-vx-linux64.c: Regenerate.
3402 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3403 from allocate_target_description.
3404 * target-descriptions.c (allocate_target_description): Update
3405 return type.
3406 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3407 allocate_target_description.
3408
485c47e5
TT
34092020-10-07 Tom Tromey <tromey@adacore.com>
3410
3411 * unittests/search-memory-selftests.c: New file.
3412 * Makefile.in (SELFTESTS_SRCS): Add
3413 unittests/search-memory-selftests.c.
3414
3a135a91
TT
34152020-10-07 Tom Tromey <tromey@adacore.com>
3416
3417 PR gdb/16930:
3418 * findcmd.c (_initialize_mem_search): Mention that the range is
3419 inclusive.
3420
4a72de73
TT
34212020-10-07 Tom Tromey <tromey@adacore.com>
3422
3423 * target.h (simple_search_memory): Don't declare.
3424 * target.c (simple_search_memory): Move to gdbsupport.
3425 (default_search_memory): Update.
3426 * remote.c (remote_target::search_memory): Update.
3427
a038ffd8
SM
34282020-10-07 Simon Marchi <simon.marchi@efficios.com>
3429
3430 * Makefile.in (COMPILE): Add CXXFLAGS.
3431 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3432 (check-headers): Add CXXFLAGS.
3433
cc463201
AK
34342020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3435
3436 * arc-linux-tdep.h: New file.
3437 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3438 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3439 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3440 arc_linux_gregset, arc_linux_v2_regset,
3441 arc_linux_iterate_over_regset_sections,
3442 arc_linux_core_read_description): Implement.
3443 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3444 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3445 (arc_gdbarch_features_create): Add.
3446 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3447
e4bd363f
SV
34482020-10-07 Shahab Vahedi <shahab@synopsys.com>
3449
3450 * arch/arc.h: Rename "arc_gdbarch_features" to
3451 "arc_arch_features".
3452 * arc-tdep.h: Likewise.
3453 * arc-tdep.c: Likewise.
3454
b68bef99
TBA
34552020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3456
3457 * infcmd.c (attach_command): Remove the redundant call to
3458 `clear_proceed_status`.
3459
4641551a
KR
34602020-10-07 Kamil Rytarowski <n54@gmx.com>
3461
3462 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3463
91e5e8db
KR
34642020-10-07 Kamil Rytarowski <n54@gmx.com>
3465
3466 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3467 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3468 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3469
64c03bdb
SM
34702020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3471
3472 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3473 (_initialize_break_catch_sig): Don't allocate array.
3474
31a8f60f
AB
34752020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3476
3477 * symtab.c (find_pc_line): Return unmapped addresses when the
3478 requested address is also unmapped.
3479
9e6dbd8b
SM
34802020-10-05 Simon Marchi <simon.marchi@efficios.com>
3481
3482 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3483 tui/tui-out.h.
3484
a1d217e8
SM
34852020-10-05 Simon Marchi <simon.marchi@efficios.com>
3486
3487 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3488 type::is_vector instead of TYPE_VECTOR.
3489
7d144117
SM
34902020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3491
3492 * auto-load.c (auto_load_objfile_script_1): Don't use
3493 debugfile_holder as temporary variable when stripping drive
3494 letter.
3495
cd096ec8
HD
34962020-10-05 Hannes Domani <ssbssa@yahoo.de>
3497
3498 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3499 Add TYPE_CODE_COMPLEX.
3500 (amd64_windows_return_value): Fix types returned via XMM0.
3501
b58e7f72
AH
35022020-10-05 Alan Hayward <alan.hayward@arm.com>
3503
3504 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3505 AArch64/ARM maintainers.
3506
8d378f27
SM
35072020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3508
3509 * NEWS: Mention set/show debug event-loop.
3510
d5519913
TT
35112020-10-02 Tom Tromey <tromey@adacore.com>
3512
3513 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3514 REG_EXTENDED.
3515
18b67edc
SM
35162020-10-02 Simon Marchi <simon.marchi@efficios.com>
3517
3518 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3519 * procfs.c (procfs_inferior_created): Remove.
3520 (_initialize_procfs): Don't register procfs_inferior_created.
3521
6b01403b
SM
35222020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3523
3524 * async-event.c (invoke_async_signal_handlers): Add debug
3525 print.
3526 (check_async_event_handlers): Likewise.
3527 * event-top.c (show_debug_event_loop): New function.
3528 (_initialize_event_top): Register "set debug event-loop"
3529 setting.
3530
ba988419
SM
35312020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3532
3533 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3534 * debug.h: Remove.
3535 * infrun.c: Include gdbsupport/common-debug.h.
3536 * linux-nat.c: Likewise.
3537
db20ebdf
SM
35382020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3539
3540 * async-event.h (create_async_signal_handler): Add name
3541 parameter.
3542 (create_async_event_handler): Likewise.
3543 * async-event.c (struct async_signal_handler) <name>: New field.
3544 (struct async_event_handler) <name>: New field.
3545 (create_async_signal_handler): Assign name.
3546 (create_async_event_handler): Assign name.
3547 * event-top.c (async_init_signals): Pass name when creating
3548 handler.
3549 * infrun.c (_initialize_infrun): Likewise.
3550 * record-btrace.c (record_btrace_push_target): Likewise.
3551 * record-full.c (record_full_open): Likewise.
3552 * remote-notif.c (remote_notif_state_allocate): Likewise.
3553 * remote.c (remote_target::open_1): Likewise.
3554 * tui/tui-win.c (tui_initialize_win): Likewise.
3555
2554f6f5
SM
35562020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3557
3558 * async-event.c (initialize_async_signal_handlers): Pass name to
3559 add_file_handler
3560 * event-top.c (ui_register_input_event_handler): Likewise.
3561 * linux-nat.c (linux_nat_target::async): Likewise.
3562 * run-on-main-thread.c (_initialize_run_on_main_thread):
3563 Likewise
3564 * ser-base.c (reschedule): Likewise.
3565 (ser_base_async): Likewise.
3566 * tui/tui-io.c: Likewise.
3567 * top.h (struct ui) <num>: New field.
3568 * top.c (highest_ui_num): New variable.
3569 (ui::ui): Initialize num.
3570
a7aba266
SM
35712020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3572
3573 * observable.h <inferior_created>: Remove parameters. Update all
3574 listeners.
3575 * inferior.h (post_create_inferior): Remove target parameter.
3576 Update all callers.
3577
048fde1e 35782020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3579
3580 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3581 and DW_MACRO_undef_strx.
3582 (dwarf_decode_macros): Likewise
3583 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3584 which is the value of DW_AT_str_offsets_base.
3585 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3586 str_offsets_base.
3587
064280be
KR
35882020-10-01 Kamil Rytarowski <n54@gmx.com>
3589
3590 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3591
6ff33035
KR
35922020-10-01 Kamil Rytarowski <n54@gmx.com>
3593
3594 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3595 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3596
1eb6eb79
KR
35972020-10-01 Kamil Rytarowski <n54@gmx.com>
3598
3599 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3600
95eb9e54
TV
36012020-09-30 Tom de Vries <tdevries@suse.de>
3602
3603 PR symtab/26683
3604 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3605
cae21f8e
TT
36062020-09-30 Tom Tromey <tromey@adacore.com>
3607
3608 * dwarf2/read.c (handle_variant): Use constant_value.
3609
529908cb
TT
36102020-09-29 Tom Tromey <tom@tromey.com>
3611
3612 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3613 (read_file_scope, dwarf2_get_pc_bounds)
3614 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3615 (read_structure_type, handle_struct_member_die)
3616 (read_enumeration_type, read_array_type, read_set_type)
3617 (read_tag_pointer_type, read_tag_reference_type)
3618 (read_subroutine_type, read_base_type, read_subrange_type)
3619 (read_full_die_1, partial_die_info::read)
3620 (partial_die_info::read, by, new_symbol)
3621 (dwarf2_const_value_data, dwarf2_const_value_attr)
3622 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3623 (prepare_one_comp_unit): Update.
3624 * dwarf2/attribute.h (DW_UNSND): Remove.
3625
c45bc3f8
TT
36262020-09-29 Tom Tromey <tom@tromey.com>
3627
3628 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3629 (read_subroutine_type, partial_die_info::read)
3630 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3631 (dwarf2_add_member_fn): Update.
3632 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3633 * dwarf2/attribute.c (attribute::as_boolean): New method.
3634
23dca5c3
TT
36352020-09-29 Tom Tromey <tom@tromey.com>
3636
3637 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3638 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3639 method.
3640 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3641
52c14d11
TT
36422020-09-29 Tom Tromey <tom@tromey.com>
3643
3644 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3645 the attribute's form.
3646
e8e5c158
TT
36472020-09-29 Tom Tromey <tom@tromey.com>
3648
3649 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3650 (dwarf2_add_member_fn): Update.
3651 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3652 * dwarf2/attribute.c (attribute::defaulted): New method, from
3653 is_valid_DW_AT_defaulted.
3654
d4df075e
TT
36552020-09-29 Tom Tromey <tom@tromey.com>
3656
3657 * dwarf2/read.c (dw2_get_file_names_reader)
3658 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3659 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3660 (dwarf2_symbol_mark_computed): Use as_unsigned.
3661 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3662 method.
3663 <form_is_section_offset>: Update comment.
3664
bf23a268
TT
36652020-09-29 Tom Tromey <tom@tromey.com>
3666
3667 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3668 dwarf2_default_access_attribute. Look up attribute.
3669 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3670 Update.
3671
7a5f294d
TT
36722020-09-29 Tom Tromey <tom@tromey.com>
3673
3674 * dwarf2/read.c (skip_one_die): Update.
3675 (read_full_die_1): Change how reprocessing is done.
3676 (partial_die_info::read): Update.
3677 (read_attribute_value): Remove need_reprocess parameter.
3678 (read_attribute): Likewise.
3679 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3680 New method.
3681
36d378cf
TT
36822020-09-29 Tom Tromey <tom@tromey.com>
3683
3684 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3685 (dwarf2_const_value_attr, dump_die_shallow)
3686 (dwarf2_fetch_constant_bytes): Update.
3687 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3688 comment.
3689 <set_address>: New method.
3690 (DW_ADDR): Remove.
3691 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3692 (attribute::as_string, attribute::as_address): Add assert.
3693
fe56917a
TT
36942020-09-29 Tom Tromey <tom@tromey.com>
3695
3696 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3697 (read_attribute_reprocess, read_attribute_value): Update.
3698 (read_attribute): Clear requires_reprocessing.
3699 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3700 form_requires_reprocessing>: New methods.
3701 <string_init>: Clear requires_reprocessing.
3702 <set_unsigned_reprocess>: New method.
3703 <name>: Shrink by one bit.
3704 <requires_reprocessing>: New member.
3705 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3706 method.
3707
414ad644
TT
37082020-09-29 Tom Tromey <tom@tromey.com>
3709
3710 * dwarf2/read.c (read_attribute_value): Update.
3711 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3712 set_unsigned>: New methods.
3713 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3714
1bc397c5
TT
37152020-09-29 Tom Tromey <tom@tromey.com>
3716
3717 * dwarf2/read.c (get_alignment, read_array_order)
3718 (read_attribute_value, dwarf2_const_value_attr)
3719 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3720 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3721 New methods.
3722 (DW_SND): Remove.
3723
630ed6b9
TT
37242020-09-29 Tom Tromey <tom@tromey.com>
3725
3726 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3727 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3728 Update.
3729 * dwarf2/attribute.h (struct attribute) <as_signature,
3730 set_signature>: New methods.
3731 (DW_SIGNATURE): Remove.
3732
9d2246fc
TT
37332020-09-29 Tom Tromey <tom@tromey.com>
3734
3735 * dwarf2/read.c (read_call_site_scope)
3736 (handle_data_member_location, dwarf2_add_member_fn)
3737 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3738 (partial_die_info::read, read_attribute_value)
3739 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3740 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3741 (dwarf2_symbol_mark_computed): Update.
3742 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3743 methods.
3744 (DW_BLOCK): Remove.
3745 * dwarf2/attribute.c (attribute::form_is_block): Add
3746 DW_FORM_data16.
3747
c6481205
TT
37482020-09-29 Tom Tromey <tom@tromey.com>
3749
3750 * dwarf2/read.c (read_cutu_die_from_dwo)
3751 (read_attribute_reprocess, read_attribute_value, read_attribute)
3752 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3753 (dwarf2_fetch_constant_bytes): Update.
3754 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3755 <set_string_noncanonical, set_string_canonical>: New methods.
3756 <string_is_canonical>: Update comment.
3757 <canonical_string_p>: Add assert.
3758 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3759 * dwarf2/attribute.c (attribute::form_is_string): New method.
3760 (attribute::string): Use it.
3761
3b64bf15
TT
37622020-09-29 Tom Tromey <tom@tromey.com>
3763
3764 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3765 (dump_die_shallow): Use canonical_string_p.
3766 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3767 method.
3768
2c830f54
TT
37692020-09-29 Tom Tromey <tom@tromey.com>
3770
3771 * dwarf2/read.c (partial_die_info::read)
3772 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3773 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3774 attribute::as_string.
3775
6c412691
TT
37762020-09-29 Tom Tromey <tom@tromey.com>
3777
3778 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3779 DW_ADDR.
3780 (attribute::string): Don't use DW_STRING.
3781 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3782 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3783
95f982e5
TT
37842020-09-29 Tom Tromey <tom@tromey.com>
3785
3786 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3787 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3788 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3789 * dwarf2/attribute.h (struct attribute): Rename methods.
3790 * dwarf2/attribute.c (attribute::as_address): Rename from
3791 value_as_address.
3792 (attribute::as_string): Rename from value_as_string.
3793
f800b00e
TT
37942020-09-29 Tom Tromey <tom@tromey.com>
3795
3796 * dwarf2/read.c (partial_die_info::read) <case
3797 DW_AT_linkage_name>: Use value_as_string.
3798 (dwarf2_string_attr): Use value_as_string.
3799 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3800 method.
3801 * dwarf2/attribute.c (attribute::value_as_string): New method.
3802
de38d64a
PA
38032020-09-29 Pedro Alves <pedro@palves.net>
3804
3805 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3806 defined before using '#pragma GCC diagnostic' instead of checking
3807 __clang__.
3808
9aed480c
TT
38092020-09-28 Tom Tromey <tom@tromey.com>
3810
3811 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3812 (handle_signal_stop): Update.
3813 * procfs.c (procfs_target::insert_watchpoint): Update.
3814 * target.h (target_have_steppable_watchpoint): Now a function.
3815
8a3ecb79
TT
38162020-09-28 Tom Tromey <tom@tromey.com>
3817
3818 * infrun.c (set_schedlock_func): Update.
3819 * target.h (target_can_lock_scheduler): Now a function.
3820
55f6301a
TT
38212020-09-28 Tom Tromey <tom@tromey.com>
3822
3823 * inferior.h (class inferior) <has_execution>: Update.
3824 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3825 * valops.c (find_function_in_inferior)
3826 (value_allocate_space_in_inferior): Update.
3827 * top.c (kill_or_detach): Update.
3828 * target.c (target_preopen, set_target_permissions): Update.
3829 (target_has_execution_current): Remove.
3830 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3831 Update.
3832 * solib.c (update_solib_list, reload_shared_libraries): Update.
3833 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3834 * solib-dsbt.c (enable_break): Update.
3835 * score-tdep.c (score7_fetch_inst): Update.
3836 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3837 Update.
3838 * remote.c (remote_target::start_remote)
3839 (remote_target::remote_check_symbols, remote_target::open_1)
3840 (remote_target::remote_detach_1, remote_target::verify_memory)
3841 (remote_target::xfer_partial, remote_target::read_description)
3842 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3843 * record-full.c (record_full_open_1): Update.
3844 * record-btrace.c (record_btrace_target_open): Update.
3845 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3846 (value_nsstring): Update.
3847 * linux-thread-db.c (add_thread_db_info)
3848 (thread_db_find_new_threads_silently, check_thread_db_callback)
3849 (try_thread_db_load_1, record_thread): Update.
3850 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3851 Update.
3852 * linux-fork.c (checkpoint_command): Update.
3853 * infrun.c (set_non_stop, set_observer_mode)
3854 (check_multi_target_resumption, for_each_just_stopped_thread)
3855 (maybe_remove_breakpoints, normal_stop)
3856 (class infcall_suspend_state): Update.
3857 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3858 (info_program_command, attach_command): Update.
3859 * infcall.c (call_function_by_hand_dummy): Update.
3860 * inf-loop.c (inferior_event_handler): Update.
3861 * gcore.c (gcore_command, derive_heap_segment): Update.
3862 * exec.c (exec_file_command): Update.
3863 * eval.c (evaluate_subexp): Update.
3864 * compile/compile.c (compile_to_object): Update.
3865 * cli/cli-dump.c (restore_command): Update.
3866 * breakpoint.c (update_watchpoint)
3867 (update_inserted_breakpoint_locations)
3868 (insert_breakpoint_locations, get_bpstat_thread): Update.
3869 * target.h (target_has_execution): Remove macro.
3870 (target_has_execution_current): Don't declare.
3871 (target_has_execution): Rename from target_has_execution_1. Add
3872 argument default.
3873
05374cfd
TT
38742020-09-28 Tom Tromey <tom@tromey.com>
3875
3876 * mi/mi-main.c (exec_reverse_continue)
3877 (mi_cmd_list_target_features): Update.
3878 * infrun.c (set_exec_direction_func): Update.
3879 * target.c (default_execution_direction): Update.
3880 * reverse.c (exec_reverse_once): Update.
3881 * target.h (target_can_execute_reverse): Now a function.
3882
9dccd06e
TT
38832020-09-28 Tom Tromey <tom@tromey.com>
3884
3885 * tui/tui-regs.c (tui_get_register)
3886 (tui_data_window::show_registers): Update.
3887 * thread.c (scoped_restore_current_thread::restore)
3888 (scoped_restore_current_thread::scoped_restore_current_thread):
3889 Update.
3890 * regcache-dump.c (regcache_print): Update.
3891 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3892 Update.
3893 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3894 * mep-tdep.c (current_me_module, current_options): Update.
3895 * linux-thread-db.c (thread_db_load): Update.
3896 * infcmd.c (registers_info, info_vector_command)
3897 (info_float_command): Update.
3898 * ia64-tdep.c (ia64_frame_prev_register)
3899 (ia64_sigtramp_frame_prev_register): Update.
3900 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3901 * gcore.c (derive_stack_segment): Update.
3902 * frame.c (get_current_frame, has_stack_frames): Update.
3903 * findvar.c (language_defn::read_var_value): Update.
3904 * arm-tdep.c (arm_pc_is_thumb): Update.
3905 * target.c (target_has_registers): Rename from
3906 target_has_registers_1.
3907 * target.h (target_has_registers): Remove macro.
3908 (target_has_registers): Rename from target_has_registers_1.
3909
841de120
TT
39102020-09-28 Tom Tromey <tom@tromey.com>
3911
3912 * windows-tdep.c (tlb_make_value): Update.
3913 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3914 * thread.c (scoped_restore_current_thread::restore)
3915 (scoped_restore_current_thread::scoped_restore_current_thread)
3916 (thread_command): Update.
3917 * stack.c (backtrace_command_1, frame_apply_level_command)
3918 (frame_apply_all_command, frame_apply_command): Update.
3919 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3920 Update.
3921 * gcore.c (derive_stack_segment): Update.
3922 * frame.c (get_current_frame, has_stack_frames): Update.
3923 * auxv.c (info_auxv_command): Update.
3924 * ada-tasks.c (ada_build_task_list): Update.
3925 * target.c (target_has_stack): Rename from target_has_stack_1.
3926 * target.h (target_has_stack): Remove macro.
3927 (target_has_stack): Rename from target_has_stack_1.
3928
a739972c
TT
39292020-09-28 Tom Tromey <tom@tromey.com>
3930
3931 * target.c (target_has_memory): Rename from target_has_memory_1.
3932 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3933 * thread.c (scoped_restore_current_thread::restore)
3934 (scoped_restore_current_thread::scoped_restore_current_thread):
3935 Update.
3936 * frame.c (get_current_frame, has_stack_frames): Update.
3937 * target.h (target_has_memory): Remove macro.
3938 (target_has_memory): Rename from target_has_memory_1.
3939
5b8a4776
TT
39402020-09-28 Tom Tromey <tom@tromey.com>
3941
3942 * target.c (target_has_all_memory_1): Remove.
3943 * target.h (target_has_all_memory): Remove define.
3944 (target_has_all_memory_1): Don't declare.
3945
bd356ec6
SM
39462020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3947
3948 * ser-base.c: Adjust comments formatting.
3949
2c72d5e5
TT
39502020-09-27 Tom Tromey <tom@tromey.com>
3951
3952 PR tui/25342:
3953 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3954
35a98237
TT
39552020-09-27 Tom Tromey <tom@tromey.com>
3956
3957 PR tui/25342:
3958 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3959
9e820dec
TT
39602020-09-27 Tom Tromey <tom@tromey.com>
3961
3962 * unittests/tui-selftests.c: Update.
3963 * tui/tui-winsource.h (struct tui_source_window_base)
3964 <extra_margin, show_line_number, refresh_pad>: New methods.
3965 <m_max_length, m_pad>: New members.
3966 (tui_copy_source_line): Update.
3967 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3968 first_col, line_width, ndigits parameters. Add length.
3969 (tui_source_window_base::show_source_line): Write to pad. Line
3970 number now 0-based.
3971 (tui_source_window_base::refresh_pad): New method.
3972 (tui_source_window_base::show_source_content): Write to pad. Call
3973 refresh_pad.
3974 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3975 not refill.
3976 (tui_source_window_base::update_exec_info): Call
3977 show_line_number.
3978 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3979 method.
3980 <m_digits>: New member.
3981 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3982 and m_max_length.
3983 (tui_source_window::show_line_number): New method.
3984 * tui/tui-io.h (tui_puts): Fix comment.
3985 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3986 m_max_length.
3987
c15c15c8
TT
39882020-09-27 Tom Tromey <tom@tromey.com>
3989
3990 * tui/tui-winsource.c
3991 (tui_source_window_base::set_is_exec_point_at): Don't call
3992 show_source_line.
3993
149830c1
TT
39942020-09-27 Tom Tromey <tom@tromey.com>
3995
3996 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3997 method.
3998 <erase>: Update.
3999 <cursor_x, cursor_y>: Remove.
4000 <m_inner_window>: New member.
4001 (tui_py_window::rerender): Create inner window.
4002 (tui_py_window::output): Write to inner window.
4003
8f9929bb
GR
40042020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4005
4006 PR python/26586
4007 * cli/cli-script.c (execute_control_commands): don't set
4008 instream to nullptr here as this breaks the from_tty argument
4009 to gdb.execute in Python.
4010 (execute_user_command): set instream to nullptr here instead.
4011
956bdb59
SM
40122020-09-25 Simon Marchi <simon.marchi@efficios.com>
4013
4014 * infrun.h (infrun_debug_printf): Fix formatting.
4015 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4016
3b93626b
SJ
40172020-09-25 Saagar Jha <saagar@saagarjha.com>
4018
4019 * compile/compile-object-load.h (struct munmap_list): Add
4020 explicitly-defined move constructor.
4021
b551a89f
TT
40222020-09-24 Tom Tromey <tromey@adacore.com>
4023
4024 PR tui/26638:
4025 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4026 method.
4027 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4028 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4029 (tui_prev_win): Rewrite.
4030
99bb393f
HD
40312020-09-23 Hannes Domani <ssbssa@yahoo.de>
4032
4033 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4034 in WOW64 processes as SIGINT.
4035 * nat/windows-nat.h: Make wow64_process a shared variable.
4036 * windows-nat.c: Remove static wow64_process variable.
4037
20a5fcbd
TT
40382020-09-23 Tom Tromey <tom@tromey.com>
4039
4040 PR symtab/25470:
4041 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4042 offset and bit size.
4043 * printcmd.c (print_scalar_formatted): Handle zero-length
4044 integer.
4045 (print_scalar_formatted): Use bit_size_differs_p.
4046 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4047 constant.
4048 (union type_specific): <int_stuff>: New member.
4049 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4050 methods.
4051 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4052 TYPE_SPECIFIC_FIELD.
4053 (recursive_dump_type, copy_type_recursive): Update.
4054 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4055 DW_AT_data_bit_offset.
4056
bac51ab7
TT
40572020-09-23 Tom Tromey <tom@tromey.com>
4058
4059 * utils.h (class gdb_argv): Add move operators.
4060 <append>: New methods.
4061 * compile/compile.c (build_argc_argv): Remove.
4062 (compile_args_argc): Remove.
4063 (compile_args_argv): Change type.
4064 (set_compile_args): Simplify.
4065 (append_args): Remove.
4066 (filter_args): Remove argcp parameter.
4067 (get_args): Return gdb_argv. Simplify.
4068 (compile_to_object): Update.
4069
92677124
TT
40702020-09-23 Tom Tromey <tom@tromey.com>
4071
4072 * compile/compile-object-run.c (do_module_cleanup)
4073 <~do_module_cleanup> :Remove.
4074 (do_module_cleanup): Update.
4075 * compile/compile-object-load.h (struct munmap_list): Add move
4076 assignment operator.
4077 <source_file>: Now a std::string.
4078 <munmap_list>: Rename. No longer a pointer.
4079 * compile/compile-object-load.c (struct setup_sections_data): Add
4080 constructor.
4081 <setup_one_section>: Declare.
4082 <munmap_list>: Move earlier.
4083 <m_bfd>: New member.
4084 <m_last_size, m_last_section_first, m_last_prot,
4085 m_last_max_alignment>: Rename, add initializers where needed.
4086 (setup_sections_data::setup_one_section): Rename from
4087 setup_sections. Update.
4088 (compile_object_load): Update. Don't use bfd_map_over_sections.
4089
e616f60a
TT
40902020-09-23 Tom Tromey <tom@tromey.com>
4091
4092 * compile/compile-object-run.c (struct do_module_cleanup): Add
4093 parameters to constructor. Update destructor.
4094 <source_file, scope, scope_data, out_value_type, out_value_addr,
4095 munmap_list_head, objfile_name_string>: Remove.
4096 <module>: New member.
4097 (do_module_cleanup): Update.
4098 (compile_object_run): Update.
4099
e947a848
TT
41002020-09-23 Tom Tromey <tom@tromey.com>
4101
4102 * compile/compile.c (eval_compile_command): Update.
4103 * compile/compile-object-run.h (compile_object_run): Take a
4104 compile_module_up.
4105 * compile/compile-object-run.c (compile_object_run): Take a
4106 compile_module_up.
4107 * compile/compile-object-load.h (struct compile_module): Add
4108 constructor, destructor.
4109 (compile_module_up): New typedef.
4110 (compile_object_load): Return compile_object_up.
4111 * compile/compile-object-load.c (compile_object_load): Return
4112 compile_module_up.
4113
0dbf6ee6
TT
41142020-09-23 Tom Tromey <tom@tromey.com>
4115
4116 * compile/compile-object-run.c (struct do_module_cleanup): Add
4117 constructor, destructor.
4118 <objfile_name_string>: Don't use struct hack.
4119 (do_module_cleanup): Use delete.
4120 (compile_object_run): Use new.
4121
ebe824f5
TT
41222020-09-23 Tom Tromey <tom@tromey.com>
4123
4124 * compile/compile-cplus-types.c
4125 (compile_cplus_convert_struct_or_union): Use std::vector.
4126 (compile_cplus_convert_func): Likewise.
4127 * compile/compile-c-types.c (convert_func): Use std::vector.
4128
5dd918d9
TT
41292020-09-21 Tom Tromey <tromey@adacore.com>
4130
4131 * sparc-tdep.c (sparc32_skip_prologue): Use
4132 skip_prologue_using_sal.
4133
5486c517
TT
41342020-09-19 Tom Tromey <tom@tromey.com>
4135
4136 * symfile.c (add_section_size_callback): Remove.
4137 (load_one_section): Rename from load_section_callback. Change
4138 parameters.
4139 (generic_load): Use foreach.
4140
8a6bb1d1
TT
41412020-09-19 Tom Tromey <tom@tromey.com>
4142
4143 * exec.c (add_to_section_table): Remove.
4144 (build_section_table): Use foreach.
4145
08f93a1a
TT
41462020-09-19 Tom Tromey <tom@tromey.com>
4147
4148 * elfread.c (elf_locate_sections): Change parameters.
4149 (elf_symfile_read): Use foreach.
4150
03cd72b8
TT
41512020-09-19 Tom Tromey <tom@tromey.com>
4152
4153 * cli/cli-dump.c (struct callback_data): Remove.
4154 (restore_one_section): Rename from restore_section_callback.
4155 Change parameters.
4156 (restore_binary_file): Change parameters.
4157 (restore_command): Use foreach.
4158
f4f2b85f
TT
41592020-09-19 Tom Tromey <tom@tromey.com>
4160
4161 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4162 (gcore_copy_callback): Likewise.
4163 (gcore_memory_sections): Use foreach.
4164
b35c1d1c
TT
41652020-09-19 Tom Tromey <tom@tromey.com>
4166
4167 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4168 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4169 parameters.
4170 (generic_elf_osabi_sniffer): Use foreach.
4171 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4172 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4173
5bb6e9dd
TT
41742020-09-19 Tom Tromey <tom@tromey.com>
4175
4176 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4177 (dwarf2_get_dwz_file): Use foreach.
4178 (dwarf2_locate_dwo_sections): Change parameters.
4179 (open_and_init_dwo_file): Use foreach.
4180 (dwarf2_locate_common_dwp_sections): Change parameters.
4181 (open_and_init_dwp_file): Use foreach.
4182
ad7277da
TT
41832020-09-19 Tom Tromey <tom@tromey.com>
4184
4185 * symfile.h: (find_lowest_section): Don't declare.
4186 * symfile.c (find_lowest_section): Now static. Change
4187 parameters.
4188 (struct place_section_arg): Remove.
4189 (place_section): Change parameters.
4190 (addr_info_make_relative): Use foreach.
4191 (symfile_dummy_outputs): Remove.
4192 (default_symfile_relocate): Use foreach.
4193
cb814f2e
TT
41942020-09-19 Tom Tromey <tom@tromey.com>
4195
4196 * objfiles.c (add_to_objfile_sections): Rename from
4197 add_to_objfile_sections_full.
4198 (add_to_objfile_sections): Remove.
4199 (build_objfile_section_table): Use foreach.
4200
3cabfd26
TT
42012020-09-19 Tom Tromey <tom@tromey.com>
4202
4203 * stap-probe.c (get_stap_base_address_1): Remove.
4204 (get_stap_base_address): Use foreach.
4205
1ce51eb5
TT
42062020-09-19 Tom Tromey <tom@tromey.com>
4207
4208 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4209 parameters.
4210 (gdb_bfd_close_or_warn): Use foreach.
4211
a190fabb
TT
42122020-09-19 Tom Tromey <tom@tromey.com>
4213
4214 * corelow.c (add_to_thread_list): Change parameters.
4215 (core_target_open): Use foreach.
4216
cafb0d81
TT
42172020-09-19 Tom Tromey <tom@tromey.com>
4218
4219 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4220 existing function.
4221
c8d5abea
AB
42222020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4223
4224 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4225 for arrays.
4226
6d816919
AB
42272020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4228
4229 * eval.c: Remove 'f-lang.h' include.
4230 (value_f90_subarray): Moved to f-lang.c.
4231 (eval_call): Renamed to...
4232 (evaluate_subexp_do_call): ...this, is no longer static, header
4233 comment moved into header file.
4234 (evaluate_funcall): Update call to eval_call.
4235 (skip_undetermined_arglist): Moved to f-lang.c.
4236 (fortran_value_subarray): Likewise.
4237 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4238 moved to evaluate_subexp_f.
4239 (calc_f77_array_dims): Moved to f-lang.c
4240 * expprint.c (print_subexp_funcall): New function.
4241 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4242 moved to print_subexp_f, OP_FUNCALL uses new function.
4243 (dump_subexp_body_funcall): New function.
4244 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4245 moved to dump_subexp_f, OP_FUNCALL uses new function.
4246 * expression.h (evaluate_subexp_do_call): Declare.
4247 * f-lang.c (value_f90_subarray): Moved from eval.c.
4248 (skip_undetermined_arglist): Likewise.
4249 (calc_f77_array_dims): Likewise.
4250 (fortran_value_subarray): Likewise.
4251 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4252 (operator_length_f): Likewise.
4253 (print_subexp_f): Likewise.
4254 (dump_subexp_body_f): Likewise.
4255 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4256 declaration of this operation to here.
4257 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4258 support moved to operator_length_f.
4259 * parser-defs.h (dump_subexp_body_funcall): Declare.
4260 (print_subexp_funcall): Declare.
4261 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4262 fortran-operator.def.
4263
8c37706a
AB
42642020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4265
4266 * eval.c (fortran_value_subarray): New function, content is taken
4267 from...
4268 (evaluate_subexp_standard): ...here, in two places. Now arrays
4269 and strings both call the new function.
4270 (calc_f77_array_dims): Add header comment, handle strings.
4271
14f9473c
VC
42722020-09-18 Victor Collod <vcollod@nvidia.com>
4273
4274 PR gdb/26635
4275 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4276 (i386_analyze_prologue): Call i386_skip_endbr.
4277
b60cea74
TT
42782020-09-18 Tom Tromey <tromey@adacore.com>
4279
4280 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4281 (windows_nat_target::wait): Update.
4282 * target/wait.h (enum target_wait_flag): New. Use
4283 DEF_ENUM_FLAGS_TYPE.
4284 * target/target.h (target_wait): Change type of options.
4285 * target.h (target_options_to_string, default_target_wait):
4286 Update.
4287 (struct target_ops) <wait>: Change type of options.
4288 * target.c (target_wait, default_target_wait, do_option): Change
4289 type of "options".
4290 (target_options_to_string): Likewise.
4291 * target-delegates.c: Rebuild.
4292 * target-debug.h (target_debug_print_target_wait_flags): Rename
4293 from target_debug_print_options.
4294 * sol-thread.c (class sol_thread_target) <wait>: Update.
4295 (sol_thread_target::wait): Update.
4296 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4297 (rs6000_nat_target::wait): Update.
4298 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4299 Update.
4300 (remote_target::wait_ns, remote_target::wait_as): Change type of
4301 "options".
4302 (remote_target::wait): Update.
4303 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4304 (gdbsim_target::wait): Update.
4305 * record-full.c (class record_full_base_target) <wait>: Update.
4306 (record_full_wait_1): Change type of "options".
4307 (record_full_base_target::wait): Update.
4308 * record-btrace.c (class record_btrace_target) <wait>: Update.
4309 (record_btrace_target::wait): Update.
4310 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4311 Update.
4312 (ravenscar_thread_target::wait): Update.
4313 * procfs.c (class procfs_target) <wait>: Update.
4314 (procfs_target::wait): Update.
4315 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4316 * obsd-nat.c (obsd_nat_target::wait): Update.
4317 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4318 (nto_procfs_target::wait): Update.
4319 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4320 * nbsd-nat.c (nbsd_wait): Change type of "options".
4321 (nbsd_nat_target::wait): Update.
4322 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4323 (thread_db_target::wait): Update.
4324 * linux-nat.h (class linux_nat_target) <wait>: Update.
4325 * linux-nat.c (linux_nat_target::wait): Update.
4326 (linux_nat_wait_1): Update.
4327 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4328 "options".
4329 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4330 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4331 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4332 (go32_nat_target::wait): Update.
4333 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4334 * gnu-nat.c (gnu_nat_target::wait): Update.
4335 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4336 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4337 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4338 * darwin-nat.c (darwin_nat_target::wait): Update.
4339 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4340 (bsd_uthread_target::wait): Update.
4341 * aix-thread.c (class aix_thread_target) <wait>: Update.
4342 (aix_thread_target::wait): Update.
4343
0295dde6
AB
43442020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4345
4346 * compile/compile-object-run.c (create_copied_type_recursive): New
4347 function.
4348 (compile_object_run): Use new function.
4349
d3483b43
JT
43502020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4351
4352 * NEWS: Mention x86_64 Cygwin core file support.
4353
e7d612ad
JT
43542020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4355
4356 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4357 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4358
aff9d387
JT
43592020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4360
62a5151b
JT
4361 * windows-tdep.h: Add prototypes.
4362 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4363 (i386_windows_core_pid_to_str): Move and rename ...
4364 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4365 (windows_core_pid_to_str): ... and here.
4366 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4367
43682020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4369 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4370 (amd64_windows_init_abi_common): ... and register.
4371
7d155da3
JT
43722020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4373
4374 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4375 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4376
e8ef12b9
PA
43772020-09-18 Pedro Alves <pedro@palves.net>
4378
4379 PR gdb/26631
4380 * thread.c (thread_find_command): Switch inferior before calling
4381 target methods.
4382
c1e1314d
TT
43832020-09-17 Tom Tromey <tromey@adacore.com>
4384
4385 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4386 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4387 (tdesc_arch_data_up): New typedef.
4388 (tdesc_use_registers, tdesc_data_alloc): Update.
4389 (tdesc_data_cleanup): Don't declare.
4390 * target-descriptions.c (tdesc_data_alloc): Return a
4391 tdesc_arch_data_up.
4392 (tdesc_arch_data_deleter::operator()): Rename from
4393 tdesc_data_cleanup. Change argument type.
4394 (tdesc_use_registers): Change early_data to an rvalue reference.
4395 (tdesc_use_registers): Don't use delete.
4396 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4397 * s390-tdep.c (s390_gdbarch_init): Update.
4398 * rx-tdep.c (rx_gdbarch_init): Update.
4399 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4400 * riscv-tdep.c (riscv_gdbarch_init): Update.
4401 * or1k-tdep.c (or1k_gdbarch_init): Update.
4402 * nios2-tdep.c (nios2_gdbarch_init): Update.
4403 * nds32-tdep.c (nds32_gdbarch_init): Update.
4404 * mips-tdep.c (mips_gdbarch_init): Update.
4405 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4406 * m68k-tdep.c (m68k_gdbarch_init): Update.
4407 * i386-tdep.c (i386_gdbarch_init): Update.
4408 * arm-tdep.c (arm_gdbarch_init): Update.
4409 * arc-tdep.c (arc_tdesc_init): Update.
4410 (arc_gdbarch_init): Update.
4411 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4412
0363df3d
HD
44132020-09-17 Hannes Domani <ssbssa@yahoo.de>
4414
4415 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4416 for WOW64 processes.
4417
280a9412
TT
44182020-09-17 Tom Tromey <tom@tromey.com>
4419
4420 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4421
6108fd18
TT
44222020-09-17 Tom Tromey <tom@tromey.com>
4423
4424 * value.c (preserve_values): Update.
4425 * python/py-type.c (save_objfile_types): Update.
4426 * guile/scm-type.c (save_objfile_types): Update.
4427 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4428 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4429 * compile/compile-object-run.c (compile_object_run): Update.
4430
fa9b1164
TT
44312020-09-17 Tom Tromey <tom@tromey.com>
4432
4433 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4434 Remove.
4435 <m_table>: Now htab_up.
4436 * typeprint.c (typedef_hash_table::recursively_update)
4437 (typedef_hash_table::add_template_parameters)
4438 (typedef_hash_table::typedef_hash_table): Update.
4439 (typedef_hash_table::~typedef_hash_table): Remove.
4440 (typedef_hash_table::typedef_hash_table)
4441 (typedef_hash_table::find_global_typedef)
4442 (typedef_hash_table::find_typedef): Update.
4443
eb53f105
TT
44442020-09-17 Tom Tromey <tom@tromey.com>
4445
4446 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4447
7a8a5d47
TT
44482020-09-17 Tom Tromey <tom@tromey.com>
4449
4450 * linespec.c (class decode_compound_collector)
4451 <~decode_compound_collector>: Remove.
4452 <m_unique_syms>: Now htab_up.
4453 (decode_compound_collector::operator ()): Update.
4454 (class symtab_collector) <~symtab_collector>: Remove.
4455 <m_symtab_table>: Now htab_up.
4456 (symtab_collector::operator ()): Update.
4457
99032cfc
TT
44582020-09-17 Tom Tromey <tom@tromey.com>
4459
4460 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4461 (filename_seen_cache::clear): Update.
4462 (~filename_seen_cache): Remove.
4463 (filename_seen_cache::seen): Update.
4464 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4465 htab_up.
4466 <~filename_seen_cache>: Remove.
4467 <traverse>: Update.
4468
32580f6d
TT
44692020-09-17 Tom Tromey <tom@tromey.com>
4470
4471 * completer.c (completion_tracker::discard_completions)
4472 (completion_tracker::~completion_tracker)
4473 (completion_tracker::maybe_add_completion)
4474 (completion_tracker::remove_completion)
4475 (completion_tracker::recompute_lowest_common_denominator)
4476 (completion_tracker::build_completion_result): Update.
4477 * completer.h (class completion_tracker) <have_completions>:
4478 Update.
4479 <m_entries_hash>: Now htab_up.
4480
c1fb9836
TT
44812020-09-17 Tom Tromey <tom@tromey.com>
4482
4483 * breakpoint.c (ambiguous_names_p): Use htab_up.
4484
88f07206
TT
44852020-09-17 Tom Tromey <tom@tromey.com>
4486
4487 * auto-load.c (struct auto_load_pspace_info)
4488 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4489 <loaded_script_files, loaded_script_texts>: Change type to
4490 htab_up.
4491 (~auto_load_pspace_info) Remove.
4492 (init_loaded_scripts_info, maybe_add_script_file)
4493 (maybe_add_script_text, auto_load_info_scripts): Update.
4494
9519b2ee
TT
44952020-09-17 Tom Tromey <tromey@adacore.com>
4496
4497 * c-exp.y (name_obstack): Now static.
4498
d2cd4113
CC
44992020-09-17 Chungyi Chi <demonic@csie.io>
4500
4501 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4502
b650a282
SM
45032020-09-16 Simon Marchi <simon.marchi@efficios.com>
4504
4505 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4506 (add_solib_catchpoint): Likewise.
4507 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4508 to bool.
4509 (add_solib_catchpoint): Change int parameter/variable to bool.
4510 (catch_load_or_unload): Likewise.
4511 (init_catchpoint): Likewise.
4512 (create_fork_vfork_event_catchpoint): Likewise.
4513 (catch_fork_command_1): Likewise.
4514 (catch_exec_command_1): Likewise.
4515
4d0bcfcf
SM
45162020-09-16 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4519 Change instance_flags to m_instance_flags.
4520
fe830662
TT
45212020-09-16 Tom Tromey <tromey@adacore.com>
4522
4523 PR gdb/26598:
4524 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4525
fe5ddfc3
JB
45262020-09-16 John Baldwin <jhb@FreeBSD.org>
4527
4528 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4529 PL_FLAG_EXEC.
4530 (fbsd_nat_target::insert_exec_catchpoint)
4531 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4532 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4533 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4534
e911c666
JB
45352020-09-16 John Baldwin <jhb@FreeBSD.org>
4536
4537 * configure.ac: Remove check for kinfo_getvmmap().
4538 * configure, config.in: Regenerate.
4539 * fbsd-nat.c (fbsd_read_mapping): Remove
4540 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4541 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4542 kinfo_get_vmmap() are always present.
4543
1f17d372
JB
45442020-09-16 John Baldwin <jhb@FreeBSD.org>
4545
4546 * fbsd-nat.c: Always include support for
4547 TARGET_OBJECT_SIGNAL_INFO.
4548
bcb1da7f
JB
45492020-09-16 John Baldwin <jhb@FreeBSD.org>
4550
4551 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4552 sysctl and remove procfs fallback.
4553
5515f729
JB
45542020-09-16 John Baldwin <jhb@FreeBSD.org>
4555
4556 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4557 * fbsd-nat.h: Likewise.
4558
da1df1db
TBA
45592020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4560
4561 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4562 argument.
4563
0e25e767
AB
45642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4565
4566 * ada-lang.c (ada_language_data): Delete.
4567 (ada_language): Remove references to ada_language_data.
4568 * c-lang.c (c_language_data): Delete.
4569 (c_language): Remove references to c_language_data.
4570 (cplus_language_data): Delete.
4571 (cplus_language): Remove references to cplus_language_data.
4572 (asm_language_data): Delete.
4573 (asm_language): Remove references to asm_language_data.
4574 (minimal_language_data): Delete.
4575 (minimal_language): Remove references to minimal_language_data.
4576 * d-lang.c (d_language_data): Delete.
4577 (d_language): Remove references to d_language_data.
4578 * f-lang.c (f_language_data): Delete.
4579 (f_language): Remove references to f_language_data.
4580 * go-lang.c (go_language_data): Delete.
4581 (go_language): Remove references to go_language_data.
4582 * language.c (unknown_language_data): Delete.
4583 (unknown_language): Remove references to unknown_language_data.
4584 (auto_language_data): Delete.
4585 (auto_language): Remove references to auto_language_data.
4586 * language.h (language_data): Delete struct.
4587 (language_defn): No longer inherit from language_data.
4588 * m2-lang.c (m2_language_data): Delete.
4589 (m2_language): Remove references to m2_language_data.
4590 * objc-lang.c (objc_language_data): Delete.
4591 (objc_language): Remove references to objc_language_data.
4592 * opencl-lang.c (opencl_language_data): Delete.
4593 (opencl_language): Remove references to opencl_language_data.
4594 * p-lang.c (pascal_language_data): Delete.
4595 (pascal_language): Remove references to pascal_language_data.
4596 * rust-lang.c (rust_language_data): Delete.
4597 (rust_language): Remove references to rust_language_data.
4598
b7c6e27d
AB
45992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4600
4601 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4602 initializer.
4603 (ada_language::opcode_print_table): New member function.
4604 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4605 (c_language::opcode_print_table): New member function.
4606 (cplus_language_data): Remove la_op_print_tab initializer.
4607 (cplus_language::opcode_print_table): New member function.
4608 (asm_language_data): Remove la_op_print_tab initializer.
4609 (asm_language::opcode_print_table): New member function.
4610 (minimal_language_data): Remove la_op_print_tab initializer.
4611 (minimal_language::opcode_print_table): New member function.
4612 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4613 (d_language::opcode_print_table): New member function.
4614 * expprint.c (print_subexp_standard): Update call to
4615 opcode_print_table.
4616 (op_string): Likewise.
4617 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4618 (f_language::opcode_print_table): New member function.
4619 * go-lang.c (go_language_data): Remove la_op_print_tab
4620 initializer.
4621 (go_language::opcode_print_table): New member function.
4622 * language.c (unknown_language_data): Remove la_op_print_tab
4623 initializer.
4624 (unknown_language::opcode_print_table): New member function.
4625 (auto_language_data): Remove la_op_print_tab initializer.
4626 (auto_language::opcode_print_table): New member function.
4627 * language.h (language_data): Remove la_op_print_tab field.
4628 (language_defn::opcode_print_table): Declare new member function.
4629 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4630 initializer.
4631 (m2_language::opcode_print_table): New member function.
4632 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4633 initializer.
4634 (objc_language::opcode_print_table): New member function.
4635 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4636 initializer.
4637 (opencl_language::opcode_print_table): New member function.
4638 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4639 initializer.
4640 (pascal_language::opcode_print_table): New member function.
4641 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4642 initializer.
4643 (rust_language::opcode_print_table): New member function.
4644
5aba6ebe
AB
46452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4646
4647 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4648 (ada_language::expression_ops): New member function.
4649 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4650 (c_language::expression_ops): New member function.
4651 (cplus_language_data): Remove la_exp_desc initializer.
4652 (cplus_language::expression_ops): New member function.
4653 (asm_language_data): Remove la_exp_desc initializer.
4654 (asm_language::expression_ops): New member function.
4655 (minimal_language_data): Remove la_exp_desc initializer.
4656 (minimal_language::expression_ops): New member function.
4657 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4658 (d_language::expression_ops): New member function.
4659 * eval.c (evaluate_subexp): Update call to expression_ops.
4660 * expprint.c (print_subexp): Likewise.
4661 (op_name): Likewise.
4662 (dump_subexp_body): Likewise.
4663 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4664 (f_language::expression_ops): New member function.
4665 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4666 (go_language::expression_ops): New member function.
4667 * language.c (language_defn::expression_ops): New function.
4668 (unknown_language_data): Remove la_exp_desc initializer.
4669 (auto_language_data): Likewise.
4670 * language.h (language_data): Remove la_exp_desc field.
4671 (language_defn::expression_ops): Declare new member function.
4672 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4673 (m2_language::expression_ops): New member function.
4674 * objc-lang.c (objc_language_data): Remove la_exp_desc
4675 initializer.
4676 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4677 initializer.
4678 (opencl_language::expression_ops): New member function.
4679 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4680 * parse.c (operator_length): Update call to expression_ops.
4681 (exp_iterate): Likewise.
4682 * rust-lang.c (rust_language_data): Remove la_exp_desc
4683 initializer.
4684 (ruse_language::expression_ops): New member function.
4685
b63a3f3f
AB
46862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4687
4688 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4689 initializer.
4690 (ada_language::varobj_ops): New member function.
4691 * c-lang.c (c_language_data): Remove la_varobj_ops
4692 initializer.
4693 (cplus_language_data): Likewise.
4694 (cplus_language::varobj_ops): New member function.
4695 (asm_language_data): Remove la_varobj_ops initializer.
4696 (minimal_language_data): Likewise.
4697 * d-lang.c (d_language_data): Likewise.
4698 * f-lang.c (f_language_data): Likewise.
4699 * go-lang.c (go_language_data): Likewise.
4700 * language.c (language_defn::varobj_ops): New function.
4701 (unknown_language_data): Remove la_varobj_ops
4702 initializer.
4703 (auto_language_data): Likewise.
4704 * language.h (language_data): Remove la_varobj_ops field.
4705 (language_defn::varobj_ops): Declare new member function.
4706 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4707 * objc-lang.c (objc_language_data): Likewise.
4708 * opencl-lang.c (opencl_language_data): Likewise.
4709 * p-lang.c (pascal_language_data): Likewise.
4710 * rust-lang.c (rust_language_data): Likewise.
4711 * varobj.c (varobj_create): Update call to varobj_ops.
4712 * varobj.h (default_varobj_ops): Delete define.
4713
1ac14a04
AB
47142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4715
4716 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4717 initializer.
4718 * c-lang.c (c_language_data): Likewise.
4719 (c_language::macro_expansion): New member function.
4720 (cplus_language_data): Likewise.
4721 (cplus_language::macro_expansion): New member function.
4722 (asm_language_data): Likewise.
4723 (asm_language::macro_expansion): New member function.
4724 (minimal_language_data): Likewise.
4725 (minimal_language::macro_expansion): New member function.
4726 * d-lang.c (d_language_data): Remove la_macro_expansion
4727 initializer.
4728 * f-lang.c (f_language_data): Likewise.
4729 * go-lang.c (go_language_data): Likewise.
4730 * language.c (unknown_language_data): Likewise.
4731 (auto_language_data): Likewise.
4732 * language.h (language_data): Remove la_macro_expansion field.
4733 (language_defn::macro_expansion): New member function.
4734 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4735 initializer.
4736 * objc-lang.c (objc_language_data): Likewise.
4737 (objc_language::macro_expansion): New member function.
4738 * opencl-lang.c (opencl_language_data): Likewise.
4739 (opencl_language::macro_expansion): New member function.
4740 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4741 initializer.
4742 * rust-lang.c (rust_language_data): Likewise.
4743 * symtab.c (default_collect_symbol_completion_matches_break_on):
4744 Update call to macro_expansion.
4745
3a3440fb
AB
47462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4747
4748 * ada-lang.c (ada_language_data): Remove la_array_ordering
4749 initializer.
4750 * c-lang.c (c_language_data): Likewise.
4751 (cplus_language_data): Likewise.
4752 (asm_language_data): Likewise.
4753 (minimal_language_data): Likewise.
4754 * d-lang.c (d_language_data): Likewise.
4755 * dwarf2/read.c (read_array_order): Update for call to
4756 array_ordering.
4757 * f-lang.c (f_language_data): Remove la_array_ordering
4758 initializer.
4759 (f_language::array_ordering): New member function.
4760 * go-lang.c (go_language_data): Remove la_array_ordering
4761 initializer.
4762 * language.c (unknown_language_data): Likewise.
4763 (auto_language_data): Likewise.
4764 * language.h (language_data): Delete la_array_ordering field.
4765 (language_defn::array_ordering): New member function.
4766 * m2-lang.c (m2_language_data): Remove la_array_ordering
4767 initializer.
4768 * objc-lang.c (objc_language_data): Likewise.
4769 * opencl-lang.c (opencl_language_data): Likewise.
4770 * p-lang.c (pascal_language_data): Likewise.
4771 * rust-lang.c (rust_language_data): Likewise.
4772
0d201fa4
AB
47732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4774
4775 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4776 initializer.
4777 * c-lang.c (c_language_data): Likewise.
4778 (cplus_language_data): Likewise.
4779 (asm_language_data): Likewise.
4780 (minimal_language_data): Likewise.
4781 * d-lang.c (d_language_data): Likewise.
4782 * f-lang.c (f_language_data): Likewise.
4783 (f_language::case_sensitivity): New member function.
4784 * go-lang.c (go_language_data): Remove la_case_sensitivity
4785 initializer.
4786 * language.c (enum case_mode): Moved here from language.h.
4787 (case_mode): Make static.
4788 (show_case_command): Update for case_sensitivity being a method.
4789 (set_case_command): Likewise.
4790 (set_range_case): Likewise.
4791 (unknown_language_data): Remove la_case_sensitivity initializer.
4792 (auto_language_data): Likewise.
4793 * language.h (case_mode): Delete, move enum declaration to
4794 language.c.
4795 (language_data): Delete la_case_sensitivity field.
4796 (language_defn::case_sensitivity): New member function.
4797 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4798 initializer.
4799 * objc-lang.c (objc_language_data): Likewise.
4800 * opencl-lang.c (opencl_language_data): Likewise.
4801 * p-lang.c (pascal_language_data): Likewise.
4802 * rust-lang.c (rust_language_data): Likewise.
4803
efdf6a73
AB
48042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4805
4806 * ada-lang.c (ada_language_data): Remove la_range_check
4807 initializer.
4808 * c-lang.c (c_language_data): Likewise.
4809 (cplus_language_data): Likewise.
4810 (asm_language_data): Likewise.
4811 (minimal_language_data): Likewise.
4812 * d-lang.c (d_language_data): Likewise.
4813 * f-lang.c (f_language_data): Likewise.
4814 (f_language::range_checking_on_by_default): New member function.
4815 * go-lang.c (go_language_data): Remove la_range_check initializer.
4816 * language.c (enum range_mode): Moved here from language.h.
4817 (range_mode): Made static.
4818 (show_range_command): Update to use
4819 range_checking_on_by_default.
4820 (set_range_command): Likewise.
4821 (set_range_case): Likewise.
4822 (unknown_language_data): Remove la_range_check initializer.
4823 (auto_language_data): Likewise.
4824 * language.h (range_mode): Delete. Enum definition moved to
4825 language.c.
4826 (language_data): Remove la_range_check field.
4827 (language_defn::range_checking_on_by_default): New member
4828 function.
4829 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4830 (m2_language::range_checking_on_by_default): New member function.
4831 * objc-lang.c (objc_language_data): Remove la_range_check
4832 initializer.
4833 * opencl-lang.c (opencl_language_data): Likewise.
4834 * p-lang.c (pascal_language_data): Likewise.
4835 (pascal_language::range_checking_on_by_default): New member
4836 function.
4837 * rust-lang.c (rust_language_data): Remove la_range_check
4838 initializer.
4839 (rust_language::range_checking_on_by_default): New member
4840 function.
4841
bf92aec5
AB
48422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4843
4844 * dwarf2/read.c (dwarf2_physname): Remove special case for
4845 language_go.
4846 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4847 member function.
4848
d3355e4d
AB
48492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4850
4851 * ada-lang.c (ada_language_data): Remove
4852 la_store_sym_names_in_linkage_form_p initializer.
4853 (ada_language::store_sym_names_in_linkage_form_p): New member
4854 function.
4855 * c-lang.c (c_language_data): Remove
4856 la_store_sym_names_in_linkage_form_p initializer.
4857 (c_language::store_sym_names_in_linkage_form_p): New member
4858 function.
4859 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4860 initializer.
4861 (asm_language_data): Likewise.
4862 (asm_language::store_sym_names_in_linkage_form_p): New member
4863 function.
4864 (minimal_language_data): Remove
4865 la_store_sym_names_in_linkage_form_p initializer.
4866 (minimal_language::store_sym_names_in_linkage_form_p): New member
4867 function.
4868 * d-lang.c (d_language_data): Remove
4869 la_store_sym_names_in_linkage_form_p initializer.
4870 * dwarf2/read.c (dwarf2_physname): Update call to
4871 store_sym_names_in_linkage_form_p.
4872 * f-lang.c (f_language_data): Remove
4873 la_store_sym_names_in_linkage_form_p initializer.
4874 * go-lang.c (go_language_data): Remove
4875 la_store_sym_names_in_linkage_form_p initializer.
4876 * language.c (unknown_language_data): Remove
4877 la_store_sym_names_in_linkage_form_p initializer.
4878 (unknown_language::store_sym_names_in_linkage_form_p): New member
4879 function.
4880 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4881 initializer.
4882 (auto_language::store_sym_names_in_linkage_form_p): New member
4883 function.
4884 * language.h (language_data): Remove
4885 la_store_sym_names_in_linkage_form_p member variable.
4886 (language_defn::store_sym_names_in_linkage_form_p): New member
4887 function.
4888 * m2-lang.c (m2_language_data): Remove
4889 la_store_sym_names_in_linkage_form_p initializer.
4890 * objc-lang.c (objc_language_data): Likewise.
4891 * opencl-lang.c (opencl_language_data): Likewise.
4892 * p-lang.c (pascal_language_data): Likewise.
4893 * rust-lang.c (rust_language_data): Likewise.
4894
22c12a6c
AB
48952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4896
4897 * ada-lang.c (ada_language_data): Remove string_lower_bound
4898 initializer.
4899 * c-lang.c (c_language_data): Likewise.
4900 (cplus_language_data): Likewise.
4901 (asm_language_data): Likewise.
4902 (minimal_language_data): Likewise.
4903 * d-lang.c (d_language_data): Likewise.
4904 * f-lang.c (f_language_data): Likewise.
4905 * go-lang.c (go_language_data): Likewise.
4906 * language.c (unknown_language_data): Likewise.
4907 (auto_language_data): Likewise.
4908 * language.h (language_data): Remove string_lower_bound field.
4909 (language_defn::string_lower_bound): New member function.
4910 * m2-lang.c (m2_language_data): Remove string_lower_bound
4911 initializer.
4912 (m2_language::string_lower_bound): New member function.
4913 * objc-lang.c (objc_language_data): Remove string_lower_bound
4914 initializer.
4915 * opencl-lang.c (opencl_language_data): Likewise.
4916 * p-lang.c (pascal_language_data): Likewise.
4917 * rust-lang.c (rust_language_data): Likewise.
4918 * valops.c (value_cstring): Update call to string_lower_bound.
4919 (value_string): Likewise.
4920 * value.c (allocate_repeated_value): Likewise.
4921
1c236ddd
AB
49222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4923
4924 * valops.c (value_repeat): Fix incorrect argument name in comment.
4925
67bd3fd5
AB
49262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4927
4928 * ada-lang.c (ada_language_data): Remove c_style_arrays
4929 initializer.
4930 (ada_language::c_style_arrays_p): New member fuction.
4931 * c-lang.c (c_language_data): Remove c_style_arrays
4932 initializer.
4933 (cplus_language_data): Likewise.
4934 (asm_language_data): Likewise.
4935 (minimal_language_data): Likewise.
4936 * d-lang.c (d_language_data): Likewise.
4937 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4938 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4939 (f_language::c_style_arrays_p): New member function.
4940 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4941 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4942 * language.c (unknown_language_data): Remove c_style_arrays
4943 initializer.
4944 (auto_language_data): Likewise.
4945 * language.h (language_data): Remove c_style_arrays field.
4946 (language_defn::c_style_arrays_p): New member function.
4947 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4948 (m2_language::c_style_arrays_p): New member function.
4949 * objc-lang.c (objc_language_data): Remove c_style_arrays
4950 initializer.
4951 * opencl-lang.c (opencl_language_data): Likewise.
4952 * p-lang.c (pascal_language_data): Likewise.
4953 * rust-lang.c (rust_language_data): Likewise.
4954 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4955 and update local variable to a bool.
4956 * valops.c (value_cast): Update call to c_style_arrays_p.
4957 (value_array): Likewise.
4958 * value.c (coerce_array): Likewise.
4959
85967615
AB
49602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4961
4962 * ada-lang.c (ada_language_data): Remove la_language initializer.
4963 * c-lang.c (c_language_data): Likewise.
4964 (cplus_language_data): Likewise.
4965 (asm_language_data): Likewise.
4966 (minimal_language_data): Likewise.
4967 * d-lang.c (d_language_data): Likewise.
4968 * f-lang.c (f_language_data): Likewise.
4969 * go-lang.c (go_language_data): Likewise.
4970 * language.c (unknown_language_data): Likewise.
4971 (auto_language_data): Likewise.
4972 * language.h (language_data): Remove la_language field.
4973 (language_defn::language_defn): Initialise la_language field.
4974 (language_defn::la_language): New member variable.
4975 * m2-lang.c (m2_language_data): Remove la_language field.
4976 * objc-lang.c (objc_language_data): Likewise.
4977 * opencl-lang.c (opencl_language_data): Likewise.
4978 * p-lang.c (pascal_language_data): Likewise.
4979 * rust-lang.c (rust_language_data): Likewise.
4980
e171d6f1
AB
49812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4982
4983 * ada-lang.c (ada_extensions): Delete, moved into
4984 ada_language::filename_extensions.
4985 (ada_language_data): Remove la_filename_extensions initializer.
4986 (ada_language::filename_extensions): New member function.
4987 * c-lang.c (c_extensions): Delete, moved into
4988 c_language::filename_extensions.
4989 (c_language_data): Remove la_filename_extensions initializer.
4990 (c_language::filename_extensions): New member function.
4991 (cplus_extensions): Delete, moved into
4992 cplus_language::filename_extensions.
4993 (cplus_language_data): Remove la_filename_extensions initializer.
4994 (cplus_language::filename_extensions): New member function.
4995 (asm_extensions): Delete, moved into
4996 asm_language::filename_extensions.
4997 (asm_language_data): Remove la_filename_extensions initializer.
4998 (asm_language::filename_extensions): New member function.
4999 (minimal_language_data): Remove la_filename_extensions
5000 initializer.
5001 * d-lang.c (d_extensions): Delete, moved into
5002 d_language::filename_extensions.
5003 (d_language_data): Remove la_filename_extensions initializer.
5004 (d_language::filename_extensions): New member function.
5005 * f-lang.c (f_extensions): Delete, moved into
5006 f_language::filename_extensions.
5007 (f_language_data): Remove la_filename_extensions initializer.
5008 (f_language::filename_extensions): New member function.
5009 * go-lang.c (go_language_data): Remove la_filename_extensions
5010 initializer.
5011 * language.c (add_set_language_command): Update now that
5012 filename_extensions returns a vector.
5013 (unknown_language_data): Remove la_filename_extensions
5014 initializer.
5015 (auto_language_data): Likewise.
5016 * language.h (language_data): Remove la_filename_extensions field.
5017 (language_defn::filename_extensions): New member function.
5018 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5019 initializer.
5020 * objc-lang.c (objc_extensions): Delete, moved into
5021 objc_language::filename_extensions.
5022 (objc_language_data): Remove la_filename_extensions initializer.
5023 (objc_language::filename_extensions): New member function.
5024 * opencl-lang.c (opencl_language_data): Remove
5025 la_filename_extensions initializer.
5026 * p-lang.c (pascal_extensions): Delete, moved into
5027 pascal_language::filename_extensions.
5028 (pascal_language_data): Remove la_filename_extensions initializer.
5029 (pascal_language::filename_extensions): New member function.
5030 * rust-lang.c (rust_extensions): Delete, moved into
5031 rust_language::filename_extensions.
5032 (rust_language_data): Remove la_filename_extensions initializer.
5033 (rust_language::filename_extensions): New member function.
5034 * symfile.c (add_filename_language): Add new assert.
5035
6f7664a9
AB
50362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5037
5038 * ada-lang.c (ada_language_data): Remove la_name and
5039 la_natural_name initializers.
5040 (ada_language::name): New member function.
5041 (ada_language::natural_name): New member function.
5042 * c-lang.c (c_language_data): Remove la_name and
5043 la_natural_name initializers.
5044 (c_language::name): New member function.
5045 (c_language::natural_name): New member function.
5046 (cplus_language_data): Remove la_name and
5047 la_natural_name initializers.
5048 (cplus_language::name): New member function.
5049 (cplus_language::natural_name): New member function.
5050 (asm_language_data): Remove la_name and
5051 la_natural_name initializers.
5052 (asm_language::name): New member function.
5053 (asm_language::natural_name): New member function.
5054 (minimal_language_data): Remove la_name and
5055 la_natural_name initializers.
5056 (minimal_language::name): New member function.
5057 (minimal_language::natural_name): New member function.
5058 * compile/compile.c (compile_to_object): Update call to
5059 lanugage_defn::name.
5060 * d-lang.c (d_language_data): Remove la_name and
5061 la_natural_name initializers.
5062 (d_language::name): New member function.
5063 (d_language::natural_name): New member function.
5064 * expprint.c (print_subexp_standard): Update call to
5065 language_defn::name.
5066 (dump_raw_expression): Likewise
5067 (dump_prefix_expression): Likewise.
5068 * f-lang.c (f_language_data): Remove la_name and
5069 la_natural_name initializers.
5070 (f_language::name): New member function.
5071 (f_language::natural_name): New member function.
5072 * go-lang.c (go_language_data): Remove la_name and
5073 la_natural_name initializers.
5074 (go_language::name): New member function.
5075 (go_language::natural_name): New member function.
5076 * language.c (show_language_command): Update call to
5077 language_defn::name.
5078 (set_language_command): Likewise.
5079 (language_enum): Likewise.
5080 (language_str): Likewise.
5081 (add_set_language_command): Likewise, use
5082 language_defn::natural_name in the doc string.
5083 (unknown_language_data): Remove la_name and
5084 la_natural_name initializers.
5085 (unknown_language::name): New member function.
5086 (unknown_language::natural_name): New member function.
5087 (auto_language_data): Remove la_name and
5088 la_natural_name initializers.
5089 (auto_language::name): New member function.
5090 (auto_language::natural_name): New member function.
5091 (language_lookup_primitive_type_as_symbol): Update call to
5092 language_defn::name.
5093 * language.h (language_data): Remove la_name and la_natural_name
5094 member variables.
5095 (language_defn::name): New member function.
5096 (language_defn::natural_name): New member function.
5097 * m2-lang.c (m2_language_data): Remove la_name and
5098 la_natural_name initializers.
5099 (m2_language::name): New member function.
5100 (m2_language::natural_name): New member function.
5101 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5102 language_defn::natural_name.
5103 * objc-lang.c (objc_language_data): Remove la_name and
5104 la_natural_name initializers.
5105 (objc_language::name): New member function.
5106 (objc_language::natural_name): New member function.
5107 * opencl-lang.c (opencl_language_data): Remove la_name and
5108 la_natural_name initializers.
5109 (opencl_language::name): New member function.
5110 (opencl_language::natural_name): New member function.
5111 * p-lang.c (pascal_language_data): Remove la_name and
5112 la_natural_name initializers.
5113 (pascal_language::name): New member function.
5114 (pascal_language::natural_name): New member function.
5115 * rust-lang.c (rust_language_data): Remove la_name and
5116 la_natural_name initializers.
5117 (rust_language::name): New member function.
5118 (rust_language::natural_name): New member function.
5119 * symtab.c (lookup_language_this): Update call to
5120 language_defn::name.
5121
5bae7c4e
AB
51222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5123
5124 * ada-lang.c (ada_language_data): Remove la_name_of_this
5125 initializer.
5126 * ax-gdb.c (gen_expr): Update call to name_of_this.
5127 * c-exp.y (classify_name): Likewise.
5128 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5129 (cplus_language_data): Likewise.
5130 (cplus_language::name_of_this): New member function.
5131 (asm_language_data): Remove la_name_of_this initializer.
5132 (minimal_language_data): Likewise.
5133 * d-lang.c (d_language_data): Likewise.
5134 (d_language::name_of_this): New member function.
5135 * expprint.c (print_subexp_standard): Update call to name_of_this.
5136 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5137 * go-lang.c (go_language_data): Likewise.
5138 * language.c (unknown_language_data): Likewise.
5139 (unknown_language::name_of_this): New member function.
5140 (auto_language_data): Remove la_name_of_this initializer.
5141 (auto_language::name_of_this): New member function.
5142 * language.h (language_data): Delete la_name_of_this member
5143 variable.
5144 (language_defn::name_of_this): New member function.
5145 * m2-lang.c (m2_language_data): Remove la_name_of_this
5146 initializer.
5147 * objc-lang.c (objc_language_data): Likewise.
5148 (objc_language::name_of_this): New member function.
5149 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5150 initializer.
5151 * p-lang.c (pascal_language_data): Likewise.
5152 (pascal_language::name_of_this): New member function.
5153 * rust-lang.c (rust_language_data): Remove la_name_of_this
5154 initializer.
5155 * symtab.c (lookup_language_this): Update call to name_of_this.
5156 (lookup_symbol_aux): Likewise.
5157 * valops.c (value_of_this): Likewise.
5158
22e3f3ed
AB
51592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5160
5161 * ada-lang.c (ada_language_data): Remove
5162 la_struct_too_deep_ellipsis initializer.
5163 (ada_language::struct_too_deep_ellipsis): New member function.
5164 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5165 initializer.
5166 (cplus_language_data): Likewise.
5167 (asm_language_data): Likewise.
5168 (minimal_language_data): Likewise.
5169 * cp-valprint.c (cp_print_value): Update call to
5170 struct_too_deep_ellipsis.
5171 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5172 initializer.
5173 * f-lang.c (f_language_data): Likewise.
5174 (f_language::struct_too_deep_ellipsis): New member function.
5175 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5176 initializer.
5177 * language.c (unknown_language_data): Likewise.
5178 (auto_language_data): Likewise.
5179 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5180 member variable.
5181 (language_defn::struct_too_deep_ellipsis): New member function.
5182 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5183 initializer.Q
5184 * objc-lang.c (objc_language_data): Likewise.
5185 * opencl-lang.c (opencl_language_data): Likewise.
5186 * p-lang.c (pascal_language_data): Likewise.
5187 * rust-lang.c (rust_language_data): Likewise.
5188 * valprint.c (val_print_check_max_depth): Update call to
5189 struct_too_deep_ellipsis.
5190
ed29e1c7
FW
51912020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5192
5193 * MAINTAINERS (Write After Approval): Add myself.
5194
12d8f940
TT
51952020-09-15 Tom Tromey <tom@tromey.com>
5196
5197 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5198 Remove.
5199
6b5a7bc7
TT
52002020-09-15 Tom Tromey <tom@tromey.com>
5201
5202 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5203 and TYPE_CODE_METHODPTR cases.
5204 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5205 (c_value_print_inner): Update.
5206 * valprint.c (generic_value_print_memberptr): New function, from
5207 c_value_print_memberptr.
5208 (generic_value_print): Use it. Call cplus_print_method_ptr.
5209
47f0e2ff
TT
52102020-09-15 Tom Tromey <tromey@adacore.com>
5211
5212 * python/python-internal.h (PyInt_FromLong): Remove define.
5213 * python/py-value.c (convert_value_from_python): Use
5214 gdb_py_object_from_longest.
5215 * python/py-type.c (typy_get_code): Use
5216 gdb_py_object_from_longest.
5217 * python/py-symtab.c (salpy_get_line): Use
5218 gdb_py_object_from_longest.
5219 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5220 gdb_py_object_from_longest.
5221 * python/py-record.c (recpy_gap_reason_code): Use
5222 gdb_py_object_from_longest.
5223 * python/py-record-btrace.c (recpy_bt_insn_size)
5224 (recpy_bt_func_level, btpy_list_count): Use
5225 gdb_py_object_from_longest.
5226 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5227 gdb_py_object_from_longest. Fix error handling.
5228 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5229 gdb_py_object_from_longest.
5230 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5231 gdb_py_object_from_longest.
5232 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5233 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5234 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5235
512116ce
TT
52362020-09-15 Tom Tromey <tromey@adacore.com>
5237
5238 * python/python.c (gdbpy_parameter_value): Use
5239 gdb_py_object_from_ulongest.
5240
4ab1029c
TT
52412020-09-15 Tom Tromey <tromey@adacore.com>
5242
5243 * python/py-infevents.c (create_register_changed_event_object):
5244 Use gdb_py_object_from_longest.
5245 * python/py-exitedevent.c (create_exited_event_object): Use
5246 gdb_py_object_from_longest.
5247
062534d4
TT
52482020-09-15 Tom Tromey <tromey@adacore.com>
5249
5250 * python/python.c (gdbpy_parameter_value): Use
5251 gdb_py_object_from_longest.
5252 * python/py-type.c (convert_field, typy_range): Use
5253 gdb_py_object_from_longest.
5254 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5255 gdb_py_object_from_longest.
5256 * python/py-lazy-string.c (stpy_get_length): Use
5257 gdb_py_object_from_longest.
5258 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5259 gdb_py_object_from_longest.
5260 * python/py-infevents.c (create_memory_changed_event_object): Use
5261 gdb_py_object_from_longest.
5262 * python/py-inferior.c (infpy_get_num): Use
5263 gdb_py_object_from_longest.
5264 (infpy_get_pid): Likewise.
5265
d1cab987
TT
52662020-09-15 Tom Tromey <tromey@adacore.com>
5267
5268 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5269 defines.
5270 * python/py-value.c (valpy_long): Use
5271 gdb_py_object_from_ulongest.
5272 * python/py-symtab.c (salpy_get_pc): Use
5273 gdb_py_object_from_ulongest.
5274 (salpy_get_last): Likewise.
5275 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5276 gdb_py_object_from_ulongest.
5277 * python/py-lazy-string.c (stpy_get_address): Use
5278 gdb_py_object_from_ulongest.
5279 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5280 * python/py-arch.c (archpy_disassemble): Use
5281 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5282 error handling.
5283
4bde49dc
TT
52842020-09-15 Tom Tromey <tromey@adacore.com>
5285
5286 * python/python-internal.h (gdb_py_long_from_longest): Remove
5287 defines.
5288 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5289 * python/py-type.c (convert_field, typy_get_sizeof): Use
5290 gdb_py_object_from_longest.
5291 * python/py-record-btrace.c (btpy_list_index): Use
5292 gdb_py_object_from_longest.
5293
37431074
TT
52942020-09-15 Tom Tromey <tromey@adacore.com>
5295
5296 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5297 * python/py-record.c (recpy_element_number): Use
5298 gdb_py_object_from_longest.
5299 (recpy_gap_number): Likewise.
5300
cbe25684
TT
53012020-09-15 Tom Tromey <tromey@adacore.com>
5302
5303 * top.c (ui::ui): Update.
5304 (highest_ui_num): Remove.
5305 * top.h (struct ui) <num>: Remove.
5306
db92ac45
TT
53072020-09-15 Tom Tromey <tromey@adacore.com>
5308
5309 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5310 * ui-style.c (ansi_regex_text): Now array.
5311 * rust-exp.y (number_regex_text): Now array.
5312 * linespec.c (linespec_quote_characters): Now array.
5313 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5314 Now arrays.
5315
d2b31b67
SM
53162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5317
5318 * debuginfod-support.c (debuginfod_client_deleter): New.
5319 (debuginfod_client_up): New.
5320 (debuginfod_init): Return debuginfod_client_up.
5321 (debuginfod_source_query): Adjust.
5322 (debuginfod_debuginfo_query): Adjust.
5323
3246bd8e
SM
53242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5325
5326 * debuginfod-support.c (debuginfod_source_query): Use
5327 make_unique_xstrdup.
5328
10242f36
SM
53292020-09-14 Simon Marchi <simon.marchi@efficios.com>
5330
5331 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5332 with `type::instance_flags`.
5333
e1044e6a
MM
53342020-09-14 Michael Mullin <masmullin@gmail.com>
5335
5336 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5337 Remove baton parameter.
5338
04902b09
PA
53392020-09-14 Pedro Alves <pedro@palves.net>
5340
5341 * Makefile.in (SELFTESTS_SRCS): Add
5342 unittests/enum-flags-selftests.c.
5343 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5344 btrace_function_flags instead of enum btrace_function_flag.
5345 * compile/compile-c-types.c (convert_qualified): Use
5346 enum_flags::raw.
5347 * compile/compile-cplus-symbols.c (convert_one_symbol)
5348 (convert_symbol_bmsym):
5349 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5350 (compile_cplus_convert_struct_or_union_methods)
5351 (compile_cplus_instance::convert_qualified_base):
5352 * go-exp.y (parse_string_or_char): Add cast to int.
5353 * unittests/enum-flags-selftests.c: New file.
5354 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5355 type to btrace_thread_flags from btrace_thread_flag.
5356 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5357 local's type to btrace_thread_flags from btrace_thread_flag. Add
5358 cast in DEBUG call.
5359
69896a2c
PA
53602020-09-14 Pedro Alves <pedro@palves.net>
5361
5362 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5363 * gdbtypes.c (address_space_name_to_int): Rename to ...
5364 (address_space_name_to_type_instance_flags): ... this.
5365 (address_space_int_to_name): Rename to ...
5366 (address_space_type_instance_flags_to_name): ... this.
5367 * gdbtypes.h (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 * type-stack.c (type_stack::insert): Adjust to rename.
5372 * type-stack.h (type_stack::insert): Likewise.
5373
314ad88d
PA
53742020-09-14 Pedro Alves <pedro@palves.net>
5375 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * avr-tdep.c (avr_address_class_type_flags): Return
5378 type_instance_flags.
5379 (avr_address_class_type_flags_to_name): Take a
5380 type_instance_flags.
5381 (avr_address_class_name_to_type_flags): Return bool and take a
5382 type_instance_flags.
5383 * d-lang.c (build_d_types): Use type::set_instance_flags.
5384 * ft32-tdep.c (ft32_address_class_type_flags): Return
5385 type_instance_flags.
5386 (ft32_address_class_type_flags_to_name): Take a
5387 type_instance_flags.
5388 (ft32_address_class_name_to_type_flags): Return bool and take a
5389 type_instance_flags.
5390 (ft32_gdbarch_init): Use type::set_instance_flags.
5391 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5392 * gdbarch.h, gdbarch.c: Regenerate.
5393 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5394 (address_class_name_to_type_flags): Use type_instance_flags and
5395 bool.
5396 * gdbtypes.c (address_space_name_to_int)
5397 (address_space_int_to_name, make_qualified_type): Use
5398 type_instance_flags.
5399 (make_qualified_type): Use type_instance_flags and
5400 type::set_instance_flags.
5401 (make_type_with_address_space, make_cv_type, make_vector_type)
5402 (check_typedef): Use type_instance_flags.
5403 (recursive_dump_type): Cast type_instance_flags to unsigned for
5404 printing.
5405 (copy_type_recursive): Use type::set_instance_flags.
5406 (gdbtypes_post_init): Use type::set_instance_flags.
5407 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5408 <m_instance_flags>: ... this.
5409 <instance_flags, set_instance_flags>: New methods.
5410 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5411 (SET_TYPE_INSTANCE_FLAGS): New.
5412 (address_space_name_to_int, address_space_int_to_name)
5413 (make_type_with_address_space): Pass flags using
5414 type_instance_flags instead of int.
5415 * stabsread.c (cleanup_undefined_types_noname): Use
5416 type::set_instance_flags.
5417 * s390-tdep.c (s390_address_class_type_flags): Return
5418 type_instance_flags.
5419 (s390_address_class_type_flags_to_name): Take a
5420 type_instance_flags.
5421 (s390_address_class_name_to_type_flags): Return bool and take a
5422 type_instance_flags.
5423 * type-stack.c (type_stack::follow_types): Use
5424 type_instance_flags.
5425 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5426
27087b7f
TT
54272020-09-14 Tom Tromey <tromey@adacore.com>
5428
5429 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5430 * x86-tdep.c (x86_is_thunk_register_name)
5431 (x86_in_indirect_branch_thunk): Update.
5432 * sparc64-tdep.c (sparc64_fpu_register_names)
5433 (sparc64_cp0_register_names, sparc64_register_names)
5434 (sparc64_pseudo_register_names): Now const.
5435 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5436 cp0_registers_num>: Now const.
5437 * sparc-tdep.c (sparc_core_register_names)
5438 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5439 (sparc32_pseudo_register_names): Now const.
5440 (validate_tdesc_registers): Update.
5441 * rust-lang.c (rust_extensions): Now const.
5442 * p-lang.c (p_extensions): Now const.
5443 * objc-lang.c (objc_extensions): Now const.
5444 * nto-tdep.c (nto_thread_state_str): Now const.
5445 * moxie-tdep.c (moxie_register_names): Now const.
5446 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5447 Now const.
5448 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5449 (mips_linux_reg_names): Now const.
5450 (mips_gdbarch_init): Update.
5451 * microblaze-tdep.c (microblaze_register_names): Now const.
5452 * m68k-tdep.c (m68k_register_names): Now const.
5453 * m32r-tdep.c (m32r_register_names): Now const.
5454 * ia64-tdep.c (ia64_register_names): Now const.
5455 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5456 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5457 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5458 ymm_avx512_register_names, pkeys_register_names>: Now const.
5459 * i386-tdep.c (i386_register_names, i386_zmm_names)
5460 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5461 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5462 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5463 * f-lang.c (f_extensions): Now const.
5464 * d-lang.c (d_extensions): Now const.
5465 * csky-tdep.c (csky_register_names): Now const.
5466 * charset.c (default_charset_names, charset_enum): Now const.
5467 (_initialize_charset): Update.
5468 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5469 const.
5470 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5471 (bsd_uthread_solib_loaded): Update.
5472 (bsd_uthread_state): Now const.
5473 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5474 (amd64_ymm_avx512_names, amd64_ymmh_names)
5475 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5476 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5477 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5478 (amd64_dword_names): Now const.
5479 * agent.c (can_use_agent_enum): Now const.
5480 * ada-tasks.c (task_states, long_task_states): Now const.
5481 * ada-lang.c (known_runtime_file_name_patterns)
5482 (known_auxiliary_function_name_patterns, attribute_names)
5483 (standard_exc, ada_extensions): Now const.
5484
89806626
SM
54852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5486
5487 * bcache.h (struct bcache) <bcache>: Remove constructor.
5488 <m_hash_function, m_compare_function>: Remove.
5489 <~bcache>: Make virtual.
5490 <compare>: Remove static method, introduce virtual method.
5491 <default_hash>: Remove.
5492 <hash>: New virtual method.
5493 * bcache.c (bcache::expand_hash_table): Update.
5494 (bcache::insert): Update.
5495 (bcache::hash): New.
5496 (bcache::compare): Update comment and parameter names.
5497 * gdbtypes.c (types_deeply_equal): Update.
5498 * psymtab.h (struct psymbol_bcache): New struct.
5499 (class psymtab_storage) <psymtab_storage>: Make default.
5500 <psymbol_cache>: Change type to psymbol_bcache.
5501 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5502 (psymbol_hash): Change to...
5503 (psymbol_bcache::hash): ... this.
5504 (psymbol_compare): Change to...
5505 (psymbol_bcache::compare): ... this.
5506
677c92fe
SM
55072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5508
5509 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5510 checking for initial lwp.
5511
3eba3a01
TT
55122020-09-14 Tom Tromey <tromey@adacore.com>
5513
5514 * m68k-tdep.c (m68k_extract_return_value): Use
5515 pointer_result_regnum.
5516 (m68k_store_return_value): Likewise.
5517 (m68k_reg_struct_return_p): Handle vectors and arrays.
5518 (m68k_return_value): Handle arrays.
5519 (m68k_svr4_return_value): Fix single-element aggregate handling.
5520 Handle long double. Adjust for embedded ABI.
5521 (m68k_svr4_init_abi): Set pointer_result_regnum.
5522 (m68k_embedded_init_abi): New function.
5523 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5524 (m68k_osabi_sniffer): New function.
5525 (_initialize_m68k_tdep): Register osabi sniffer.
5526 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5527 member.
5528
33f4dd48
SM
55292020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5530
5531 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5532 with gdb::unique_xmalloc_ptr<char>.
5533
8400a90d
SM
55342020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5535
5536 * xml-support.h (xml_fetch_another): Change type to be a
5537 function_view.
5538 (xml_process_xincludes): Remove baton parameter.
5539 (xml_fetch_content_from_file): Change baton parameter to
5540 dirname.
5541 * xml-support.c (struct xinclude_parsing_data)
5542 <xinclude_parsing_data>: Remove baton parameter.
5543 <fetcher_baton>: Remove.
5544 (xinclude_start_include): Adjust.
5545 (xml_process_xincludes): Adjust.
5546 (xml_fetch_content_from_file): Replace baton parameter with
5547 dirname.
5548 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5549 (xml_init_syscalls_info): Use a lambda.
5550 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5551 (file_read_description_xml): Use a lambda.
5552 (fetch_available_features_from_target): Change baton parameter
5553 to target_ops.
5554 (target_read_description_xml): Use a lambda.
5555 (target_fetch_description_xml): Use a lambda.
5556 (string_read_description_xml): Update.
5557
04f5bab2
SM
55582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5559
5560 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5561 uses with type::endianity_is_not_default.
5562
db558e34
SM
55632020-09-14 Simon Marchi <simon.marchi@efficios.com>
5564
5565 * gdbtypes.h (struct type) <endianity_is_not_default,
5566 set_endianity_is_not_default>: New methods.
5567 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5568 type::endianity_is_not_default, change all write call sites to
5569 use type::set_endianity_is_not_default.
5570
22c4c60c
SM
55712020-09-14 Simon Marchi <simon.marchi@efficios.com>
5572
5573 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5574 uses with type::is_fixed_instance.
5575
9cdd0d12
SM
55762020-09-14 Simon Marchi <simon.marchi@efficios.com>
5577
5578 * gdbtypes.h (struct type) <is_fixed_instance,
5579 set_is_fixed_instance>: New methods.
5580 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5581 write call sites to use type::set_is_fixed_instance.
5582
0becda7a
SM
55832020-09-14 Simon Marchi <simon.marchi@efficios.com>
5584
5585 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5586 uses with type::is_gnu_ifunc.
5587
03cc7249
SM
55882020-09-14 Simon Marchi <simon.marchi@efficios.com>
5589
5590 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5591 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5592 use type::set_is_gnu_ifunc.
5593
3f46044c
SM
55942020-09-14 Simon Marchi <simon.marchi@efficios.com>
5595
5596 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5597 uses with type::stub_is_supported.
5598
9baccff6
SM
55992020-09-14 Simon Marchi <simon.marchi@efficios.com>
5600
5601 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5602 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5603 use type::set_stub_is_supported.
5604
bd63c870
SM
56052020-09-14 Simon Marchi <simon.marchi@efficios.com>
5606
5607 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5608 uses with type::is_vector.
5609
2062087b
SM
56102020-09-14 Simon Marchi <simon.marchi@efficios.com>
5611
5612 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5613 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5614 use type::set_is_vector.
5615
a409645d
SM
56162020-09-14 Simon Marchi <simon.marchi@efficios.com>
5617
5618 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5619 uses with type::has_varargs.
5620
1d6286ed
SM
56212020-09-14 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5624 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5625 use type::set_has_varargs.
5626
7f9f399b
SM
56272020-09-14 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5630 uses with type::is_prototyped.
5631
27e69b7a
SM
56322020-09-14 Simon Marchi <simon.marchi@efficios.com>
5633
5634 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5635 New methods.
5636 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5637 call sites to use type::set_is_prototyped.
5638
d2183968
SM
56392020-09-14 Simon Marchi <simon.marchi@efficios.com>
5640
5641 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5642 uses with type::target_is_stub.
5643
8f53807e
SM
56442020-09-14 Simon Marchi <simon.marchi@efficios.com>
5645
5646 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5647 New methods.
5648 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5649 sites to use type::set_target_is_stub.
5650
e46d3488
SM
56512020-09-14 Simon Marchi <simon.marchi@efficios.com>
5652
5653 * gdbtypes.h (TYPE_STUB): Remove, replace all
5654 uses with type::is_stub.
5655
b4b73759
SM
56562020-09-14 Simon Marchi <simon.marchi@efficios.com>
5657
5658 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5659 (TYPE_STUB): Use type::is_stub, change all write call sites to
5660 use type::set_is_stub.
5661
20ce4123
SM
56622020-09-14 Simon Marchi <simon.marchi@efficios.com>
5663
5664 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5665 type::has_no_signedness.
5666
15152a54
SM
56672020-09-14 Simon Marchi <simon.marchi@efficios.com>
5668
5669 * gdbtypes.h (struct type) <has_no_signedness,
5670 set_has_no_signedness>: New methods.
5671 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5672 call sites to use type::set_has_no_signedness.
5673
c6d940a9
SM
56742020-09-14 Simon Marchi <simon.marchi@efficios.com>
5675
5676 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5677 type::is_unsigned.
5678
653223d3
SM
56792020-09-14 Simon Marchi <simon.marchi@efficios.com>
5680
5681 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5682 methods.
5683 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5684 sites to use type::set_is_unsigned.
5685
55ea94da 56862020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5687 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5688
e851246a
SM
5689 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5690 pointer and stack frame offset when unwinding.
55ea94da 5691
6791b117
PA
56922020-09-13 Pedro Alves <pedro@palves.net>
5693
5694 * NEWS: Document "-break-insert --qualified".
5695 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5696
77f2120b
PA
56972020-09-13 Pedro Alves <pedro@palves.net>
5698
5699 * linespec.c (classify_mtype, compare_msyms): Delete.
5700 (search_minsyms_for_name): Remove classification logic. Instead
5701 filter out trampoline symbols if we also found an external
5702 function of the same name.
5703
ed6a896c
JB
57042020-09-13 Joel Brobecker <brobecker@adacore.com>
5705
5706 * NEWS: Create a new section for the next release branch.
5707 Rename the section of the current branch, now that it has
5708 been cut.
5709
32aea73e
JB
57102020-09-13 Joel Brobecker <brobecker@adacore.com>
5711
5712 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5713 * version.in: Bump version to 11.0.50.DATE-git.
5714
8087c3fa
JB
57152020-09-12 Joel Brobecker <brobecker@adacore.com>
5716
5717 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5718
2a67f09d
FW
57192020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5720 Felix Willgerodt <Felix.Willgerodt@intel.com>
5721
5722 * gdbarch.sh: Added bfloat16 type.
5723 * gdbarch.c: Regenerated.
5724 * gdbarch.h: Regenerated.
5725 * gdbtypes.c (floatformats_bfloat16): New struct.
5726 (gdbtypes_post_init): Add builtin_bfloat16.
5727 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5728 (floatformats_bfloat16): New struct.
5729 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5730 (i386_ymm_type): Add field "v16_bfloat16"
5731 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5732 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5733 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5734 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5735 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5736 * features/i386/64bit-avx512.c: Regenerated.
5737 * features/i386/64bit-sse.xml: Add bfloat16 type.
5738 * features/i386/64bit-sse.c: Regenerated.
5739
1347d111
FW
57402020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5741
5742 * i386-tdep.c (i386_zmm_type): Fix field names.
5743 (i386_ymm_type): Fix field names.
5744
7a4e8e7d
TBA
57452020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5746
5747 * breakpoint.c: Fix typo in the help message of the
5748 "set breakpoint condition-evaluation" command.
5749
cf4ac4be
KR
57502020-09-10 Kamil Rytarowski <n54@gmx.com>
5751
5752 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5753 * (nbsd_nat_target::pid_to_exec_file)
5754 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5755 (nbsd_nat_target::post_startup_inferior)
5756 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5757 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5758 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5759 * (nbsd_thread_lister): Remove.
5760
f404573e
KR
57612020-09-10 Kamil Rytarowski <n54@gmx.com>
5762
5763 * fork-inferior.c (startup_inferior): Avoid double free.
5764
1ccb2c17
KR
57652020-09-10 Kamil Rytarowski <n54@gmx.com>
5766
5767 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5768 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5769
feedfcc7
KR
57702020-09-10 Kamil Rytarowski <n54@gmx.com>
5771
5772 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5773 * netbsd-nat.c: Include <sys/ptrace.h>.
5774 * (netbsd_nat::enable_proc_events): Add.
5775
c489f8c6
KR
57762020-09-10 Kamil Rytarowski <n54@gmx.com>
5777
5778 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5779 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5780 (netbsd_nat::for_each_thread): Add.
5781 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5782 "gdbsupport/common-debug.h".
5783 * (netbsd_nat::netbsd_thread_lister)
5784 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5785 (netbsd_nat::for_each_thread): Add.
5786
330662f6
KR
57872020-09-10 Kamil Rytarowski <n54@gmx.com>
5788
5789 * netbsd-nat.h: Include <unistd.h>.
5790 * (netbsd_nat::pid_to_exec_file): Add.
5791 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5792 * (netbsd_nat::pid_to_exec_file) Add.
5793
70b67307
KR
57942020-09-10 Kamil Rytarowski <n54@gmx.com>
5795
5796 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5797
99cf6da6
KR
57982020-09-10 Kamil Rytarowski <n54@gmx.com>
5799
5800 * netbsd-nat.h: New file.
5801 * netbsd-nat.c: Likewise.
5802
1b788fb6
TT
58032020-09-09 Tom Tromey <tromey@adacore.com>
5804
5805 * ada-lang.c (remove_extra_symbols): Do not increment when
5806 removing an element
5807
03b0a45f
TT
58082020-09-08 Tom Tromey <tromey@adacore.com>
5809
5810 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5811
3cae4447
TT
58122020-09-08 Tom Tromey <tromey@adacore.com>
5813
5814 PR win32/25302:
5815 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5816 (gdb_bfd_init_data): New function.
5817 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5818
7f08fd51
TBA
58192020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5820
5821 * infrun.c (fetch_inferior_event): Use
5822 `switch_to_target_no_thread` to switch the target.
5823
3e6ff933
TT
58242020-09-06 Tom Tromey <tom@tromey.com>
5825
5826 * symfile.h (dwarf2_free_objfile): Don't declare.
5827
e56798df
AKS
58282020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5829
5830 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5831 to match 16 byte real/complex type generated by Flang compiler.
5832
8f5c6526
TV
58332020-09-03 Tom de Vries <tdevries@suse.de>
5834
5835 PR breakpoint/26546
5836 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5837 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5838
c5065df0
SM
58392020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5840
5841 * maint.c (index_digits): New function.
5842 (struct maint_print_section_data): Remove.
5843 (print_bfd_section_info): Remove print_data parameter, add arg
5844 and index_digits.
5845 (print_objfile_section_info): Likewise.
5846 (print_bfd_section_info_maybe_relocated): Likewise (plus
5847 objfile).
5848 (maintenance_info_sections): Adjust calls.
5849
02c6f3f1
TT
58502020-09-02 Tom Tromey <tromey@adacore.com>
5851
5852 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5853 for null pointers.
5854 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5855
ef5e5b0b
SM
58562020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5857
5858 * bcache.h (struct bcache) <insert>: Change type of `added` to
5859 pointer to bool.
5860 * bcache.c (bcache::insert): Likewise.
5861 * gdbtypes.c (check_types_worklist): Adjust.
5862 * psymtab.c (add_psymbol_to_bcache): Adjust.
5863
973695d6
KB
58642020-08-31 Kevin Buettner <kevinb@redhat.com>
5865
5866 * corelow.c (unordered_set): Include.
5867 (class core_target): Add field 'm_core_unavailable_mappings'.
5868 (core_target::build_file_mappings): Print only one warning
5869 per inaccessible file. Add unavailable/broken mappings
5870 to m_core_unavailable_mappings.
5871 (core_target::xfer_partial): Call...
5872 (core_target::xfer_memory_via_mappings): New method.
5873
264fc0e2
SM
58742020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5875
5876 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5877 type to bool.
5878
2de01bdb
SM
58792020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5880
5881 * dwarf2/read.c (struct field_info): Fix indentation.
5882
f3bd50f1
SM
58832020-08-31 Simon Marchi <simon.marchi@efficios.com>
5884
5885 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5886 ordering in comment.
5887 * frame.c (frame_id_eq): Fix indentation.
5888
22b9b4b0
SL
58892020-08-31 Scott Linder <scott@scottlinder.com>
5890 Simon Marchi <simon.marchi@efficios.com>
5891
5892 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5893 inline frame ids in outer frame.
5894
84154d16
SM
58952020-08-31 Simon Marchi <simon.marchi@efficios.com>
5896
5897 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5898 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5899 (outer_frame_id): Use FID_STACK_OUTER instead of
5900 FID_STACK_INVALID.
5901 (frame_id_p): Don't check for outer_frame_id.
5902
8efaf6b3
SM
59032020-08-31 Simon Marchi <simon.marchi@efficios.com>
5904
5905 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5906 regnum/frame in value. Call allocate_value_lazy.
5907 * frame.c (frame_unwind_register_value): Use
5908 val_print_not_saved.
5909
fe1fe7ea
SM
59102020-08-31 Simon Marchi <simon.marchi@efficios.com>
5911
5912 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5913
f7c7700d
PA
59142020-08-29 Pedro Alves <pedro@palves.net>
5915
5916 * progspace.c (print_program_space): Use all_inferiors. Switch to
5917 the inferior before calling target_pid_to_str.
5918
e0814aae
TT
59192020-08-28 Tom Tromey <tom@tromey.com>
5920
5921 * xcoffread.c (xcoff_end_psymtab): Update comment.
5922 * dbxread.c (dbx_end_psymtab): Update comment.
5923
626d2320
TV
59242020-08-28 Tom de Vries <tdevries@suse.de>
5925
5926 PR breakpoint/26544
5927 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5928 event_location.
5929 (create_breakpoint): Same.
5930 (base_breakpoint_decode_location): Same.
5931 (bkpt_create_sals_from_location): Same.
5932 (bkpt_decode_location): Same.
5933 (bkpt_probe_create_sals_from_location): Same.
5934 (bkpt_probe_decode_location): Same.
5935 (tracepoint_create_sals_from_location): Same.
5936 (tracepoint_decode_location): Same.
5937 (tracepoint_probe_decode_location): Same.
5938 (strace_marker_create_sals_from_location): Same.
5939 (strace_marker_decode_location): Same.
5940 (create_sals_from_location_default): Same.
5941 (decode_location_default): Same.
5942 * breakpoint.h (struct breakpoint_ops): Same.
5943 (create_breakpoint): Same.
5944 * linespec.h (decode_line_full): Same.
5945 * linespec.c (decode_line_full): Same. Throw error if
5946 result.size () == 0.
5947
df631783
PA
59482020-08-27 Pedro Alves <pedro@palves.net>
5949
5950 PR gdb/26524
5951 * breakpoint.c (until_break_fsm) <location_breakpoint,
5952 caller_breakpoint>: Delete fields.
5953 <breakpoints>: New field.
5954 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5955 two individual breakpoints.
5956 (until_break_fsm::should_stop): Loop over breakpoints in the
5957 breakpoint vector.
5958 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5959 vector.
5960 (until_break_command): Handle location expanding into multiple
5961 sals.
5962
b2b38aa4
PA
59632020-08-27 Pedro Alves <pedro@palves.net>
5964
5965 PR gdb/26523
5966 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5967 bp_until breakpoints user-specified locations. Update intro
5968 comment.
5969
b886559f
SM
59702020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5971
5972 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5973 gdb_bfd_sections): New.
5974 * maint.c (print_bfd_section_info): Change param type to
5975 maint_print_section_data.
5976 (print_objfile_section_info): Likewise.
5977 (print_bfd_section_info_maybe_relocated): Likewise.
5978 (maintenance_info_sections): Use gdb_bfd_sections.
5979
4c6e63bf
SV
59802020-08-25 Shahab Vahedi <shahab@synopsys.com>
5981
5982 * MAINTAINERS: Add ARC target and maintainer.
5983
8d7f0635
AK
59842020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5985
5986 * configure.tgt: ARC support for GNU/Linux.
5987 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5988 * arc-linux-tdep.c: New file.
5989 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5990 * arc-tdep.c (arc_write_pc): Use it.
5991
fdd8731b
SV
59922020-08-25 Shahab Vahedi <shahab@synopsys.com>
5993
5994 * arc-tdep.c (arc_check_for_hardware_loop): New.
5995 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5996
22459524
SV
59972020-08-25 Shahab Vahedi <shahab@synopsys.com>
5998
5999 * arc-tdep.h: Include "gdbarch.h".
6000
995d3a19
SV
60012020-08-25 Shahab Vahedi <shahab@synopsys.com>
6002
6003 * arch/arc.h
6004 (arc_gdbarch_features): New class to stir the selection of target XML.
6005 (arc_create_target_description): Use FEATURES to choose XML target.
6006 (arc_lookup_target_description): Use arc_create_target_description
6007 to create _new_ target descriptions or return the already created
6008 ones if the FEATURES is the same.
6009 * arch/arc.c: Implementation of prototypes described above.
6010 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6011 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6012 * arc-tdep.c (*_feature_name): Make feature names consistent.
6013 (arc_register_feature): A new struct to hold information about
6014 registers of a particular target/feature.
6015 (arc_check_tdesc_feature): Check if XML provides registers in
6016 compliance with ARC_REGISTER_FEATURE structs.
6017 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6018 (determine_*_reg_feature_set): Which feature name to look for.
6019 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6020 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6021 to expected ISA enums to be used in arc_gdbarch_features structs.
6022 * features/Makefile (FEATURE_XMLFILES): Add new files.
6023 * gdb/features/arc/v1-aux.c: New file.
6024 * gdb/features/arc/v1-aux.xml: Likewise.
6025 * gdb/features/arc/v1-core.c: Likewise.
6026 * gdb/features/arc/v1-core.xml: Likewise.
6027 * gdb/features/arc/v2-aux.c: Likewise.
6028 * gdb/features/arc/v2-aux.xml: Likewise.
6029 * gdb/features/arc/v2-core.c: Likewise.
6030 * gdb/features/arc/v2-core.xml: Likewise.
6031 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6032
3945d2d7
GM
60332020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6034 Andrew Burgess <andrew.burgess@embecosm.com>
6035
6036 PR m2/26372
fc5d6901 6037 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
6038 an assert. Remove single element array indexing pattern as the
6039 MULTI_SUBSCRIPT support will handle this case too.
6040
2677f2d3
SM
60412020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6042
6043 * value.h (valprint_check_validity): Move declaration from
6044 here...
6045 * valprint.h (valprint_check_validity): ... to here.
6046
c426fddb
SM
60472020-08-24 Simon Marchi <simon.marchi@efficios.com>
6048
6049 * debug.h: New file.
6050 * debug.c (debug_prefixed_vprintf): New function.
6051 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6052 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6053
1eb8556f
SM
60542020-08-24 Simon Marchi <simon.marchi@efficios.com>
6055
6056 * infrun.h (infrun_debug_printf_1): New function declaration.
6057 (infrun_debug_printf): New macro.
6058 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6059 throughout.
6060 (infrun_debug_printf): New function.
6061 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6062 (handle_jit_event): Likewise.
6063
b8fff44e
MW
60642020-08-21 Mark Wielaard <mark@klomp.org>
6065
6066 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6067
d19c3068
SM
60682020-08-22 Simon Marchi <simon.marchi@efficios.com>
6069
6070 * frame.c (enum class frame_id_status): New.
6071 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6072 (fprintf_frame): Update.
6073 (compute_frame_id): Set frame id status to "computing" on entry.
6074 Set it back to "not_computed" on failure and to "computed" on
6075 success.
6076 (get_frame_id): Assert the frame id is not being computed.
6077 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6078 (create_new_frame): Likewise.
6079 (frame_cleanup_after_sniffer): Update assert.
6080
b70e516e
SM
60812020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6082
6083 * regcache.c (pid_ptid_regcache_map): New type.
6084 (target_ptid_regcache_map): Remove.
6085 (target_pid_ptid_regcache_map): New type.
6086 (regcaches): Change type to target_pid_ptid_regcache_map.
6087 (get_thread_arch_aspace_regcache): Update.
6088 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6089 case.
6090 (regcaches_size): Update.
6091 (regcache_count): Update.
6092 (registers_changed_ptid_target_pid_test): New.
6093 (_initialize_regcache): Register new test.
6094
cdd9148a
SM
60952020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6096
6097 * regcache.c (regcache_count): New.
6098 (struct regcache_test_data): New.
6099 (regcache_test_data_up): New.
6100 (populate_regcaches_for_test): New.
6101 (regcaches_test): Remove.
6102 (get_thread_arch_aspace_regcache_test): New.
6103 (registers_changed_ptid_all_test): New.
6104 (registers_changed_ptid_target_test): New.
6105 (registers_changed_ptid_target_ptid_test): New.
6106 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6107 (_initialize_regcache): Register new tests.
6108
dd125343
SM
61092020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6110
6111 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6112 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6113 gdbarch and aspace parameter. Use current inferior's aspace.
6114 Validate regcache's arch value.
6115 (regcaches_test): Update.
6116
3ee93972
SM
61172020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6118
6119 * regcache.c (regcaches_test): Call registers_changed.
6120
33bf4c5c
TBA
61212020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6122
6123 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6124
c2fd7fae
AKS
61252020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6126
6127 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6128 to find the end of prologue for flang compiled binaries.
6129 * arm-tdep.c (arm_skip_prologue): Likewise.
6130 * i386-tdep.c (i386_skip_prologue): Likewise.
6131 * producer.c (producer_is_llvm): New function.
6132 (producer_parsing_tests): Added new tests for clang/flang.
6133 * producer.h (producer_is_llvm): New declaration.
6134
9327494e
SM
61352020-08-18 Simon Marchi <simon.marchi@efficios.com>
6136
6137 * linux-nat.c (linux_nat_debug_printf): New function.
6138 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6139
d138725a
AM
61402020-08-18 Aaron Merey <amerey@redhat.com>
6141
6142 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6143 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6144 (CLIBS): Add DEBUGINFOD_LIBS.
6145
f9b11e6b
ST
61462020-08-17 Sergei Trofimovich <siarheit@google.com>
6147
6148 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6149 'gdbarch_num_regs'.
6150
3ae7ab99
TT
61512020-08-17 Tom Tromey <tromey@adacore.com>
6152
6153 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6154 ada_get_decoded_value returns NULL.
6155
b017825f
TT
61562020-08-17 Tom Tromey <tromey@adacore.com>
6157
6158 * python/py-inferior.c (infpy_search_memory): Use
6159 gdb_py_object_from_ulongest.
6160 * python/py-infevents.c (create_inferior_call_event_object)
6161 (create_memory_changed_event_object): Use
6162 gdb_py_object_from_ulongest.
6163 * python/py-linetable.c (ltpy_entry_get_pc): Use
6164 gdb_py_object_from_ulongest.
6165
7635cf79
SM
61662020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6167
6168 * loc.c (class symbol_needs_eval_context): Fix indentation.
6169
f54be24b
SM
61702020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6173 bool.
6174
53d5a2a5
TV
61752020-08-17 Tom de Vries <tdevries@suse.de>
6176
6177 PR gdb/26393
6178 * gdbtypes.c (dump_dynamic_prop): New function.
6179 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6180
547ce8f0
TV
61812020-08-15 Tom de Vries <tdevries@suse.de>
6182
6183 PR backtrace/26390
6184 * stack.c (print_frame_args): Temporarily set the selected
6185 frame to FRAME while printing the frame's arguments.
6186
6ea815e7
PFC
61872020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6188
6189 PR breakpoints/26385
6190 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6191 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6192
6e562fa3
PFC
61932020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6194
6195 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6196 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6197 and >= to check return value instead of == -1 and != -1.
6198
d369b608
SM
61992020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6200
6201 * utils.h (class gdb_argv) <as_array_view>: New method.
6202 * utils.c (gdb_argv_as_array_view_test): New.
6203 (_initialize_utils): Register selftest.
6204 * maint.c (maintenance_selftest): Use the new method.
6205
b31488a3
KR
62062020-08-13 Kamil Rytarowski <n54@gmx.com>
6207
6208 * target.h (supports_dumpcore, dumpcore): New
6209 function declarations.
6210 * target.c (supports_dumpcore, dumpcore): New
6211 functions.
6212 * target-delegates.c: Rebuild.
6213 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6214 and target_dumpcore ().
6215
002a3166
AM
62162020-08-13 Aaron Merey <amerey@redhat.com>
6217
6218 * debuginfod-support.c: Replace global variables with user_data.
6219
ece5bc8a
SM
62202020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6221
6222 * maint.c (maintenance_selftest): Split args and pass array_view
6223 to run_tests.
6224
6d8a0a5e
LM
62252020-08-12 Luis Machado <luis.machado@linaro.org>
6226
6227 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6228 type's length.
6229 Use %s and pulongest to print the length.
6230
7cf663a9
PA
62312020-08-12 Pedro Alves <palves@redhat.com>
6232
6233 * NEWS: Move "Multi-target debugging support" item to the
6234 "Changes since GDB 9" section.
6235
27c7b875
PA
62362020-08-12 Pedro Alves <palves@redhat.com>
6237
6238 PR gdb/26336
6239 * progspace.c (program_space::remove_objfile): Invalidate the
6240 frame cache.
6241
1796a2a1
TV
62422020-08-11 Tom de Vries <tdevries@suse.de>
6243
6244 * MAINTAINERS: Mark ms1 as deleted.
6245
f8e3fe0d
LM
62462020-08-10 Luis Machado <luis.machado@linaro.org>
6247
6248 PR gdb/26310
6249
6250 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6251 act accordingly.
6252 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6253 movz/str/stur/stp skipping behavior.
6254
cc308722
LM
62552020-08-10 Luis Machado <luis.machado@linaro.org>
6256
6257 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6258 struct user_sve_header instead of struct sve_context.
6259
041d9819
SM
62602020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6261
6262 * read.h (dwarf2_fetch_die_loc_sect_off,
6263 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6264 `void *` parameter with function_view.
6265 * read.c (dwarf2_fetch_die_loc_sect_off,
6266 dwarf2_fetch_die_loc_cu_off): Likewise.
6267 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6268 (per_cu_dwarf_call): Adjust.
6269 (get_frame_address_in_block_wrapper): Remove.
6270 (indirect_synthetic_pointer): Adjust.
6271 (get_ax_pc): Remove.
6272 (dwarf2_compile_expr_to_ax): Adjust.
6273
38f8aa06
TV
62742020-08-08 Tom de Vries <tdevries@suse.de>
6275
6276 PR build/26344
6277 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6278 constructor.
6279 * regcache.c (get_thread_arch_aspace_regcache): Same.
6280
a52b3ae2
TT
62812020-08-07 Tom Tromey <tromey@adacore.com>
6282
6283 * ravenscar-thread.c
6284 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6285 New method.
6286 (ravenscar_thread_target::wait): Check
6287 runtime_initialized.
6288 (ravenscar_thread_target::prepare_to_store)
6289 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6290 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6291 (ravenscar_thread_target::stopped_by_watchpoint)
6292 (ravenscar_thread_target::stopped_data_address)
6293 (ravenscar_thread_target::core_of_thread): Use
6294 scoped_restore_current_thread and
6295 set_base_thread_from_ravenscar_task.
6296
0e29517d
TT
62972020-08-07 Tom Tromey <tromey@adacore.com>
6298
6299 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6300
592f9bd7
TT
63012020-08-07 Tom Tromey <tromey@adacore.com>
6302
6303 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6304 update_inferior_ptid before update_thread_list.
6305 (temporarily_change_regcache_ptid): New class.
6306 (ravenscar_thread_target::fetch_registers)
6307 (ravenscar_thread_target::store_registers)
6308 (ravenscar_thread_target::prepare_to_store): Use base thread when
6309 forwarding operation.
6310
39e2018a
TT
63112020-08-07 Tom Tromey <tromey@adacore.com>
6312
6313 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6314 "is_pid" case.
6315
2080266b
TT
63162020-08-07 Tom Tromey <tromey@adacore.com>
6317
6318 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6319 New methods.
6320 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6321 first.
6322 (ravenscar_thread_target::add_thread): Rename from
6323 ravenscar_add_thread.
6324 (ravenscar_thread_target::update_thread_list): Use a lambda.
6325 (ravenscar_thread_target::xfer_partial): New method.
6326
78c02f21
TT
63272020-08-07 Tom Tromey <tromey@adacore.com>
6328
6329 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6330 gdb::function_view.
6331 (iterate_over_live_ada_tasks): Change type of argument.
6332 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6333 of argument.
6334
d5d833af
TT
63352020-08-07 Tom Tromey <tromey@adacore.com>
6336
6337 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6338 Remove.
6339 (ravenscar_thread_target::extra_thread_info): Remove.
6340 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6341 defer to target beneath for non-Ravenscar threads.
6342
a8ac85bb
TT
63432020-08-07 Tom Tromey <tromey@adacore.com>
6344
6345 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6346 get_base_thread_from_ravenscar_task>: Now methods.
6347 <m_cpu_map>: New member.
6348 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6349 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6350 (ravenscar_thread_target::task_is_currently_active): Update.
6351 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6352 Now a method.
6353 (ravenscar_thread_target::add_active_thread): Put initial thread
6354 into the m_cpu_map.
6355
550ab58d
TT
63562020-08-07 Tom Tromey <tromey@adacore.com>
6357
6358 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6359 event_ptid.
6360
e9546579
TT
63612020-08-07 Tom Tromey <tromey@adacore.com>
6362
6363 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6364 runtime_initialized.
6365
3d4470e5
TT
63662020-08-07 Tom Tromey <tromey@adacore.com>
6367
6368 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6369 add_active_thread.
6370 (ravenscar_thread_target::add_active_thread): Now public.
6371 (ravenscar_inferior_created): Call add_active_thread after pushing
6372 the target.
6373
888bdb2b
SM
63742020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6375
6376 * regcache.c (ptid_regcache_map): New type.
6377 (target_ptid_regcache_map): New type.
6378 (regcaches): Change type to target_ptid_regcache_map.
6379 (get_thread_arch_aspace_regcache): Update to regcaches' new
6380 type.
6381 (regcache_thread_ptid_changed): Likewise.
6382 (registers_changed_ptid): Likewise.
6383 (regcaches_size): Likewise.
6384 (regcaches_test): Update.
6385 (regcache_thread_ptid_changed): Update.
6386 * regcache.h (regcache_up): New type.
6387 * gdbsupport/ptid.h (hash_ptid): New struct.
6388
b161a60d
SM
63892020-08-07 Simon Marchi <simon.marchi@efficios.com>
6390
6391 * observable.h (thread_ptid_changed): Add parameter
6392 `process_stratum_target *`.
6393 * infrun.c (infrun_thread_ptid_changed): Add parameter
6394 `process_stratum_target *` and use it.
6395 (selftests): New namespace.
6396 (infrun_thread_ptid_changed): New function.
6397 (_initialize_infrun): Register selftest.
6398 * regcache.c (regcache_thread_ptid_changed): Add parameter
6399 `process_stratum_target *` and use it.
6400 (regcache_thread_ptid_changed): New function.
6401 (_initialize_regcache): Register selftest.
6402 * thread.c (thread_change_ptid): Pass target to
6403 thread_ptid_changed observable.
6404
d2854d8d
CT
64052020-08-06 Caroline Tice <cmtice@google.com>
6406
fe4c3d43
SM
6407 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6408 (struct dwp_sections): Update field comments. Add loclists and
6409 rnglists fields.
6410 (struct virtual_v2_dwo_sections): Rename struct to
6411 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6412 size & offset fields for loclists and rnglists.
6413 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6414 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6415 skipping dummy type units.
6416 (create_dwp_hash_table): Update the large comment above the function to
6417 discuss Version 5 DWP files as well, with references. Update all the
6418 version checks in the function to check for version 5 as well. Add new
6419 section at the end to create dwp hash table for version 5.
6420 (create_dwp_v2_section): Rename function to
6421 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6422 Add V5 to error message text.
6423 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6424 into calls to create_dwp_v2_or_v5_section.
6425 (create_dwo_unit_in_dwp_v5): New function.
6426 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6427 check for version2; add else clause to handle version 5.
6428 (open_and_init_dwo_file): Add code to check dwarf version & only call
6429 create_debug_types_hash_table (with sections.types) if version is not 5;
6430 else call create_debug_type_hash_table, with sections.info.
6431 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6432 version 5.
6433 (dwarf2_locate_v5_dwp_sections): New function.
6434 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6435 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6436
159ed7d9
SM
64372020-08-06 Simon Marchi <simon.marchi@efficios.com>
6438
6439 * regcache.h (class regcache): Remove friend
6440 registers_changed_ptid.
6441 <regcache_thread_ptid_changed>: Remove.
6442 <regcaches>: Remove.
6443 * regcache.c (regcache::regcaches): Rename to...
6444 (regcaches): ... this. Make static.
6445 (get_thread_arch_aspace_regcache): Update.
6446 (regcache::regcache_thread_ptid_changed): Rename to...
6447 (regcache_thread_ptid_changed): ... this. Update.
6448 (class regcache_access): Remove.
6449 (regcaches_test): Update.
6450 (_initialize_regcache): Update.
6451 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6452 <forward_list>.
6453
174981ae
SM
64542020-08-06 Simon Marchi <simon.marchi@efficios.com>
6455
6456 * regcache.h (class regcache) <current_regcache>: Rename to...
6457 <regcaches>: ... this. Move doc here.
6458 * regcache.c (regcache::current_regcache) Rename to...
6459 (regcache::regcaches): ... this. Move doc to header.
6460 (get_thread_arch_aspace_regcache): Update.
6461 (regcache::regcache_thread_ptid_changed): Update.
6462 (registers_changed_ptid): Update.
6463 (class regcache_access) <current_regcache_size>: Rename to...
6464 <regcaches_size>: ... this.
6465 (current_regcache_test): Rename to...
6466 (regcaches_test): ... this.
6467 (_initialize_regcache): Update.
6468
ed908db6
VC
64692020-08-06 Victor Collod <vcollod@nvidia.com>
6470
6471 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6472
b5582ab7
KB
64732020-08-05 Kevin Buettner <kevinb@redhat.com>
6474
6475 * corelow.c (core_target::build_file_mappings): Don't output
6476 null pathname in warning.
6477
ea946b86
SM
64782020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6479
6480 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6481 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6482 gdb.dwarf2/dw2-single-line-discriminators.exp,
6483 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6484
57d02173
TT
64852020-08-05 Tom Tromey <tromey@adacore.com>
6486
6487 PR rust/26197:
6488 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6489 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6490 Fix off-by-one and type size errors in ordinary case.
6491
5555c86d
TV
64922020-08-05 Tom de Vries <tdevries@suse.de>
6493
6494 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6495 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6496
97916bfe
SM
64972020-08-04 Simon Marchi <simon.marchi@efficios.com>
6498
6499 * frame.h (frame_id_p): Return bool.
6500 (frame_id_artificial_p): Return bool.
6501 (frame_id_eq): Return bool.
6502 (has_stack_frames): Return bool.
6503 (get_selected_frame): Fix typo in comment.
6504 (get_frame_pc_if_available): Return bool.
6505 (get_frame_address_in_block_if_available): Return bool.
6506 (get_frame_func_if_available): Return bool.
6507 (read_frame_register_unsigned): Return bool.
6508 (get_frame_register_bytes): Return bool.
6509 (safe_frame_unwind_memory): Return bool.
6510 (deprecated_frame_register_read): Return bool.
6511 (frame_unwinder_is): Return bool.
6512 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6513 bool.
6514 <this_id::p>: Likewise.
6515 <prev_p>: Likewise.
6516 (frame_stash_add): Return bool.
6517 (get_frame_id): Use bool.
6518 (frame_id_build_special) Use bool.
6519 (frame_id_build_unavailable_stack): Use bool.
6520 (frame_id_build): Use bool.
6521 (frame_id_p): Return bool, use true/false instead of 1/0.
6522 (frame_id_artificial_p): Likewise.
6523 (frame_id_eq): Likewise.
6524 (frame_id_inner): Likewise.
6525 (get_frame_func_if_available): Likewise.
6526 (read_frame_register_unsigned): Likewise.
6527 (deprecated_frame_register_read): Likewise.
6528 (get_frame_register_bytes): Likewise.
6529 (has_stack_frames): Likewise.
6530 (inside_main_func): Likewise.
6531 (inside_entry_func): Likewise.
6532 (get_frame_pc_if_available): Likewise.
6533 (get_frame_address_in_block_if_available): Likewise.
6534 (frame_unwinder_is): Likewise.
6535 (safe_frame_unwind_memory): Likewise.
6536 (frame_unwind_arch): Likewise.
6537
fedfee88
SM
65382020-08-04 Simon Marchi <simon.marchi@efficios.com>
6539
6540 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6541 type to cached_copy_status.
6542 (fprintf_frame): Adjust.
6543 (get_frame_func_if_available): Adjust.
6544 (frame_cleanup_after_sniffer): Adjust.
6545
6cfa9b59
MW
65462020-08-04 Mark Wielaard <mark@klomp.org>
6547
6548 * MAINTAINERS (Write After Approval): Update email address.
6549
66d6346b
SM
65502020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6551
6552 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6553 dynamic_prop::const_val.
6554
8a6d5e35
SM
65552020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6556
6557 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6558 dynamic_prop::kind.
6559
51d6067d
SM
65602020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6561
6562 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6563
b26e2ae7
JM
65642020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6565
6566 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6567
39791af2
JM
65682020-08-04 Weimin Pan <weimin.pan@oracle.com>
6569 Jose E. Marchesi <jose.marchesi@oracle.com>
6570
6571 * configure.tgt: Add entry for bpf-*-*.
6572 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6573 (ALLDEPFILES): Add bpf-tdep.c.
6574 * bpf-tdep.c: New file.
6575 * MAINTAINERS: Add bpf target and maintainer.
6576 * NEWS: Mention the support for the new target.
6577
521894aa
TV
65782020-08-04 Tom de Vries <tdevries@suse.de>
6579
6580 PR symtab/23270
6581 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6582 Error.
6583
5d6356e9
JB
65842020-08-03 John Baldwin <jhb@FreeBSD.org>
6585
6586 * syscalls/freebsd.xml: Regenerate.
6587
0cf82b81
JB
65882020-08-03 John Baldwin <jhb@FreeBSD.org>
6589
6590 * syscalls/update-freebsd.sh: Fix usage and year range.
6591
8f34b746
TV
65922020-08-03 Tom de Vries <tdevries@suse.de>
6593
6594 PR symtab/26333
6595 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6596 DW_LNE_lo_user/DW_LNE_hi_user range.
6597
5e500d33
SM
65982020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6599
6600 PR ada/26318
6601 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6602 kind.
6603
78319c15
TBA
66042020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6605
6606 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6607
4c55e970
TBA
66082020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6609
6610 * breakpoint.c (set_breakpoint_condition): Update the condition
6611 expressions after checking that the input condition string parses
6612 successfully and does not contain junk at the end.
6613
1e620590
TBA
66142020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6615
6616 * breakpoint.c (set_breakpoint_condition): Update the
6617 condition string after parsing the new condition successfully.
6618
c8693053
RO
66192020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6620
6621 * proc-api.c (_STRUCTURED_PROC): Don't define.
6622 * proc-events.c: Likewise.
6623 * proc-flags.c: Likewise.
6624 * proc-why.c: Likewise.
6625 * procfs.c: Likewise.
6626
6627 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6628 * configure, config.in: Regenerate.
6629
5a99adb8
TV
66302020-07-30 Tom de Vries <tdevries@suse.de>
6631
6632 PR build/26320
6633 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6634 m_red/m_green/m_blue in a union.
6635
8ba83e91
TV
66362020-07-29 Tom de Vries <tdevries@suse.de>
6637
6638 PR tdep/26280
6639 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6640
f75a0693
AB
66412020-07-28 Tom Tromey <tromey@adacore.com>
6642
6643 PR symtab/26270:
6644 * symtab.h (find_pc_partial_function_sym): Declare.
6645 * cli/cli-cmds.c (disassemble_command): Use
6646 find_pc_partial_function_sym. Check asm_demangle.
6647 * blockframe.c (cache_pc_function_sym): New global.
6648 (cache_pc_function_name): Remove.
6649 (clear_pc_function_cache): Update.
6650 (find_pc_partial_function_sym): New function, from
6651 find_pc_partial_function.
6652 (find_pc_partial_function): Rewrite using
6653 find_pc_partial_function_sym.
6654
16f3242c
TT
66552020-07-28 Tom Tromey <tromey@adacore.com>
6656
6657 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6658 help. Add usage.
6659
4888741a
TT
66602020-07-28 Tom Tromey <tromey@adacore.com>
6661
6662 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6663 <DW_OP_GNU_variable_value>: Cast to address type.
6664
4d46f402
KR
66652020-07-28 Kamil Rytarowski <n54@gmx.com>
6666
6667 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6668 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6669 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6670 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6671 (nbsd_get_siginfo_type): New.
6672 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6673 (_initialize_nbsd_tdep): New.
6674
d70f978b
L
66752020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6676
6677 PR binutils/26301
6678 * configure: Regenerated.
6679
377170fa
L
66802020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6681
6682 PR binutils/26301
6683 * configure: Regenerated.
6684
43d5901d
AB
66852020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6686
6687 * python/py-frame.c: Remove 'user-regs.h' include.
6688 (frapy_read_register): Rewrite to make use of
6689 gdbpy_parse_register_id.
6690 * python/py-registers.c (gdbpy_parse_register_id): New function,
6691 moved here from python/py-unwind.c. Updated the return type, and
6692 also accepts register descriptor objects.
6693 * python/py-unwind.c: Remove 'user-regs.h' include.
6694 (pyuw_parse_register_id): Moved to python/py-registers.c.
6695 (unwind_infopy_add_saved_register): Update to use
6696 gdbpy_parse_register_id.
6697 (pending_framepy_read_register): Likewise.
6698 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6699
14fa8fb3
AB
67002020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6701
6702 * python/py-registers.c: Add 'user-regs.h' include.
6703 (register_descriptor_iter_find): New function.
6704 (register_descriptor_iterator_object_methods): New static global
6705 methods array.
6706 (register_descriptor_iterator_object_type): Add pointer to methods
6707 array.
6708
ddce1758
JB
67092020-07-27 John Baldwin <jhb@FreeBSD.org>
6710
6711 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6712 for all architectures on FreeBSD 11.3 and later.
6713
a4089f52
TT
67142020-07-27 Tom Tromey <tromey@adacore.com>
6715
6716 * gcore.h (load_corefile): Don't declare.
6717
95420d30
TV
67182020-07-27 Tom de Vries <tdevries@suse.de>
6719
6720 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6721 * config.in: Regenerate.
6722 * configure: Regenerate.
6723
05a6b8c2
EZ
67242020-07-26 Eli Zaretskii <eliz@gnu.org>
6725
6726 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6727 ws2tcpip.h. When checking whether socklen_t type is defined, use
6728 ws2tcpip.h if it is available and sys/socket.h isn't.
6729 * configure: Regenerate.
6730 * config.in: Regenerate.
6731
e79eb02f
AB
67322020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6733
6734 PR fortran/23051
6735 PR fortran/26139
6736 * valops.c (value_ind): Pass address to
6737 readjust_indirect_value_type.
6738 * value.c (readjust_indirect_value_type): Make parameter
6739 non-const, and add extra address parameter. Resolve original type
6740 before using it.
6741 * value.h (readjust_indirect_value_type): Update function
6742 signature and comment.
6743
876518dd
TV
67442020-07-25 Tom de Vries <tdevries@suse.de>
6745
6746 PR symtab/26243
6747 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6748 entries.
6749
f6720b1c
AM
67502020-07-24 Aaron Merey <amerey@redhat.com>
6751
6752 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6753 * configure: Rebuild.
6754
513487e1
KB
67552020-07-23 Kevin Buettner <kevinb@redhat.com>
6756
6757 PR corefiles/26294
6758 * corelow.c (_initialize_corelow): Add period to help text
6759 for "maintenance print core-file-backed-mappings".
6760
e7bc9db8
PA
67612020-07-23 Pedro Alves <pedro@palves.net>
6762
6763 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6764 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6765 meanwhile.
6766 * frame.c (frame_cache_generation, get_frame_cache_generation):
6767 New.
6768 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6769 (get_prev_frame_if_no_cycle): On exception, don't touch
6770 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6771 * frame.h (get_frame_cache_generation): Declare.
6772
90fcc466
TV
67732020-07-23 Tom de Vries <tdevries@suse.de>
6774
6775 PR tui/26282
6776 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6777 New default constructor.
6778
78344df7
AB
67792020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6780
6781 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6782 exclude non-statement entries.
6783
b089853a
KB
67842020-07-22 Kevin Buettner <kevinb@redhat.com>
6785
6786 * NEWS (New commands): Mention new command
6787 "maintenance print core-file-backed-mappings".
6788
09c2f5d4
KB
67892020-07-22 Kevin Buettner <kevinb@redhat.com>
6790
6791 * corelow.c (gdbcmd.h): Include.
6792 (core_target::info_proc_mappings): New method.
6793 (get_current_core_target): New function.
6794 (maintenance_print_core_file_backed_mappings): New function.
6795 (_initialize_corelow): Add core-file-backed-mappings to
6796 "maint print" commands.
6797
9c5ec5c2 67982020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6799
9c5ec5c2
KB
6800 * linux-tdep.c (dump_note_entry_p): New function.
6801 (linux_dump_mapping_p_ftype): New typedef.
6802 (linux_find_memory_regions_full): Add new parameter,
6803 should_dump_mapping_p.
6804 (linux_find_memory_regions): Adjust call to
6805 linux_find_memory_regions_full.
6806 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6807 call to linux_find_memory_regions_full.
6808
db082f59
KB
68092020-07-22 Kevin Buettner <kevinb@redhat.com>
6810
6811 * corelow.c (solist.h, unordered_map): Include.
6812 (class core_target): Add field m_core_file_mappings and
6813 method build_file_mappings.
6814 (core_target::core_target): Call build_file_mappings.
6815 (core_target::~core_target): Free memory associated with
6816 m_core_file_mappings.
6817 (core_target::build_file_mappings): New method.
6818 (core_target::xfer_partial): Use m_core_file_mappings
6819 for memory transfers.
6820 * linux-tdep.c (linux_read_core_file_mappings): New
6821 function.
6822 (linux_core_info_proc_mappings): Rewrite to use
6823 linux_read_core_file_mappings.
6824 (linux_init_abi): Register linux_read_core_file_mappings.
6825
7e183d27
KB
68262020-07-22 Kevin Buettner <kevinb@redhat.com>
6827
6828 * arch-utils.c (default_read_core_file_mappings): New function.
6829 * arch-utils.c (default_read_core_file_mappings): Declare.
6830 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6831 * gdbarch.h, gdbarch.c: Regenerate.
6832
2735d421
KB
68332020-07-22 Kevin Buettner <kevinb@redhat.com>
6834
6835 PR corefiles/25631
6836 * corelow.c (core_target:xfer_partial): Revise
6837 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6838 case after first checking the stratum beneath the core
6839 target.
6840 (has_all_memory): Return true.
6841 * target.c (raw_memory_xfer_partial): Revise comment
6842 regarding use of has_all_memory.
6843
e56cb451
KB
68442020-07-22 Kevin Buettner <kevinb@redhat.com>
6845
6846 * exec.h (section_table_xfer_memory): Revise declaration,
6847 replacing section name parameter with an optional callback
6848 predicate.
6849 * exec.c (section_table_xfer_memory): Likewise.
6850 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6851 of section_table_xfer_memory.
6852
32fa152e
TT
68532020-07-22 Tom Tromey <tromey@adacore.com>
6854
6855 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6856 lookup_symbol_search_name.
6857
a67a1c41
AB
68582020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6859
6860 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6861 redundant local variable.
6862 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6863 reference, not pointer, update code accordingly.
6864
a7b4ff4f
SM
68652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6866 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6867
6868 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6869 * jit.c (jit_breakpoint_re_set_internal): Use the
6870 `skip_jit_symbol_lookup` field.
6871
2340e834
SM
68722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6873 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6874
6875 * jit.c (jit_read_descriptor): Define the descriptor address once,
6876 use twice.
6877 (jit_breakpoint_deleted): Move the declaration of the loop variable
6878 `iter` into the loop header.
6879 (jit_breakpoint_re_set_internal): Move the declaration of the local
6880 variable `objf_data` to the first point of definition.
6881 (jit_event_handler): Move the declaration of local variables
6882 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6883 Rename `objf` to `jited`.
6884
c1072906
SM
68852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6886
6887 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6888 Remove.
6889 * jit.c (get_jiter_objfile_data): Update.
6890
c8474dc3
TBA
68912020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6892 Simon Marchi <simon.marchi@polymtl.ca>
6893
6894 * jit.c (struct jit_program_space_data): Remove.
6895 (jit_program_space_key): Remove.
6896 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6897 stuff.
6898 (get_jit_program_space_data): Remove.
6899 (jit_breakpoint_deleted): Iterate on all of the program space's
6900 objfiles.
6901 (jit_inferior_init): Likewise.
6902 (jit_breakpoint_re_set_internal): Likewise. Also change return
6903 type to void.
6904 (jit_breakpoint_re_set): Pass current_program_space to
6905 jit_breakpoint_re_set_internal.
6906
77208eb7
SM
69072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6908
6909 * jit.h (struct jiter_objfile_data) <cached_code_address,
6910 jit_breakpoint>: Move to here from ...
6911 * jit.c (jit_program_space_data): ... here.
6912 (jiter_objfile_data::~jiter_objfile_data): Update.
6913 (jit_breakpoint_deleted): Update.
6914 (jit_breakpoint_re_set_internal): Update.
6915
8c1c720f
SM
69162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6917
6918 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6919 checks.
6920 (jit_read_descriptor): Remove NULL check.
6921 (jit_event_handler): Add an assertion.
6922
0e74a041
SM
69232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6924
6925 * jit.h (struct jit_objfile_data): Split into...
6926 (struct jiter_objfile_data): ... this ...
6927 (struct jited_objfile_data): ... and this.
6928 * objfiles.h (struct objfile) <jit_data>: Remove.
6929 <jiter_data, jited_data>: New fields.
6930 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6931 (jiter_objfile_data::~jiter_objfile_data): ... this.
6932 (get_jit_objfile_data): Rename to ...
6933 (get_jiter_objfile_data): ... this.
6934 (add_objfile_entry): Update.
6935 (jit_read_descriptor): Use get_jiter_objfile_data.
6936 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6937 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6938 (jit_inferior_exit_hook): Use objfile's jited_data field.
6939
238b5c9f
SM
69402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6941
6942 * jit.h: Forward-declare `struct minimal_symbol`.
6943 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6944 constructor, destructor, and an objfile* field.
6945 * jit.c (jit_objfile_data): Remove.
6946 (struct jit_objfile_data): Migrate from here to jit.h.
6947 (jit_objfile_data::~jit_objfile_data): New destructor
6948 implementation with code moved from free_objfile_data.
6949 (free_objfile_data): Delete.
6950 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6951 (jit_find_objf_with_entry_addr): Ditto.
6952 (jit_inferior_exit_hook): Ditto.
6953 (_initialize_jit): Remove the call to
6954 register_objfile_data_with_cleanup.
6955 * objfiles.h (struct objfile) <jit_data>: New field.
6956
fe053b9e
TBA
69572020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6958
6959 * jit.h: Forward-declare `struct objfile`.
6960 (jit_event_handler): Add a second parameter, the JITer objfile.
6961 * jit.c (jit_read_descriptor): Change the signature to take the
6962 JITer objfile as an argument instead of the jit_program_space_data.
6963 (jit_inferior_init): Update the call to jit_read_descriptor.
6964 (jit_event_handler): Use the new JITer objfile argument when calling
6965 jit_read_descriptor.
6966 * breakpoint.c (handle_jit_event): Update the call to
6967 jit_event_handler to pass the JITer objfile.
6968
4cec0c66
JB
69692020-07-21 John Baldwin <jhb@FreeBSD.org>
6970
6971 * gdbarch.c: Regenerate.
6972 * gdbarch.h: Regenerate.
6973 * gdbarch.sh (handle_segmentation_fault): Remove method.
6974 * infrun.c (handle_segmentation_fault): Remove.
6975 (print_signal_received_reason): Remove call to
6976 handle_segmentation_fault.
6977
0e42f66a
JB
69782020-07-21 John Baldwin <jhb@FreeBSD.org>
6979
6980 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6981 Rename to sparc64_linux_report_signal_info and add siggnal
6982 argument.
6983 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6984 instead of sparc64_linux_handle_segmentation_fault.
6985
77bdfeb2
JB
69862020-07-21 John Baldwin <jhb@FreeBSD.org>
6987
6988 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6989 i386_linux_report_signal_info instead of
6990 i386_linux_handle_segmentation_fault.
6991 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6992 to i386_linux_report_signal_info and add siggnal argument.
6993 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6994 of i386_linux_handle_segmentation_fault.
6995 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6996 to i386_linux_report_signal_info and add siggnal argument.
6997
ad97bfc5
JB
69982020-07-21 John Baldwin <jhb@FreeBSD.org>
6999
7000 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7001 hook if present.
7002
272bb05c
JB
70032020-07-21 John Baldwin <jhb@FreeBSD.org>
7004
7005 * gdbarch.c: Regenerate.
7006 * gdbarch.h: Regenerate.
7007 * gdbarch.sh (report_signal_info): New method.
7008 * infrun.c (print_signal_received_reason): Invoke gdbarch
7009 report_signal_info hook if present.
7010
baf8791e
AB
70112020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7012
7013 * python/py-registers.c : Add 'unordered_map' include.
7014 (gdbpy_new_reggroup): Renamed to...
7015 (gdbpy_get_reggroup): ...this. Update to only create register
7016 group descriptors when needed.
7017 (gdbpy_reggroup_iter_next): Update.
7018
f7306dac
AB
70192020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7020
7021 * python/py-registers.c (gdbpy_register_object_data): New static
7022 global.
7023 (gdbpy_register_object_data_init): New function.
7024 (gdbpy_new_register_descriptor): Renamed to...
7025 (gdbpy_get_register_descriptor): ...this, and update to reuse
7026 existing register descriptors where possible.
7027 (gdbpy_register_descriptor_iter_next): Update.
7028 (gdbpy_initialize_registers): Register new gdbarch data.
7029
05c309a8
SM
70302020-07-21 Simon Marchi <simon.marchi@efficios.com>
7031
7032 * linux-nat.c (stopped_pids): Make static.
7033
d1fd641e
SM
70342020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7035
7036 PR ada/26235
7037 * gdbtypes.c (ada_discrete_type_low_bound,
7038 ada_discrete_type_high_bound): Handle undefined bounds.
7039
1de14d77
KR
70402020-07-21 Kamil Rytarowski <n54@gmx.com>
7041
7042 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7043 declaration.
7044 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7045 function.
7046
ed810cc7
JB
70472020-07-20 John Baldwin <jhb@FreeBSD.org>
7048
7049 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7050 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7051 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7052 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7053 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7054 method.
7055
ae5369e7
LC
70562020-07-20 Ludovic Courtès <ludo@gnu.org>
7057
7058 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7059 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7060 which are deprecated in Guile 3.0.
7061 * configure.ac (try_guile_versions): Add "guile-3.0".
7062 * configure (try_guile_versions): Regenerate.
7063 * NEWS: Update entry.
7064
68cf161c
LC
70652020-07-20 Ludovic Courtès <ludo@gnu.org>
7066 Doug Evans <dje@google.com>
7067
7068 PR gdb/21104
7069 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7070 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7071 USING_GUILE_BEFORE_2_2.
7072 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7073 Change type to 'scm_t_port_type *'.
7074 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7075 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7076 parameter and honor it. Update callers.
7077 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7078 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7079 functions.
7080 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7081 USING_GUILE_BEFORE_2_2.
7082 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7083 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7084 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7085 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7086 and 'SCM_PORT_TYPE'.
7087 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7088 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7089 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7090 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7091 [!USING_GUILE_BEFORE_2_2]: New functions.
7092 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7093 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7094 'gdbscm_memory_port_read'.
7095 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7096 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7097 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7098 function.
7099 (ioscm_init_memory_port): Remove.
7100 (ioscm_init_memory_port_stream): New function
7101 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7102 function.
7103 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7104 Return scm_from_uint (0).
7105 (gdbscm_set_memory_port_read_buffer_size_x)
7106 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7107 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7108 Return scm_from_uint (0).
7109 (gdbscm_set_memory_port_write_buffer_size_x)
7110 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7111 * configure.ac (try_guile_versions): Add "guile-2.2".
7112 * configure: Regenerate.
7113 * NEWS: Add entry.
7114
aee91db3
TT
71152020-07-18 Tom Tromey <tom@tromey.com>
7116
7117 * linux-nat.c (linux_multi_process): Remove.
7118 (linux_nat_target::supports_multi_process): Return true.
7119
0e267416
AB
71202020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7121
7122 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7123 (riscv_lookup_target_description): Return pointer out of
7124 unique_ptr.
7125 * target-descriptions.c (allocate_target_description): Add
7126 comment.
7127 (target_desc_deleter::operator()): Likewise.
7128 * target-descriptions.h (struct target_desc_deleter): Moved to
7129 gdbsupport/tdesc.h.
7130 (target_desc_up): Likewise.
7131
f80c8ec4
TT
71322020-07-17 Tom Tromey <tromey@adacore.com>
7133
7134 * linux-nat.c (linux_nat_target::supports_non_stop)
7135 (linux_nat_target::always_non_stop_p): Use "true".
7136 (linux_nat_target::supports_disable_randomization): Use "true" and
7137 "false".
7138
d0ce17d8
CT
71392020-07-16 Caroline Tice <cmtice@google.com>
7140
7141 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7142 (RNGLIST_HEADER_SIZE64): New constant definition.
7143 (struct dwop_section_names): Add rnglists_dwo.
7144 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7145 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7146 (struct dwo_sections): Add rnglists field.
7147 (read_attribut_reprocess): Add tag parameter.
7148 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7149 (cu_debug_rnglists_section): New function (decl & definition).
7150 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7151 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7152 die whose range is being checked; get rnglist section from
7153 cu_debug_rnglists_section, to get from either objfile or dwo file as
7154 appropriate. Add cases for DW_RLE_base_addressx,
7155 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7156 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7157 test inside if-condition and updating complaint message.
7158 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7159 dwarf2_rnglists_process.
7160 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7161 dwarf2_ranges_process.
7162 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7163 need_ranges_base and update comment appropriately. Also pass die tag
7164 to dwarf2_ranges_read.
7165 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7166 need_ranges_base and update comment appropriately. Also pass die tag
7167 to dwarf2_ranges_process.
7168 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7169 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7170 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7171 need_ranges_base and update comment appropriately. Also pass die tag
7172 to read_attribute_reprocess and dwarf2_ranges_read.
7173 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7174 and update function comment appropriately.
7175 (read_loclist_index): Call read_loclists_rnglists_header instead of
7176 read_loclist_header.
7177 (read_rnglist_index): New function.
7178 (read_attribute_reprocess): Add tag parameter. Add code for
7179 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7180 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7181
3dcc261c
AB
71822020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7183
7184 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7185 being resolved.
7186
ccb9eba6
AB
71872020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7188
7189 * arch-utils.c (show_architecture): Update formatting of messages.
7190
cf88be68
SM
71912020-07-12 Simon Marchi <simon.marchi@efficios.com>
7192
7193 * gdbtypes.h (struct type) <bounds>: Handle array and string
7194 types.
7195 * ada-lang.c (assign_aggregate): Use type::bounds on
7196 array/string type.
7197 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7198 * c-varobj.c (c_number_of_children): Likewise.
7199 (c_describe_child): Likewise.
7200 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7201 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7202 (f_type_print_base): Likewise.
7203 * f-valprint.c (f77_array_offset_tbl): Likewise.
7204 (f77_get_upperbound): Likewise.
7205 (f77_print_array_1): Likewise.
7206 * guile/scm-type.c (gdbscm_type_range): Likewise.
7207 * m2-typeprint.c (m2_array): Likewise.
7208 (m2_is_long_set_of_type): Likewise.
7209 * m2-valprint.c (get_long_set_bounds): Likewise.
7210 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7211 * python/py-type.c (typy_range): Likewise.
7212 * rust-lang.c (rust_internal_print_type): Likewise.
7213 * type-stack.c (type_stack::follow_types): Likewise.
7214 * valarith.c (value_subscripted_rvalue): Likewise.
7215 * valops.c (value_cast): Likewise.
7216
509971ae
SM
72172020-07-12 Simon Marchi <simon.marchi@efficios.com>
7218
7219 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7220 callers to use the equivalent accessor methods.
7221
107406b7
SM
72222020-07-12 Simon Marchi <simon.marchi@efficios.com>
7223
7224 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7225 (struct type) <bit_stride>: New method.
7226 (TYPE_BIT_STRIDE): Remove.
7227 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7228
bb789949
SM
72292020-07-12 Simon Marchi <simon.marchi@efficios.com>
7230
7231 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7232 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7233 callers to use the equivalent accessor methods instead.
7234
39498edb
SM
72352020-07-12 Simon Marchi <simon.marchi@efficios.com>
7236
7237 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7238 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7239 callers to use the equivalent accessor methods instead.
7240
3b606f38
SM
72412020-07-12 Simon Marchi <simon.marchi@efficios.com>
7242
7243 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7244 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7245 to use dynamic_prop::kind.
7246
064d9cb9
SM
72472020-07-12 Simon Marchi <simon.marchi@efficios.com>
7248
7249 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7250 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7251 to get the bound property's kind and check against
7252 PROP_UNDEFINED.
7253
5537ddd0
SM
72542020-07-12 Simon Marchi <simon.marchi@efficios.com>
7255
7256 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7257 all callers to use type::range_bounds followed by
7258 dynamic_prop::{low,high}.
7259
8c2e4e06
SM
72602020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7261
7262 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7263 const_val, set_const_val, baton, set_locexpr, set_loclist,
7264 set_addr_offset, variant_parts, set_variant_parts,
7265 original_type, set_original_type>: New methods.
7266 <kind>: Rename to...
7267 <m_kind>: ... this. Update all users to use the new methods
7268 instead.
7269 <data>: Rename to...
7270 <m_data>: ... this. Update all users to use the new methods
7271 instead.
7272
7c6f2712
SM
72732020-07-12 Simon Marchi <simon.marchi@efficios.com>
7274
7275 * gdbtypes.c (get_discrete_bounds): Return failure if
7276 the range type's bounds are not both defined and constant
7277 values.
7278 (get_array_bounds): Update comment. Remove undefined bound check.
7279
599088e3
SM
72802020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7281
7282 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7283 the type::bounds method directly.
7284
c4dfcb36
SM
72852020-07-12 Simon Marchi <simon.marchi@efficios.com>
7286
7287 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7288 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7289 are used to set the range type's bounds to use set_bounds.
7290
0a278aa7
PW
72912020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7292
7293 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7294
cce20f10
PA
72952020-07-10 Pedro Alves <pedro@palves.net>
7296
7297 * gdbthread.h (inferior_ref): Define.
7298 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7299 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7300 * thread.c
7301 (scoped_restore_current_thread::restore):
7302 Adjust to gdb::ref_ptr.
7303 (scoped_restore_current_thread::~scoped_restore_current_thread):
7304 Remove manual decref handling.
7305 (scoped_restore_current_thread::scoped_restore_current_thread):
7306 Adjust to use
7307 inferior_ref::new_reference/thread_info_ref::new_reference.
7308 Incref the thread before calling get_frame_id instead of after.
7309 Let TARGET_CLOSE_ERROR propagate.
7310
6d7aa592
PA
73112020-07-10 Pedro Alves <pedro@palves.net>
7312
7313 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7314 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7315 NOT_AVAILABLE_ERROR.
7316 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7317 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7318
b3e3a4c1
SM
73192020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7320 Pedro Alves <pedro@palves.net>
7321
7322 PR gdb/26199
7323 * infrun.c (threads_are_resumed_pending_p): Delete.
7324 (do_target_wait): Remove threads_are_executing and
7325 threads_are_resumed_pending_p checks from the inferior_matches
7326 lambda. Update comments.
7327
d6cc5d98
PA
73282020-07-10 Pedro Alves <pedro@palves.net>
7329
7330 PR gdb/26199
7331 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7332 executing threads.
7333
7d3badc6
PA
73342020-07-10 Pedro Alves <pedro@palves.net>
7335
7336 PR gdb/26199
7337 * infrun.c (handle_no_resumed): Handle multiple targets.
7338
42bd97a6
PA
73392020-07-10 Pedro Alves <pedro@palves.net>
7340
7341 PR gdb/26199
7342 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7343 target_is_async_p.
7344
43667cc6
PA
73452020-07-10 Pedro Alves <pedro@palves.net>
7346
7347 PR gdb/26199
7348 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7349 threads, not all threads.
7350
96118d11
PA
73512020-07-10 Pedro Alves <pedro@palves.net>
7352
7353 PR gdb/26199
7354 * remote.c (remote_target::open_1): Pass remote target pointer as
7355 data to create_async_event_handler.
7356 (remote_async_inferior_event_handler): Mark async event handler
7357 before returning if the remote target still has either pending
7358 events or unacknowledged notifications.
7359
54904d81
JB
73602020-07-10 John Baldwin <jhb@FreeBSD.org>
7361
7362 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7363 declaration.
7364 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7365 function.
7366
f37e5866
JB
73672020-07-09 John Baldwin <jhb@FreeBSD.org>
7368
7369 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7370 inferior_ptid.
7371
fc238d4a
JB
73722020-07-09 John Baldwin <jhb@FreeBSD.org>
7373
7374 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7375 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7376 AT_FREEBSD_PS_STRINGS.
7377
6e2469ff
HD
73782020-07-08 Hannes Domani <ssbssa@yahoo.de>
7379
7380 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7381 of debugfile path on Windows.
7382
d1076c41
JB
73832020-07-08 John Baldwin <jhb@FreeBSD.org>
7384
7385 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7386 argument to 'data'.
7387
15f3b077
TT
73882020-07-08 Tom Tromey <tromey@adacore.com>
7389
7390 * ada-lang.c (ada_exception_message_1): Use read_memory.
7391
9fc501fd
AB
73922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7393
7394 PR python/22748
7395 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7396 special handling for inline frames.
7397 * findvar.c (value_of_register_lazy): Skip inline frames when
7398 creating lazy register values.
7399 * frame.c (frame_id_computed_p): Delete definition.
7400 * frame.h (frame_id_computed_p): Delete declaration.
7401
64cb3757
AB
74022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7403
7404 * NEWS: Mention additions to Python API.
7405 * python/py-arch.c (archpy_register_groups): New function.
7406 (arch_object_methods): Add 'register_groups' method.
7407 * python/py-registers.c (reggroup_iterator_object): New struct.
7408 (reggroup_object): New struct.
7409 (gdbpy_new_reggroup): New function.
7410 (gdbpy_reggroup_to_string): New function.
7411 (gdbpy_reggroup_name): New function.
7412 (gdbpy_reggroup_iter): New function.
7413 (gdbpy_reggroup_iter_next): New function.
7414 (gdbpy_new_reggroup_iterator): New function
7415 (gdbpy_initialize_registers): Register new types.
7416 (reggroup_iterator_object_type): Define new Python type.
7417 (gdbpy_reggroup_getset): New static global.
7418 (reggroup_object_type): Define new Python type.
7419 * python/python-internal.h
7420
0f767f94
AB
74212020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7422
7423 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7424 * python/py-arch.c (archpy_registers): New function.
7425 (arch_object_methods): Add 'registers' method.
7426 * python/py-registers.c: New file.
7427 * python/python-internal.h
7428 (gdbpy_new_register_descriptor_iterator): Declare.
7429 (gdbpy_initialize_registers): Declare.
7430 * python/python.c (do_start_initialization): Call
7431 gdbpy_initialize_registers.
7432 * NEWS: Mention additions to the Python API.
7433
87dbc774
AB
74342020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7435
7436 * NEWS: Mention new Python API method.
7437 * python/py-unwind.c (pending_framepy_architecture): New function.
7438 (pending_frame_object_methods): Add architecture method.
7439
3bc98c0c
AB
74402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7441
7442 * gdbarch.c: Regenerate.
7443 * gdbarch.h: Regenerate.
7444 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7445 (gdbarch_data): Use internal_error for the case where
7446 deprecated_set_gdbarch_data was originally needed.
7447 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7448 and use passed in obstack.
7449 (libunwind_frame_set_descr): Should no longer get back NULL from
7450 gdbarch_data.
7451 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7452 type.
7453 * user-regs.c (user_regs_init): Update parameters, and use passed
7454 in obstack.
7455 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7456 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7457
d8cc8af6
TV
74582020-07-06 Tom de Vries <tdevries@suse.de>
7459
7460 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7461 End-Of-Sequence in lte_is_less_than.
7462 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7463 "gdb: Don't reorder line table entries too much when sorting".
7464
947f7597
TV
74652020-07-06 Tom de Vries <tdevries@suse.de>
7466
7467 PR tui/26205
7468 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7469
1e7c1b22
TV
74702020-07-05 Tom de Vries <tdevries@suse.de>
7471
7472 PR build/26187
7473 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7474 std::uncaught_exceptions instead of deprecated
7475 std::uncaught_exception.
7476
a36158ec
SM
74772020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7478
7479 * macroexp.h (macro_stringify): Return
7480 gdb::unique_xmalloc_ptr<char>.
7481 * macroexp.c (macro_stringify): Likewise.
7482 * macrotab.c (fixup_definition): Update.
7483
14d960c8
SM
74842020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7485
7486 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7487 (lex_one_token): Update.
7488 * macroexp.c (struct macro_buffer) <release>: Return
7489 gdb::unique_xmalloc_ptr<char>.
7490 (macro_stringify): Update.
7491 (macro_expand): Update.
7492 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7493 * macroexp.h (macro_expand_next): Likewise.
7494
211d5b1c
SM
74952020-07-02 Simon Marchi <simon.marchi@efficios.com>
7496
7497 * macroexp.h (macro_lookup_ftype): Remove.
7498 (macro_expand, macro_expand_once, macro_expand_next): Remove
7499 lookup function parameters, add scope parameter.
7500 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7501 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7502 * macroscope.h (standard_macro_lookup): Change parameter type
7503 to macro_scope.
7504 * macroscope.c (standard_macro_lookup): Likewise.
7505 * c-exp.y (lex_one_token): Update.
7506 * macrocmd.c (macro_expand_command): Likewise.
7507 (macro_expand_once_command): Likewise.
7508
b1a35af2
SM
75092020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7510
7511 * inf-loop.c (inferior_event_handler): Remove client_data param.
7512 * inf-loop.h (inferior_event_handler): Likewise.
7513 * infcmd.c (step_1): Adjust.
7514 * infrun.c (proceed): Adjust.
7515 (fetch_inferior_event): Remove client_data param.
7516 (infrun_async_inferior_event_handler): Adjust.
7517 * infrun.h (fetch_inferior_event): Remove `void *` param.
7518 * linux-nat.c (handle_target_event): Adjust.
7519 * record-btrace.c (record_btrace_handle_async_inferior_event):
7520 Adjust.
7521 * record-full.c (record_full_async_inferior_event_handler):
7522 Adjust.
7523 * remote.c (remote_async_inferior_event_handler): Adjust.
7524
1cdf9e33
TT
75252020-07-01 Tom Tromey <tom@tromey.com>
7526
7527 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7528 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7529
32c1e210
TT
75302020-07-01 Tom Tromey <tom@tromey.com>
7531
7532 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7533 tui_gen_win_info.
7534 (tui_win_info::make_window): Merge with
7535 tui_gen_win_info::make_window.
7536 (tui_win_info::make_visible): Move from tui_gen_win_info.
7537 * tui/tui-win.c (tui_win_info::max_width): Move from
7538 tui_gen_win_info.
7539 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7540 type.
7541 <window_factory>: Likewise.
7542 * tui/tui-layout.c (tui_win_info::resize): Move from
7543 tui_gen_win_info.
7544 (make_standard_window): Change return type.
7545 (get_locator_window, tui_get_window_by_name): Likewise.
7546 (tui_layout_window::apply): Remove a cast.
7547 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7548 (struct tui_win_info): Merge with tui_gen_win_info.
7549 (struct tui_gen_win_info): Remove.
7550
a30cb6da
TT
75512020-07-01 Tom Tromey <tom@tromey.com>
7552
7553 * tui/tui-stack.h (struct tui_locator_window): Derive from
7554 tui_win_info.
7555 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7556 <can_box>: New method.
7557
1eb2161f
TT
75582020-07-01 Tom Tromey <tom@tromey.com>
7559
7560 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7561
7134f2eb
TT
75622020-07-01 Tom Tromey <tom@tromey.com>
7563
7564 * tui/tui-regs.c (tui_data_window::display_registers_from)
7565 (tui_data_window::display_registers_from)
7566 (tui_data_window::first_data_item_displayed)
7567 (tui_data_window::delete_data_content_windows): Update.
7568 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7569 Remove.
7570 (tui_data_window::check_register_values): Update.
7571 (tui_data_item_window::rerender): Add parameters. Update.
7572 (tui_data_item_window::refresh_window): Remove.
7573 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7574 virtual.
7575 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7576 tui_gen_win_info.
7577 <refresh_window, max_height, min_height>: Remove.
7578 <rerender>: Add parameters.
7579 <x, y, visible>: New members.
7580 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7581 <m_item_width>: New member.
7582
22b7b041
TT
75832020-07-01 Tom Tromey <tom@tromey.com>
7584
7585 * tui/tui-regs.c (tui_data_window::show_register_group)
7586 (tui_data_window::check_register_values): Update.
7587 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7588 from item_no.
7589
c9753adb
TT
75902020-07-01 Tom Tromey <tom@tromey.com>
7591
7592 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7593 useless "if".
7594
9ab26b4a
TT
75952020-07-01 Tom Tromey <tom@tromey.com>
7596
7597 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7598 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7599
e555083f
TT
76002020-07-01 Tom Tromey <tom@tromey.com>
7601
7602 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7603 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7604 (struct tui_line_or_address): Move from tui-data.h.
7605 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7606 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7607 (tui_cmd_window, tui_source_window_base, tui_source_window)
7608 (tui_disasm_window): Don't declare.
7609 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7610 to tui-winsource.h.
7611 (SINGLE_KEY): Move to tui-stack.c.
7612
7a02bab7
TT
76132020-07-01 Tom Tromey <tom@tromey.com>
7614
7615 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7616 std::string.
7617 * tui/tui-regs.c (class tab_expansion_file): New.
7618 (tab_expansion_file::write): New method.
7619 (tui_register_format): Change return type. Use
7620 tab_expansion_file.
7621 (tui_get_register, tui_data_window::display_registers_from)
7622 (tui_data_item_window::rerender): Update.
7623 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7624 * tui/tui-io.c (tui_expand_tabs): Remove.
7625
ea68593b
TT
76262020-07-01 Tom Tromey <tom@tromey.com>
7627
7628 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7629
a8caed5d
FS
76302020-07-01 Fangrui Song <maskray@google.com>
7631
7632 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7633
9cdf9820
AKS
76342020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7635
7636 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7637 forms for DW_AT_associated and DW_AT_allocated attributes,
7638 which is already checked in function attr_to_dynamic_prop.
7639
a1520ad8
TT
76402020-06-30 Tom Tromey <tromey@adacore.com>
7641
7642 * dwarf2/read.c (quirk_rust_enum): Correctly call
7643 alloc_rust_variant for default-less enum.
7644
5ac58899
TT
76452020-06-30 Tom Tromey <tromey@adacore.com>
7646
7647 PR build/26183:
7648 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7649 gdb::to_string.
7650
19b187a9
SM
76512020-06-29 Simon Marchi <simon.marchi@efficios.com>
7652
7653 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7654 * gdbarch.h: Re-generate.
7655
cd4c4c07
TT
76562020-06-28 Tom Tromey <tom@tromey.com>
7657
7658 * command.h (cmd_types): Remove.
7659 (cmd_type): Don't declare.
7660 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7661 typedef.
7662 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7663 * cli/cli-decode.c (cmd_type): Remove.
7664
05779d57
PA
76652020-06-27 Pedro Alves <palves@redhat.com>
7666
7667 * fork-child.c (prefork_hook): Adjust.
7668 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7669 Delete.
7670 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7671 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7672 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7673 Remove declarations.
7674 (struct inferior) <set_tty, tty>: New methods.
7675 (struct inferior) <terminal>: Rename to ...
7676 (struct inferior) <m_terminal>: ... this and make private.
7677 * main.c (captured_main_1): Adjust.
7678 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7679 (mi_cmd_inferior_tty_show): Adjust.
7680 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7681 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7682
1776e3e5
NA
76832020-06-26 Nick Alcock <nick.alcock@oracle.com>
7684
7685 * configure.ac: Add --enable-libctf: handle --disable-static
7686 properly.
7687 * acinclude.m4: sinclude ../config/enable.m4.
7688 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7689 (LIBCTF): Substitute in.
7690 (CTF_DEPS): New, likewise.
7691 (CLIBS): libctf needs symbols from libbfd: move earlier.
7692 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7693 flags.
7694 * ctfread.c: Surround in ENABLE_LIBCTF.
7695 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7696 * configure: Regenerate.
7697 * config.in: Likewise.
7698
58373b80
SM
76992020-06-25 Simon Marchi <simon.marchi@efficios.com>
7700
7701 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7702
277474ee
SM
77032020-06-25 Simon Marchi <simon.marchi@efficios.com>
7704
7705 * inferior.h (struct inferior) <terminal>: Change type to
7706 gdb::unique_xmalloc_ptr<char>.
7707 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7708 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7709 field, adjust to unique pointer.
7710 (get_inferior_io_terminal): Adjust to unique pointer.
7711
6d74da72
AB
77122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7713
7714 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7715 registers, not just the known core set of registers.
7716
2e52d038
AB
77172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7718
7719 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7720 fflags, frm, and fcsr registers.
7721 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7722 restore groups.
7723 (riscv_tdesc_unknown_reg): New function.
7724 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7725 tdesc_use_registers.
7726 * riscv-tdep.h (struct gdbarch_tdep): Add
7727 unknown_csrs_first_regnum, unknown_csrs_count,
7728 duplicate_fflags_regnum, duplicate_frm_regnum, and
7729 duplicate_fcsr_regnum fields.
7730
be64fd07
AB
77312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7732
7733 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7734 callback, use the callback (when not null) to help number unknown
7735 registers.
7736 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7737 (tdesc_use_registers): Add extra parameter to declaration.
7738
3b9fce96
AB
77392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7740
7741 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7742 in the file.
7743 (class riscv_pending_register_alias): Likewise.
7744 (riscv_register_feature::register_info): Change 'required_p' field
7745 to 'required', and change its type. Add 'check' member function.
7746 (riscv_register_feature::register_info::check): Define new member
7747 function.
7748 (riscv_xreg_feature): Change initialisation of 'required' field.
7749 (riscv_freg_feature): Likewise.
7750 (riscv_virtual_feature): Likewise.
7751 (riscv_csr_feature): Likewise.
7752 (riscv_check_tdesc_feature): Take extra parameter, the csr
7753 tdesc_feature, rewrite the function to use the new
7754 riscv_register_feature::register_info::check function.
7755 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7756
865bad26
AB
77572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7758
7759 * features/Makefile: Remove all references to the deleted files
7760 below.
7761 * features/riscv/32bit-csr.c: Deleted.
7762 * features/riscv/32bit-csr.xml: Deleted.
7763 * features/riscv/64bit-csr.c: Deleted.
7764 * features/riscv/64bit-csr.xml: Deleted.
7765 * features/riscv/rebuild-csr-xml.sh: Deleted.
7766
ed69cbc8
AB
77672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7768
7769 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7770 whitespace error for declaration of names member variable.
7771 (struct riscv_register_feature): Add new prefer_first_name member
7772 variable, and fix whitespace error in declaration of registers.
7773 (riscv_xreg_feature): Initialize prefer_first_name field.
7774 (riscv_freg_feature): Likewise.
7775 (riscv_virtual_feature): Likewise.
7776 (riscv_csr_feature): Likewise.
7777 (riscv_register_name): Expand on comments. Remove register name
7778 modifications for CSR and virtual registers.
7779
4445e8f5
AB
77802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7781
7782 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7783 errors.
7784
767a879e
AB
77852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7786
7787 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7788 riscv-opc.h.
7789 (class riscv_pending_register_alias): New class.
7790 (riscv_check_tdesc_feature): Take vector of pending aliases and
7791 populate it as appropriate.
7792 (riscv_setup_register_aliases): Delete.
7793 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7794 to riscv_check_tdesc_feature in all cases. Use the vector to
7795 create the register aliases.
7796
bb6e55f3
RO
77972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7798
7799 * sol2-tdep.c (sol2_static_transform_name): Remove.
7800 (sol2_init_abi): Don't register it.
7801 * gdbarch.sh (static_transform_name): Remove.
7802 * gdbarch.c, gdbarch.h: Regenerate.
7803
7804 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7805 gdbarch_static_transform_name.
7806 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7807 * stabsread.c (define_symbol) <'X'>: Remove.
7808 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7809 handling.
7810 <'V'>: Likewise.
7811 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7812 <'S'>: Remove call to gdbarch_static_transform_name.
7813
c6d36836
RO
78142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7815
7816 * procfs.c (procfs_pre_trace): New function.
7817 (procfs_target::create_inferior): Pass it to fork_inferior.
7818
a7e6196b
RO
78192020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7820
7821 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7822 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7823 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7824 sol2-tdep.o, sparc-sol2-tdep.o.
7825 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7826 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7827 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7828 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7829
d412e696
RO
78302020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7831
7832 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7833 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7834 Call sol2_init_abi.
7835 Remove calls to set_gdbarch_skip_solib_resolver,
7836 set_gdbarch_core_pid_to_str.
7837 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7838 (i386_sol2_static_transform_name): Remove.
7839 (i386_sol2_init_abi): Call sol2_init_abi.
7840 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7841 set_gdbarch_static_transform_name,
7842 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7843 Use sol2_sigtramp_p.
7844 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7845 (sol2_sigtramp_p): New function.
7846 (sol2_static_transform_name): New function.
7847 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7848 (sol2_init_abi): New function.
7849 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7850 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7851 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7852 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7853 (sparc_sol2_static_transform_name): Remove.
7854 (sparc32_sol2_init_abi): Call sol2_init_abi.
7855 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7856 set_gdbarch_static_transform_name,
7857 set_gdbarch_skip_solib_resolver,
7858 set_gdbarch_core_pid_to_str.
7859 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7860 (sparc_sol2_static_transform_name): Remove
7861 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7862 call sol2_sigtramp_p.
7863 (sparc64_sol2_init_abi): Call sol2_init_abi.
7864 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7865 set_gdbarch_static_transform_name,
7866 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7867
a8654e7d
PW
78682020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7869
7870 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7871 * exec.c (validate_exec_file): If from_tty, set both
7872 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7873 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7874 and from_tty, unconditionally ask a confirmation.
7875
caa7fd04
AB
78762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * target-descriptions.c (tdesc_architecture_name): Protect against
7879 NULL pointer dereference.
7880 (maint_print_xml_tdesc_cmd): New function.
7881 (_initialize_target_descriptions): Register new 'maint print
7882 xml-tdesc' command and give it the filename completer.
7883 * NEWS: Mention new 'maint print xml-tdesc' command.
7884
fbf42f4e
AB
78852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7886
7887 * target-descriptions.c (class tdesc_compatible_info): New class.
7888 (struct target_desc): Change type of compatible vector.
7889 (tdesc_compatible_p): Update for change in type of
7890 target_desc::compatible.
7891 (tdesc_compatible_info_list): New function.
7892 (tdesc_compatible_info_arch_name): New function.
7893 (tdesc_add_compatible): Update for change in type of
7894 target_desc::compatible.
7895 (print_c_tdesc::visit_pre): Likewise.
7896
20821f4e
AB
78972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7898
7899 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7900 whitespace to underscore.
7901 (maint_print_c_tdesc_cmd): Use fake filename for target
7902 descriptions that came from the target.
7903 (_initialize_target_descriptions): Add filename command completion
7904 for 'maint print c-tdesc'.
7905
1fb5ee62
SM
79062020-06-23 Simon Marchi <simon.marchi@efficios.com>
7907
7908 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7909 lines.
7910
fc3ecb3e
SM
79112020-06-23 Simon Marchi <simon.marchi@efficios.com>
7912
7913 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7914 lines.
7915 (dwarf2_find_location_expression): Likewise.
7916 (call_site_parameter_matches): Likewise.
7917 (dwarf2_compile_expr_to_ax): Likewise.
7918 (disassemble_dwarf_expression): Likewise.
7919 (loclist_describe_location): Likewise.
7920
236ef034
PA
79212020-06-23 Pedro Alves <palves@redhat.com>
7922
7923 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7924 progspace-and-thread.h. Include scoped-mock-context.h instead.
7925 (register_to_value_test): Use scoped_mock_context.
7926 * regcache.c: Include "scoped-mock-context.h".
7927 (cooked_read_test): Don't error out if a target is already pushed.
7928 Use scoped_mock_context. Adjust.
7929 * scoped-mock-context.h: New file.
7930
39e7ecca
AB
79312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7932
7933 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7934 initializer.
7935 (ada_language::is_string_type_p): New member function.
7936 * c-lang.c (c_language_data): Delete la_is_string_type_p
7937 initializer.
7938 (cplus_language_data): Likewise.
7939 (asm_language_data): Likewise.
7940 (minimal_language_data): Likewise.
7941 * d-lang.c (d_language_data): Likewise.
7942 * f-lang.c (f_is_string_type_p): Delete function, implementation
7943 moved to f_language::is_string_type_p.
7944 (f_language_data): Delete la_is_string_type_p initializer.
7945 (f_language::is_string_type_p): New member function,
7946 implementation from f_is_string_type_p.
7947 * go-lang.c (go_is_string_type_p): Delete function, implementation
7948 moved to go_language::is_string_type_p.
7949 (go_language_data): Delete la_is_string_type_p initializer.
7950 (go_language::is_string_type_p): New member function,
7951 implementation from go_is_string_type_p.
7952 * language.c (language_defn::is_string_type_p): Define new member
7953 function.
7954 (default_is_string_type_p): Make static, add comment copied from
7955 header file.
7956 (unknown_language_data): Delete la_is_string_type_p initializer.
7957 (unknown_language::is_string_type_p): New member function.
7958 (auto_language_data): Delete la_is_string_type_p initializer.
7959 (auto_language::is_string_type_p): New member function.
7960 * language.h (language_data): Delete la_is_string_type_p field.
7961 (language_defn::is_string_type_p): Declare new function.
7962 (default_is_string_type_p): Delete desclaration, move comment to
7963 definition.
7964 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7965 moved to m2_language::is_string_type_p.
7966 (m2_language_data): Delete la_is_string_type_p initializer.
7967 (m2_language::is_string_type_p): New member function,
7968 implementation from m2_is_string_type_p.
7969 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7970 initializer.
7971 * opencl-lang.c (opencl_language_data): Likewise.
7972 * p-lang.c (pascal_is_string_type_p): Delete function,
7973 implementation moved to pascal_language::is_string_type_p.
7974 (pascal_language_data): Delete la_is_string_type_p initializer.
7975 (pascal_language::is_string_type_p): New member function,
7976 implementation from pascal_is_string_type_p.
7977 * rust-lang.c (rust_is_string_type_p): Delete function,
7978 implementation moved to rust_language::is_string_type_p.
7979 (rust_language_data): Delete la_is_string_type_p initializer.
7980 (rust_language::is_string_type_p): New member function,
7981 implementation from rust_is_string_type_p.
7982 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7983 is_string_type_p.
7984
4ffc13fb
AB
79852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7986
7987 * ada-lang.c (ada_language_data): Delete la_print_typedef
7988 initializer.
7989 (ada_language::print_typedef): New member function.
7990 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7991 (cplus_language_data): Likewise.
7992 (asm_language_data): Likewise.
7993 (minimal_language_data): Likewise.
7994 * d-lang.c (d_language_data): Likewise.
7995 * f-lang.c (f_language_data): Likewise.
7996 (f_language::print_typedef): New member function.
7997 * go-lang.c (go_language_data): Delete la_print_typedef
7998 initializer.
7999 * language.c (language_defn::print_typedef): Define member
8000 function.
8001 (unknown_language_data): Delete la_print_typedef initializer.
8002 (unknown_language::print_typedef): New member function.
8003 (auto_language_data): Delete la_print_typedef initializer.
8004 (auto_language::print_typedef): New member function.
8005 * language.h (language_data): Delete la_print_typedef field.
8006 (language_defn::print_typedef): Declare new member function.
8007 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8008 (default_print_typedef): Delete declaration.
8009 * m2-lang.c (m2_language_data): Delete la_print_typedef
8010 initializer.
8011 (m2_language::print_typedef): New member function.
8012 * objc-lang.c (objc_language_data): Delete la_print_typedef
8013 initializer.
8014 * opencl-lang.c (opencl_language_data): Likewise.
8015 * p-lang.c (pascal_language_data): Likewise.
8016 (pascal_language::print_typedef): New member function.
8017 * rust-lang.c (rust_print_typedef): Delete function,
8018 implementation moved to rust_language::print_typedef.
8019 (rust_language): Delete la_print_typedef initializer.
8020 (rust_language::print_typedef): New member function,
8021 implementation from rust_print_typedef.
8022 * typeprint.c (default_print_typedef): Delete.
8023
d711ee67
AB
80242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8025
8026 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8027 (ada_language::printstr): New member function.
8028 * c-lang.c (c_language_data): Delete la_printstr initializer.
8029 (cplus_language_data): Likewise.
8030 (asm_language_data): Likewise.
8031 (minimal_language_data): Likewise.
8032 * d-lang.c (d_language_data): Likewise.
8033 * f-lang.c (f_printstr): Rename to f_language::printstr.
8034 (f_language_data): Delete la_printstr initializer.
8035 (f_language::printstr): New member function, implementation from
8036 f_printstr.
8037 * go-lang.c (go_language_data): Delete la_printstr initializer.
8038 * language.c (language_defn::printstr): Define new member
8039 function.
8040 (unk_lang_printstr): Delete.
8041 (unknown_language_data): Delete la_printstr initializer.
8042 (unknown_language::printstr): New member function.
8043 (auto_language_data): Delete la_printstr initializer.
8044 (auto_language::printstr): New member function.
8045 * language.h (language_data): Delete la_printstr field.
8046 (language_defn::printstr): Declare new member function.
8047 (LA_PRINT_STRING): Update call to printstr.
8048 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8049 (m2_language_data): Delete la_printstr initializer.
8050 (m2_language::printstr): New member function, implementation from
8051 m2_printstr.
8052 * objc-lang.c (objc_language_data): Delete la_printstr
8053 initializer.
8054 * opencl-lang.c (opencl_language_data): Likewise.
8055 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8056 (pascal_language_data): Delete la_printstr initializer.
8057 (pascal_language::printstr): New member function, implementation
8058 from pascal_printstr.
8059 * p-lang.h (pascal_printstr): Delete declaration.
8060 * rust-lang.c (rust_printstr): Update header comment.
8061 (rust_language_data): Delete la_printstr initializer.
8062 (rust_language::printstr): New member function.
8063
52b50f2c
AB
80642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8065
8066 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8067 (ada_language::printchar): New member function.
8068 * c-lang.c (c_language_data): Delete la_printchar initializer.
8069 (cplus_language_data): Likewise.
8070 (asm_language_data): Likewise.
8071 (minimal_language_data): Likewise.
8072 * d-lang.c (d_language_data): Likewise.
8073 * f-lang.c (f_printchar): Rename to f_language::printchar.
8074 (f_language_data): Delete la_printchar initializer.
8075 (f_language::printchar): New member function, implementation from
8076 f_printchar.
8077 * go-lang.c (go_language_data): Delete la_printchar initializer.
8078 * language.c (unk_lang_printchar): Delete.
8079 (language_defn::printchar): Define new member function.
8080 (unknown_language_data): Delete la_printchar initializer.
8081 (unknown_language::printchar): New member function.
8082 (auto_language_data): Delete la_printchar initializer.
8083 (auto_language::printchar): New member function.
8084 * language.h (language_data): Delete la_printchar field.
8085 (language_defn::printchar): Declare new member function.
8086 (LA_PRINT_CHAR): Update call to printchar.
8087 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8088 (m2_language::printchar): New member function.
8089 * objc-lang.c (objc_language_data): Delete la_printchar
8090 initializer.
8091 * opencl-lang.c (opencl_language_data): Likewise.
8092 * p-lang.c (pascal_language_data): Delete la_printchar
8093 initializer.
8094 (pascal_language::printchar): New member function.
8095 * rust-lang.c (rust_printchar): Rename to
8096 rust_language::printchar.
8097 (rust_language_data): Delete la_printchar initializer.
8098 (rust_language::printchar): New member function, implementation
8099 from rust_printchar.
8100
ec8cec5b
AB
81012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8102
8103 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8104 (ada_language_data): Delete la_emitchar initializer.
8105 (ada_language::emitchar): New member function, implementation from
8106 emit_char.
8107 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8108 (cplus_language_data): Likewise.
8109 (asm_language_data): Likewise.
8110 (minimal_language_data): Likewise.
8111 * d-lang.c (d_language_data): Likewise.
8112 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8113 (f_language_data): Delete la_emitchar initializer.
8114 (f_language::emitchar): New member function, implementation from
8115 f_emit_char.
8116 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8117 * language.c (unk_lang_emit_char): Delete.
8118 (language_defn::emitchar): New member function definition.
8119 (unknown_language_data): Delete la_emitchar initializer.
8120 (unknown_language::emitchar): New member function.
8121 (auto_language_data): Delete la_emitchar initializer.
8122 (auto_language::emitchar): New member function.
8123 * language.h (language_data): Delete la_emitchar field.
8124 (language_defn::emitchar): New member field declaration.
8125 (LA_EMIT_CHAR): Update call to emitchar.
8126 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8127 (m2_language_data): Delete la_emitchar initializer.
8128 (m2_language::emitchar): New member function, implementation from
8129 m2_emit_char.
8130 * objc-lang.c (objc_language_data): Delete la_emitchar
8131 initializer.
8132 * opencl-lang.c (opencl_language_data): Likewise.
8133 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8134 (pascal_language_data): Delete la_emitchar initializer.
8135 (pascal_language::emitchar): New member function, implementation
8136 from pascal_emit_char.
8137 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8138 (rust_language_data): Delete la_emitchar initializer.
8139 (rust_language::emitchar): New member function, implementation
8140 from rust_emitchar.
8141
1bf9c363
AB
81422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8143
8144 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8145 (ada_language_data): Delete la_post_parser initializer.
8146 (ada_language::post_parser): New member function.
8147 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8148 (cplus_language_data): Likewise.
8149 (asm_language_data): Likewise.
8150 (minimal_language_data): Likewise.
8151 * d-lang.c (d_language_data): Likewise.
8152 * f-lang.c (f_language_data): Likewise.
8153 * go-lang.c (go_language_data): Likewise.
8154 * language.c (unknown_language_data): Likewise.
8155 (auto_language_data): Likewise.
8156 * language.h (language_data): Delete la_post_parser field.
8157 (language_defn::post_parser): New member function.
8158 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8159 * objc-lang.c (objc_language_data): Likewise.
8160 * opencl-lang.c (opencl_language_data): Likewise.
8161 * p-lang.c (pascal_language_data): Likewise.
8162 * parse.c (parse_exp_in_context): Update call to post_parser.
8163 (null_post_parser): Delete definition.
8164 * parser-defs.h (null_post_parser): Delete declaration.
8165 * rust-lang.c (rust_language_data): Delete la_post_parser
8166 initializer.
8167
87afa652
AB
81682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8169
8170 * ada-lang.c (parse): Rename to ada_language::parser.
8171 (ada_language_data): Delete la_parser initializer.
8172 (ada_language::parser): New member function, implementation from
8173 parse.
8174 * c-lang.c (c_language_data): Delete la_parser initializer.
8175 (cplus_language_data): Likewise.
8176 (asm_language_data): Likewise.
8177 (minimal_language_data): Likewise.
8178 * d-lang.c (d_language_data): Likewise.
8179 (d_language::parser): New member function.
8180 * f-lang.c (f_language_data): Delete la_parser initializer.
8181 (f_language::parser): New member function.
8182 * go-lang.c (go_language_data): Delete la_parser initializer.
8183 (go_language::parser): New member function.
8184 * language.c (unk_lang_parser): Delete.
8185 (language_defn::parser): Define new member function.
8186 (unknown_language_data): Delete la_parser initializer.
8187 (unknown_language::parser): New member function.
8188 (auto_language_data): Delete la_parser initializer.
8189 (auto_language::parser): New member function.
8190 * language.h (language_data): Delete la_parser field.
8191 (language_defn::parser): Declare new member function.
8192 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8193 (m2_language::parser): New member function.
8194 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8195 * opencl-lang.c (opencl_language_data): Likewise.
8196 * p-lang.c (pascal_language_data): Likewise.
8197 (pascal_language::parser): New member function.
8198 * parse.c (parse_exp_in_context): Update call to parser.
8199 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8200 (rust_language::parser): New member function.
8201
37825800
AB
82022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8203
8204 * top.c (print_gdb_configuration): Print --with-python-libdir
8205 configuration value.
8206
5b860c93
PW
82072020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8208
8209 * NEWS: Mention change to the alias command.
8210
cf00cd6f
PW
82112020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8212
8213 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8214 (alias_command_completer)
8215 (make_alias_options_def_group): New functions.
8216 (alias_opts, alias_option_defs): New struct and array.
8217 (alias_usage_error): Update usage.
8218 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8219 Use option framework.
8220 (_initialize_cli_cmds): Update alias command help.
8221 Update aliases command help.
8222 (show_user):
8223 Add NULL for new default_args lookup_cmd argument.
8224 (valid_command_p): Rename to validate_aliased_command.
8225 Add NULL for new default_args lookup_cmd argument. Verify that the
8226 aliased_command has no default args.
8227 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8228 (lookup_cmd_1, lookup_cmd): New argument default_args.
8229 (add_alias_cmd):
8230 Add NULL for new default_args lookup_cmd argument.
8231 (print_help_for_command): Show default args under the layout
8232 alias some_alias = some_aliased_cmd some_alias_default_arg.
8233 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8234 xfree default_args in destructor.
8235 * cli/cli-script.c (process_next_line, do_define_command):
8236 Add NULL for new default_args lookup_cmd argument.
8237 * command.h: Declare new default_args argument in lookup_cmd
8238 and lookup_cmd_1.
8239 * completer.c (complete_line_internal_1):
8240 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8241 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8242 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8243 Likewise.
8244 * infcmd.c (_initialize_infcmd): Likewise.
8245 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8246 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8247 * python/py-param.c (add_setshow_generic): Likewise.
8248 * remote.c (_initialize_remote): Likewise.
8249 * top.c (execute_command): Prepend default_args if command has some.
8250 (set_verbose):
8251 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8252 * tracepoint.c (validate_actionline, encode_actions_1):
8253 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8254
bd920864
TBA
82552020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8256
8257 * jit.c (jit_read_descriptor): Use bool as the return type.
8258 (jit_breakpoint_re_set_internal): Use bool as the return type.
8259 Invert the return value logic; return true if the jit breakpoint
8260 has been successfully initialized.
8261 (jit_inferior_init): Update the call to
8262 jit_breakpoint_re_set_internal.
8263
f8098322
PA
82642020-06-22 Pedro Alves <palves@redhat.com>
8265
8266 PR gdb/25939
8267 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8268 Use the current inferior instead. Don't return
8269 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8270 wait again.
8271 * sol-thread.c (sol_thread_target::wait): Don't reference
8272 inferior_ptid.
8273 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8274 (sol_update_thread_list_callback): Use the current inferior's pid
8275 instead of inferior_ptid.
8276
196535a6
RO
82772020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8278
8279 * procfs.c: Cleanup many comments.
8280
8281 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8282 (AFTER_WATCHFLAG): Replace by value.
8283
8284 (MAIN_PROC_NAME_FORMAT): Inline ...
8285 (create_procinfo): ... here.
8286
8287 (procfs_debug_inferior): Remove SYS_exec handling.
8288 (syscall_is_exec): Likewise.
8289 (procfs_set_exec_trap): Likewise.
8290
8291 (syscall_is_lwp_exit): Inline in callers.
8292 (syscall_is_exit): Likewise.
8293 (syscall_is_exec): Likewise.
8294 (syscall_is_lwp_create): Likewise.
8295
8296 (invalidate_cache): Remove #if 0 code.
8297
8298 (make_signal_thread_runnable): Remove.
8299 (procfs_target::resume): Remove #if 0 code.
8300
cf6f3e86
RO
83012020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8302
8303 PR gdb/25939
8304 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8305 call ...
8306 (procfs_target::create_inferior): ... here.
8307
48e9cc84
PW
83082020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8309
8310 * exec.c (validate_exec_file): Ensure the build-id is up to
8311 date by calling reopen_exec_file (that checks file timestamp
8312 to decide to re-read the file).
8313
3922b302
PA
83142020-06-18 Pedro Alves <palves@redhat.com>
8315
8316 PR gdb/25412
8317 * gdbthread.h (delete_thread, delete_thread_silent)
8318 (find_thread_ptid): Update comments.
8319 * thread.c (current_thread_): New global.
8320 (is_current_thread): Move higher, and reimplement.
8321 (inferior_thread): Reimplement.
8322 (set_thread_exited): Use bool. Add assertions.
8323 (add_thread_silent): Simplify thread-reuse handling by always
8324 calling delete_thread.
8325 (delete_thread): Remove intro comment.
8326 (find_thread_ptid): Skip exited threads.
8327 (switch_to_thread_no_regs): Write to current_thread_.
8328 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8329 INFERIOR_PTID. Clear current_thread_.
8330
6dbdab44
PA
83312020-06-18 Pedro Alves <palves@redhat.com>
8332
8333 * aix-thread.c (pd_update): Use switch_to_thread.
8334
2da4b788
PA
83352020-06-18 Pedro Alves <palves@redhat.com>
8336
8337 * ravenscar-thread.c (ravenscar_thread_target): Update.
8338 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8339 (ravenscar_thread_target::add_active_thread): ... this. Don't
8340 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8341 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8342
50838d1b
PA
83432020-06-18 Pedro Alves <palves@redhat.com>
8344
8345 * nat/windows-nat.c (current_windows_thread): Remove.
8346 * nat/windows-nat.h (current_windows_thread): Remove.
8347 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8348 Adjust.
8349 (display_selectors): Adjust to fetch the current
8350 windows_thread_info based on inferior_ptid.
8351 (fake_create_process): No longer write to current_windows_thread.
8352 (windows_nat_target::get_windows_debug_event):
8353 Don't set inferior_ptid or current_windows_thread.
8354 (windows_nat_target::wait): Adjust to not rely on
8355 current_windows_thread.
8356 (do_initial_windows_stuff): Now a method of windows_nat_target.
8357 Switch to the last_ptid thread.
8358 (windows_nat_target::attach): Adjust.
8359 (windows_nat_target::detach): Use switch_to_no_thread instead of
8360 writing to inferior_ptid directly.
8361 (windows_nat_target::create_inferior): Adjust.
8362
31ce04e9
PA
83632020-06-18 Pedro Alves <palves@redhat.com>
8364
8365 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8366
1ee1a363
PA
83672020-06-18 Pedro Alves <palves@redhat.com>
8368
8369 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8370 after creating it, instead of writing to inferior_ptid. Don't
8371 write to inferior_ptid.
8372
6d350754
PA
83732020-06-18 Pedro Alves <palves@redhat.com>
8374
8375 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8376
5d971d48
PA
83772020-06-18 Pedro Alves <palves@redhat.com>
8378
8379 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8380 it, instead of writing to inferior_ptid.
8381
86e57d1b
PA
83822020-06-18 Pedro Alves <palves@redhat.com>
8383
8384 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8385 to inferior_ptid.
8386
f2e1c129
PA
83872020-06-18 Pedro Alves <palves@redhat.com>
8388
8389 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8390 instead of writing to inferior_ptid directly.
8391
60db1b85
PA
83922020-06-18 Pedro Alves <palves@redhat.com>
8393
8394 * corelow.c (core_target::close): Use switch_to_no_thread instead
8395 of writing to inferior_ptid directly.
8396 (add_to_thread_list, core_target_open): Use switch_to_thread
8397 instead of writing to inferior_ptid directly.
8398
fe7d6a8d
PA
83992020-06-18 Pedro Alves <palves@redhat.com>
8400
8401 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8402 inferior_ptid.
8403 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8404 inferior_ptid.
8405 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8406 inferior_ptid directly.
8407 (darwin_nat_target::init_thread_list): Switch to thread, instead
8408 of writing to inferior_ptid.
8409 (darwin_nat_target::attach): Don't write to inferior_ptid.
8410 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8411
975f8708
PA
84122020-06-18 Pedro Alves <palves@redhat.com>
8413
8414 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8415 thread.
8416 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8417 Instead use switch_to_thread.
8418 (gnu_nat_target::detach): Use switch_to_no_thread
8419 instead of writing to inferior_ptid directly. Used passed-in
8420 inferior instead of looking up the inferior by pid.
8421
1a204730
PA
84222020-06-18 Pedro Alves <palves@redhat.com>
8423
8424 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8425 inferior_ptid.
8426
ebe84f23
PA
84272020-06-18 Pedro Alves <palves@redhat.com>
8428
8429 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8430 inferior_ptid.
8431 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8432 thread.
8433 (nto_procfs_target::detach): Avoid referencing
8434 inferior_ptid. Use switch_to_no_thread instead of writing to
8435 inferior_ptid directly.
8436 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8437 instead of writing to inferior_ptid directly.
8438 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8439 to thread.
8440
191f02e5
PA
84412020-06-18 Pedro Alves <palves@redhat.com>
8442
8443 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8444 after creating it, instead of writing to inferior_ptid.
8445 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8446 to inferior_ptid directly.
8447 (gdbsim_target::wait): Don't write to inferior_ptid.
8448
0ac55310
PA
84492020-06-18 Pedro Alves <palves@redhat.com>
8450
8451 * remote.c (remote_target::remote_notice_new_inferior): Use
8452 switch_to_thread instead of writing to inferior_ptid directly.
8453 (remote_target::add_current_inferior_and_thread): Use
8454 switch_to_no_thread instead of writing to inferior_ptid directly.
8455 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8456 and switch_to_thread instead of using set_current_inferior or
8457 writing to inferior_ptid directly.
8458
5233f39b
PA
84592020-06-18 Pedro Alves <palves@redhat.com>
8460
8461 * tracectf.c (ctf_target_open): Switch to added thread instead of
8462 writing to inferior_ptid directly.
8463 (ctf_target::close): Use switch_to_no_thread instead of writing to
8464 inferior_ptid directly.
8465
087e161b
PA
84662020-06-18 Pedro Alves <palves@redhat.com>
8467
8468 * tracefile-tfile.c (tfile_target_open): Don't write to
8469 inferior_ptid directly, instead switch to added thread.
8470 (tfile_target::close): Use switch_to_no_thread instead of writing
8471 to inferior_ptid directly.
8472
7fb43e53
PA
84732020-06-18 Pedro Alves <palves@redhat.com>
8474
8475 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8476 (procfs_target::detach): Use switch_to_no_thread
8477 instead of writing to inferior_ptid directly.
8478 (do_attach): Change return type to void. Switch to the added
8479 thread.
8480 (procfs_target::create_inferior): Switch to the added thread.
8481 (procfs_do_thread_registers): Don't write to inferior_ptid.
8482
18493a00
PA
84832020-06-18 Pedro Alves <palves@redhat.com>
8484
8485 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8486 of writing to inferior_ptid.
8487 (scoped_restore_exited_inferior): Delete.
8488 (handle_vfork_child_exec_or_exit): Simplify using
8489 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8490 instead of writing to inferior_ptid.
8491 (THREAD_STOPPED_BY): Delete.
8492 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8493 (thread_stopped_by_hw_breakpoint): Delete.
8494 (save_waitstatus): Use
8495 scoped_restore_current_thread+switch_to_thread, and call
8496 target_stopped_by_watchpoint instead of
8497 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8498 instead of thread_stopped_by_sw_breakpoint, and
8499 target_stopped_by_hw_breakpoint instead of
8500 thread_stopped_by_hw_breakpoint.
8501 (handle_inferior_event)
8502 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8503 inferior_ptid directly, nor
8504 set_current_inferior/set_current_program_space. Use
8505 switch_to_thread / switch_to_inferior_no_thread instead.
8506
a0776b13
PA
85072020-06-18 Pedro Alves <palves@redhat.com>
8508
8509 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8510 instead of writing to inferior_ptid.
8511
6155c136
PA
85122020-06-18 Pedro Alves <palves@redhat.com>
8513
8514 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8515 added thread.
8516 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8517 to the added thread.
8518 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8519 instead of writing to inferior_ptid.
8520
c5316fc6
PA
85212020-06-18 Pedro Alves <palves@redhat.com>
8522
8523 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8524 (register_to_value_test): Mock a program_space too. Heap-allocate
8525 the address space. Don't write to inferior_ptid. Use
8526 switch_to_thread instead.
8527
8df01799
PA
85282020-06-18 Pedro Alves <palves@redhat.com>
8529
8530 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8531 Delete.
8532 (find_signalled_thread()): New, factored out from
8533 linux_make_corefile_notes and adjusted to handle exited threads.
8534 (linux_make_corefile_notes): Adjust to use the new
8535 find_signalled_thread.
8536
41792d68
PA
85372020-06-18 Pedro Alves <palves@redhat.com>
8538
8539 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8540 of saving/restoring inferior_ptid.
8541
612f258a
TT
85422020-06-17 Tom Tromey <tom@tromey.com>
8543
8544 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8545 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8546 declare.
8547 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8548
efb763a5
SM
85492020-06-15 Simon Marchi <simon.marchi@efficios.com>
8550
8551 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8552 of partial symtabs.
8553
2951f6c0
SM
85542020-06-17 Simon Marchi <simon.marchi@efficios.com>
8555
8556 * regformats/reg-arm.dat: Remove.
8557 * regformats/reg-bfin.dat: Remove.
8558 * regformats/reg-cris.dat: Remove.
8559 * regformats/reg-crisv32.dat: Remove.
8560 * regformats/reg-m32r.dat: Remove.
8561 * regformats/reg-tilegx.dat: Remove.
8562 * regformats/reg-tilegx32.dat: Remove.
8563
7d458ea5
SM
85642020-06-17 Simon Marchi <simon.marchi@efficios.com>
8565
8566 * features/Makefile (WHICH): Remove arm files.
8567 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8568 * regformats/arm/arm-with-neon.dat: Remove.
8569 * regformats/arm/arm-with-vfpv2.dat: Remove.
8570 * regformats/arm/arm-with-vfpv3.dat: Remove.
8571
3af96c0d
SM
85722020-06-17 Simon Marchi <simon.marchi@efficios.com>
8573
8574 * features/Makefile (XMLTOC): Remove rx.xml.
8575
b25e22fd
PA
85762020-06-17 Pedro Alves <palves@redhat.com>
8577
8578 * gdbthread.h (thread_control_state) <trap_expected> Update
8579 comments.
8580
a78a19b1
AB
85812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8582
8583 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8584 ada_language::lookup_symbol_nonlocal.
8585 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8586 (ada_language::lookup_symbol_nonlocal): New member function,
8587 implementation from ada_lookup_symbol_nonlocal.
8588 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8589 initializer.
8590 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8591 initializer.
8592 (cplus_language::lookup_symbol_nonlocal): New member function.
8593 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8594 (minimal_language_data) Likewise.
8595 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8596 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8597 initializer.
8598 (d_language::lookup_symbol_nonlocal): New member function.
8599 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8600 initializer.
8601 (f_language::lookup_symbol_nonlocal): New member function.
8602 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8603 initializer.
8604 * language.c (unknown_language_data): Likewise.
8605 (auto_language_data): Likewise.
8606 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8607 field.
8608 (language_defn::lookup_symbol_nonlocal): New member function.
8609 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8610 initializer.
8611 * objc-lang.c (objc_language_data): Likewise.
8612 * opencl-lang.c (opencl_language_data): Likewise.
8613 * p-lang.c (pascal_language_data): Likewise.
8614 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8615 rust_language::lookup_symbol_nonlocal.
8616 (rust_language_data): Delete la_lookup_symbol_nonlocal
8617 initializer.
8618 (rust_language::lookup_symbol_nonlocal): New member function,
8619 implementation from rust_lookup_symbol_nonlocal.
8620 * symtab.c (lookup_symbol_aux): Update call to
8621 lookup_symbol_nonlocal.
8622 (basic_lookup_symbol_nonlocal): Rename to...
8623 (language_defn::lookup_symbol_nonlocal): ...this, and update
8624 header comment. Remove language_defn parameter, and replace with
8625 uses of `this'.
8626 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8627
ebe2334e
AB
86282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8629
8630 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8631 initializer.
8632 (ada_language::value_print_inner): New member function.
8633 * c-lang.c (c_language_data): Delete la_value_print_inner
8634 initializer.
8635 (cplus_language_data): Likewise.
8636 (asm_language_data): Likewise.
8637 (minimal_language_data): Likewise.
8638 * d-lang.c (d_language_data): Likewise.
8639 (d_language::value_print_inner): New member function.
8640 * f-lang.c (f_language_data): Delete la_value_print_inner
8641 initializer.
8642 (f_language::value_print_inner): New member function.
8643 * f-lang.h (f_value_print_innner): Rename to...
8644 (f_value_print_inner): ...this (note spelling of 'inner').
8645 * f-valprint.c (f_value_print_innner): Rename to...
8646 (f_value_print_inner): ...this (note spelling of 'inner').
8647 * go-lang.c (go_language_data): Delete la_value_print_inner
8648 initializer.
8649 (go_language::value_print_inner): New member function.
8650 * language.c (language_defn::value_print_inner): Define new member
8651 function.
8652 (unk_lang_value_print_inner): Delete.
8653 (unknown_language_data): Delete la_value_print_inner initializer.
8654 (unknown_language::value_print_inner): New member function.
8655 (auto_language_data): Delete la_value_print_inner initializer.
8656 (auto_language::value_print_inner): New member function.
8657 * language.h (language_data): Delete la_value_print_inner field.
8658 (language_defn::value_print_inner): Delcare new member function.
8659 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8660 initializer.
8661 (m2_language::value_print_inner): New member function.
8662 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8663 initializer.
8664 * opencl-lang.c (opencl_language_data): Likewise.
8665 * p-lang.c (pascal_language_data): Likewise.
8666 (pascal_language::value_print_inner): New member function.
8667 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8668 initializer.
8669 (rust_language::value_print_inner): New member function.
8670 * valprint.c (do_val_print): Update call to value_print_inner.
8671
a1d1fa3e
AB
86722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8673
8674 * ada-lang.c (ada_language_data): Delete la_value_print
8675 initializer.
8676 (ada_language::value_print): New member function.
8677 * c-lang.c (c_language_data): Delete la_value_print initializer.
8678 (cplus_language_data): Likewise.
8679 (asm_language_data): Likewise.
8680 (minimal_language_data): Likewise.
8681 * d-lang.c (d_language_data): Likewise.
8682 * f-lang.c (f_language_data): Likewise.
8683 * go-lang.c (go_language_data): Likewise.
8684 * language.c (unk_lang_value_print): Delete.
8685 (language_defn::value_print): Define new member function.
8686 (unknown_language_data): Delete la_value_print initializer.
8687 (unknown_language::value_print): New member function.
8688 (auto_language_data): Delete la_value_print initializer.
8689 (auto_language::value_print): New member function.
8690 * language.h (language_data): Delete la_value_print field.
8691 (language_defn::value_print): Declare new member function.
8692 (LA_VALUE_PRINT): Update call to value_print.
8693 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8694 * objc-lang.c (objc_language_data): Likewise.
8695 * opencl-lang.c (opencl_language_data): Likewise.
8696 * p-lang.c (pascal_language_data): Likewise.
8697 (pascal_language::value_print): New member function.
8698 * rust-lang.c (rust_language_data): Delete la_value_print
8699 initializer.
8700
f16a9f57
AB
87012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8702
8703 * ada-lang.c (ada_watch_location_expression): Rename to
8704 ada_language::watch_location_expression.
8705 (ada_language_data): Delete la_watch_location_expression
8706 initializer.
8707 (ada_language::watch_location_expression): New member function,
8708 implementation from ada_watch_location_expression.
8709 * breakpoint.c (watch_command_1): Update call to
8710 watch_location_expression.
8711 * c-lang.c (c_watch_location_expression): Rename to
8712 language_defn::watch_location_expression.
8713 (c_language_data): Delete la_watch_location_expression
8714 initializer.
8715 (cplus_language_data): Likewise.
8716 (asm_language_data): Likewise.
8717 (minimal_language_data): Likewise.
8718 * c-lang.h (c_watch_location_expression): Delete declaration.
8719 * d-lang.c (d_language_data): Delete la_watch_location_expression
8720 initializer.
8721 * f-lang.c (f_language_data): Likewise.
8722 * go-lang.c (go_language_data): Likewise.
8723 * language.c (language_defn::watch_location_expression): Member
8724 function implementation from c_watch_location_expression.
8725 (unknown_language_data): Delete la_watch_location_expression
8726 initializer.
8727 (auto_language_data): Likewise.
8728 * language.h (language_data): Delete la_watch_location_expression
8729 field.
8730 (language_defn::watch_location_expression): Declare new member
8731 function.
8732 * m2-lang.c (m2_language_data): Delete
8733 la_watch_location_expression initializer.
8734 * objc-lang.c (objc_language_data): Likewise.
8735 * opencl-lang.c (opencl_language_data): Likewise.
8736 * p-lang.c (pascal_language_data): Likewise.
8737 * rust-lang.c (rust_watch_location_expression): Rename to
8738 rust_language::watch_location_expression.
8739 (rust_language_data): Delete la_watch_location_expression
8740 initializer.
8741 (rust_language::watch_location_expression): New member function,
8742 implementation from rust_watch_location_expression.
8743
7e56227d
AB
87442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8745
8746 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8747 ada_language::collect_symbol_completion_matches.
8748 (ada_language_data): Delete la_collect_symbol_completion_matches
8749 initializer.
8750 (ada_language::collect_symbol_completion_matches): New member
8751 function, implementation from
8752 ada_collect_symbol_completion_matches.
8753 * c-lang.c (c_language_data): Delete
8754 la_collect_symbol_completion_matches initializer.
8755 (cplus_language_data): Likewise.
8756 (asm_language_data): Likewise.
8757 (minimal_language_data): Likewise.
8758 * d-lang.c (d_language_data): Likewise.
8759 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8760 f_language::collect_symbol_completion_matches.
8761 (f_language_data): Delete la_collect_symbol_completion_matches
8762 initializer.
8763 (f_language::collect_symbol_completion_matches) New member
8764 function, implementation from f_collect_symbol_completion_matches.
8765 * go-lang.c (go_language_data): Delete
8766 la_collect_symbol_completion_matches initializer.
8767 * language.c (unknown_language_data): Likewise.
8768 (auto_language_data): Likewise.
8769 * language.h (language_data): Delete
8770 la_collect_symbol_completion_matches field.
8771 (language_defn::collect_symbol_completion_matches): New member
8772 function.
8773 * m2-lang.c (m2_language_data): Delete
8774 la_collect_symbol_completion_matches initializer.
8775 * objc-lang.c (objc_language_data): Likewise.
8776 * opencl-lang.c (opencl_language_data): Likewise.
8777 * p-lang.c (pascal_language_data): Likewise.
8778 * rust-lang.c (rust_language_data): Likewise.
8779 * symtab.c (default_collect_symbol_completion_matches): Delete.
8780 (collect_symbol_completion_matches): Update call to
8781 collect_symbol_completion_matches.
8782 (collect_symbol_completion_matches_type): Likewise.
8783 * symtab.h (default_collect_symbol_completion_matches): Delete
8784 declaration.
8785
53fc67f8
AB
87862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8787
8788 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8789 (ada_language_data): Delete la_word_break_characters initializer.
8790 (ada_language::word_break_characters): New member function.
8791 * c-lang.c (c_language_data): Delete la_word_break_characters
8792 initializer.
8793 (cplus_language_data): Likewise.
8794 (asm_language_data): Likewise.
8795 (minimal_language_data): Likewise.
8796 * completer.c: Update global comment.
8797 (advance_to_expression_complete_word_point): Update call to
8798 word_break_characters.
8799 (complete_files_symbols): Likewise.
8800 (complete_line_internal_1): Likewise.
8801 (default_completer_handle_brkchars): Likewise.
8802 (skip_quoted_chars): Likewise.
8803 * d-lang.c (d_language_data): Delete la_word_break_characters
8804 initializer.
8805 * f-lang.c (f_word_break_characters): Delete.
8806 (f_language_data): Delete la_word_break_characters initializer.
8807 (f_language::word_break_characters): New member function.
8808 * go-lang.c (go_language_data): Delete la_word_break_characters
8809 initializer.
8810 * language.c (unknown_language_data): Likewise.
8811 (auto_language_data): Likewise.
8812 * language.h (default_word_break_characters): Move declaration to
8813 earlier in the file.
8814 (language_data): Delete la_word_break_characters field.
8815 (language_defn::word_break_characters): New member function.
8816 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8817 initializer.
8818 * objc-lang.c (objc_language_data): Likewise.
8819 * opencl-lang.c (opencl_language_data): Likewise.
8820 * p-lang.c (pascal_language_data): Likewise.
8821 * rust-lang.c (rust_language_data): Likewise.
8822
c9debfb9
AB
88232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8824
8825 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8826 (ada_language_data): Delete la_get_symbol_name_matcher
8827 initializer.
8828 (language_defn::get_symbol_name_matcher_inner): New member
8829 function.
8830 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8831 initializer.
8832 (cplus_language_data): Likewise.
8833 (cplus_language::get_symbol_name_matcher_inner): New member
8834 function.
8835 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8836 (minimal_language_data): Likewise.
8837 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8838 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8839 initializer.
8840 * dictionary.c (iter_match_first_hashed): Update call to
8841 get_symbol_name_matcher.
8842 (iter_match_next_hashed): Likewise.
8843 (iter_match_next_linear): Likewise.
8844 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8845 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8846 initializer.
8847 (f_language::get_symbol_name_matcher_inner): New member function.
8848 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8849 initializer.
8850 * language.c (default_symbol_name_matcher): Update header comment,
8851 make static.
8852 (language_defn::get_symbol_name_matcher): New definition.
8853 (language_defn::get_symbol_name_matcher_inner): Likewise.
8854 (get_symbol_name_matcher): Delete.
8855 (unknown_language_data): Delete la_get_symbol_name_matcher
8856 initializer.
8857 (auto_language_data): Likewise.
8858 * language.h (language_data): Delete la_get_symbol_name_matcher
8859 field.
8860 (language_defn::get_symbol_name_matcher): New member function.
8861 (language_defn::get_symbol_name_matcher_inner): Likewise.
8862 (default_symbol_name_matcher): Delete declaration.
8863 * linespec.c (find_methods): Update call to
8864 get_symbol_name_matcher.
8865 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8866 initializer.
8867 * minsyms.c (lookup_minimal_symbol): Update call to
8868 get_symbol_name_matcher.
8869 (iterate_over_minimal_symbols): Likewise.
8870 * objc-lang.c (objc_language_data): Delete
8871 la_get_symbol_name_matcher initializer.
8872 * opencl-lang.c (opencl_language_data): Likewise.
8873 * p-lang.c (pascal_language_data): Likewise.
8874 * psymtab.c (psymbol_name_matches): Update call to
8875 get_symbol_name_matcher.
8876 * rust-lang.c (rust_language_data): Delete
8877 la_get_symbol_name_matcher initializer.
8878 * symtab.c (symbol_matches_search_name): Update call to
8879 get_symbol_name_matcher.
8880 (compare_symbol_name): Likewise.
8881
9a49ad8c
AB
88822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8883
8884 * ada-lang.c (ada_language_data): Delete la_compute_program
8885 initializer.
8886 * c-lang.c (c_language_data): Likewise.
8887 (c_language::compute_program): New member function.
8888 (cplus_language_data): Delete la_compute_program initializer.
8889 (cplus_language::compute_program): New member function.
8890 (asm_language_data): Delete la_compute_program initializer.
8891 (minimal_language_data): Likewise.
8892 * c-lang.h (c_compute_program): Update comment.
8893 (cplus_compute_program): Likewise.
8894 * compile/compile-c-support.c (c_compute_program): Likewise.
8895 (cplus_compute_program): Likewise.
8896 * compile/compile.c (compile_to_object): Update call to
8897 la_compute_program.
8898 * d-lang.c (d_language_data): Delete la_compute_program
8899 initializer.
8900 * f-lang.c (f_language_data): Likewise.
8901 * go-lang.c (go_language_data): Likewise.
8902 * language.c (unknown_language_data): Likewise.
8903 (auto_language_data): Likewise.
8904 * language.h (language_data): Delete la_compute_program field.
8905 (language_defn::compute_program): New member function.
8906 * m2-lang.c (m2_language_data): Delete la_compute_program
8907 initializer.
8908 * objc-lang.c (objc_language_data): Likewise.
8909 * opencl-lang.c (opencl_language_data): Likewise.
8910 * p-lang.c (pascal_language_data): Likewise.
8911 * rust-lang.c (rust_language_data): Likewise.
8912
eff93b4d
AB
89132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8914
8915 * ada-lang.c (ada_language_data) Delete
8916 la_class_name_from_physname initializer.
8917 * c-lang.c (c_language_data): Likewise.
8918 (cplus_language_data): Likewise.
8919 (cplus_language::class_name_from_physname): New member function.
8920 (asm_language_data): Delete la_class_name_from_physname
8921 initializer.
8922 (minimal_language_data): Likewise.
8923 * d-lang.c (d_language_data): Likewise.
8924 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8925 method on language_defn class.
8926 (guess_full_die_structure_name): Likewise.
8927 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8928 initializer.
8929 * go-lang.c (go_language_data): Likewise.
8930 * language.c (language_class_name_from_physname): Delete.
8931 (unk_lang_class_name): Delete.
8932 (unknown_language_data): Delete la_class_name_from_physname
8933 initializer.
8934 (auto_language_data): Likewise.
8935 * language.h (language_data): Delete la_class_name_from_physname
8936 field.
8937 (language_defn::class_name_from_physname): New function.
8938 (language_class_name_from_physname): Delete declaration.
8939 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8940 initializer.
8941 * objc-lang.c (objc_language_data): Likewise.
8942 * opencl-lang.c (opencl_language_data): Likewise.
8943 * p-lang.c (pascal_language_data): Likewise.
8944 * rust-lang.c (rust_language_data): Likewise.
8945
de543742
TT
89462020-06-16 Tom Tromey <tom@tromey.com>
8947
8948 * tui/tui-data.h (STATUS_NAME): New macro.
8949 * tui/tui-layout.c (tui_remove_some_windows)
8950 (initialize_known_windows, tui_register_window)
8951 (tui_layout_split::remove_windows, initialize_layouts)
8952 (tui_new_layout_command): Don't use hard-coded window names.
8953
a350efd4
TT
89542020-06-16 Tom Tromey <tom@tromey.com>
8955
8956 PR tui/25348:
8957 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8958 tui_initialize_readline. Only run once. Call rl_initialize.
8959 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8960 tui_initialize_readline.
8961 * tui/tui-io.c (tui_setup_io): Call
8962 tui_ensure_readline_initialized.
8963 * tui/tui-interp.c (tui_interp::init): Update.
8964
39ec0490
TT
89652020-06-16 Tom Tromey <tom@tromey.com>
8966
8967 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8968 Also preserve the status window.
8969
d2d1ea20
TT
89702020-06-16 Tom Tromey <tom@tromey.com>
8971
8972 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8973 where m_window==nullptr.
8974
66920317
TT
89752020-06-15 Tom Tromey <tromey@adacore.com>
8976
8977 * windows-nat.c (windows_nat::handle_output_debug_string):
8978 Update.
8979 (windows_nat::handle_ms_vc_exception): Update.
8980 * target.h (target_read_string): Change API.
8981 * target.c (target_read_string): Change API.
8982 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8983 Update.
8984 * solib-frv.c (frv_current_sos): Update.
8985 * solib-dsbt.c (dsbt_current_sos): Update.
8986 * solib-darwin.c (darwin_current_sos): Update.
8987 * linux-thread-db.c (inferior_has_bug): Update.
8988 * expprint.c (print_subexp_standard): Update.
8989 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8990 (ada_exception_message_1): Update.
8991
a5d871dd
TT
89922020-06-15 Tom Tromey <tromey@adacore.com>
8993
8994 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8995
670e35fa
TT
89962020-06-15 Tom Tromey <tromey@adacore.com>
8997
8998 * valprint.c (read_string): Update comment.
8999 * target.c (MIN): Remove.
9000 (target_read_string): Rewrite.
9001
f5272a3b
TT
90022020-06-15 Tom Tromey <tromey@adacore.com>
9003
9004 * corefile.c (read_memory_string): Remove.
9005 * ada-valprint.c (ada_value_print_ptr): Update.
9006 * ada-lang.h (ada_tag_name): Change return type.
9007 * ada-lang.c (type_from_tag): Update.
9008 (ada_tag_name_from_tsd): Change return type. Use
9009 target_read_string.
9010 (ada_tag_name): Likewise.
9011 * gdbcore.h (read_memory_string): Don't declare.
9012
2c074f49
HD
90132020-06-14 Hannes Domani <ssbssa@yahoo.de>
9014
9015 * symtab.c (rbreak_command): Ignore Windows drive colon.
9016
6a17d503
SM
90172020-06-12 Simon Marchi <simon.marchi@efficios.com>
9018
9019 * NEWS: Mention removed GDBserver host support.
9020
453c733f
NC
90212020-06-12 Nelson Chu <nelson.chu@sifive.com>
9022
9023 * features/riscv/rebuild-csr-xml.sh: Updated.
9024
2b4e6a3f
TT
90252020-06-11 Tom Tromey <tom@tromey.com>
9026
9027 PR gdb/18318:
9028 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9029
4412332f
JG
90302020-06-09 Jonny Grant <jg@jguk.org>
90312020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9032
9033 * main.c (captured_main_1): Don't print new line after help.
9034 (print_gdb_help): add mailing list and IRC channel information
9035 to --help. Add new lines between items in the footer. Remove
9036 quotes around bug url.
9037
2f33032a
KS
90382020-06-11 Keith Seitz <keiths@redhat.com>
9039
9040 PR gdb/21356
9041 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9042 Resolve typedefs for type length calculations.
9043
7ab96794
TV
90442020-06-10 Tom de Vries <tdevries@suse.de>
9045
9046 PR ada/24713
9047 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9048 (write_psymbols): Enable .gdb_index for ada.
9049 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9050 ada.
9051
e5f3ece2
TV
90522020-06-10 Tom de Vries <tdevries@suse.de>
9053
9054 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9055 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9056 namei" instead of "const char *name" argument.
9057 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9058 dw2_symtab_iter_init.
9059
940da03e
SM
90602020-06-08 Simon Marchi <simon.marchi@efficios.com>
9061
9062 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9063 to use type::field and field::type instead.
9064
b6cdac4b
SM
90652020-06-08 Simon Marchi <simon.marchi@efficios.com>
9066
9067 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9068 to use field::type instead.
9069
5d14b6e5
SM
90702020-06-08 Simon Marchi <simon.marchi@efficios.com>
9071
9072 * gdbtypes.h (struct field) <type, set_type>: New methods.
9073 Rename `type` field to...
9074 <m_type>: ... this. Change references throughout to use type or
9075 set_type methods.
9076 (FIELD_TYPE): Use field::type. Change call sites that modify
9077 the field's type to use field::set_type instead.
9078
3d967001
SM
90792020-06-08 Simon Marchi <simon.marchi@efficios.com>
9080
9081 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9082 to use type::index_type instead.
9083
262abc0d
SM
90842020-06-08 Simon Marchi <simon.marchi@efficios.com>
9085
9086 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9087 methods.
9088 (TYPE_INDEX_TYPE): Use type::index_type.
9089 * gdbtypes.c (create_array_type_with_stride): Likewise.
9090
82836c92
TT
90912020-06-07 Tom Tromey <tom@tromey.com>
9092
9093 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9094 parameter.
9095 (generic_value_print): Update.
9096
940dace9
AB
90972020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9098
9099 Revert commit 982a38f60b0.
9100 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9101
982a38f6
AB
91022020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9103
9104 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9105 avoid use after free.
9106
82f06518
TV
91072020-06-05 Tom de Vries <tdevries@suse.de>
9108
9109 * NEWS: Fix typos.
9110
f8c41851
SM
91112020-06-04 Simon Marchi <simon.marchi@efficios.com>
9112
9113 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9114 the per_bfd object.
9115 (dwarf2_read_debug_names): Likewise.
9116 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9117 object when re-using a per_bfd object with an index.
9118
f9b5d5ea
TV
91192020-06-03 Tom de Vries <tdevries@suse.de>
9120
9121 PR symtab/26046
9122 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9123 children for C++.
9124 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9125 DW_TAG_subprogram.
9126
f6eee2d0
AB
91272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9128
9129 * ada-lang.c (ada_language_data): Delete skip_trampoline
9130 initializer.
9131 * c-lang.c (c_language_data): Likewise.
9132 (cplus_language_data): Likewise.
9133 (cplus_language::skip_trampoline): New member function.
9134 (asm_language_data): Delete skip_trampoline initializer.
9135 (minimal_language_data): Likewise.
9136 * d-lang.c (d_language_data): Likewise.
9137 * f-lang.c (f_language_data): Likewise.
9138 * go-lang.c (go_language_data): Likewise.
9139 * language.c (unk_lang_trampoline): Delete function.
9140 (skip_language_trampoline): Update.
9141 (unknown_language_data): Delete skip_trampoline initializer.
9142 (auto_language_data): Likewise.
9143 * language.h (language_data): Delete skip_trampoline field.
9144 (language_defn::skip_trampoline): New function.
9145 * m2-lang.c (m2_language_data): Delete skip_trampoline
9146 initializer.
9147 * objc-lang.c (objc_skip_trampoline): Delete function, move
9148 implementation to objc_language::skip_trampoline.
9149 (objc_language_data): Delete skip_trampoline initializer.
9150 (objc_language::skip_trampoline): New member function with
9151 implementation from objc_skip_trampoline.
9152 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9153 initializer.
9154 * p-lang.c (pascal_language_data): Likewise.
9155 * rust-lang.c (rust_language_data): Likewise.
9156
0a50df5d
AB
91572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9158
9159 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9160 (ada_language::demangle): New member function.
9161 * c-lang.c (c_language_data): Delete la_demangle initializer.
9162 (cplus_language_data): Delete la_demangle initializer.
9163 (cplus_language::demangle): New member function.
9164 (asm_language_data): Delete la_demangle initializer.
9165 (minimal_language_data): Delete la_demangle initializer.
9166 * d-lang.c (d_language_data): Delete la_demangle initializer.
9167 (d_language::demangle): New member function.
9168 * f-lang.c (f_language_data): Delete la_demangle initializer.
9169 (f_language::demangle): New member function.
9170 * go-lang.c (go_language_data): Delete la_demangle initializer.
9171 (go_language::demangle): New member function.
9172 * language.c (language_demangle): Update.
9173 (unk_lang_demangle): Delete.
9174 (unknown_language_data): Delete la_demangle initializer.
9175 (unknown_language::demangle): New member function.
9176 (auto_language_data): Delete la_demangle initializer.
9177 (auto_language::demangle): New member function.
9178 * language.h (language_data): Delete la_demangle field.
9179 (language_defn::demangle): New function.
9180 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9181 * objc-lang.c (objc_language_data): Delete la_demangle
9182 initializer.
9183 (objc_language::demangle): New member function.
9184 * opencl-lang.c (opencl_language_data): Delete la_demangle
9185 initializer.
9186 * p-lang.c (pascal_language_data): Likewise.
9187 * rust-lang.c (rust_language_data): Likewise.
9188 (rust_language::demangle): New member function.
9189
fbfb0a46
AB
91902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9191
9192 * ada-lang.c (ada_language_data): Delete la_print_type
9193 initializer.
9194 (ada_language::print_type): New member function.
9195 * c-lang.c (c_language_data): Delete la_print_type initializer.
9196 (c_language::print_type): New member function.
9197 (cplus_language_data): Delete la_print_type initializer.
9198 (cplus_language::print_type): New member function.
9199 (asm_language_data): Delete la_print_type initializer.
9200 (asm_language::print_type): New member function.
9201 (minimal_language_data): Delete la_print_type initializer.
9202 (minimal_language::print_type): New member function.
9203 * d-lang.c (d_language_data): Delete la_print_type initializer.
9204 (d_language::print_type): New member function.
9205 * f-lang.c (f_language_data): Delete la_print_type initializer.
9206 (f_language::print_type): New member function.
9207 * go-lang.c (go_language_data): Delete la_print_type initializer.
9208 (go_language::print_type): New member function.
9209 * language.c (unk_lang_print_type): Delete.
9210 (unknown_language_data): Delete la_print_type initializer.
9211 (unknown_language::print_type): New member function.
9212 (auto_language_data): Delete la_print_type initializer.
9213 (auto_language::print_type): New member function.
9214 * language.h (language_data): Delete la_print_type field.
9215 (language_defn::print_type): New function.
9216 (LA_PRINT_TYPE): Update.
9217 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9218 (m2_language::print_type): New member function.
9219 * objc-lang.c (objc_language_data): Delete la_print_type
9220 initializer.
9221 (objc_language::print_type): New member function.
9222 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9223 to opencl_language::print_type.
9224 (opencl_language_data): Delete la_print_type initializer.
9225 (opencl_language::print_type): New member function, implementation
9226 from opencl_print_type.
9227 * p-lang.c (pascal_language_data): Delete la_print_type
9228 initializer.
9229 (pascal_language::print_type): New member function.
9230 * rust-lang.c (rust_print_type): Delete, implementation moved to
9231 rust_language::print_type.
9232 (rust_language_data): Delete la_print_type initializer.
9233 (rust_language::print_type): New member function, implementation
9234 from rust_print_type.
9235
6f827019
AB
92362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9237
9238 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9239 implementation moves to...
9240 (ada_language::sniff_from_mangled_name): ...here. Update return
9241 type.
9242 (ada_language_data): Delete la_sniff_from_mangled_name
9243 initializer.
9244 * c-lang.c (c_language_data): Likewise.
9245 (cplus_language_data): Likewise.
9246 (cplus_language::sniff_from_mangled_name): New member function,
9247 implementation taken from gdb_sniff_from_mangled_name.
9248 (asm_language_data): Delete la_sniff_from_mangled_name
9249 initializer.
9250 (minimal_language_data): Likewise.
9251 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9252 implementation moves to cplus_language::sniff_from_mangled_name.
9253 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9254 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9255 moves to...
9256 (d_language::sniff_from_mangled_name): ...here.
9257 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9258 * f-lang.c (f_language_data): Likewise.
9259 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9260 moves to...
9261 (go_language::sniff_from_mangled_name): ...here.
9262 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9263 * language.c (language_sniff_from_mangled_name): Delete.
9264 (unknown_language_data): Delete la_sniff_from_mangled_name
9265 initializer.
9266 (auto_language_data): Likewise.
9267 * language.h (language_data): Delete la_sniff_from_mangled_name
9268 field.
9269 (language_defn::sniff_from_mangled_name): New function.
9270 (language_sniff_from_mangled_name): Delete declaration.
9271 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9272 field.
9273 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9274 implementation moves to...
9275 (objc_language::sniff_from_mangled_name): ...here.
9276 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9277 * opencl-lang.c (opencl_language_data): Likewise.
9278 * p-lang.c (pascal_language_data): Likewise.
9279 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9280 implementation moves to...
9281 (rust_language::sniff_from_mangled_name): ...here.
9282 (rust_language_data): Delete la_sniff_from_mangled_name
9283 initializer.
9284 * symtab.c (symbol_find_demangled_name): Call
9285 sniff_from_mangled_name member function.
9286
fb8006fd
AB
92872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9288
9289 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9290 initializer.
9291 * c-lang.c (c_language_data): Likewise.
9292 (cplus_language_data): Likewise.
9293 (cplus_language::search_name_hash): New member function.
9294 (asm_language_data): Delete la_search_name_hash initializer.
9295 (minimal_language_data): Likewise.
9296 * d-lang.c (d_language_data): Likewise.
9297 * dictionary.c (default_search_name_hash): Rename to...
9298 (language_defn::search_name_hash): ...this.
9299 * f-lang.c (f_language_data): Likewise.
9300 (f_language::search_name_hash): New member function.
9301 * go-lang.c (go_language_data): Delete la_search_name_hash
9302 initializer.
9303 * language.c (unknown_language_data): Likewise.
9304 (auto_language_data): Likewise.
9305 * language.h (struct language_data): Delete la_search_name_hash
9306 field.
9307 (language_defn::search_name_hash): Declare new member function.
9308 (default_search_name_hash): Delete declaration.
9309 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9310 initializer.
9311 * objc-lang.c (objc_language_data): Likewise.
9312 * opencl-lang.c (opencl_language_data): Likewise.
9313 * p-lang.c (pascal_language_data): Likewise.
9314 * rust-lang.c (rust_language_data): Likewise.
9315 * symtab.c (search_name_hash): Update call.
9316
8e25bafe
AB
93172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9318
9319 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9320 initializer.
9321 * c-lang.c (class compile_instance): Declare.
9322 (c_language_data): Delete la_get_compile_instance initializer.
9323 (c_language::get_compile_instance): New member function.
9324 (cplus_language_data): Delete la_get_compile_instance initializer.
9325 (cplus_language::get_compile_instance): New member function.
9326 (asm_language_data): Delete la_get_compile_instance initializer.
9327 (minimal_language_data): Likewise.
9328 * c-lang.h (c_get_compile_context): Update comment.
9329 (cplus_get_compile_context): Update comment.
9330 * compile/compile.c (compile_to_object): Update calls, don't rely
9331 on function pointer being NULL.
9332 * d-lang.c (d_language_data): Delete la_get_compile_instance
9333 initializer.
9334 * f-lang.c (f_language_data): Likewise.
9335 * go-lang.c (go_language_data): Likewise.
9336 * language.c (unknown_language_data): Likewise.
9337 (auto_language_data): Likewise.
9338 * language.h (language_data): Delete la_get_compile_instance field.
9339 (language_defn::get_compile_instance): New member function.
9340 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9341 initializer.
9342 * objc-lang.c (objc_language_data): Likewise.
9343 * opencl-lang.c (opencl_language_data): Likewise.
9344 * p-lang.c (pascal_language_data): Likewise.
9345 * rust-lang.c (rust_language_data): Likewise.
9346
4009ee92
AB
93472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9348
9349 * ada-lang.c (ada_add_all_symbols): Update comment.
9350 (ada_iterate_over_symbols): Delete, move implementation to...
9351 (ada_language::iterate_over_symbols): ...here, a new member
9352 function, rewrite to use range based for loop.
9353 (ada_language_data): Delete la_iterate_over_symbols initializer.
9354 * c-lang.c (c_language_data): Likewise.
9355 (cplus_language_data): Likewise.
9356 (asm_language_data): Likewise.
9357 (minimal_language_data): Likewise.
9358 * d-lang.c (d_language_data): Likewise.
9359 * f-lang.c (f_language_data): Likewise.
9360 * go-lang.c (go_language_data): Likewise.
9361 * language.c (unknown_language_data): Likewise.
9362 (auto_language_data): Likewise.
9363 * language.h (language_data): Delete la_iterate_over_symbols field.
9364 (language_defn::iterate_over_symbols): New member function.
9365 (LA_ITERATE_OVER_SYMBOLS): Update.
9366 * linespec.c (iterate_over_all_matching_symtabs): Update.
9367 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9368 initializer.
9369 * objc-lang.c (objc_language_data): Likewise.
9370 * opencl-lang.c (opencl_language_data): Likewise.
9371 * p-lang.c (pascal_language_data): Likewise.
9372 * rust-lang.c (rust_language_data): Likewise.
9373
54f4ca46
AB
93742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9375
9376 * ada-lang.c (ada_language_data): Delete
9377 la_lookup_transparent_type initializer.
9378 * c-lang.c (c_language_data): Likewise.
9379 (cplus_language_data): Likewise.
9380 (cplus_language::lookup_transparent_type): New member function.
9381 (asm_language_data): Delete la_lookup_transparent_type
9382 initializer.
9383 (minimal_language_data): Likewise.
9384 * d-lang.c (d_language_data): Likewise.
9385 * f-lang.c (f_language_data): Likewise.
9386 * go-lang.c (go_language_data): Likewise.
9387 * language.c (unknown_language_data): Likewise.
9388 (auto_language_data): Likewise.
9389 * language.h (struct language_data): Delete
9390 la_lookup_transparent_type field.
9391 (language_defn::lookup_transparent_type): New member function.
9392 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9393 initializer.
9394 * objc-lang.c (objc_language_data): Likewise.
9395 * opencl-lang.c (opencl_language_data): Likewise.
9396 * p-lang.c (pascal_language_data): Likewise.
9397 * rust-lang.c (rust_language_data): Likewise.
9398 * symtab.c (symbol_matches_domain): Update call.
9399
1fb314aa
AB
94002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9401
9402 * ada-lang.c (ada_language_arch_info): Delete function, move
9403 implementation to...
9404 (ada_language::language_arch_info): ...here, a new member
9405 function.
9406 (ada_language_data): Delete la_language_arch_info.
9407 * c-lang.c (c_language_data): Likewise.
9408 (c_language::language_arch_info): New member function.
9409 (cplus_language_arch_info): Delete function, move
9410 implementation to...
9411 (cplus_language::language_arch_info): ...here, a new member
9412 function.
9413 (cplus_language_data): Delete la_language_arch_info.
9414 (asm_language_data): Likewise.
9415 (asm_language::language_arch_info): New member function.
9416 (minimal_language_data): Delete la_language_arch_info.
9417 (minimal_language::language_arch_info): New member function.
9418 * d-lang.c (d_language_arch_info): Delete function, move
9419 implementation to...
9420 (d_language::language_arch_info): ...here, a new member
9421 function.
9422 (d_language_data): Delete la_language_arch_info.
9423 * f-lang.c (f_language_arch_info): Delete function, move
9424 implementation to...
9425 (f_language::language_arch_info): ...here, a new member
9426 function.
9427 (f_language_data): Delete la_language_arch_info.
9428 * go-lang.c (go_language_arch_info): Delete function, move
9429 implementation to...
9430 (go_language::language_arch_info): ...here, a new member
9431 function.
9432 (go_language_data): Delete la_language_arch_info.
9433 * language.c (unknown_language_data): Likewise.
9434 (unknown_language::language_arch_info): New member function.
9435 (auto_language_data): Delete la_language_arch_info.
9436 (auto_language::language_arch_info): New member function.
9437 (language_gdbarch_post_init): Update call to
9438 la_language_arch_info.
9439 * language.h (language_data): Delete la_language_arch_info
9440 function pointer.
9441 (language_defn::language_arch_info): New function.
9442 * m2-lang.c (m2_language_arch_info): Delete function, move
9443 implementation to...
9444 (m2_language::language_arch_info): ...here, a new member
9445 function.
9446 (m2_language_data): Delete la_language_arch_info.
9447 * objc-lang.c (objc_language_arch_info): Delete function, move
9448 implementation to...
9449 (objc_language::language_arch_info): ...here, a new member
9450 function.
9451 (objc_language_data): Delete la_language_arch_info.
9452 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9453 implementation to...
9454 (opencl_language::language_arch_info): ...here, a new member
9455 function.
9456 (opencl_language_data): Delete la_language_arch_info.
9457 * p-lang.c (pascal_language_arch_info): Delete function, move
9458 implementation to...
9459 (pascal_language::language_arch_info): ...here, a new member
9460 function.
9461 (pascal_language_data): Delete la_language_arch_info.
9462 * rust-lang.c (rust_language_arch_info): Delete function, move
9463 implementation to...
9464 (rust_language::language_arch_info): ...here, a new member
9465 function.
9466 (rust_language_data): Delete la_language_arch_info.
9467
48448202
AB
94682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9469
9470 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9471 initializer.
9472 * c-lang.c (c_language_data): Likewise.
9473 (cplus_language_data): Likewise.
9474 (cplus_language::pass_by_reference_info): New method.
9475 (asm_language_data): Delete la_pass_by_reference initializer.
9476 (minimal_language_data): Likewise.
9477 * cp-abi.c (cp_pass_by_reference): Remove use of
9478 default_pass_by_reference.
9479 * d-lang.c (d_language_data): Likewise.
9480 * f-lang.c (f_language_data): Likewise.
9481 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9482 default_pass_by_reference.
9483 * go-lang.c (go_language_data): Likewise.
9484 * language.c (language_pass_by_reference): Update.
9485 (default_pass_by_reference): Delete.
9486 (unknown_language_data): Delete la_pass_by_reference
9487 initializer.
9488 (auto_language_data): Likewise.
9489 * language.h (struct language_data): Delete la_pass_by_reference
9490 field.
9491 (language_defn::pass_by_reference_info): New member function.
9492 (default_pass_by_reference): Delete declaration.
9493 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9494 initializer.
9495 * objc-lang.c (objc_language_data): Likewise.
9496 * opencl-lang.c (opencl_language_data): Likewise.
9497 * p-lang.c (pascal_language_data): Likewise.
9498 * rust-lang.c (rust_language_data): Likewise.
9499
15e5fd35
AB
95002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9501
9502 * ada-lang.c (ada_read_var_value): Delete function, move
9503 implementation to...
9504 (ada_language::read_var_value): ...here.
9505 (ada_language_data): Delete la_read_var_value initializer.
9506 * c-lang.c (c_language_data): Likewise.
9507 (cplus_language_data): Likewise.
9508 (minimal_language_data): Likewise.
9509 * d-lang.c (d_language_data): Likewise.
9510 * f-lang.c (f_language_data): Likewise.
9511 * findvar.c (default_read_var_value): Rename to...
9512 (language_defn::read_var_value): ...this.
9513 * findvar.c (read_var_value): Update header comment, and change to
9514 call member function instead of function pointer.
9515 * go-lang.c (go_language_data): Likewise.
9516 * language.c (unknown_language_data): Delete la_read_var_value
9517 initializer.
9518 (auto_language_data): Likewise.
9519 * language.h (struct language_data): Delete la_read_var_value
9520 field.
9521 (language_defn::read_var_value): New member function.
9522 (default_read_var_value): Delete declaration.
9523 * m2-lang.c (m2_language_data): Delete la_read_var_value
9524 initializer.
9525 * objc-lang.c (objc_language_data): Likewise.
9526 * opencl-lang.c (opencl_language_data): Likewise.
9527 * p-lang.c (pascal_language_data): Likewise.
9528 * rust-lang.c (rust_language_data): Likewise.
9529 * value.h (default_read_var_value): Delete declaration.
9530
5bd40f2a
AB
95312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9532
9533 * ada-lang.c (ada_print_array_index): Delete function, move
9534 implementation to...
9535 (ada_language::print_array_index): ...here.
9536 (ada_language_data): Delete la_print_array_index initializer.
9537 * c-lang.c (c_language_data): Likewise.
9538 (cplus_language_data): Likewise.
9539 (minimal_language_data): Likewise.
9540 * d-lang.c (d_language_data): Likewise.
9541 * f-lang.c (f_language_data): Likewise.
9542 * go-lang.c (go_language_data): Likewise.
9543 * language.c (default_print_array_index): Delete function, move
9544 implementation to...
9545 (language_defn::print_array_index): ...here.
9546 (unknown_language_data): Delete la_print_array_index initializer.
9547 (auto_language_data): Likewise.
9548 * language.h (struct language_data): Delete la_print_array_index
9549 field.
9550 (language_defn::print_array_index): New member function.
9551 (LA_PRINT_ARRAY_INDEX): Update.
9552 (default_print_array_index): Delete declaration.
9553 * m2-lang.c (m2_language_data): Delete la_print_array_index
9554 initializer.
9555 * objc-lang.c (objc_language_data): Likewise.
9556 * opencl-lang.c (opencl_language_data): Likewise.
9557 * p-lang.c (pascal_language_data): Likewise.
9558 * rust-lang.c (rust_language_data): Likewise.
9559
0874fd07
AB
95602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9561
9562 * gdb/ada-lang.c (ada_language_defn): Convert to...
9563 (ada_language_data): ...this.
9564 (class ada_language): New class.
9565 (ada_language_defn): New static global.
9566 * gdb/c-lang.c (c_language_defn): Convert to...
9567 (c_language_data): ...this.
9568 (class c_language): New class.
9569 (c_language_defn): New static global.
9570 (cplus_language_defn): Convert to...
9571 (cplus_language_data): ...this.
9572 (class cplus_language): New class.
9573 (cplus_language_defn): New static global.
9574 (asm_language_defn): Convert to...
9575 (asm_language_data): ...this.
9576 (class asm_language): New class.
9577 (asm_language_defn): New static global.
9578 (minimal_language_defn): Convert to...
9579 (minimal_language_data): ...this.
9580 (class minimal_language): New class.
9581 (minimal_language_defn): New static global.
9582 * gdb/d-lang.c (d_language_defn): Convert to...
9583 (d_language_data): ...this.
9584 (class d_language): New class.
9585 (d_language_defn): New static global.
9586 * gdb/f-lang.c (f_language_defn): Convert to...
9587 (f_language_data): ...this.
9588 (class f_language): New class.
9589 (f_language_defn): New static global.
9590 * gdb/go-lang.c (go_language_defn): Convert to...
9591 (go_language_data): ...this.
9592 (class go_language): New class.
9593 (go_language_defn): New static global.
9594 * gdb/language.c (unknown_language_defn): Remove declaration.
9595 (current_language): Initialize to nullptr, real initialization is
9596 moved to _initialize_language.
9597 (languages): Delete global.
9598 (language_defn::languages): Define.
9599 (set_language_command): Use language_defn::languages.
9600 (set_language): Likewise.
9601 (range_error): Likewise.
9602 (language_enum): Likewise.
9603 (language_def): Likewise.
9604 (add_set_language_command): Use language_def::languages for the
9605 language list, and language_def to lookup language pointers.
9606 (skip_language_trampoline): Use language_defn::languages.
9607 (unknown_language_defn): Convert to...
9608 (unknown_language_data): ...this.
9609 (class unknown_language): New class.
9610 (unknown_language_defn): New static global.
9611 (auto_language_defn): Convert to...
9612 (auto_language_data): ...this.
9613 (class auto_language): New class.
9614 (auto_language_defn): New static global.
9615 (language_gdbarch_post_init): Use language_defn::languages.
9616 (_initialize_language): Initialize current_language.
9617 * gdb/language.h (struct language_defn): Rename to...
9618 (struct language_data): ...this.
9619 (struct language_defn): New.
9620 (auto_language_defn): Delete.
9621 (unknown_language_defn): Delete.
9622 (minimal_language_defn): Delete.
9623 (ada_language_defn): Delete.
9624 (asm_language_defn): Delete.
9625 (c_language_defn): Delete.
9626 (cplus_language_defn): Delete.
9627 (d_language_defn): Delete.
9628 (f_language_defn): Delete.
9629 (go_language_defn): Delete.
9630 (m2_language_defn): Delete.
9631 (objc_language_defn): Delete.
9632 (opencl_language_defn): Delete.
9633 (pascal_language_defn): Delete.
9634 (rust_language_defn): Delete.
9635 * gdb/m2-lang.c (m2_language_defn): Convert to...
9636 (m2_language_data): ...this.
9637 (class m2_language): New class.
9638 (m2_language_defn): New static global.
9639 * gdb/objc-lang.c (objc_language_defn): Convert to...
9640 (objc_language_data): ...this.
9641 (class objc_language): New class.
9642 (objc_language_defn): New static global.
9643 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9644 (opencl_language_data): ...this.
9645 (class opencl_language): New class.
9646 (opencl_language_defn): New static global.
9647 * gdb/p-lang.c (pascal_language_defn): Convert to...
9648 (pascal_language_data): ...this.
9649 (class pascal_language): New class.
9650 (pascal_language_defn): New static global.
9651 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9652 language pointer, update comment format.
9653 * gdb/rust-lang.c (rust_language_defn): Convert to...
9654 (rust_language_data): ...this.
9655 (class rust_language): New class.
9656 (rust_language_defn): New static global.
9657
1313c56e
AB
96582020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9659
9660 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9661 member variable.
9662 <m_stmt_at_address>: New member variable.
9663 (lnp_state_machine::record_line): Don't record some lines, update
9664 tracking of is_stmt at the same address.
9665 (lnp_state_machine::lnp_state_machine): Initialise new member
9666 variables.
9667
b7ed9f3d
ST
96682020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9669
9670 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9671 "-include gnu-nat-mig.h".
9672 * gnu-nat-mig.h: New file.
9673 * gnu-nat.c: Include "gnu-nat-mig.h".
9674 (exc_server, msg_reply_server, notify_server,
9675 process_reply_server): Remove declarations.
9676
14a8ad62
ST
96772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9678
9679 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9680 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9681 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9682 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9683 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9684 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9685 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9686 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9687 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9688 to gnu_nat_target class.
9689 * gnu-nat.c: Likewise.
9690 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9691 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9692 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9693 object.
9694 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9695 instead of `gnu_target'.
9696
0af5e106
ST
96972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9698
9699 * i386-gnu-tdep.c: Include "gdbcore.h"
9700 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9701 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9702 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9703 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9704 i386_gnu_sigcontext_addr): New functions
9705 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9706 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9707 tdep.
9708
078f2fc9
ST
97092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9710
9711 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9712 before fork_inferior call. Avoid calling it if target_is_pushed returns
9713 true.
9714
53dff92c
ST
97152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9716
9717 * gnu-nat.h (gnu_target): New variable declaration.
9718 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9719 gnu_target.
9720 * gnu-nat.c (gnu_target): New variable.
9721 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9722 add_thread_silent, and add_thread calls.
9723 (gnu_nat_target::create_inferior): Pass gnu_target to
9724 add_thread_silent, thread_change_ptid call.
9725 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9726 call.
9727
5a8b8627
ST
97282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9729
9730 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9731 (gnu_nat_target::find_memory_regions): Remove unused
9732 `old_address' variable.
9733
366f550a
ST
97342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9735
9736 * gnu-nat.c: Include "gdbarch.h".
9737
f14871bf
ST
97382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9739
9740 * reply_mig_hack.awk (Error return): Cast function through
9741 void *, to bypass compiler function call check.
9742
c6887cfb
ST
97432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9744
9745 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9746 $(srcdir)/reply_mig_hack.awk.
9747
6930bffe
ST
97482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9749
9750 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9751
112c22ed
JG
97522020-05-30 Jonny Grant <jg@jguk.org>
9753
9754 * configure.ac (ACX_BUGURL): change bug URL to https.
9755
f68f85b5
PA
97562020-05-30 Pedro Alves <palves@redhat.com>
9757
9758 * cp-support.c (replace_typedefs_template): New.
9759 (replace_typedefs_qualified_name): Handle
9760 DEMANGLE_COMPONENT_TEMPLATE.
9761
976ca316
SM
97622020-05-29 Simon Marchi <simon.marchi@efficios.com>
9763
9764 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9765 dwarf2/index-cache.h, dwarf2/index-write.c,
9766 dwarf2/index-write.h, dwarf2/line-header.c,
9767 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9768 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9769 variables and fields from `dwarf2_per_objfile` to just
9770 `per_objfile` throughout.
9771
989ade05
SM
97722020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9773
9774 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9775 <push_dwarf_reg_entry_value>: Add comment.
9776
c47bae85
KB
97772020-05-28 Kevin Buettner <kevinb@redhat.com>
9778 Keith Seitz <keiths@redhat.com>
9779
9780 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9781 instead of PyEval_ReleaseLock.
9782 (class gdbpy_gil): Move to earlier in file.
9783 (finalize_python): Set gdb_python_initialized.
9784 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9785 when not initialized.
9786
44486dcf
SM
97872020-05-28 Simon Marchi <simon.marchi@efficios.com>
9788
9789 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9790 <push_dwarf_reg_entry_value>: Remove assert. Override
9791 per_objfile with caller_per_objfile.
9792
f030440d
TV
97932020-05-28 Tom de Vries <tdevries@suse.de>
9794
9795 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9796 PR gold/15646 workaround to symbol kind "type".
9797
f0fbb768
TT
97982020-05-27 Tom Tromey <tromey@adacore.com>
9799
9800 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9801
af0b2a3e
TT
98022020-05-27 Tom Tromey <tromey@adacore.com>
9803
9804 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9805 Use htab_find_with_hash.
9806 <add_abbrev>: Remove "abbrev_number" parameter.
9807 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9808 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9809 (hash_abbrev): Add comment.
9810 (abbrev_table::lookup_abbrev): Move to header file.
9811 (abbrev_table::read): Update.
9812
7d00ffec
TT
98132020-05-27 Tom Tromey <tromey@adacore.com>
9814
9815 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9816 method.
9817 <canonical_name>: New member.
9818 <raw_name>: Rename from "name".
9819 (partial_die_info): Initialize canonical_name.
9820 (scan_partial_symbols): Check raw_name.
9821 (partial_die_parent_scope, partial_die_full_name)
9822 (add_partial_symbol, add_partial_subprogram)
9823 (add_partial_enumeration, load_partial_dies): Use "name" method.
9824 (partial_die_info::name): New method.
9825 (partial_die_info::read, guess_partial_die_structure_name)
9826 (partial_die_info::fixup): Update.
9827
697bba18
TT
98282020-05-27 Tom Tromey <tromey@adacore.com>
9829
9830 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9831 <get_ref_die_offset>: Inline.
9832 <get_ref_die_offset_complaint>: New method.
9833 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9834 (attribute::get_ref_die_offset_complaint): Rename from
9835 get_ref_die_offset. Just issue complaint.
9836
c17ace43
HD
98372020-05-27 Hannes Domani <ssbssa@yahoo.de>
9838
9839 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9840
96445f0b
HD
98412020-05-27 Hannes Domani <ssbssa@yahoo.de>
9842
9843 * exec.c (exec_file_attach): Use errno value of first openp failure.
9844
ac637ec3
HD
98452020-05-27 Hannes Domani <ssbssa@yahoo.de>
9846
9847 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9848 Don't close thread handle.
9849
17ee85fc
TT
98502020-05-27 Tom Tromey <tom@tromey.com>
9851 Simon Marchi <simon.marchi@efficios.com>
9852
9853 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9854 shared_ptr.
9855 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9856 member.
9857 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9858 dwarf2_per_bfd_objfile_data_key>: New globals.
9859 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9860 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9861 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9862 shared.
9863 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9864 short-circuit when sharing.
9865 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9866 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9867
39b16f87
SM
98682020-05-27 Simon Marchi <simon.marchi@efficios.com>
9869
9870 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9871 to...
9872 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9873 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9874
fcf23d5b
SM
98752020-05-27 Simon Marchi <simon.marchi@efficios.com>
9876
9877 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9878 build_name_components, find_name_components_bounds>:
9879 Add per_objfile parameter.
9880 (struct mapped_index) <symbol_name_at>: Likewise.
9881 (struct mapped_debug_names): Remove constructor.
9882 <dwarf2_per_objfile>: Remove field.
9883 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9884 (mapped_index_base::find_name_components_bounds,
9885 mapped_index_base::build_name_components,
9886 dw2_expand_symtabs_matching_symbol): Likewise.
9887 (class mock_mapped_index) <symbol_name_at>: Likewise.
9888 (check_match): Likewise.
9889 (check_find_bounds_finds): Likewise.
9890 (test_mapped_index_find_name_component_bounds): Update.
9891 (CHECK_MATCH): Update.
9892 (dw2_expand_symtabs_matching): Update.
9893 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9894 per_objfile parameter.
9895 <find_vec_in_debug_names>: Likewise.
9896 <m_per_objfile>: New field.
9897 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9898 parameter.
9899 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9900 (dw2_debug_names_iterator::next): Update.
9901 (dw2_debug_names_lookup_symbol): Update.
9902 (dw2_debug_names_expand_symtabs_for_function): Update.
9903 (dw2_debug_names_map_matching_symbols): Update.
9904 (dw2_debug_names_expand_symtabs_matching): Update.
9905 (dwarf2_read_debug_names): Update.
9906
7188ed02
SM
99072020-05-27 Simon Marchi <simon.marchi@efficios.com>
9908
9909 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9910 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9911 move to dwarf2_per_objfile.
9912 <read_in_chain>: Remove.
9913 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9914 remove_all_cus, age_comp_units>: New methods.
9915 <m_dwarf2_cus>: New member.
9916 (struct dwarf2_per_cu_data) <cu>: Remove.
9917 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9918 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9919 moved to methods of dwarf2_per_objfile.
9920 (dwarf2_clear_marks): Remove.
9921 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9922 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9923 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9924 (dwarf2_per_objfile::remove_all_cus): New.
9925 (class free_cached_comp_units) <~free_cached_comp_units>:
9926 Update.
9927 (load_cu): Update.
9928 (dw2_do_instantiate_symtab): Adjust.
9929 (fill_in_sig_entry_from_dwo_entry): Adjust.
9930 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9931 (cutu_reader::cutu_reader): Likewise.
9932 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9933 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9934 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9935 and dwarf2_per_objfile::age_comp_units.
9936 (load_partial_comp_unit): Update.
9937 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9938 (process_queue): Likewise.
9939 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9940 backlink.
9941 (dwarf2_read_addr_index): Likewise.
9942 (follow_die_offset): Likewise.
9943 (dwarf2_fetch_die_loc_sect_off): Likewise.
9944 (dwarf2_fetch_constant_bytes): Likewise.
9945 (dwarf2_fetch_die_type_sect_off): Likewise.
9946 (follow_die_sig_1): Likewise.
9947 (load_full_type_unit): Likewise.
9948 (read_signatured_type): Likewise.
9949 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9950 (dwarf2_cu::~dwarf2_cu): Remove.
9951 (dwarf2_per_objfile::get_cu): New.
9952 (dwarf2_per_objfile::set_cu): New.
9953 (age_cached_comp_units): Rename to...
9954 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9955 to std::unordered_map.
9956 (free_one_cached_comp_unit): Rename to...
9957 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9958 to std::unordered_map.
9959 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9960 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9961 a dwarf2_per_objfile in data.
9962 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9963 (dwarf2_clear_marks): Remove.
9964
2e671100
SM
99652020-05-27 Simon Marchi <simon.marchi@efficios.com>
9966
9967 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9968 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9969 (init_tu_and_read_dwo_dies): Likewise.
9970 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9971 (cutu_reader::cutu_reader): Likewise.
9972 (load_partial_comp_unit): Likewise.
9973 (process_psymtab_comp_unit): Update.
9974 (build_type_psymtabs_1): Update.
9975 (process_skeletonless_type_unit): Update.
9976 (load_full_comp_unit): Update.
9977 (find_partial_die): Update.
9978 (dwarf2_read_addr_index): Update.
9979 (read_signatured_type): Update.
9980
2e6a9f79
SM
99812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9982
9983 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9984 m_header_read_in>: New fields.
9985 <get_header>: New method.
9986 * dwarf2/read.c (per_cu_header_read_in): Remove.
9987 (dwarf2_per_cu_data::get_header): New.
9988 (dwarf2_per_cu_data::addr_size): Update.
9989 (dwarf2_per_cu_data::offset_size): Update.
9990 (dwarf2_per_cu_data::ref_addr_size): Update.
9991
1b555f17
SM
99922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9993
9994 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9995 (dw2_do_instantiate_symtab): Update.
9996 (queue_and_load_all_dwo_tus): Change parameter from
9997 dwarf2_per_cu_data to dwarf2_cu.
9998 (dwarf2_fetch_die_loc_sect_off): Update.
9999 (dwarf2_fetch_constant_bytes): Update.
10000 (dwarf2_fetch_die_type_sect_off): Update.
10001
8fc0b21d
SM
100022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10003
10004 * dwarf2/read.c (process_full_comp_unit,
10005 process_full_type_unit): Remove per_cu, per_objfile paramters.
10006 Add dwarf2_cu parameter.
10007 (process_queue): Update.
10008
168c9250
SM
100092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10010
10011 * dwarf2/read.c (create_cu_from_index_list): Replace
10012 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10013 (create_cus_from_index_list): Likewise.
10014 (create_cus_from_index): Likewise.
10015 (create_signatured_type_table_from_index): Likewise.
10016 (create_cus_from_debug_names_list): Likewise.
10017 (create_cus_from_debug_names): Likewise.
10018 (dwarf2_read_gdb_index): Update.
10019 (dwarf2_read_debug_names): Update.
10020
e286671b
TT
100212020-05-27 Tom Tromey <tom@tromey.com>
10022 Simon Marchi <simon.marchi@efficios.com>
10023
10024 * dwarf2/read.h (struct dwarf2_per_objfile)
10025 <get_type_for_signatured_type, set_type_for_signatured_type>:
10026 New methods.
10027 <m_type_map>: New member.
10028 (struct signatured_type) <type>: Remove.
10029 * dwarf2/read.c
10030 (dwarf2_per_objfile::get_type_for_signatured_type,
10031 dwarf2_per_objfile::set_type_for_signatured_type): New.
10032 (get_signatured_type): Use new methods.
10033
8adb8487
TT
100342020-05-27 Tom Tromey <tom@tromey.com>
10035 Simon Marchi <simon.marchi@efficios.com>
10036
10037 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10038 (struct dwarf2_per_objfile) <type_units>: New member.
10039 <get_type_unit_group_unshareable>: New method.
10040 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10041 num_symtabs, symtabs>: Remove; move to
10042 type_unit_group_unshareable.
10043 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10044 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10045 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10046
127bbf4b
SM
100472020-05-27 Simon Marchi <simon.marchi@efficios.com>
10048
10049 * dwarf2/read.h (struct dwarf2_per_cu_data):
10050 <dwarf2_per_objfile>: Remove.
10051 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10052 dwarf2_per_objfile.
10053 (create_signatured_type_table_from_index): Likewise.
10054 (create_signatured_type_table_from_debug_names): Likewise.
10055 (create_debug_type_hash_table): Likewise.
10056 (fill_in_sig_entry_from_dwo_entry): Likewise.
10057 (create_type_unit_group): Likewise.
10058 (read_comp_units_from_section): Likewise.
10059 (create_cus_hash_table): Likewise.
10060
f6e649dd
SM
100612020-05-27 Simon Marchi <simon.marchi@efficios.com>
10062
10063 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10064 dwarf2_per_cu_data::dwarf2_per_objfile.
10065 (compute_compunit_symtab_includes): Likewise.
10066 (dwarf2_cu::start_symtab): Likewise.
10067
aa66c379
SM
100682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10069
10070 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10071 parameter.
10072 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10073 (read_namespace_alias): Update.
10074 (lookup_die_type): Update.
10075 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10076 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10077 Update.
10078 (disassemble_dwarf_expression): Update.
10079
120ce1b5
SM
100802020-05-27 Simon Marchi <simon.marchi@efficios.com>
10081
10082 * dwarf2/read.h (struct dwarf2_queue_item): Add
10083 dwarf2_per_objfile parameter, assign new parameter.
10084 <per_objfile>: New field.
10085 * dwarf2/read.c (free_one_cached_comp_unit): Add
10086 dwarf2_per_objfile parameter.
10087 (queue_comp_unit): Likewise.
10088 (dw2_do_instantiate_symtab): Update.
10089 (process_psymtab_comp_unit): Update.
10090 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10091 (process_imported_unit_die): Update.
10092 (queue_and_load_dwo_tu): Update.
10093 (follow_die_offset): Update.
10094 (follow_die_sig_1): Update.
10095
9f47c707
SM
100962020-05-27 Simon Marchi <simon.marchi@efficios.com>
10097
10098 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10099 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10100 (read_call_site_scope): Assign per_objfile.
10101 (dwarf2_per_cu_data::objfile): Remove.
10102 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10103 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10104 dwarf2_per_objfile parameter.
10105 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10106 dwarf2_per_objfile parameter.
10107 (dwarf_expr_reg_to_entry_parameter): Add output
10108 dwarf2_per_objfile parameter.
10109 (locexpr_get_frame_base): Update.
10110 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10111 <push_dwarf_reg_entry_value>: Update.
10112 <call_site_to_target_addr>: Update.
10113 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10114 parameter.
10115 (value_of_dwarf_reg_entry): Update.
10116 (rw_pieced_value): Update.
10117 (indirect_synthetic_pointer): Update.
10118 (dwarf2_evaluate_property): Update.
10119 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10120 parameter.
10121 (locexpr_read_variable): Update.
10122 (locexpr_get_symbol_read_needs): Update.
10123 (loclist_read_variable): Update.
10124
14095eb3
SM
101252020-05-27 Simon Marchi <simon.marchi@efficios.com>
10126
10127 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10128 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10129 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10130 parameter.
10131 * dwarf2/read.c (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/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10136 sect_variable_value): Add dwarf2_per_objfile parameter.
10137 (class dwarf_evaluate_loc_desc) <dwarf_call,
10138 dwarf_variable_value>: Update.
10139 (fetch_const_value_from_synthetic_pointer): Add
10140 dwarf2_per_objfile parameter.
10141 (fetch_const_value_from_synthetic_pointer): Update.
10142 (coerced_pieced_ref): Update.
10143 (class symbol_needs_eval_context) <dwarf_call,
10144 dwarf_variable_value>: Update.
10145 (dwarf2_compile_expr_to_ax): Update.
10146
3c3cd3d4
SM
101472020-05-27 Simon Marchi <simon.marchi@efficios.com>
10148
10149 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10150 parameter.
10151 (dwarf2_evaluate_loc_desc_full): Update.
10152
82ca3f51
SM
101532020-05-27 Simon Marchi <simon.marchi@efficios.com>
10154
10155 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10156 parameter.
10157 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10158 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10159 dwarf2_per_objfile parameter.
10160 (decode_debug_loc_dwo_addresses): Likewise.
10161 (dwarf2_find_location_expression): Update.
10162 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10163 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10164 parameter.
10165 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10166 parameter.
10167 (locexpr_describe_location_1): Likewise.
10168 (locexpr_describe_location): Update.
10169
4b167ea1
SM
101702020-05-27 Simon Marchi <simon.marchi@efficios.com>
10171
10172 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10173 Remove.
10174 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10175 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10176 (dwarf2_compile_property_to_c): Update.
10177 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10178 use text offset from objfile.
10179 (locexpr_tracepoint_var_ref): Update.
10180 (locexpr_generate_c_location): Update.
10181 (loclist_describe_location): Update.
10182 (loclist_tracepoint_var_ref): Update.
10183 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10184 dwarf2_per_objfile parameter.
10185 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10186 use text offset from objfile.
10187 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10188
89b07335
SM
101892020-05-27 Simon Marchi <simon.marchi@efficios.com>
10190
10191 * dwarf2/expr.h (struct dwarf_expr_context)
10192 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10193 <offset>: Remove.
10194 <per_objfile>: New member.
10195 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10196 dwarf2_per_objfile parameter. Don't set offset, set
10197 per_objfile.
10198 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10199 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10200 a dwarf2_per_objfile object instead of an offset.
10201 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10202 constructor.
10203 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10204 to dwarf2_expr_executor constructor. Don't set offset.
10205 (dwarf2_fetch_cfa_info): Update.
10206 (struct dwarf2_frame_cache) <text_offset>: Remove.
10207 <per_objfile>: New field.
10208 (dwarf2_frame_cache): Update.
10209 (dwarf2_frame_prev_register): Update.
10210 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10211 <dwarf_evaluate_loc_desc>: Add constructor.
10212 (dwarf2_evaluate_loc_desc_full): Update.
10213 (dwarf2_locexpr_baton_eval): Update.
10214 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10215 Add constructor.
10216 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10217
293e7e51
SM
102182020-05-27 Simon Marchi <simon.marchi@efficios.com>
10219
10220 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10221 addr_sized_int_type>: Move to dwarf2_cu.
10222 <int_type>: Move to dwarf2_per_objfile.
10223 (struct dwarf2_per_objfile) <int_type>: Move here.
10224 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10225 addr_sized_int_type>: Move here.
10226 (read_func_scope): Update.
10227 (read_array_type): Update.
10228 (read_tag_string_type): Update.
10229 (attr_to_dynamic_prop): Update.
10230 (dwarf2_per_cu_data::int_type): Rename to...
10231 (dwarf2_per_objfile::int_type): ... this.
10232 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10233 (dwarf2_cu::addr_sized_int_type): ... this.
10234 (read_subrange_type): Update.
10235 (dwarf2_per_cu_data::addr_type): Rename to...
10236 (dwarf2_cu::addr_type): ... this.
10237 (set_die_type): Update.
10238
64874a40
SM
102392020-05-27 Simon Marchi <simon.marchi@efficios.com>
10240
10241 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10242 data through per_cu->cu.
10243
4ab09049
SM
102442020-05-27 Simon Marchi <simon.marchi@efficios.com>
10245
10246 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10247 dwarf2_per_cu_data parameter fo dwarf2_cu.
10248 (lookup_dwo_type_unit): Likewise.
10249 (read_cutu_die_from_dwo): Likewise.
10250 (lookup_dwo_unit): Likewise.
10251 (open_and_init_dwo_file): Likewise.
10252 (lookup_dwo_cutu): Likewise.
10253 (lookup_dwo_comp_unit): Likewise.
10254 (lookup_dwo_type_unit): Likewise.
10255 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10256 (cutu_reader::cutu_reader): Update.
10257
47b14e86
SM
102582020-05-27 Simon Marchi <simon.marchi@efficios.com>
10259
10260 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10261 parameter.
10262 (process_full_type_unit): Likewise.
10263 (process_queue): Update.
10264
43182c09
SM
102652020-05-27 Simon Marchi <simon.marchi@efficios.com>
10266
10267 * dwarf2/read.c (recursively_compute_inclusions): Add
10268 dwarf2_per_objfile parameter.
10269 (compute_compunit_symtab_includes): Likewise.
10270 (process_cu_includes): Update.
10271
7aa104c4
SM
102722020-05-27 Simon Marchi <simon.marchi@efficios.com>
10273
10274 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10275 parameter.
10276 (create_type_unit_group): Update.
10277 (process_psymtab_comp_unit_reader): Update.
10278 (build_type_psymtabs_reader): Update.
10279
e3beb21d
SM
102802020-05-27 Simon Marchi <simon.marchi@efficios.com>
10281
10282 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10283 object through m_this_cu->cu.
10284
d460f660
SM
102852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10286
10287 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10288 the info parameter.
10289 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10290
ab432490
SM
102912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10292
10293 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10294 per_objfile parameter.
10295 (load_full_type_unit): Add per_objfile parameter.
10296 (read_signatured_type): Likewise.
10297 (load_full_comp_unit): Likewise.
10298 (load_cu): Likewise.
10299 (dw2_do_instantiate_symtab): Likewise.
10300 (dw2_get_file_names): Likewise.
10301 (dw2_map_symtabs_matching_filename): Update.
10302 (dw_expand_symtabs_matching_file_matcher): Update.
10303 (dw2_map_symbol_filenames): Update.
10304 (process_psymtab_comp_unit): Add per_objfile parameter.
10305 (build_type_psymtabs_1): Update.
10306 (process_skeletonless_type_unit): Update.
10307 (dwarf2_build_psymtabs_hard): Update.
10308 (load_partial_comp_unit): Add per_objfile parameter.
10309 (scan_partial_symbols): Update.
10310 (load_full_comp_unit): Add per_objfile parameter.
10311 (process_imported_unit_die): Update.
10312 (create_cus_hash_table): Update.
10313 (find_partial_die): Update.
10314 (dwarf2_read_addr_index): Update.
10315 (follow_die_offset): Update.
10316 (dwarf2_fetch_die_loc_sect_off): Update.
10317 (dwarf2_fetch_constant_bytes): Update.
10318 (dwarf2_fetch_die_type_sect_off): Update.
10319 (follow_die_sig_1): Update.
10320 (load_full_type_unit): Add per_objfile parameter.
10321 (read_signatured_type): Likewise.
10322
313bad1b
SM
103232020-05-27 Simon Marchi <simon.marchi@efficios.com>
10324
10325 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10326 of objfile_name.
10327
c3699833
SM
103282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10329
10330 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10331 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10332 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10333 field.
10334 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10335 (create_cus_from_index): Update.
10336 (dwarf2_read_gdb_index): Update.
10337 (create_cus_from_debug_names): Update.
10338 (dwarf2_read_debug_names): Update.
10339 (get_abbrev_section_for_cu): Update.
10340 (create_all_comp_units): Update.
10341 (read_attribute_value): Update.
10342 (get_debug_line_section): Update.
10343 * dwarf2/index-cache.c (index_cache::store): Update.
10344 * dwarf2/index-write.c (save_gdb_index_command): Update.
10345 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10346
1859c670
SM
103472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10348
10349 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10350 member.
10351 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10352 dwarf2_per_cu_data::per_bfd.
10353 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10354 (create_type_unit_group): Likewise.
10355 (queue_comp_unit): Remove reference to
10356 per_cu->dwarf2_per_objfile.
10357 (maybe_queue_comp_unit): Likewise.
10358 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10359 (create_cus_hash_table): Assign new field.
10360
5e22e966
SM
103612020-05-27 Simon Marchi <simon.marchi@efficios.com>
10362
10363 * dwarf2/read.c: Replace
10364 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10365 dwarf2_cu->per_objfile throughout.
10366
97a1449a
SM
103672020-05-27 Simon Marchi <simon.marchi@efficios.com>
10368
10369 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10370 parameter, don't use per_cu->dwarf2_per_objfile.
10371 (dw2_instantiate_symtab): Likewise.
10372 (dw2_find_last_source_symtab): Update.
10373 (dw2_map_expand_apply): Update.
10374 (dw2_lookup_symbol): Update.
10375 (dw2_expand_symtabs_for_function): Update.
10376 (dw2_expand_all_symtabs): Update.
10377 (dw2_expand_symtabs_with_fullname): Update.
10378 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10379 don't use per_cu->dwarf2_per_objfile.
10380 (dw2_expand_marked_cus): Update.
10381 (dw2_find_pc_sect_compunit_symtab): Update.
10382 (dw2_debug_names_lookup_symbol): Update.
10383 (dw2_debug_names_expand_symtabs_for_function): Update.
10384 (dw2_debug_names_map_matching_symbols): Update.
10385 (dwarf2_psymtab::expand_psymtab): Update.
10386
9e021579
SM
103872020-05-27 Simon Marchi <simon.marchi@efficios.com>
10388
10389 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10390 <per_objfile>: New member.
10391 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10392 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10393 call to dwarf2_cu.
10394 (cutu_reader::cutu_reader): Update.
10395 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10396
ae090bdb
SM
103972020-05-27 Simon Marchi <simon.marchi@efficios.com>
10398
10399 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10400 struct dwarf2_per_objfile.
10401 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10402 dwarf2_per_bfd.
10403 * dwarf2/read.c (set_die_type): Update.
10404 (get_die_type_at_offset): Update.
10405
af758d11
SM
104062020-05-27 Tom Tromey <tom@tromey.com>
10407 Simon Marchi <simon.marchi@efficios.com>
10408
10409 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10410 method.
10411 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10412 get_symtab, set_symtab>: New methods.
10413 <m_symtabs>: New field.
10414 (struct dwarf2_psymtab): Derive from partial_symtab.
10415 <readin_p, get_compunit_symtab>: Declare methods.
10416 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10417 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10418 New methods.
10419 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10420 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10421 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10422 (dw2_symtab_iter_next, dw2_print_stats)
10423 (dw2_expand_symtabs_with_fullname)
10424 (dw2_expand_symtabs_matching_one)
10425 (dw_expand_symtabs_matching_file_matcher)
10426 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10427 (dw2_debug_names_iterator::next)
10428 (dw2_debug_names_map_matching_symbols)
10429 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10430 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10431 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10432 New methods.
10433 (get_compunit_symtab, process_full_comp_unit)
10434 (process_full_type_unit): Update.
10435 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10436
5989a64e
SM
104372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10438
10439 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10440 then introduce a new dwarf2_per_objfile type.
10441 <read_line_string>: Move to the new dwarf2_per_objfile type.
10442 <objfile>: Likewise.
10443 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10444 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10445 dwarf2_per_objfile->per_bfd.
10446 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10447 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10448 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10449 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10450 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10451 (dwarf2_per_objfile::locate_sections): Rename to...
10452 (dwarf2_per_bfd::locate_sections): ... this.
10453 (dwarf2_per_objfile::get_cutu): Rename to...
10454 (dwarf2_per_bfd::get_cutu): ... this.
10455 (dwarf2_per_objfile::get_cu): Rename to...
10456 (dwarf2_per_bfd::get_cu): ... this.
10457 (dwarf2_per_objfile::get_tu): Rename to...
10458 (dwarf2_per_bfd::get_tu): ... this.
10459 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10460 (dwarf2_per_bfd::allocate_per_cu): ... this.
10461 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10462 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10463 (get_gdb_index_contents_ftype): Change parameter from
10464 dwarf2_per_objfile to dwarf2_per_bfd.
10465 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10466 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10467
a50264ba
TT
104682020-05-27 Tom Tromey <tom@tromey.com>
10469 Simon Marchi <simon.marchi@efficios.com>
10470
10471 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10472 (allocate_piece_closure): Set "per_objfile" member.
10473 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10474 (locexpr_describe_location, loclist_describe_location): Use new
10475 member.
10476 * dwarf2/read.c (read_call_site_scope)
10477 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10478 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10479 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10480 handle_data_member_location): Set per_objfile member.
10481 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10482 member.
10483 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10484
d3473f0c
TT
104852020-05-27 Tom Tromey <tom@tromey.com>
10486
10487 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10488 allocate_signatured_type>: Declare new methods.
10489 <m_num_psymtabs>: New member.
10490 (struct dwarf2_per_cu_data) <index>: New member.
10491 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10492 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10493 (create_cu_from_index_list): Use allocate_per_cu.
10494 (create_signatured_type_table_from_index)
10495 (create_signatured_type_table_from_debug_names)
10496 (create_debug_type_hash_table, add_type_unit)
10497 (read_comp_units_from_section): Use allocate_signatured_type.
10498
5717c425
TT
104992020-05-27 Tom Tromey <tom@tromey.com>
10500
10501 * psymtab.c (partial_map_expand_apply)
10502 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10503 (psym_lookup_global_symbol_language)
10504 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10505 (psym_print_stats, psym_expand_symtabs_for_function)
10506 (psym_map_symbol_filenames, psym_map_matching_symbols)
10507 (psym_expand_symtabs_matching)
10508 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10509 (maintenance_check_psymtabs): Update.
10510 * psympriv.h (struct partial_symtab) <readin_p,
10511 get_compunit_symtab>: Add objfile parameter.
10512 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10513 Likewise.
10514 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10515 get_compunit_symtab>: Likewise.
10516 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10517
45940949
TT
105182020-05-27 Tom Tromey <tom@tromey.com>
10519
10520 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10521 member.
10522 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10523 (create_cu_from_index_list)
10524 (create_signatured_type_table_from_index)
10525 (create_signatured_type_table_from_debug_names)
10526 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10527 (dwarf2_create_include_psymtab)
10528 (create_debug_type_hash_table, add_type_unit)
10529 (create_type_unit_group, read_comp_units_from_section)
10530 (dwarf2_compute_name, create_cus_hash_table)
10531 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10532 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10533 obstack.
10534 (dw2_get_real_path): Likewise. Change argument to
10535 dwarf2_per_objfile.
10536
f8c6d152
LM
105372020-05-27 Luis Machado <luis.machado@linaro.org>
10538
10539 PR tdep/26000
10540 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10541 for ldrd (immediate).
10542
e98d2e6d
PW
105432020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10544
10545 * command.h: Add comment giving the name of class_tui.
10546 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10547 create the fake command for the help for class_tui.
10548
53a47a3e
TT
105492020-05-26 Tom Tromey <tromey@adacore.com>
10550
10551 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10552 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10553 (val_atr): New function.
10554 (value_val_atr): Use it.
10555 * ada-valprint.c (print_optional_low_bound): Change low bound
10556 handling for enums.
10557 (val_print_packed_array_elements): Don't call discrete_position.
10558 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10559 discrete_position for enum types.
10560 * language.c (default_print_array_index): Change type.
10561 * language.h (struct language_defn) <la_print_array_index>: Add
10562 index_type parameter, change type of index_value.
10563 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10564 (default_print_array_index): Update.
10565 * valprint.c (maybe_print_array_index): Don't call
10566 value_from_longest. Update.
10567 (value_print_array_elements): Don't call discrete_position.
10568
0bc2354b
TT
105692020-05-26 Tom Tromey <tromey@adacore.com>
10570
10571 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10572 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10573
1218a4bf
CDA
105742020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10575
10576 PR gdb/13519
10577 * avr-tdep.c (avr_integer_to_address): Return data or code
10578 address accordingly to the second 'type' argument of the
10579 function.
10580
92651b1d
MW
105812020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10582
10583 * infcmd.c, inferior.h: (construct_inferior_arguments):
10584 Moved function from here to gdbsupport/common-inferior.{h,cc}
10585
0a4f5f8c
TT
105862020-05-23 Tom Tromey <tom@tromey.com>
10587
10588 Revert commit eca1f90c:
10589 * NEWS: Remove entry for completion styling.
10590 * completer.c (_rl_completion_prefix_display_length): Move
10591 declaration later.
10592 (gdb_fnprint): Revert.
10593 (gdb_display_match_list_1): Likewise.
10594 * cli/cli-style.c (completion_prefix_style)
10595 (completion_difference_style, completion_suffix_style): Remove.
10596 (_initialize_cli_style): Revert.
10597 * cli/cli-style.h (completion_prefix_style)
10598 (completion_difference_style, completion_suffix_style): Don't
10599 declare.
10600
e08bd6c5
PA
106012020-05-24 Pedro Alves <palves@redhat.com>
10602
10603 * symtab.c (completion_list_add_name): Return boolean indication
10604 of whether the symbol matched.
10605 (completion_list_add_symbol): Don't try to remove C++ aliases if
10606 the symbol didn't match in the first place.
10607 * symtab.h (completion_list_add_name): Return bool.
10608
ceacbf6e
SM
106092020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10610
10611 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10612 type::field.
10613
26f16254
JB
106142020-05-23 Joel Brobecker <brobecker@adacore.com>
10615
10616 GDB 9.2 released.
10617
eca1f90c
TT
106182020-05-23 Tom Tromey <tom@tromey.com>
10619
10620 * NEWS: Add entry for completion styling.
10621 * completer.c (_rl_completion_prefix_display_length): Move
10622 declaration earlier.
10623 (gdb_fnprint): Use completion_style.
10624 (gdb_display_match_list_1): Likewise.
10625 * cli/cli-style.c (completion_prefix_style)
10626 (completion_difference_style, completion_suffix_style): New
10627 globals.
10628 (_initialize_cli_style): Register new globals.
10629 * cli/cli-style.h (completion_prefix_style)
10630 (completion_difference_style, completion_suffix_style): Declare.
10631
51e2cfa2
PA
106322020-05-23 Pedro Alves <palves@redhat.com>
10633
10634 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10635 (parse_escape): Use ISDIGIT instead of isdigit.
10636 (puts_debug): Use gdb_isprint instead of isprint.
10637 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10638 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10639 ISSPACE instead of isspace.
10640 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10641 instead of isspace.
10642 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10643 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10644 instead of isxdigit and ISDIGIT instead of isdigit.
10645
80fc5e77
SM
106462020-05-22 Simon Marchi <simon.marchi@efficios.com>
10647
10648 * gdbtypes.h (struct type) <field>: New method.
10649 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10650 or type::field.
10651
3cabb6b0
SM
106522020-05-22 Simon Marchi <simon.marchi@efficios.com>
10653
10654 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10655 (TYPE_FIELDS): Use type::fields. Change all call sites that
10656 modify the propery to use type::set_fields instead.
10657
1f704f76
SM
106582020-05-22 Simon Marchi <simon.marchi@efficios.com>
10659
10660 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10661 type::num_fields instead.
10662
5e33d5f4
SM
106632020-05-22 Simon Marchi <simon.marchi@efficios.com>
10664
10665 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10666 methods.
10667 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10668 that modify the number of fields to use type::set_num_fields
10669 instead.
10670
9392ebb3
TT
106712020-05-22 Tom Tromey <tromey@adacore.com>
10672
10673 * compile/compile-object-load.h (munmap_list_free): Don't
10674 declare.
10675
7c13f4e8
AB
106762020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10677
10678 * annotate.c (annotate_source_line): Update return type, add call
10679 to update current symtab and line.
10680 * annotate.h (annotate_source_line): Update return type, and
10681 extend header comment.
10682 * source.c (info_line_command): Check annotation_level before
10683 calling annotate_source_line.
10684 * stack.c (print_frame_info): If calling annotate_source_line
10685 returns true, then don't print any other source line information.
10686
aa370940
SM
106872020-05-21 Simon Marchi <simon.marchi@efficios.com>
10688
10689 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10690
84d53fa9
SM
106912020-05-21 Simon Marchi <simon.marchi@efficios.com>
10692
10693 * coffread.c (patch_type): Remove NULL check before xfree.
10694 * corefile.c (set_gnutarget): Likewise.
10695 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10696 * exec.c (build_section_table): Likewise.
10697 * remote.c (remote_target::pass_signals): Likewise.
10698 * utils.c (n_spaces): Likewise.
10699 * cli/cli-script.c (document_command): Likewise.
10700 * i386-windows-tdep.c (core_process_module_section): Likewise.
10701 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10702
9d428aae
SM
107032020-05-20 Simon Marchi <simon.marchi@efficios.com>
10704
10705 * symfile.c (reread_symbols): Clear objfile's section_offsets
10706 vector and section indices, re-compute them by calling
10707 sym_offsets.
10708
250106a7
TT
107092020-05-20 Tom Tromey <tromey@adacore.com>
10710
10711 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10712 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10713
9a0bacfb
TV
107142020-05-20 Tom de Vries <tdevries@suse.de>
10715
10716 PR symtab/25833
10717 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10718
7b958a48
AM
107192020-05-20 Alan Modra <amodra@gmail.com>
10720
10721 PR 25993
10722 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10723 bfd_set_filename.
10724 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10725 passed to bfd_set_filename.
10726 * symfile-mem.c (add_vsyscall_page): Likewise for string
10727 passed to symbol_file_add_from_memory.
10728 (symbol_file_add_from_memory): Make name param a const char* and
10729 don't strdup.
10730
c7e97679
AM
107312020-05-20 Alan Modra <amodra@gmail.com>
10732
10733 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10734 rather than accessing bfd->filename directly.
10735 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10736 and use bfd_section_name.
10737 * dwarf2/frame.c (decode_frame_entry): Likewise.
10738 * exec.c (exec_set_section_address): Likewise.
10739 * solib-aix.c (solib_aix_bfd_open): Likewise.
10740 * stap-probe.c (get_stap_base_address): Likewise.
10741 * symfile.c (reread_symbols): Likewise.
10742
563c591b
TT
107432020-05-19 Tom Tromey <tromey@adacore.com>
10744
10745 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10746
f408d82c
SM
107472020-05-19 Simon Marchi <simon.marchi@efficios.com>
10748
10749 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10750
98c59b52
PA
107512020-05-19 Pedro Alves <palves@redhat.com>
10752
10753 * NEWS (set exec-file-mismatch): Adjust entry.
10754 * exec.c: Include "build-id.h".
10755 (validate_exec_file): Try to match build IDs instead of filenames.
10756 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10757 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10758 and pass down 'warn_if_slow'.
10759 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10760 gdb_bfd_open_closure to pass it down.
10761 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10762
4111f652
PA
107632020-05-19 Pedro Alves <palves@redhat.com>
10764
10765 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10766 * target.c (target_fileio_open_1): Rename to target_fileio_open
10767 and make extern. Use bool.
10768 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10769 (target_fileio_read_alloc_1): Adjust.
10770 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10771 (target_fileio_open_warn_if_slow): Delete declaration.
10772
ad80db5b
PA
107732020-05-19 Pedro Alves <palves@redhat.com>
10774
10775 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10776 Adjust all callers.
10777
1d6ce4d3
YS
107782020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10779
10780 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10781 whether disp is negative.
10782
9005fbbb
SM
107832020-05-19 Simon Marchi <simon.marchi@efficios.com>
10784
10785 * symfile.h (struct symfile_segment_data)
10786 <~symfile_segment_data>: Remove.
10787 <segment_info>: Change to std::vector.
10788 * symfile.c (default_symfile_segments): Update.
10789 * elfread.c (elf_symfile_segments): Update.
10790
68b888ff
SM
107912020-05-19 Simon Marchi <simon.marchi@efficios.com>
10792
10793 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10794 <segments>: New.
10795 <segment_bases, segment_sizes>: Remove.
10796 * symfile.c (default_symfile_segments): Update.
10797 * elfread.c (elf_symfile_segments): Update.
10798 * remote.c (remote_target::get_offsets): Update.
10799 * solib-target.c (solib_target_relocate_section_addresses):
10800 Update.
10801
62982abd
SM
108022020-05-19 Simon Marchi <simon.marchi@efficios.com>
10803
10804 * symfile.h (struct symfile_segment_data): Initialize fields.
10805 <~symfile_segment_data>: Add.
10806 (symfile_segment_data_up): New.
10807 (struct sym_fns) <sym_segments>: Return a
10808 symfile_segment_data_up.
10809 (default_symfile_segments): Return a symfile_segment_data_up.
10810 (free_symfile_segment_data): Remove.
10811 (get_symfile_segment_data): Return a symfile_segment_data_up.
10812 * symfile.c (default_symfile_segments): Likewise.
10813 (get_symfile_segment_data): Likewise.
10814 (free_symfile_segment_data): Remove.
10815 (symfile_find_segment_sections): Update.
10816 * elfread.c (elf_symfile_segments): Return a
10817 symfile_segment_data_up.
10818 * remote.c (remote_target::get_offsets): Update.
10819 * solib-target.c (solib_target_relocate_section_addresses):
10820 Update.
10821 * symfile-debug.c (debug_sym_segments): Return a
10822 symfile_segment_data_up.
10823
7f204339
RO
108242020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10825
e52a0f1b
RO
10826 PR build/25981
10827 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10828 Hardcode register numbers.
10829
7f204339
RO
10830 PR build/25981
10831 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10832 procfs_find_LDT_entry): Remove.
10833 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10834 procfs_find_LDT_entry): Remove.
10835 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10836 Remove.
10837
7f32a4d5
PA
108382020-05-17 Pedro Alves <palves@redhat.com>
10839 Andrew Burgess <andrew.burgess@embecosm.com>
10840 Keno Fischer <keno@juliacomputing.com>
10841
10842 PR gdb/25741
10843 * breakpoint.c (build_target_condition_list): Update comments.
10844 (build_target_command_list): Update comments and skip matching
10845 locations.
10846 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10847 a separate function. Simplify "set breakpoint auto-hw off"
10848 handling.
10849 (insert_breakpoints): Update comment.
10850 (tracepoint_locations_match): New parameter. For breakpoints,
10851 compare location types too, if the caller wants to.
10852 (handle_automatic_hardware_breakpoints): New functions.
10853 (bp_location_is_less_than): Also sort by location type and
10854 hardware breakpoint length.
10855 (update_global_location_list): Handle "set breakpoint auto-hw on"
10856 here.
10857 (update_breakpoint_locations): Ask breakpoint_locations_match to
10858 ignore location types.
10859
7d93a1e0
SM
108602020-05-16 Simon Marchi <simon.marchi@efficios.com>
10861
10862 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10863 type::name instead.
10864
d0e39ea2
SM
108652020-05-16 Simon Marchi <simon.marchi@efficios.com>
10866
10867 * gdbtypes.h (struct type) <name, set_name>: New methods.
10868 (TYPE_CODE): Use type::name. Change all call sites used to set
10869 the name to use type::set_name instead.
10870
2dab0c7b
TT
108712020-05-16 Tom Tromey <tom@tromey.com>
10872
10873 * top.c (quit_force): Update.
10874 * infrun.c (handle_no_resumed): Update.
10875 * top.h (all_uis): New function.
10876 (ALL_UIS): Remove.
10877
59f7bd8d
SM
108782020-05-16 Simon Marchi <simon.marchi@efficios.com>
10879
10880 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10881
9bf058f0
PA
108822020-05-16 Pedro Alves <palves@redhat.com>
10883
10884 * ia64-linux-nat.c
10885 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10886 Declare method.
10887 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10888
8f86ae1a
SM
108892020-05-15 Simon Marchi <simon.marchi@efficios.com>
10890
10891 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10892 (sparc64_adi_info): Likewise.
10893
d6bc0792
TT
108942020-05-15 Tom Tromey <tom@tromey.com>
10895
10896 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10897 block_objfile.
10898 (lookup_objfile_from_block): Remove.
10899 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10900 (lookup_global_symbol): Use block_objfile.
10901 * symtab.h (lookup_objfile_from_block): Don't declare.
10902 * printcmd.c (clear_dangling_display_expressions): Use
10903 block_objfile.
10904 * parse.c (operator_check_standard): Use block_objfile.
10905
8c14c3a3
TT
109062020-05-15 Tom Tromey <tom@tromey.com>
10907
10908 * language.c (language_alloc_type_symbol): Set
10909 SYMBOL_SECTION.
10910 * symtab.c (initialize_objfile_symbol): Remove.
10911 (allocate_symbol): Remove.
10912 (allocate_template_symbol): Remove.
10913 * dwarf2/read.c (fixup_go_packaging): Use "new".
10914 (new_symbol): Use "new".
10915 (read_variable): Don't call initialize_objfile_symbol. Use
10916 "new".
10917 (read_func_scope): Use "new".
10918 * xcoffread.c (process_xcoff_symbol): Don't call
10919 initialize_objfile_symbol.
10920 (SYMBOL_DUP): Remove.
10921 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10922 "new".
10923 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10924 (allocate_template_symbol): Don't declare.
10925 (struct symbol): Add copy constructor. Change defaults.
10926 * jit.c (finalize_symtab): Use "new".
10927 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10928 Use "new".
10929 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10930 (common_block_end): Use "new".
10931 * mdebugread.c (parse_symbol): Use "new".
10932 (new_symbol): Likewise.
10933
5b4a1a8d
PW
109342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10935
10936 * NEWS: Mention changes to help and apropos.
10937
57b4f16e
PW
109382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10939
10940 * command.h (enum command_class): Improve comments, document
10941 that class_alias is for user-defined aliases, give the class
10942 name for each class, remove unused class_xdb.
10943 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10944 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10945 by a precise class.
10946 * infcmd.c (_initialize_infcmd): Likewise.
10947 * reverse.c (_initialize_reverse): Likewise.
10948 * stack.c (_initialize_stack): Likewise.
10949 * symfile.c (_initialize_symfile): Likewise.
10950 * tracepoint.c (_initialize_tracepoint): Likewise.
10951
7c05caf7
PW
109522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10953
10954 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10955 when their aliased command is traversed.
10956 (help_cmd): Add fput_command_names_styled call to
10957 output command name and aliases when command has an alias.
10958
3b3aaacb
PW
109592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10960
10961 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10962 * cli/cli-decode.c (help_cmd_list): Declare as static,
10963 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10964 a command together with the command.
10965 (fput_command_name_styled, fput_command_names_styled): New functions.
10966 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10967 fput_command_name_styled.
10968 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10969 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10970
7aa1b46f
PW
109712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10972
10973 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10974 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10975 * command.h (cmd_show_list): Likewise.
10976 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10977 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10978
89bcba74
PW
109792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10980
10981 * unittests/command-def-selftests.c (traverse_command_structure):
10982 Verify all commands of a list have the same prefix command and
10983 that only the top cmdlist commands have a null prefix.
10984
3f4d92eb
PW
109852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10986
10987 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10988 as prefix, not one of its aliases.
10989 (set_cmd_prefix): Remove.
10990 (do_add_cmd): Centralize the setting of the prefix of a command, when
10991 command is defined after its full chain of prefix commands.
10992 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10993 (add_setshow_cmd_full): Likewise.
10994 (update_prefix_field_of_prefixed_commands): New function.
10995 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10996 update_prefix_field_of_prefixed_commands.
10997 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10998 addresses of remote_set_cmdlist and remote_show_cmdlist given
10999 as argument, not the address of an argument.
11000 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11001 * gdb/remote.c (_initialize_remote): Likewise.
11002
0605465f
PW
110032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11004
11005 * cli/cli-cmds.c (alias_command): Check for an existing alias
11006 using lookup_cmd_composition, as valid_command_p is too strict
11007 and forbids aliases that are the prefix of an existing alias
11008 or command.
11009 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11010 command is properly recognised as a valid command.
11011
58e6ac70
PW
110122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11013
11014 * unittests/help-doc-selftests.c: Rename to
11015 unittests/command-def-selftests.c
11016 * unittests/command-def-selftests.c (help_doc_tests): Update some
11017 comments.
11018 (command_structure_tests, traverse_command_structure): New namespace
11019 and function.
11020 (command_structure_invariants_tests): New function.
11021 (_initialize_command_def_selftests) Renamed from
11022 _initialize_help_doc_selftests, register command_structure_invariants
11023 selftest.
11024
a7b9ceb8
PW
110252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11026
11027 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11028 an alias of 'show'.
11029
b2188a06
JB
110302020-05-15 Joel Brobecker <brobecker@adacore.com>
11031
11032 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11033 ada_is_fixed_point_type. Update all callers.
11034 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11035 all callers.
11036 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11037 Update all callers.
11038 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11039 print_fixed_point_type. Update all callers.
11040 * ada-valprint.c (ada_value_print_num): Replace call to
11041 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11042
a51951c2
KB
110432020-05-14 Kevin Buettner <kevinb@redhat.com>
11044
11045 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11046 processors.
11047 (cpu_supports_bts): Add CV_AMD case.
11048
29d6859f
LM
110492020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11050 Simon Marchi <simon.marchi@efficios.com>
11051
11052 * infrun.c (stop_all_threads): Collect multiple wait events at
11053 each pass.
11054
78134374
SM
110552020-05-14 Simon Marchi <simon.marchi@efficios.com>
11056
11057 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11058 type::code instead.
11059
67607e24
SM
110602020-05-14 Simon Marchi <simon.marchi@efficios.com>
11061
11062 * gdbtypes.h (struct type) <code, set_code>: New methods.
11063 (TYPE_CODE): Use type::code. Change all call sites used to set
11064 the code to use type::set_code instead.
11065
a05575d3
TBA
110662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11067 Tom de Vries <tdevries@suse.de>
11068 Pedro Alves <palves@redhat.com>
11069
11070 PR threads/25478
11071 * infrun.c (stop_all_threads): Do NOT ignore
11072 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11073 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11074 received.
11075 (handle_no_resumed): Remove code handling a live inferior with no
11076 threads.
11077 * remote.c (has_single_non_exited_thread): New.
11078 (remote_target::update_thread_list): Do not delete a thread if is
11079 the last thread of the process.
11080 * thread.c (thread_select): Call delete_exited_threads instead of
11081 prune_threads.
11082
6ad82919
TBA
110832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11084
11085 * infrun.c (stop_all_threads): Enable/disable thread events of all
11086 targets. Move a debug message denoting the end of the function
11087 into the SCOPED_EXIT block.
11088
d890404b
TBA
110892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11090
11091 * process-stratum-target.h: Include <set>.
11092 (all_non_exited_process_targets, switch_to_target_no_thread): New
11093 function declarations.
11094 * process-stratum-target.c (all_non_exited_process_targets)
11095 (switch_to_target_no_thread): New function implementations.
11096
293b3ebc
TBA
110972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11098
11099 * infrun.c (handle_inferior_event): Extract out a piece of code
11100 into...
11101 (mark_non_executing_threads): ...this new function.
11102
7ca9b62a
TBA
111032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11104
11105 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11106 use.
11107
fc75c28b
TBA
111082020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11109
11110 * regcache.c (regcache_read_pc_protected): New function
11111 implementation that returns 0 if the PC cannot read via
11112 'regcache_read_pc'.
11113 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11114 instead of 'regcache_read_pc'.
11115 (keep_going_pass_signal): Ditto.
11116
a89febbd
TT
111172020-05-13 Tom Tromey <tromey@adacore.com>
11118
11119 * ada-lang.c (align_value): Remove.
11120 (ada_template_to_fixed_record_type_1): Use align_up.
11121
f7e23710
TBA
111222020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11123
11124 * async-event.c: Update the copyright year.
11125 * async-event.h: Update the copyright year.
11126
02ff80c2
SM
111272020-05-12 Simon Marchi <simon.marchi@efficios.com>
11128
11129 * objfiles.h (is_addr_in_objfile,
11130 shared_objfile_contains_address_p): Return bool.
11131 * objfile.c (is_addr_in_objfile,
11132 shared_objfile_contains_address_p): Return bool.
11133
4fd6c7e8
TT
111342020-05-11 Tom Tromey <tromey@adacore.com>
11135
11136 * cli/cli-cmds.c (info_command): Restore.
11137 (_initialize_cli_cmds): Use add_prefix_command for "info".
11138 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11139
5eb68a39
TT
111402020-05-11 Tom Tromey <tromey@adacore.com>
11141
11142 * ada-lang.c (ada_value_primitive_field): Now public.
11143 * ada-lang.h (ada_value_primitive_field): Declare.
11144 * ada-valprint.c (print_field_values): Use
11145 ada_value_primitive_field for wrapper fields.
11146
7666722f
TV
111472020-05-11 Tom de Vries <tdevries@suse.de>
11148
11149 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11150 MODULE_DOMAIN.
11151
3ee6bb11
TV
111522020-05-11 Tom de Vries <tdevries@suse.de>
11153
11154 PR symtab/25941
11155 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11156 with length 0, if not gdb-produced.
11157 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11158
43434996
TV
111592020-05-09 Tom de Vries <tdevries@suse.de>
11160
11161 PR gdb/25955
11162 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11163 calculation.
11164
2f78cffc
TT
111652020-05-09 Tom Tromey <tom@tromey.com>
11166
11167 * top.c (server_command): Now bool.
11168 * top.h (server_command): Now bool.
11169
4f7bc5ed
TT
111702020-05-08 Tom Tromey <tromey@adacore.com>
11171
11172 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11173 already being processed.
11174
8be4b118
TT
111752020-05-08 Tom Tromey <tom@tromey.com>
11176
11177 * printcmd.c (struct display) <next>: Remove.
11178 <display>: New constructor.
11179 <exp_string>: Now a std::string.
11180 <enabled_p>: Now a bool.
11181 (display_number): Move definition earlier.
11182 (displays): Rename from display_chain. Now a std::vector.
11183 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11184 (display_command): Update.
11185 (do_one_display, disable_display)
11186 (enable_disable_display_command, do_enable_disable_display):
11187 Update.
11188 (free_display): Remove.
11189 (clear_displays): Rewrite.
11190 (delete_display): Update.
11191 (map_display_numbers): Use function_view. Remove "data"
11192 parameter. Update.
11193 (do_delete_display): Remove.
11194 (undisplay_command): Update.
11195 (do_one_display, do_displays, disable_display)
11196 (info_display_command): Update.
11197 (do_enable_disable_display): Remove.
11198 (enable_disable_display_command)
11199 (clear_dangling_display_expressions): Update.
11200
94c93c35
TT
112012020-05-08 Tom Tromey <tom@tromey.com>
11202
11203 * symtab.c (set_symbol_cache_size)
11204 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11205 (maintenance_print_symbol_cache_statistics): Update.
11206 * symmisc.c (print_symbol_bcache_statistics)
11207 (print_objfile_statistics, maintenance_print_objfiles)
11208 (maintenance_info_symtabs, maintenance_check_symtabs)
11209 (maintenance_expand_symtabs, maintenance_info_line_tables):
11210 Update.
11211 * symfile-debug.c (set_debug_symfile): Update.
11212 * source.c (forget_cached_source_info): Update.
11213 * python/python.c (gdbpy_progspaces): Update.
11214 * psymtab.c (maintenance_info_psymtabs): Update.
11215 * probe.c (parse_probes): Update.
11216 * linespec.c (iterate_over_all_matching_symtabs)
11217 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11218 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11219 * exec.c (exec_target::close): Update.
11220 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11221 * breakpoint.c (print_one_breakpoint_location)
11222 (create_longjmp_master_breakpoint)
11223 (create_std_terminate_master_breakpoint): Update.
11224 * progspace.c (program_spaces): Now a std::vector.
11225 (maybe_new_address_space): Update.
11226 (add_program_space): Remove.
11227 (program_space::program_space): Update.
11228 (remove_program_space): Update.
11229 (number_of_program_spaces): Remove.
11230 (print_program_space, update_address_spaces): Update.
11231 * progspace.h (program_spaces): Change type.
11232 (ALL_PSPACES): Remove.
11233 (number_of_program_spaces): Don't declare.
11234 (struct program_space) <next>: Remove.
11235
a1fd1ac9
TT
112362020-05-08 Tom Tromey <tom@tromey.com>
11237
11238 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11239 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11240 (enable_break): Update.
11241 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11242 (frv_fdpic_find_canonical_descriptor): Update.
11243 (frv_fetch_objfile_link_map): Update.
11244 * progspace.c (program_space::free_all_objfiles): Update.
11245 (program_space::solibs): New method.
11246 * progspace.h (struct program_space) <solibs>: New method.
11247 * solist.h (master_so_list): Don't declare.
11248 (ALL_SO_LIBS): Remove.
11249 * solib.h (so_list_head): Remove.
11250 (update_solib_list): Update comment.
11251 * solib.c (master_so_list): Remove.
11252 (solib_used, update_solib_list, solib_add)
11253 (info_sharedlibrary_command, clear_solib)
11254 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11255
38eae084
TT
112562020-05-08 Tom Tromey <tom@tromey.com>
11257
11258 * extension.c (extension_languages): Now a std::array.
11259 (ALL_EXTENSION_LANGUAGES): Remove.
11260 (get_ext_lang_defn, get_ext_lang_of_file)
11261 (eval_ext_lang_from_control_command): Update.
11262 (finish_ext_lang_initialization)
11263 (auto_load_ext_lang_scripts_for_objfile)
11264 (ext_lang_type_printers::ext_lang_type_printers)
11265 (apply_ext_lang_type_printers)
11266 (ext_lang_type_printers::~ext_lang_type_printers)
11267 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11268 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11269 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11270 (get_matching_xmethod_workers, ext_lang_colorize)
11271 (ext_lang_before_prompt): Update.
11272 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11273
596dc4ad
TT
112742020-05-08 Tom Tromey <tom@tromey.com>
11275
11276 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11277 overload.
11278 <swap_string, m_string>: Remove.
11279 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11280 Update.
11281 * stabsread.c (define_symbol, read_type): Update.
11282 * linespec.c (find_linespec_symbols): Update.
11283 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11284 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11285 * dbxread.c (read_dbx_symtab): Update.
11286 * cp-support.h (cp_canonicalize_string_full)
11287 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11288 Return unique_xmalloc_ptr.
11289 * cp-support.c (inspect_type): Update.
11290 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11291 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11292 Likewise.
11293 * c-typeprint.c (print_name_maybe_canonical): Update.
11294 * break-catch-throw.c (check_status_exception_catchpoint):
11295 Update.
11296
bf4cb9be
TV
112972020-05-08 Tom de Vries <tdevries@suse.de>
11298
11299 * infrun.c (follow_fork): Copy current_line and current_symtab to
11300 child thread.
11301
a1b68f28
SM
113022020-05-07 Simon Marchi <simon.marchi@efficios.com>
11303
11304 * async-event.c (struct async_signal_handler, struct
11305 async_event_handler): Reformat, remove typedef.
11306
98d48915
SM
113072020-05-07 Simon Marchi <simon.marchi@efficios.com>
11308
11309 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11310 access thistype->main_type->dyn_prop_list directly.
11311
7aa91313
SM
113122020-05-07 Simon Marchi <simon.marchi@efficios.com>
11313
11314 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11315 (remove_dyn_prop): Remove. Update all users to use
11316 type::remove_dyn_prop.
11317 * gdbtypes.c (remove_dyn_prop): Rename to...
11318 (type::remove_dyn_prop): ... this.
11319
5c54719c
SM
113202020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11321
11322 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11323 (add_dyn_prop): Remove. Update all users to use
11324 type::add_dyn_prop.
11325 * gdbtypes.c (add_dyn_prop): Rename to...
11326 (type::add_dyn_prop): ... this.
11327
24e99c6c
SM
113282020-05-07 Simon Marchi <simon.marchi@efficios.com>
11329
11330 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11331 (get_dyn_prop): Remove. Update all users to use
11332 type::dyn_prop.
11333 * gdbtypes.c (get_dyn_prop): Rename to...
11334 (type::dyn_prop): ... this.
11335
0d4bf016
SM
113362020-05-06 Simon Marchi <simon.marchi@efficios.com>
11337
11338 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11339
ac4a4f1c
SM
113402020-05-06 Simon Marchi <simon.marchi@efficios.com>
11341
11342 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11343 instruction, skip it if it's there.
11344
a3bbacc1
SM
113452020-05-05 Simon Marchi <simon.marchi@efficios.com>
11346
11347 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11348
c3236f84
SM
113492020-05-04 Simon Marchi <simon.marchi@efficios.com>
11350
11351 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11352 * gdbtypes.c (recursive_dump_type): Remove use of
11353 TYPE_INCOMPLETE.
11354
3b6acaee
TT
113552020-05-03 Tom Tromey <tom@tromey.com>
11356
11357 * breakpoint.c (catch_command, tcatch_command): Remove.
11358 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11359 add_show_prefix_cmd.
11360 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11361 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11362 Remove.
11363 (add_internal_problem_command): Use add_basic_prefix_cmd,
11364 add_show_prefix_cmd.
11365 * mips-tdep.c (set_mipsfpu_command): Remove.
11366 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11367 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11368 (_initialize_index_cache): Use add_basic_prefix_cmd.
11369 * memattr.c (dummy_cmd): Remove.
11370 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11371 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11372 (_initialize_tui_win): Use add_basic_prefix_cmd,
11373 add_show_prefix_cmd.
11374 * cli/cli-logging.c (set_logging_command): Remove.
11375 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11376 add_show_prefix_cmd.
11377 (show_logging_command): Remove.
11378 * target.c (target_command): Remove.
11379 (add_target): Use add_basic_prefix_cmd.
11380
a51119cd
HD
113812020-05-02 Hannes Domani <ssbssa@yahoo.de>
11382
11383 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11384
652fc23a 113852020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11386
652fc23a
PW
11387 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11388 info_command.
11389
117539e6
KR
113902020-04-30 Kamil Rytarowski <n54@gmx.com>
11391
11392 * nbsd-nat.c (nbsd_enable_proc_events)
11393 (nbsd_nat_target::post_startup_inferior): Add.
11394 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11395 (nbsd_nat_target::update_thread_list): Rewrite.
11396 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11397 "PTRACE_LWP_CREATE".
11398 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11399
102e38eb 114002020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11401
102e38eb
PW
11402 * stack.c (_initialize_stack): Remove duplicated creation
11403 of "frame" command and "f" alias.
11404
ee9d1e5f
HD
114052020-04-30 Hannes Domani <ssbssa@yahoo.de>
11406
11407 PR gdb/18706
11408 * gdbtypes.c (check_typedef): Calculate size of array of
11409 stubbed type.
11410
627c7fb8
HD
114112020-04-30 Hannes Domani <ssbssa@yahoo.de>
11412
11413 PR gdb/15559
11414 * i386-tdep.c (i386_push_dummy_call): Call
11415 i386_thiscall_push_dummy_call.
11416 (i386_thiscall_push_dummy_call): New function.
11417 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11418 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11419 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11420
ffc2844e
SM
114212020-04-29 Simon Marchi <simon.marchi@efficios.com>
11422
11423 * gdbarch.sh (do_read): Add shellcheck disable directive for
11424 warning SC2162.
11425
1207375d
SM
114262020-04-29 Simon Marchi <simon.marchi@efficios.com>
11427
11428 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11429 "referenced but not assigned" warning.
11430
9fdb2916
SM
114312020-04-29 Simon Marchi <simon.marchi@efficios.com>
11432
11433 * gdbarch.sh: Remove code that sets fallbackdefault.
11434
759cea5e
SM
114352020-04-29 Simon Marchi <simon.marchi@efficios.com>
11436
11437 * gdbarch.sh: Use shell operators && and || instead of
11438 -a and -o.
11439
cb02ab24
SM
114402020-04-29 Simon Marchi <simon.marchi@efficios.com>
11441
11442 * gdbarch.sh: Use $(...) instead of `...`.
11443
a6fc5ffc
SM
114442020-04-29 Simon Marchi <simon.marchi@efficios.com>
11445
11446 * gdbarch.sh: Use double quotes around variables.
11447
8d113d13
SM
114482020-04-29 Simon Marchi <simon.marchi@efficios.com>
11449
11450 * gdbarch.sh: Use %s with printf, instead of variables in the
11451 format string.
11452
ed6acedd
TT
114532020-04-29 Tom Tromey <tromey@adacore.com>
11454
11455 PR ada/25875:
11456 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11457 type fields here.
11458 (read_enumeration_type): Call
11459 update_enumeration_type_from_children later. Update comments.
11460 (process_enumeration_scope): Don't create type fields.
11461
b68b1b58
KR
114622020-04-29 Kamil Rytarowski <n54@gmx.com>
11463
11464 * nbsd-tdep.c: Include "xml-syscall.h".
11465 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11466
f94b2e03
KR
114672020-04-29 Kamil Rytarowski <n54@gmx.com>
11468
11469 * nbsd-nat.c: Include "sys/wait.h".
11470 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11471 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11472 (nbsd_nat_target::remove_exec_catchpoint)
11473 (nbsd_nat_target::set_syscall_catchpoint): Add.
11474 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11475 (nbsd_nat_target::insert_exec_catchpoint)
11476 (nbsd_nat_target::remove_exec_catchpoint)
11477 (nbsd_nat_target::set_syscall_catchpoint): Add.
11478 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11479 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11480 `nbsd_get_syscall_number'.
11481
fc49bc72
TT
114822020-04-29 Tom Tromey <tom@tromey.com>
11483
11484 * stack.c (print_block_frame_labels): Remove.
11485
d642b692
HD
114862020-04-29 Hannes Domani <ssbssa@yahoo.de>
11487
11488 PR gdb/17320
11489 * ada-valprint.c (val_print_packed_array_elements): Move array
11490 end bracket to new line.
11491 (ada_val_print_string): Remove extra spaces before first array
11492 element.
11493 * c-valprint.c (c_value_print_array): Likewise.
11494 * m2-valprint.c (m2_print_array_contents): Likewise.
11495 (m2_value_print_inner): Likewise.
11496 * p-valprint.c (pascal_value_print_inner): Likewise.
11497 * valprint.c (generic_val_print_array): Likewise.
11498 (value_print_array_elements): Move first array element and array
11499 end bracket to new line.
11500
ea90f227
TV
115012020-04-29 Tom de Vries <tdevries@suse.de>
11502
11503 PR symtab/25889
11504 * linespec.c (find_method): Fix ix calculation.
11505
4498ef4f
KR
115062020-04-28 Kamil Rytarowski <n54@gmx.com>
11507
11508 * syscalls/update-netbsd.sh: New file.
11509 * syscalls/netbsd.xml: Regenerate.
11510 * data-directory/Makefile.in: Register `netbsd.xml' in
11511 `SYSCALLS_FILES'.
11512
a55e30b5
SM
115132020-04-28 Simon Marchi <simon.marchi@efficios.com>
11514
11515 * syscalls/update-freebsd.sh: Add double quotes.
11516
2b2fbab8
TT
115172020-04-28 Tom Tromey <tom@tromey.com>
11518
11519 * NEWS: Update.
11520 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11521 (cmdpy_init): Allow class_tui.
11522
a65189c9
TV
115232020-04-28 Mark Williams <mark@myosotissp.com>
11524
11525 PR gdb/24480
11526 * dwarf2read.c: Add missing assingments to list_in_scope when
11527 start_symtab was already called.
11528
1b95cdb7
SM
115292020-04-28 Simon Marchi <simon.marchi@efficios.com>
11530
11531 PR gdb/25881
11532 * dwarf2/read.c (offset_map_type): Use
11533 gdb:hash_enum<sect_offset> as hash function.
11534
15cd93d0
TV
115352020-04-28 Tom de Vries <tdevries@suse.de>
11536
11537 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11538 with DW_AT_signature.
11539
1eb39914
SM
115402020-04-27 Simon Marchi <simon.marchi@efficios.com>
11541
11542 * configure.ac: Remove check for fs_base/gs_base in
11543 user_regs_struct.
11544 * configure: Re-generate.
11545 * config.in: Re-generate.
11546 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11547 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11548 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11549
991a3e2e
LM
115502020-04-27 Luis Machado <luis.machado@linaro.org>
11551
11552 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11553 problematic inline frame unwinding situation.
11554 * frame.c (frame_id_computed_p): New function.
11555 * frame.h (frame_id_computed_p): New prototype.
11556
361ba0e8
TT
115572020-04-26 Tom Tromey <tom@tromey.com>
11558
11559 * command.h (enum command_class) <class_pseudo>: Remove.
11560
bc3609fd
PW
115612020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11562
11563 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11564 and whitespace.
11565
b9771db7
KR
115662020-04-25 Kamil Rytarowski <n54@gmx.com>
11567
ec16513e
SM
11568 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11569 `PT_GET_PROCESS_STATE' block.
b9771db7 11570
7151c1af
TT
115712020-04-24 Tom Tromey <tom@tromey.com>
11572
11573 * symtab.h (symbol_get_demangled_name): Don't declare.
11574 * symtab.c (symbol_get_demangled_name): Remove.
11575 (general_symbol_info::natural_name)
11576 (general_symbol_info::demangled_name): Update.
11577
906bb4c5
TT
115782020-04-24 Tom Tromey <tom@tromey.com>
11579
11580 PR rust/25025:
11581 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11582
bcfe6157
TT
115832020-04-24 Tom Tromey <tom@tromey.com>
11584
11585 PR symtab/12707:
11586 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11587 exists.
11588 (new_symbol): Likewise.
11589 * compile/compile-object-load.c (get_out_value_type): Use
11590 symbol_matches_search_name.
11591
f049a313
TT
115922020-04-24 Tom Tromey <tom@tromey.com>
11593
11594 * dwarf2/read.c (add_partial_symbol): Do not call
11595 compute_and_set_names.
11596
76e288d1
TT
115972020-04-24 Tom Tromey <tom@tromey.com>
11598
11599 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11600 overload.
11601
2467f4f6
TT
116022020-04-24 Tom Tromey <tom@tromey.com>
11603
11604 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11605 (add_psymbol_to_list): New overload. Make old overload call new
11606 one.
11607 * psympriv.h (add_psymbol_to_list): New overload.
11608
e61108c9
TT
116092020-04-24 Tom Tromey <tom@tromey.com>
11610
11611 * dwarf2/read.c (partial_die_info::read) <case
11612 DW_AT_linkage_name>: Use value_as_string.
11613 (dwarf2_string_attr): Use value_as_string.
11614 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11615 method.
11616 * dwarf2/attribute.c (attribute::value_as_string): New method.
11617
8c87a452
TT
116182020-04-24 Tom Tromey <tom@tromey.com>
11619
11620 * symtab.c (general_symbol_info::natural_name)
11621 (general_symbol_info::demangled_name): Check for language_rust.
11622
787de330
TT
116232020-04-24 Tom Tromey <tom@tromey.com>
11624
11625 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11626 (dwarf2_physname): ... from here.
11627 (partial_die_info::read): Add Rust "{" hack.
11628
ff985671
TT
116292020-04-24 Tom Tromey <tom@tromey.com>
11630
11631 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11632 method.
11633 (symbol_set_demangled_name): Don't declare.
11634 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11635 symbol_set_demangled_name.
11636 (general_symbol_info::set_language)
11637 (general_symbol_info::compute_and_set_names): Update.
11638 * minsyms.c (minimal_symbol_reader::install): Update.
11639 * dwarf2/read.c (new_symbol): Update.
11640
1acda803
TT
116412020-04-24 Tom Tromey <tromey@adacore.com>
11642
11643 PR python/23662:
11644 * python/py-type.c (convert_field): Handle
11645 FIELD_LOC_KIND_DWARF_BLOCK.
11646 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11647 (typy_get_dynamic): Nw function.
11648 (type_object_getset): Add "dynamic".
11649 * NEWS: Add entry.
11650
d656f129
TT
116512020-04-24 Tom Tromey <tromey@adacore.com>
11652
11653 * ada-typeprint.c (print_choices, print_variant_part)
11654 (print_record_field_types_dynamic): New functions.
11655 (print_record_field_types): Use print_record_field_types_dynamic.
11656
7d79de9a
TT
116572020-04-24 Tom Tromey <tromey@adacore.com>
11658
11659 * dwarf2/read.c (handle_data_member_location): New overload.
11660 (dwarf2_add_field): Use it.
11661 (decode_locdesc): Add "computed" parameter. Update comment.
11662 * gdbtypes.c (is_dynamic_type_internal): Also look for
11663 FIELD_LOC_KIND_DWARF_BLOCK.
11664 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11665 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11666 virtual base classes.
11667 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11668 FIELD_LOC_KIND_DWARF_BLOCK.
11669
f8e89861
TT
116702020-04-24 Tom Tromey <tromey@adacore.com>
11671
11672 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11673 * gdbtypes.c (is_dynamic_type_internal): Check
11674 TYPE_HAS_DYNAMIC_LENGTH.
11675 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11676 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11677 New macros.
11678 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11679 constant.
11680
9c6a1327
TT
116812020-04-24 Tom Tromey <tromey@adacore.com>
11682
11683 * dwarf2/read.c (struct variant_field): Rewrite.
11684 (struct variant_part_builder): New.
11685 (struct nextfield): Remove "variant" field. Add "offset".
11686 (struct field_info): Add "current_variant_part" and
11687 "variant_parts".
11688 (alloc_discriminant_info): Remove.
11689 (alloc_rust_variant): New function.
11690 (quirk_rust_enum): Update.
11691 (dwarf2_add_field): Set "offset" member. Don't handle
11692 DW_TAG_variant_part.
11693 (offset_map_type): New typedef.
11694 (convert_variant_range, create_one_variant)
11695 (create_one_variant_part, create_variant_parts)
11696 (add_variant_property): New functions.
11697 (dwarf2_attach_fields_to_type): Call add_variant_property.
11698 (read_structure_type): Don't handle DW_TAG_variant_part.
11699 (handle_variant_part, handle_variant): New functions.
11700 (handle_struct_member_die): Use them.
11701 (process_structure_scope): Don't handle variant parts.
11702 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11703 (struct discriminant_info): Remove.
11704 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11705 (struct main_type) <flag_discriminated_union>: Remove.
11706 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11707 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11708 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11709 Update.
11710 * valops.c (value_union_variant): Remove.
11711 * value.h (value_union_variant): Don't declare.
11712
b249d2c2
TT
117132020-04-24 Tom Tromey <tromey@adacore.com>
11714
11715 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11716 (ada_value_primitive_packed_val): Update.
11717 * ada-valprint.c (ada_value_print_1): Update.
11718 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11719 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11720 just an address. Use evaluate_for_locexpr_baton.
11721 (dwarf2_evaluate_property): Update.
11722 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11723 array_view.
11724 * findvar.c (default_read_var_value): Update.
11725 * gdbtypes.c (compute_variant_fields_inner)
11726 (resolve_dynamic_type_internal): Update.
11727 (resolve_dynamic_type): Change type of valaddr parameter.
11728 * gdbtypes.h (resolve_dynamic_type): Update.
11729 * valarith.c (value_subscripted_rvalue): Update.
11730 * value.c (value_from_contents_and_address): Update.
11731
61122aa9
TT
117322020-04-24 Tom Tromey <tromey@adacore.com>
11733
11734 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11735 "push_initial_value" parameter.
11736 (dwarf2_evaluate_property): Likewise.
11737 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11738
ef83a141
TT
117392020-04-24 Tom Tromey <tromey@adacore.com>
11740
11741 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11742 (variant::matches, compute_variant_fields_recurse)
11743 (compute_variant_fields_inner, compute_variant_fields): New
11744 functions.
11745 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11746 Use resolved_type after type is made.
11747 (operator==): Add new cases.
11748 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11749 (struct discriminant_range, struct variant, struct variant_part):
11750 New.
11751 (union dynamic_prop_data) <variant_parts, original_type>: New
11752 members.
11753 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11754 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11755 constants.
11756 * value.c (unpack_bits_as_long): Now public.
11757 * value.h (unpack_bits_as_long): Declare.
11758
675127ec
TT
117592020-04-24 Tom Tromey <tromey@adacore.com>
11760
11761 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11762 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11763
9852ceef
HD
117642020-04-24 Hannes Domani <ssbssa@yahoo.de>
11765
11766 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11767
7632c6ce
KR
117682020-04-24 Kamil Rytarowski <n54@gmx.com>
11769
11770 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11771 (remove_fork_catchpoint, post_startup_inferior)
11772 (post_attach): Move...
11773 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11774 (remove_fork_catchpoint, post_startup_inferior)
11775 (post_attach): ...here.
11776 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11777 (remove_fork_catchpoint, post_startup_inferior)
11778 (post_attach): Move...
11779 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11780 (remove_fork_catchpoint, post_startup_inferior)
11781 (post_attach): ...here.
11782
7be2bb4f
TT
117832020-04-24 Tom Tromey <tromey@adacore.com>
11784
11785 * nat/windows-nat.h (struct windows_thread_info)
11786 <pc_adjusted>: New member.
11787 * windows-nat.c (windows_fetch_one_register): Check
11788 pc_adjusted.
11789 (windows_nat_target::get_windows_debug_event)
11790 (windows_nat_target::wait): Set pc_adjusted.
11791
f80cb3b4
TV
117922020-04-24 Tom de Vries <tdevries@suse.de>
11793
11794 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11795 Run gdb-add-index inside temp dir.
11796
29514b87
TT
117972020-04-23 Tom Tromey <tromey@adacore.com>
11798
11799 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11800 in loop.
11801
5939967b
LM
118022020-04-23 Luis Machado <luis.machado@linaro.org>
11803
11804 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11805 get_frame_register instead of gdbarch_unwind_pc.
11806
70bc38f5
TV
118072020-04-23 Tom de Vries <tdevries@suse.de>
11808
11809 * symtab.c (lookup_global_symbol): Prefer def over decl.
11810
de82891c
TV
118112020-04-23 Tom de Vries <tdevries@suse.de>
11812
11813 PR symtab/25807
11814 * block.c (best_symbol, better_symbol): Promote to external.
11815 * block.h (best_symbol, better_symbol): Declare.
11816 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11817 decl.
11818
ecc6c606
TT
118192020-04-23 Tom Tromey <tromey@adacore.com>
11820
11821 PR ada/25837:
11822 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11823 "const char *", not a "const std::string &".
11824 <name_and_matcher::operator==>: Update.
11825 * unittests/lookup_name_info-selftests.c: Change type of
11826 "result".
11827
740480b8
TT
118282020-04-23 Tom Tromey <tom@tromey.com>
11829
11830 * inferior.h (iterate_over_inferiors): Don't declare.
11831 * inferior.c (iterate_over_inferiors): Remove.
11832 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11833 Remove.
11834 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11835 use iterate_over_inferiors.
11836 (darwin_resume_inferior_it)
11837 (struct resume_inferior_threads_param)
11838 (darwin_resume_inferior_threads_it): Remove.
11839 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11840
ae3ab1f0
TV
118412020-04-23 Tom de Vries <tdevries@suse.de>
11842
11843 * blockframe.c (find_pc_partial_function): Use
11844 find_pc_sect_compunit_symtab rather than
11845 objfile->sf->qf->find_pc_sect_compunit_symtab.
11846
317d2668
TV
118472020-04-22 Tom de Vries <tdevries@suse.de>
11848
11849 PR symtab/25764
11850 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11851 in psymtabs.
11852
eea9e357
TV
118532020-04-22 Tom de Vries <tdevries@suse.de>
11854
11855 PR symtab/25801
11856 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11857 symtabs.
11858
3d5afab3
TV
118592020-04-22 Tom de Vries <tdevries@suse.de>
11860
11861 PR symtab/25700
11862 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11863 CU if already created.
11864
d43b7a2d
TBA
118652020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11866
11867 * infrun.c (displaced_step_fixup): Switch to the event_thread
11868 before calling displaced_step_restore, not after.
11869
d89edf9b
MM
118702020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11871
11872 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11873 its inferior is not recorded by us.
11874 (record_btrace_target_open): Replace call to
11875 all_non_exited_threads () with call to current_inferior
11876 ()->non_exited_threads ().
11877 (record_btrace_target::stop_recording): Likewise.
11878 (record_btrace_target::close): Likewise.
11879 (record_btrace_target::wait): Likewise.
11880 (record_btrace_target::record_stop_replaying): Likewise.
11881
5897fd49
MM
118822020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11883
11884 * btrace.c (btrace_enable): Throw an error on double enables and
11885 when enabling recording fails.
11886 (btrace_disable): Throw an error if the thread is not recorded.
11887
1a476b6d
MM
118882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11889
11890 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11891 request if we do not have a thread_info.
11892
4778a5f8
TV
118932020-04-21 Tom de Vries <tdevries@suse.de>
11894
11895 PR gdb/25471
11896 * thread.c
11897 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11898 exception in get_frame_id.
11899
0fa7617d
TT
119002020-04-20 Tom Tromey <tromey@adacore.com>
11901
11902 * python/python.c (struct gdbpy_event): Mark move constructor as
11903 noexcept.
11904 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11905 constructor as noexcept.
11906 * completer.h (struct completion_result): Mark move constructor as
11907 noexcept.
11908 * completer.c (completion_result::completion_result): Use
11909 initialization style. Don't call reset_match_list.
11910
ad23bda0
MS
119112020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11912
11913 * MAINTAINERS (Write After Approval): Add myself.
11914
45e1f031
TT
119152020-04-18 Tom Tromey <tom@tromey.com>
11916
11917 * windows-tdep.c (init_w32_command_list)
11918 (w32_prefix_command_valid): Restore.
11919 (_initialize_windows_tdep): Call init_w32_command_list.
11920
08feed99
TT
119212020-04-18 Tom Tromey <tom@tromey.com>
11922
11923 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11924 * value.c (value_fn_field): Update.
11925 * valops.c (find_function_in_inferior)
11926 (value_allocate_space_in_inferior): Update.
11927 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11928 Update.
11929 * tui/tui-source.c (tui_source_window::set_contents): Update.
11930 * symtab.c (lookup_global_or_static_symbol)
11931 (find_function_start_sal_1, skip_prologue_sal)
11932 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11933 * symmisc.c (dump_msymbols, dump_symtab_1)
11934 (maintenance_print_one_line_table): Update.
11935 * symfile.c (init_entry_point_info, section_is_mapped)
11936 (list_overlays_command, simple_read_overlay_table)
11937 (simple_overlay_update_1): Update.
11938 * stap-probe.c (handle_stap_probe): Update.
11939 * stabsread.c (dbx_init_float_type, define_symbol)
11940 (read_one_struct_field, read_enum_type, read_range_type): Update.
11941 * source.c (info_line_command): Update.
11942 * python/python.c (gdbpy_source_objfile_script)
11943 (gdbpy_execute_objfile_script): Update.
11944 * python/py-type.c (save_objfile_types): Update.
11945 * python/py-objfile.c (py_free_objfile): Update.
11946 * python/py-inferior.c (python_new_objfile): Update.
11947 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11948 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11949 (maintenance_check_psymtabs): Update.
11950 * printcmd.c (info_address_command): Update.
11951 * objfiles.h (struct objfile) <arch>: New method, from
11952 get_objfile_arch.
11953 (get_objfile_arch): Don't declare.
11954 * objfiles.c (get_objfile_arch): Remove.
11955 (filter_overlapping_sections): Update.
11956 * minsyms.c (msymbol_is_function): Update.
11957 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11958 (output_nondebug_symbol): Update.
11959 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11960 (mdebug_expand_psymtab): Update.
11961 * machoread.c (macho_add_oso_symfile): Update.
11962 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11963 Update.
11964 * linux-fork.c (checkpoint_command): Update.
11965 * linespec.c (convert_linespec_to_sals): Update.
11966 * jit.c (finalize_symtab): Update.
11967 * infrun.c (insert_exception_resume_from_probe): Update.
11968 * ia64-tdep.c (ia64_find_unwind_table): Update.
11969 * hppa-tdep.c (internalize_unwinds): Update.
11970 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11971 Update.
11972 * gcore.c (call_target_sbrk): Update.
11973 * elfread.c (record_minimal_symbol, elf_symtab_read)
11974 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11975 (elf_gnu_ifunc_resolve_by_got): Update.
11976 * dwarf2/read.c (create_addrmap_from_index)
11977 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11978 (read_debug_names_from_section)
11979 (process_psymtab_comp_unit_reader, add_partial_symbol)
11980 (add_partial_subprogram, process_full_comp_unit)
11981 (read_file_scope, read_func_scope, read_lexical_block_scope)
11982 (read_call_site_scope, dwarf2_ranges_read)
11983 (dwarf2_record_block_ranges, dwarf2_add_field)
11984 (mark_common_block_symbol_computed, read_tag_pointer_type)
11985 (read_tag_string_type, dwarf2_init_float_type)
11986 (dwarf2_init_complex_target_type, read_base_type)
11987 (partial_die_info::read, partial_die_info::read)
11988 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11989 (dwarf2_fetch_die_loc_sect_off): Update.
11990 * dwarf2/loc.c (dwarf2_find_location_expression)
11991 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11992 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11993 (dwarf2_loc_desc_get_symbol_read_needs)
11994 (locexpr_describe_location_piece, locexpr_describe_location_1)
11995 (loclist_describe_location): Update.
11996 * dwarf2/index-write.c (write_debug_names): Update.
11997 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11998 * dtrace-probe.c (dtrace_process_dof): Update.
11999 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12000 (process_one_symbol): Update.
12001 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12002 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12003 (coff_read_enum_type): Update.
12004 * cli/cli-cmds.c (edit_command, list_command): Update.
12005 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12006 * breakpoint.c (create_overlay_event_breakpoint)
12007 (create_longjmp_master_breakpoint)
12008 (create_std_terminate_master_breakpoint)
12009 (create_exception_master_breakpoint, get_sal_arch): Update.
12010 * block.c (block_gdbarch): Update.
12011 * annotate.c (annotate_source_line): Update.
12012
0743fc83
TT
120132020-04-17 Tom Tromey <tromey@adacore.com>
12014
12015 * auto-load.c (show_auto_load_cmd): Remove.
12016 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12017 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12018 (maintenance_print_arc_command): Remove.
12019 * tui/tui-win.c (tui_command): Remove.
12020 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12021 * tui/tui-layout.c (tui_layout_command): Remove.
12022 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12023 * python/python.c (user_set_python, user_show_python): Remove.
12024 (_initialize_python): Use add_basic_prefix_cmd,
12025 add_show_prefix_cmd.
12026 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12027 (install_gdb_commands): Use add_basic_prefix_cmd,
12028 add_show_prefix_cmd.
12029 (info_guile_command): Remove.
12030 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12031 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12032 add_show_prefix_cmd.
12033 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12034 Remove do_set and do_show parameters.
12035 * cli/cli-style.c (set_style, show_style): Remove.
12036 (_initialize_cli_style): Use add_basic_prefix_cmd,
12037 add_show_prefix_cmd.
12038 (cli_style_option::add_setshow_commands): Remove do_set and
12039 do_show parameters.
12040 (cli_style_option::add_setshow_commands): Use
12041 add_basic_prefix_cmd, add_show_prefix_cmd.
12042 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12043 (set_style_name): Remove.
12044 * cli/cli-dump.c (dump_command, append_command): Remove.
12045 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12046 (tekhex_dump_command, binary_dump_command)
12047 (binary_append_command): Remove.
12048 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12049 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12050 (init_w32_command_list): Remove; move into ...
12051 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12052 * valprint.c (set_print, show_print, set_print_raw)
12053 (show_print_raw): Remove.
12054 (_initialize_valprint): Use add_basic_prefix_cmd,
12055 add_show_prefix_cmd.
12056 * typeprint.c (set_print_type, show_print_type): Remove.
12057 (_initialize_typeprint): Use add_basic_prefix_cmd,
12058 add_show_prefix_cmd.
12059 * record.c (set_record_command, show_record_command): Remove.
12060 (_initialize_record): Use add_basic_prefix_cmd,
12061 add_show_prefix_cmd.
12062 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12063 add_show_prefix_cmd.
12064 (info_command, show_command, set_debug, show_debug): Remove.
12065 * top.h (set_history, show_history): Don't declare.
12066 * top.c (set_history, show_history): Remove.
12067 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12068 (unset_tdesc_cmd): Remove.
12069 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12070 add_show_prefix_cmd.
12071 * symtab.c (info_module_command): Remove.
12072 (_initialize_symtab): Use add_basic_prefix_cmd.
12073 * symfile.c (overlay_command): Remove.
12074 (_initialize_symfile): Use add_basic_prefix_cmd.
12075 * sparc64-tdep.c (info_adi_command): Remove.
12076 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12077 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12078 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12079 add_show_prefix_cmd.
12080 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12081 (_initialize_serial): Use add_basic_prefix_cmd,
12082 add_show_prefix_cmd.
12083 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12084 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12085 add_show_prefix_cmd.
12086 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12087 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12088 add_show_prefix_cmd.
12089 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12090 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12091 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12092 add_show_prefix_cmd.
12093 * remote.c (remote_command, set_remote_cmd): Remove.
12094 (_initialize_remote): Use add_basic_prefix_cmd.
12095 * record-full.c (set_record_full_command)
12096 (show_record_full_command): Remove.
12097 (_initialize_record_full): Use add_basic_prefix_cmd,
12098 add_show_prefix_cmd.
12099 * record-btrace.c (cmd_set_record_btrace)
12100 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12101 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12102 (cmd_show_record_btrace_pt): Remove.
12103 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12104 add_show_prefix_cmd.
12105 * ravenscar-thread.c (set_ravenscar_command)
12106 (show_ravenscar_command): Remove.
12107 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12108 add_show_prefix_cmd.
12109 * mips-tdep.c (show_mips_command, set_mips_command)
12110 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12111 add_show_prefix_cmd.
12112 * maint.c (maintenance_command, maintenance_info_command)
12113 (maintenance_check_command, maintenance_print_command)
12114 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12115 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12116 add_show_prefix_cmd.
12117 (show_per_command_cmd): Remove.
12118 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12119 Remove.
12120 (maintenance_show_test_settings_cmd): Remove.
12121 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12122 add_show_prefix_cmd.
12123 * maint-test-options.c (maintenance_test_options_command):
12124 Remove.
12125 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12126 * macrocmd.c (macro_command): Remove
12127 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12128 * language.c (set_check, show_check): Remove.
12129 (_initialize_language): Use add_basic_prefix_cmd,
12130 add_show_prefix_cmd.
12131 * infcmd.c (unset_command): Remove.
12132 (_initialize_infcmd): Use add_basic_prefix_cmd.
12133 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12134 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12135 add_show_prefix_cmd.
12136 * go32-nat.c (go32_info_dos_command): Remove.
12137 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12138 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12139 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12140 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12141 (_initialize_frame): Use add_basic_prefix_cmd,
12142 add_show_prefix_cmd.
12143 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12144 (_initialize_dcache): Use add_basic_prefix_cmd,
12145 add_show_prefix_cmd.
12146 * cp-support.c (maint_cplus_command): Remove.
12147 (_initialize_cp_support): Use add_basic_prefix_cmd.
12148 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12149 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12150 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12151 add_basic_prefix_cmd, add_show_prefix_cmd.
12152 * breakpoint.c (save_command): Remove.
12153 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12154 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12155 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12156 add_show_prefix_cmd.
12157 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12158 (set_ada_command, show_ada_command): Remove.
12159 (_initialize_ada_language): Use add_basic_prefix_cmd,
12160 add_show_prefix_cmd.
12161 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12162
3557f442
KR
121632020-04-16 Kamil Rytarowski <n54@gmx.com>
12164
12165 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12166 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12167
16197208
SM
121682020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12169
12170 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12171 warning messages.
12172
00ac85d3
SM
121732020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12174
12175 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12176 import table is not at beginning of .idata section.
12177
381ce63f
PA
121782020-04-16 Pedro Alves <palves@redhat.com>
12179
12180 * inferior.c (delete_inferior): Use delete operator directly
12181 instead of delete_program_space.
12182 * progspace.c (add_program_space): New, factored out from
12183 program_space::program_space.
12184 (remove_program_space): New, factored out from
12185 delete_program_space.
12186 (program_space::program_space): Remove intro comment. Rewrite.
12187 (program_space::~program_space): Remove intro comment. Call
12188 remove_program_space.
12189 (delete_program_space): Delete.
12190 * progspace.h (program_space::program_space): Make explicit. Move
12191 intro comment here, adjusted.
12192 (program_space::~program_space): Move intro comment here,
12193 adjusted.
12194 (delete_program_space): Remove.
12195
a010605f
TT
121962020-04-16 Tom Tromey <tromey@adacore.com>
12197
12198 * windows-nat.c (windows_nat::handle_access_violation): New
12199 function.
12200 * nat/windows-nat.h (handle_access_violation): Declare.
12201 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12202 windows-nat.c. Call handle_access_violation.
12203
efba5c23
TV
122042020-04-16 Tom de Vries <tdevries@suse.de>
12205
12206 PR symtab/25791
12207 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12208 CUs without psymtab.
12209
97ed802d
KB
122102020-04-16 Kevin Buettner <kevinb@redhat.com>
12211
12212 * python/python.c (do_start_initialization): Don't call
12213 PyEval_InitThreads for Python 3.9 and beyond.
12214
c7d64809
KR
122152020-04-15 Kamil Rytarowski <n54@gmx.com>
12216
12217 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12218 thread functions.
12219 (obsd_nat_target::wait): Likewise.
12220
ce127a96
TT
122212020-04-15 Tom Tromey <tromey@adacore.com>
12222
12223 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12224 (DEBUG_EXCEPT): Use debug_printf.
12225
99f1bc6a
AB
122262020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12227
12228 * completer.c (class completion_tracker::completion_hash_entry)
12229 <hash_name>: New member function.
12230 (completion_tracker::discard_completions): New callback to hash a
12231 completion_hash_entry, pass this to htab_create_alloc.
12232
a0e9b532
JT
122332016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12234
12235 * windows-nat.c (windows_make_so): Warn rather than stopping with
12236 an error if realpath() fails.
12237
06ca5dd4
KR
122382020-04-14 Kamil Rytarowski <n54@gmx.com>
12239
12240 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12241 (nbsd_nat_target::info_proc): Add do_status.
12242
194d088f
TV
122432020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12244 Tom de Vries <tdevries@suse.de>
12245
12246 PR symtab/25718
12247 * psympriv.h (struct partial_symtab::read_symtab)
12248 (struct partial_symtab::expand_psymtab)
12249 (struct partial_symtab::read_dependencies): Update comments.
12250 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12251 read_symtab for includer.
12252 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12253 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12254 (struct dwarf2_include_psymtab::m_readin): Remove.
12255 (struct dwarf2_include_psymtab::includer): New member function.
12256 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12257
c1a66c06
TV
122582020-04-14 Tom de Vries <tdevries@suse.de>
12259
12260 PR symtab/25720
12261 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12262 with NULL symbol_matcher and lookup_name.
12263 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12264 and lookup_name.
12265 * dwarf2/read.c (dw2_expand_symtabs_matching)
12266 (dw2_debug_names_expand_symtabs_matching): Same.
12267 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12268 Make lookup_name a pointer. Update comment.
12269 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12270 lookup_name being a pointer.
12271 * symfile.c (expand_symtabs_matching): Same.
12272 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12273 * linespec.c (iterate_over_all_matching_symtabs): Same.
12274
400b5eca
TT
122752020-04-13 Tom Tromey <tom@tromey.com>
12276
12277 * run-on-main-thread.c: Update include.
12278 * unittests/main-thread-selftests.c: Update include.
12279 * tui/tui-win.c: Update include.
12280 * tui/tui-io.c: Update include.
12281 * tui/tui-interp.c: Update include.
12282 * tui/tui-hooks.c: Update include.
12283 * top.h: Update include.
12284 * top.c: Update include.
12285 * ser-base.c: Update include.
12286 * remote.c: Update include.
12287 * remote-notif.c: Update include.
12288 * remote-fileio.c: Update include.
12289 * record-full.c: Update include.
12290 * record-btrace.c: Update include.
12291 * python/python.c: Update include.
12292 * posix-hdep.c: Update include.
12293 * mingw-hdep.c: Update include.
12294 * mi/mi-main.c: Update include.
12295 * mi/mi-interp.c: Update include.
12296 * main.c: Update include.
12297 * linux-nat.c: Update include.
12298 * interps.c: Update include.
12299 * infrun.c: Update include.
12300 * inf-loop.c: Update include.
12301 * event-top.c: Update include.
12302 * event-loop.c: Move to ../gdbsupport/.
12303 * event-loop.h: Move to ../gdbsupport/.
12304 * async-event.h: Update include.
12305 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12306
93b54c8e
TT
123072020-04-13 Tom Tromey <tom@tromey.com>
12308
12309 * tui/tui-win.c: Include async-event.h.
12310 * remote.c: Include async-event.h.
12311 * remote-notif.c: Include async-event.h.
12312 * record-full.c: Include async-event.h.
12313 * record-btrace.c: Include async-event.h.
12314 * infrun.c: Include async-event.h.
12315 * event-top.c: Include async-event.h.
12316 * event-loop.h: Move some declarations to async-event.h.
12317 * event-loop.c: Don't include ser-event.h or top.h. Move some
12318 code to async-event.c.
12319 * async-event.h: New file.
12320 * async-event.c: New file.
12321 * Makefile.in (COMMON_SFILES): Add async-event.c.
12322 (HFILES_NO_SRCDIR): Add async-event.h.
12323
c1cd3163
TT
123242020-04-13 Tom Tromey <tom@tromey.com>
12325
12326 * utils.c (flush_streams): New function.
12327 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12328
29f2bf4f
TT
123292020-04-13 Tom Tromey <tom@tromey.com>
12330
12331 * event-loop.c (handle_file_event): Use warning, not
12332 printf_unfiltered.
12333
98029d02
TT
123342020-04-13 Tom Tromey <tom@tromey.com>
12335
12336 * event-loop.c: Include <chrono>.
12337
06cc9596
TT
123382020-04-13 Tom Tromey <tom@tromey.com>
12339
12340 * gdb_select.h: Move to ../gdbsupport/.
12341 * event-loop.c: Update include path.
12342 * top.c: Update include path.
12343 * ser-base.c: Update include path.
12344 * ui-file.c: Update include path.
12345 * ser-tcp.c: Update include path.
12346 * guile/scm-ports.c: Update include path.
12347 * posix-hdep.c: Update include path.
12348 * ser-unix.c: Update include path.
12349 * gdb_usleep.c: Update include path.
12350 * mingw-hdep.c: Update include path.
12351 * inflow.c: Update include path.
12352 * infrun.c: Update include path.
12353 * event-top.c: Update include path.
12354
8ae8e197
TT
123552020-04-13 Tom Tromey <tom@tromey.com>
12356
12357 * configure: Rebuild.
12358 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12359
58cf28e8
TT
123602020-04-13 Tom Tromey <tom@tromey.com>
12361
12362 * event-loop.h (start_event_loop): Don't declare.
12363 * event-loop.c (start_event_loop): Move...
12364 * main.c (start_event_loop): ...here. Now static.
12365
b7f999ae
SDJ
123662020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12367
12368 * MAINTAINERS: Update my email address.
12369
1085dfd4
KR
123702020-04-12 Kamil Rytarowski <n54@gmx.com>
12371
12372 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12373 IP_ALL.
12374
49d1d1f5
KR
123752020-04-12 Kamil Rytarowski <n54@gmx.com>
12376
12377 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12378 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12379
b4848d2a
KR
123802020-04-12 Kamil Rytarowski <n54@gmx.com>
12381
12382 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12383 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12384
51c133d5
KR
123852020-04-12 Kamil Rytarowski <n54@gmx.com>
12386
12387 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12388
54b8cbd0
KR
123892020-04-11 Kamil Rytarowski <n54@gmx.com>
12390
12391 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12392 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12393 (nbsd_nat_target::info_proc): New functions.
12394 * nbsd-nat.c (kinfo_get_vmmap): New function.
12395 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12396 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12397 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12398 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12399 functions.
12400 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12401 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12402 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12403 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12404 (KINFO_VME_FLAG_GROWS_DOWN): New.
12405
cf83625d
AS
124062020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12407
12408 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12409 bit shift.
12410
0c4311ab
TT
124112020-04-10 Tom Tromey <tromey@adacore.com>
12412
12413 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12414
3e65b3e9
TT
124152020-04-10 Tom Tromey <tromey@adacore.com>
12416
12417 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12418 separate debug files.
12419
13302e95
HD
124202020-04-10 Hannes Domani <ssbssa@yahoo.de>
12421
12422 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12423 Move to...
12424 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12425 ... here.
12426 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12427 Check for STATUS_WX86_BREAKPOINT.
12428 (windows_nat_target::wait): Same.
12429
bdfc1e8a
TV
124302020-04-10 Tom de Vries <tdevries@suse.de>
12431
12432 PR cli/25808
12433 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12434
f4460aec
SM
124352020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12436
12437 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12438 (Write After Approval): Remove Tom de Vries.
12439
a25198bb
BE
124402020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12441
12442 revert partially:
12443 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12444
aac66a4c
SM
12445 * buildsym.c (record_line): Fix undefined behavior and preserve
12446 lines at eof.
a25198bb 12447
206c98a6
KR
124482020-04-09 Kamil Rytarowski <n54@gmx.com>
12449
12450 * auxv.h (svr4_auxv_parse): New.
12451 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12452 and generic_auxv_parse.
12453 (svr4_auxv_parse): Add.
12454 * obsd-tdep.c: Include "auxv.h".
12455 (obsd_auxv_parse): Remove.
12456 (obsd_init_abi): Remove comment.
12457 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12458 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12459 * nbsd-tdep.c: Include "auxv.h".
12460 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12461
71fbdbaf
TT
124622020-04-08 Tom Tromey <tromey@adacore.com>
12463
12464 * nat/windows-nat.h (last_wait_event): Don't declare.
12465 (wait_for_debug_event): Update comment.
12466 * nat/windows-nat.c (last_wait_event): Now static.
12467
2c1d95e8
TT
124682020-04-08 Tom Tromey <tromey@adacore.com>
12469
12470 * windows-nat.c (wait_for_debug_event): Move to
12471 nat/windows-nat.c.
12472 * nat/windows-nat.h (wait_for_debug_event): Declare.
12473 * nat/windows-nat.c (wait_for_debug_event): Move from
12474 windows-nat.c. No longer static.
12475
d2977bc4
TT
124762020-04-08 Tom Tromey <tromey@adacore.com>
12477
12478 * windows-nat.c (get_windows_debug_event): Use
12479 fetch_pending_stop.
12480 * nat/windows-nat.h (fetch_pending_stop): Declare.
12481 * nat/windows-nat.c (fetch_pending_stop): New function.
12482
e758e19c
TT
124832020-04-08 Tom Tromey <tromey@adacore.com>
12484
12485 * windows-nat.c (windows_continue): Use matching_pending_stop and
12486 continue_last_debug_event.
12487 * nat/windows-nat.h (matching_pending_stop)
12488 (continue_last_debug_event): Declare.
12489 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12490 (matching_pending_stop, continue_last_debug_event): New
12491 functions.
12492
8d30e395
TT
124932020-04-08 Tom Tromey <tromey@adacore.com>
12494
12495 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12496 (handle_exception_result): Move to nat/windows-nat.h.
12497 (DEBUG_EXCEPTION_SIMPLE): Remove.
12498 (windows_nat::handle_ms_vc_exception): New function.
12499 (handle_exception): Move to nat/windows-nat.c.
12500 (get_windows_debug_event): Update.
12501 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12502 nat/windows-nat.c.
12503 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12504 (handle_exception_result): Move from windows-nat.c.
12505 (handle_exception): Declare.
12506 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12507 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12508 windows-nat.c.
12509
29de418d
TT
125102020-04-08 Tom Tromey <tromey@adacore.com>
12511
12512 * windows-nat.c (exception_count, event_count): Remove.
12513 (handle_exception, get_windows_debug_event)
12514 (do_initial_windows_stuff): Update.
12515
a816ba18
TT
125162020-04-08 Tom Tromey <tromey@adacore.com>
12517
12518 * windows-nat.c (windows_nat::handle_load_dll)
12519 (windows_nat::handle_unload_dll): Rename. No longer static.
12520 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12521 Declare.
12522
a00caa12
TT
125232020-04-08 Tom Tromey <tromey@adacore.com>
12524
12525 * complaints.h (stop_whining): Declare at top-level.
12526 (complaint): Don't declare stop_whining.
12527
d41b524f
TT
125282020-04-08 Tom Tromey <tromey@adacore.com>
12529
12530 * windows-nat.c (windows_nat::handle_output_debug_string):
12531 Rename. No longer static.
12532 * nat/windows-nat.h (handle_output_debug_string): Declare.
12533
3c76026d
TT
125342020-04-08 Tom Tromey <tromey@adacore.com>
12535
12536 * windows-nat.c (current_process_handle, current_process_id)
12537 (main_thread_id, last_sig, current_event, last_wait_event)
12538 (current_windows_thread, desired_stop_thread_id, pending_stops)
12539 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12540 (display_selectors, fake_create_process)
12541 (get_windows_debug_event): Update.
12542 * nat/windows-nat.h (current_process_handle, current_process_id)
12543 (main_thread_id, last_sig, current_event, last_wait_event)
12544 (current_windows_thread, desired_stop_thread_id, pending_stops)
12545 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12546 * nat/windows-nat.c (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 (siginfo_er): New globals. Move from windows-nat.c.
12550
9d8679cc
TT
125512020-04-08 Tom Tromey <tromey@adacore.com>
12552
12553 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12554 (handle_load_dll): Update.
12555 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12556
28688adf
TT
125572020-04-08 Tom Tromey <tromey@adacore.com>
12558
12559 * windows-nat.c (enum thread_disposition_type): Move to
12560 nat/windows-nat.h.
12561 (windows_nat::thread_rec): Rename from thread_rec. No longer
12562 static.
12563 (windows_add_thread, windows_nat_target::fetch_registers)
12564 (windows_nat_target::store_registers, handle_exception)
12565 (windows_nat_target::resume, get_windows_debug_event)
12566 (windows_nat_target::get_tib_address)
12567 (windows_nat_target::thread_name)
12568 (windows_nat_target::thread_alive): Update.
12569 * nat/windows-nat.h (enum thread_disposition_type): Move from
12570 windows-nat.c.
12571 (thread_rec): Declare.
12572
4834dad0
TT
125732020-04-08 Tom Tromey <tromey@adacore.com>
12574
12575 * windows-nat.c: Add "using namespace".
12576 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12577 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12578
65bafd5b
TT
125792020-04-08 Tom Tromey <tromey@adacore.com>
12580
12581 * nat/windows-nat.h (struct windows_thread_info): Declare
12582 destructor.
12583 * nat/windows-nat.c (~windows_thread_info): New.
12584
0a4afda3
TT
125852020-04-08 Tom Tromey <tromey@adacore.com>
12586
12587 PR gdb/22992
12588 * windows-nat.c (current_event): Update comment.
12589 (last_wait_event, desired_stop_thread_id): New globals.
12590 (struct pending_stop): New.
12591 (pending_stops): New global.
12592 (windows_nat_target) <stopped_by_sw_breakpoint>
12593 <supports_stopped_by_sw_breakpoint>: New methods.
12594 (windows_fetch_one_register): Add assertions. Adjust PC.
12595 (windows_continue): Handle pending stops. Suspend other threads
12596 when stepping. Use last_wait_event
12597 (wait_for_debug_event): New function.
12598 (get_windows_debug_event): Use wait_for_debug_event. Handle
12599 pending stops. Queue spurious stops.
12600 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12601 (windows_nat_target::kill): Use wait_for_debug_event.
12602 * nat/windows-nat.h (struct windows_thread_info)
12603 <stopped_at_software_breakpoint>: New field.
12604 * nat/windows-nat.c (windows_thread_info::resume): Clear
12605 stopped_at_software_breakpoint.
12606
8e61ebec
TT
126072020-04-08 Tom Tromey <tromey@adacore.com>
12608
12609 * windows-nat.c (enum thread_disposition_type): New.
12610 (thread_rec): Replace "get_context" parameter with "disposition";
12611 change type.
12612 (windows_add_thread, windows_nat_target::fetch_registers)
12613 (windows_nat_target::store_registers, handle_exception)
12614 (windows_nat_target::resume, get_windows_debug_event)
12615 (windows_nat_target::get_tib_address)
12616 (windows_nat_target::thread_name)
12617 (windows_nat_target::thread_alive): Update.
12618
98a03287
TT
126192020-04-08 Tom Tromey <tromey@adacore.com>
12620
12621 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12622 (windows_continue): Use windows_continue::resume.
12623 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12624 resume>: Declare new methods.
12625 * nat/windows-nat.c: New file.
12626 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12627
7c7411bc
TT
126282020-04-08 Tom Tromey <tromey@adacore.com>
12629
12630 * windows-nat.c (windows_add_thread, windows_delete_thread)
12631 (windows_nat_target::fetch_registers)
12632 (windows_nat_target::store_registers, fake_create_process)
12633 (windows_nat_target::resume, windows_nat_target::resume)
12634 (get_windows_debug_event, windows_nat_target::wait)
12635 (windows_nat_target::pid_to_str)
12636 (windows_nat_target::get_tib_address)
12637 (windows_nat_target::get_ada_task_ptid)
12638 (windows_nat_target::thread_name)
12639 (windows_nat_target::thread_alive): Use lwp, not tid.
12640
2950fdf7
TT
126412020-04-08 Tom Tromey <tromey@adacore.com>
12642
12643 * windows-nat.c (handle_exception)
12644 (windows_nat_target::thread_name): Update.
12645 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12646 <name>: Now unique_xmalloc_ptr.
12647
62fe396b
TT
126482020-04-08 Tom Tromey <tromey@adacore.com>
12649
12650 * windows-nat.c (thread_rec)
12651 (windows_nat_target::fetch_registers): Update.
12652 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12653 Update comment.
12654 <debug_registers_changed, reload_context>: Now bool.
12655
e9534bd2
TT
126562020-04-08 Tom Tromey <tromey@adacore.com>
12657
12658 * windows-nat.c (windows_add_thread): Use new.
12659 (windows_init_thread_list, windows_delete_thread): Use delete.
12660 (get_windows_debug_event): Update.
12661 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12662 destructor, and initializers.
12663
ae1f8880
TT
126642020-04-08 Tom Tromey <tromey@adacore.com>
12665
12666 * windows-nat.c (struct windows_thread_info): Remove.
12667 * nat/windows-nat.h: New file.
12668
55a1e039
TT
126692020-04-08 Tom Tromey <tromey@adacore.com>
12670
12671 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12672 (thread_rec, windows_add_thread, windows_delete_thread)
12673 (windows_continue): Update.
12674
93366324
TT
126752020-04-08 Tom Tromey <tromey@adacore.com>
12676
12677 * windows-nat.c (struct windows_thread_info): Remove typedef.
12678 (thread_head): Remove.
12679 (thread_list): New global.
12680 (thread_rec, windows_add_thread, windows_init_thread_list)
12681 (windows_delete_thread, windows_continue): Update.
12682
0f2265e2
SM
126832020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12684
12685 * windows-tdep.h (windows_init_abi): Add comment.
12686 (cygwin_init_abi): New declaration.
12687 * windows-tdep.c: Split signal enumeration in two, one for
12688 Windows and one for Cygwin.
12689 (windows_gdb_signal_to_target): Only deal with signal of the
12690 Windows OS ABI.
12691 (cygwin_gdb_signal_to_target): New function.
12692 (windows_init_abi): Rename to windows_init_abi_common, don't set
12693 gdb_signal_to_target gdbarch method. Add new new function with
12694 this name.
12695 (cygwin_init_abi): New function.
12696 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12697 comment. Don't call windows_init_abi.
12698 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12699 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12700 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12701 i386_windows_init_abi_common, don't call windows_init_abi. Add
12702 a new function of this name.
12703 (i386_cygwin_init_abi): New function.
12704 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12705 OS ABI Cygwin.
12706
3810f182
SM
127072020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12708
12709 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12710 parameter.c.
12711 (dwarf2_read_gdb_index): Update.
12712
063f8e80
KR
127132020-04-07 Kamil Rytarowski <n54@gmx.com>
12714
12715 * nbsd-tdep.c: Include "objfiles.h".
12716 (nbsd_skip_solib_resolver): New.
12717 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12718
85a9510c 127192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12720
12721 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12722 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12723 with DW_LLE_base_addressx are being emitted in DWARFv5.
12724 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12725 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12726 unsigned integer.
12727
9fc3eaae 127282020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12729
12730 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12731 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12732 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12733 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12734 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12735 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12736 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12737
12738
41144253 127392020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12740
12741 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12742 (read_loclist_index): New function definition.
12743 (lookup_loclist_base): New function definition.
12744 (read_loclist_header): New function definition.
12745 (dwarf2_cu): Add loclist_base and loclist_header field.
12746 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12747 (read_full_die_1): Read the value of DW_AT_loclists_base.
12748 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12749 (read_attribute_value): Handle DW_FORM_loclistx.
12750 (skip_one_die): Handle DW_FORM_loclistx.
12751 (loclist_header): New structure declaration.
12752 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12753
9f4e76a4
SM
127542020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12755
12756 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12757 constructor. Remove `addr` parameter from other constructor and
12758 add `per_cu` parameter.
12759 * dwarf2/read.c (create_partial_symtab): Update.
12760
25c11aca
TV
127612020-04-07 Tom de Vries <tdevries@suse.de>
12762
12763 PR symtab/25796
12764 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12765 (partial_die_info::fixup): Inherit has_const_value.
12766
5707e24b
TV
127672020-04-07 Tom de Vries <tdevries@suse.de>
12768
12769 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12770 symbols without address.
12771
05f00e22
KR
127722020-04-06 Kamil Rytarowski <n54@gmx.com>
12773
12774 * nbsd-nat.h (struct thread_info): Add forward declaration.
12775 (nbsd_nat_target::thread_alive): Add.
12776 (nbsd_nat_target::thread_name): Likewise.
12777 (nbsd_nat_target::update_thread_list): Likewise.
12778 (update_thread_list::post_attach): Likewise.
12779 (post_attach::pid_to_str): Likewise.
12780 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12781 (nbsd_thread_lister): Add.
12782 (nbsd_nat_target::thread_alive): Likewise.
12783 (nbsd_nat_target::thread_name): Likewise.
12784 (nbsd_add_threads): Likewise.
12785 (update_thread_list::post_attach): Likewise.
12786 (nbsd_nat_target::update_thread_list): Likewise.
12787 (post_attach::pid_to_str): Likewise.
12788
6ee448cc
TT
127892020-04-06 Tom Tromey <tromey@adacore.com>
12790
12791 * ada-valprint.c (print_variant_part): Extract the variant field.
12792 (print_field_values): Use the field as the outer value when
12793 recursing.
12794
dea34e8c
TT
127952020-04-06 Tom Tromey <tromey@adacore.com>
12796
12797 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12798 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12799 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12800 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12801 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12802
93689ce9
TT
128032020-04-06 Tom Tromey <tromey@adacore.com>
12804
12805 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12806 TYPE_CODE_ERROR.
12807
79743962
KR
128082020-04-06 Kamil Rytarowski <n54@gmx.com>
12809
12810 * nbsd-tdep.c: Include "gdbarch.h".
12811 Define enum with NetBSD signal numbers.
12812 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12813 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12814 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12815 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12816 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12817 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12818 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12819 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12820 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12821 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12822 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12823 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12824
9e7c9a03
HD
128252020-04-03 Hannes Domani <ssbssa@yahoo.de>
12826
12827 PR gdb/25325
12828 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12829
d9e49b61
TT
128302020-04-03 Tom Tromey <tromey@adacore.com>
12831
12832 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12833 Read constant block.
12834
e0fc5c3f
SM
128352020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12836
12837 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12838 (gdb_bfd_get_full_section_contents): New declaration.
12839 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12840 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12841 gdb_bfd_get_full_section_contents.
12842
e2ff18a0
SM
128432020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12844
12845 * exec.c (build_section_table): Replace internal_error with
12846 gdb_assert.
12847 (section_table_xfer_memory_partial): Likewise.
12848 * mdebugread.c (parse_partial_symbols): Likewise.
12849 * psymtab.c (lookup_partial_symbol): Likewise.
12850 * utils.c (wrap_here): Likewise.
12851
0830d301
TT
128522020-04-02 Tom Tromey <tromey@adacore.com>
12853
12854 * f-lang.c (build_fortran_types): Use arch_type to initialize
12855 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12856
e7da7f8f
TT
128572020-04-02 Tom Tromey <tromey@adacore.com>
12858
12859 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12860 of attributes.
12861
c90d28ac
AB
128622020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12863 Bernd Edlinger <bernd.edlinger@hotmail.de>
12864 Tom Tromey <tromey@adacore.com>
12865
12866 * buildsym.c (buildsym_compunit::record_line): Remove
12867 deduplication code.
12868
1aa98955
TV
128692020-04-02 Tom de Vries <tdevries@suse.de>
12870
12871 PR ada/24671
12872 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12873
d3214198
TV
128742020-04-02 Tom de Vries <tdevries@suse.de>
12875
12876 * dwarf2/read.c (dwarf2_gdb_index_functions,
12877 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12878 NULL.
12879 * psymtab.c (psym_lookup_global_symbol_language): New function.
12880 (psym_functions): Init psym_lookup_global_symbol_language with
12881 psym_lookup_global_symbol_language.
12882 * symfile-debug.c (debug_sym_quick_functions): Init
12883 lookup_global_symbol_language with NULL.
12884 * symfile.c (set_initial_language): Remove fixme comment.
12885 * symfile.h (struct quick_symbol_functions): Add
12886 lookup_global_symbol_language.
12887 * symtab.c (find_quick_global_symbol_language): New function.
12888 (find_main_name): Use find_quick_global_symbol_language.
12889
2836752f
SM
128902020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12891
12892 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12893
64dc2d4b
BE
128942020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12895
12896 * buildsym.c (record_line): Fix undefined behavior and preserve
12897 lines at eof.
12898
bbe3dc41
BE
128992020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12900
12901 * buildsym.c (record_line): Fix the resizing condition.
12902
6b4a335b
TT
129032020-04-01 Tom Tromey <tom@tromey.com>
12904
12905 * value.h (value_literal_complex): Add comment.
12906 * valops.c (value_literal_complex): Refer to value.h.
12907
3638a098
TT
129082020-04-01 Tom Tromey <tom@tromey.com>
12909
12910 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12911 (scalar_type): New rule, from typebase.
12912 (typebase): Use scalar_type. Recognize complex types.
12913 (field_name): Handle FLOAT_KEYWORD.
12914 (ident_tokens): Add _Complex and __complex__.
12915
c34e8714
TT
129162020-04-01 Tom Tromey <tom@tromey.com>
12917
12918 PR exp/25299:
12919 * valarith.c (promotion_type, complex_binop): New functions.
12920 (scalar_binop): Handle complex numbers. Use promotion_type.
12921 (value_pos, value_neg, value_complement): Handle complex numbers.
12922
fa649bb7
TT
129232020-04-01 Tom Tromey <tom@tromey.com>
12924
12925 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12926 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12927 (parse_number): Handle complex numbers.
12928
981c08ce
TT
129292020-04-01 Tom Tromey <tom@tromey.com>
12930
12931 * c-valprint.c (c_decorations): Change complex suffix to "i".
12932
4c99290d
TT
129332020-04-01 Tom Tromey <tom@tromey.com>
12934
12935 * valprint.c (generic_value_print_complex): Use accessors.
12936 * value.h (value_real_part, value_imaginary_part): Declare.
12937 * valops.c (value_real_part, value_imaginary_part): New
12938 functions.
12939 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12940
5b930b45
TT
129412020-04-01 Tom Tromey <tom@tromey.com>
12942
12943 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12944 (read_range_type): Update.
12945 * mdebugread.c (basic_type): Update.
12946 * go-lang.c (build_go_types): Use init_complex_type.
12947 * gdbtypes.h (struct main_type) <complex_type>: New member.
12948 (init_complex_type): Update.
12949 (arch_complex_type): Don't declare.
12950 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12951 Make name if none given. Use alloc_type_copy. Look for cached
12952 complex type.
12953 (arch_complex_type): Remove.
12954 (gdbtypes_post_init): Use init_complex_type.
12955 * f-lang.c (build_fortran_types): Use init_complex_type.
12956 * dwarf2/read.c (read_base_type): Update.
12957 * d-lang.c (build_d_types): Use init_complex_type.
12958 * ctfread.c (read_base_type): Update.
12959
53cccef1
TBA
129602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12961
12962 * infrun.c (stop_all_threads): Update assertion, plus when
12963 stopping threads, take into account that we might be trying
12964 to stop an all-stop target.
12965 (stop_waiting): Call 'stop_all_threads' if there exists a
12966 non-stop target.
12967
a0714d30
TBA
129682020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12969
12970 * target.h (exists_non_stop_target): New function declaration.
12971 * target.c (exists_non_stop_target): New function.
12972
60e22c1e
HD
129732020-04-01 Hannes Domani <ssbssa@yahoo.de>
12974
12975 PR gdb/24789
12976 * eval.c (is_integral_or_integral_reference): New function.
12977 (evaluate_subexp_standard): Allow integer references in
12978 pointer arithmetic.
12979
e139a727
TBA
129802020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12981
12982 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12983 check for no ptid in the stop reply when the target is non-stop.
12984
e0802d59
TT
129852020-04-01 Tom Tromey <tromey@adacore.com>
12986
12987 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12988 "name" parameter to rvalue reference. Initialize m_name_holder.
12989 <lookup_name_info>: New overloads.
12990 <name>: Return gdb::string_view.
12991 <c_str>: New method.
12992 <make_ignore_params>: Update.
12993 <search_name_hash>: Update.
12994 <language_lookup_name>: Return const char *.
12995 <m_name>: Change type.
12996 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12997 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12998 (lookup_name_info::match_any): Update.
12999 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13000 Update.
13001 * minsyms.c (linkage_name_str): Update.
13002 * language.c (default_symbol_name_matcher): Update.
13003 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13004 Update.
13005 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13006 (ada_lookup_name_info::ada_lookup_name_info): Update.
13007 (literal_symbol_name_matcher): Update.
13008
8c072cb6
TT
130092020-04-01 Tom Tromey <tromey@adacore.com>
13010
13011 * psymtab.c (psymtab_search_name): Remove function.
13012 (psym_lookup_symbol): Create search name and lookup name here.
13013 (lookup_partial_symbol): Remove "name" parameter; add
13014 lookup_name.
13015 (psym_expand_symtabs_for_function): Update.
13016
6f29a534
TT
130172020-03-31 Joel Jones <joelkevinjones@gmail.com>
13018
13019 PR tui/25597:
13020 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13021
af62665e
TT
130222020-03-31 Tom Tromey <tromey@adacore.com>
13023
13024 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13025 memcpy.
13026
d1a89da5
NC
130272020-03-30 Nelson Chu <nelson.chu@sifive.com>
13028
13029 * features/riscv/32bit-csr.xml: Regenerated.
13030 * features/riscv/64bit-csr.xml: Regenerated.
13031
d8af9068
TT
130322020-03-30 Tom Tromey <tromey@adacore.com>
13033
13034 * ada-valprint.c (print_variant_part): Update.
13035 * ada-lang.h (ada_which_variant_applies): Update.
13036 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13037 outer_valaddr parameters; replace with "outer" value parameter.
13038 (to_fixed_variant_branch_type): Update.
13039
227c0bf4
PFC
130402020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13041
13042 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13043 <list>. Remove inclusion of observable.h.
13044 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13045 (struct arch_lwp_info): New struct.
13046 (class ppc_linux_dreg_interface): New class.
13047 (struct ppc_linux_process_info): New struct.
13048 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13049 <low_new_clone, low_forget_process, low_prepare_to_resume>
13050 <copy_thread_dreg_state, mark_thread_stale>
13051 <mark_debug_registers_changed, register_hw_breakpoint>
13052 <clear_hw_breakpoint, register_wp, clear_wp>
13053 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13054 <num_memory_accesses, get_trigger_type>
13055 <create_watchpoint_request, hwdebug_point_cmp>
13056 <init_arch_lwp_info, get_arch_lwp_info>
13057 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13058 methods.
13059 <struct ptid_hash>: New inner struct.
13060 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13061 members.
13062 (saved_dabr_value, hwdebug_info, max_slots_number)
13063 (struct hw_break_tuple, struct thread_points, ppc_threads)
13064 (have_ptrace_hwdebug_interface)
13065 (hwdebug_find_thread_points_by_tid)
13066 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13067 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13068 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13069 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13070 use m_dreg_interface.
13071 (hwdebug_point_cmp): Change to...
13072 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13073 reference arguments instead of pointers.
13074 (ppc_linux_nat_target::ranged_break_num_registers): Use
13075 m_dreg_interface.
13076 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13077 m_dreg_interface. Call register_hw_breakpoint.
13078 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13079 m_dreg_interface. Call clear_hw_breakpoint.
13080 (get_trigger_type): Change to...
13081 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13082 comment.
13083 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13084 use m_dreg_interface. Call register_hw_breakpoint.
13085 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13086 use m_dreg_interface. Call clear_hw_breakpoint.
13087 (can_use_watchpoint_cond_accel): Change to...
13088 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13089 method. Update comment, use m_dreg_interface and
13090 m_process_info.
13091 (calculate_dvc): Change to...
13092 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13093 m_dreg_interface.
13094 (num_memory_accesses): Change to...
13095 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13096 (check_condition): Change to...
13097 (ppc_linux_nat_target::check_condition): ...this method.
13098 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13099 comment, use m_dreg_interface.
13100 (create_watchpoint_request): Change to...
13101 (ppc_linux_nat_target::create_watchpoint_request): ...this
13102 method. Use m_dreg_interface.
13103 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13104 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13105 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13106 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13107 (ppc_linux_nat_target::low_forget_process)
13108 (ppc_linux_nat_target::low_new_fork)
13109 (ppc_linux_nat_target::low_new_clone)
13110 (ppc_linux_nat_target::low_delete_thread)
13111 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13112 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13113 only call mark_thread_stale.
13114 (ppc_linux_thread_exit): Remove.
13115 (ppc_linux_nat_target::stopped_data_address): Change to...
13116 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13117 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13118 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13119 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13120 comment. Call low_stopped_data_address.
13121 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13122 m_dreg_interface.
13123 (ppc_linux_nat_target::masked_watch_num_registers): Use
13124 m_dreg_interface.
13125 (ppc_linux_nat_target::copy_thread_dreg_state)
13126 (ppc_linux_nat_target::mark_thread_stale)
13127 (ppc_linux_nat_target::mark_debug_registers_changed)
13128 (ppc_linux_nat_target::register_hw_breakpoint)
13129 (ppc_linux_nat_target::clear_hw_breakpoint)
13130 (ppc_linux_nat_target::register_wp)
13131 (ppc_linux_nat_target::clear_wp)
13132 (ppc_linux_nat_target::init_arch_lwp_info)
13133 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13134 (_initialize_ppc_linux_nat): Remove observer callback.
13135
4db10d8f
PFC
131362020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13137
13138 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13139 (ppc_linux_nat_target::auxv_parse)
13140 (ppc_linux_nat_target::read_description)
13141 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13142 Move up.
13143
1310c1b0
PFC
131442020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13145
13146 * linux-nat.h (low_new_clone): New method.
13147 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13148
69b037c3
SM
131492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13150
13151 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13152 (dbx_expand_psymtab): ... this.
13153 (start_psymtab): Update.
13154 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13155 (mdebug_expand_psymtab): ... this.
13156 (parse_partial_symbols): Update.
13157 (new_psymtab): Update.
13158 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13159 (xcoff_expand_psymtab): ... this.
13160 (xcoff_start_psymtab): Update.
13161
48993951
SM
131622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13163
13164 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13165 <expand_dependencies>: ... this.
13166 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13167 (partial_symtab::expand_dependencies): ... this.
13168 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13169 Update.
13170 (dwarf2_psymtab::expand_psymtab): Update.
13171 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13172 * mdebugread.c (psymtab_to_symtab_1): Update.
13173 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13174
3ad83046
SM
131752020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13176
13177 * psympriv.h (discard_psymtab): Remove.
13178 * dbxread.c (dbx_end_psymtab): Update.
13179 * xcoffread.c (xcoff_end_psymtab): Update.
13180
4d1b9ab6
TT
131812020-03-28 Tom Tromey <tom@tromey.com>
13182
13183 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13184 comment.
13185
f1749218
TT
131862020-03-28 Tom Tromey <tom@tromey.com>
13187
13188 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13189
ebea7626
HD
131902020-03-27 Hannes Domani <ssbssa@yahoo.de>
13191
13192 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13193
a879b4d5
JB
131942020-03-26 John Baldwin <jhb@FreeBSD.org>
13195
13196 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13197
0826b30a
TT
131982020-03-26 Tom Tromey <tom@tromey.com>
13199
13200 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13201 (mark_common_block_symbol_computed, read_tag_string_type)
13202 (attr_to_dynamic_prop, read_subrange_type): Update.
13203 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13204 to be methods on struct attribute.
13205 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13206 (read_call_site_scope, partial_die_info::read)
13207 (partial_die_info::read, lookup_die_type, follow_die_ref):
13208 Update.
13209 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13210 from dwarf2_get_ref_die_offset.
13211 (attribute::constant_value): New method, from
13212 dwarf2_get_attr_constant_value.
13213 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13214 Declare method.
13215 <constant_value>: New method.
13216
2b2558bf
TT
132172020-03-26 Tom Tromey <tom@tromey.com>
13218
13219 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13220 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13221 (dwarf_type_encoding_name): Move to stringify.c.
13222 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13223 * dwarf2/stringify.c: New file.
13224 * dwarf2/stringify.h: New file.
13225
eeb64781
TT
132262020-03-26 Tom Tromey <tom@tromey.com>
13227
13228 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13229 Rewrite.
13230
a39fdb41
TT
132312020-03-26 Tom Tromey <tom@tromey.com>
13232
13233 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13234 methods.
13235 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13236 (lookup_ranges_base): Likewise.
13237 (read_cutu_die_from_dwo, read_full_die_1): Update.
13238
436c571c
TT
132392020-03-26 Tom Tromey <tom@tromey.com>
13240
13241 * dwarf2/read.c (read_import_statement, read_file_scope)
13242 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13243 (read_lexical_block_scope, read_call_site_scope)
13244 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13245 (handle_struct_member_die, process_structure_scope)
13246 (update_enumeration_type_from_children)
13247 (process_enumeration_scope, read_array_type, read_common_block)
13248 (read_namespace, read_module, read_subroutine_type): Update.
13249 (sibling_die): Remove.
13250
052c8bb8
TT
132512020-03-26 Tom Tromey <tom@tromey.com>
13252
13253 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13254 (build_type_psymtabs_reader, read_structure_type)
13255 (read_enumeration_type, read_full_die_1): Update.
13256 (dwarf2_attr_no_follow): Move to die.h.
13257 * dwarf2/die.h (struct die_info) <attr>: New method.
13258
2b24b6e4
TT
132592020-03-26 Tom Tromey <tom@tromey.com>
13260
13261 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13262 <base_address>: Now an optional.
13263 (dwarf2_find_base_address, dwarf2_rnglists_process)
13264 (dwarf2_ranges_process, fill_in_loclist_baton)
13265 (dwarf2_symbol_mark_computed): Update.
13266
c2d50fd0
TT
132672020-03-26 Tom Tromey <tom@tromey.com>
13268
13269 * dwarf2/read.c (struct die_info): Move to die.h.
13270 * dwarf2/die.h: New file.
13271
0df7ad3a
TT
132722020-03-26 Tom Tromey <tom@tromey.com>
13273
13274 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13275 * dwarf2/read.c
13276 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13277 Move to line-header.c.
13278 (read_checked_initial_length_and_offset, read_formatted_entries):
13279 Likewise.
13280 (dwarf_decode_line_header): Split into two.
13281 * dwarf2/line-header.c
13282 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13283 Move from read.c.
13284 (read_checked_initial_length_and_offset, read_formatted_entries):
13285 Likewise.
13286 (dwarf_decode_line_header): New function, split from read.c.
13287
86c0bb4c
TT
132882020-03-26 Tom Tromey <tom@tromey.com>
13289
13290 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13291 Declare method.
13292 * dwarf2/read.c (read_attribute_value): Update.
13293 (dwarf2_per_objfile::read_line_string): Rename from
13294 read_indirect_line_string.
13295 (read_formatted_entries): Update.
13296
2ef46c2f
TT
132972020-03-26 Tom Tromey <tom@tromey.com>
13298
13299 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13300 variable.
13301
4f9c1eda
TT
133022020-03-26 Tom Tromey <tom@tromey.com>
13303
13304 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13305 const.
13306 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13307 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13308 parameter const.
13309
5a0e026f
TT
133102020-03-26 Tom Tromey <tom@tromey.com>
13311
13312 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13313 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13314 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13315 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13316
8844c11b
TT
133172020-03-26 Tom Tromey <tom@tromey.com>
13318
13319 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13320 file_names_size, file_full_name, file_file_name>: Use const.
13321 <file_name_at, file_names>: Add const overload.
13322 * dwarf2/line-header.c (line_header::file_file_name)
13323 (line_header::file_full_name): Update.
13324
c90ec28a
TT
133252020-03-26 Tom Tromey <tom@tromey.com>
13326
13327 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13328 (macro_start_file, consume_improper_spaces)
13329 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13330 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13331 (dwarf_decode_macros): Move to macro.c.
13332 * dwarf2/macro.c: New file.
13333 * dwarf2/macro.h: New file.
13334 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13335
4f44ae6c
TT
133362020-03-26 Tom Tromey <tom@tromey.com>
13337
13338 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13339 method.
13340 * dwarf2/section.c: New method. From
13341 read_indirect_string_at_offset_from.
13342 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13343 (read_indirect_string_at_offset_from): Move to section.c.
13344 (read_indirect_string_at_offset): Rewrite.
13345 (read_indirect_line_string_at_offset): Remove.
13346 (read_indirect_string, read_indirect_line_string)
13347 (dwarf_decode_macro_bytes): Update.
13348
a0194fa8
TT
133492020-03-26 Tom Tromey <tom@tromey.com>
13350
13351 * dwarf2/section.h (struct dwarf2_section_info)
13352 <overload_complaint>: Declare.
13353 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13354 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13355 Rename from dwarf2_section_buffer_overflow_complaint.
13356 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13357 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13358
3d27bbdb
TT
133592020-03-26 Tom Tromey <tom@tromey.com>
13360
13361 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13362 Declare.
13363 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13364 Move from read.c.
13365 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13366 to section.c.
13367
9eac9650
TT
133682020-03-26 Tom Tromey <tom@tromey.com>
13369
13370 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13371
bf80d710
TT
133722020-03-26 Tom Tromey <tom@tromey.com>
13373
13374 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13375 "builder".
13376 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13377 parameter.
13378 (dwarf_decode_macros): Update.
13379
0314b390
TT
133802020-03-26 Tom Tromey <tom@tromey.com>
13381
13382 * dwarf2/read.c (read_attribute_value): Update.
13383 (read_indirect_string_from_dwz): Move to dwz.c; change into
13384 method.
13385 (dwarf_decode_macro_bytes): Update.
13386 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13387 * dwarf2/dwz.c: New file.
13388 * Makefile.in (COMMON_SFILES): Add dwz.c.
13389
9fda78b6
TT
133902020-03-26 Tom Tromey <tom@tromey.com>
13391
13392 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13393 * dwarf2/read.c: Add include.
13394 * dwarf2/index-write.c: Add include.
13395 * dwarf2/index-cache.c: Add include.
13396 * dwarf2/dwz.h: New file.
13397
33aa3c10
TT
133982020-03-25 Tom Tromey <tom@tromey.com>
13399
13400 * compile/compile-object-load.c (get_out_value_type): Mention
13401 correct symbol name in error message.
13402
d503b685
HD
134032020-03-25 Hannes Domani <ssbssa@yahoo.de>
13404
13405 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13406
7b1eff95
TV
134072020-03-25 Tom de Vries <tdevries@suse.de>
13408
13409 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13410 * symmisc.c (dump_symtab_1): Print user and includes fields.
13411 (maintenance_info_symtabs): Same.
13412
dd895392
AB
134132020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13414
13415 PR gdb/25534
13416 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13417 (riscv_regcache_cooked_write): New function.
13418 (riscv_push_dummy_call): Use new function.
13419 (riscv_return_value): Likewise.
13420
5ab2fbf1
SM
134212020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13422
13423 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13424 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13425 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13426 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13427 * infrun.c (follow_fork): Likewise.
13428 (follow_fork_inferior): Likewise.
13429 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13430 * linux-nat.h (class linux_nat_target): Likewise.
13431 * remote.c (class remote_target) <follow_fork>: Likewise.
13432 (remote_target::follow_fork): Likewise.
13433 * target-delegates.c: Re-generate.
13434 * target.c (default_follow_fork): Likewise.
13435 (target_follow_fork): Likewise.
13436 * target.h (struct target_ops) <follow_fork>: Likewise.
13437 (target_follow_fork): Likewise.
13438
a64fafb5
TV
134392020-03-24 Tom de Vries <tdevries@suse.de>
13440
13441 * psymtab.c (maintenance_info_psymtabs): Print user field.
13442
fe26d3a3
TT
134432020-03-20 Tom Tromey <tromey@adacore.com>
13444
13445 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13446 const.
13447 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13448 const.
13449
c884cc46
SM
134502020-03-20 Simon Marchi <simon.marchi@efficios.com>
13451
13452 * ptrace.m4: Don't check for ptrace declaration.
13453 * config.in: Re-generate.
13454 * configure: Re-generate.
13455 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13456 not defined.
13457
1ff700c2
KR
134582020-03-20 Kamil Rytarowski <n54@gmx.com>
13459
13460 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13461 `PTRACE_TYPE_RET'.
13462 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13463 * sparc-nat.c (gdb_ptrace): Likewise.
13464 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13465
f7d4f0b1
TT
134662020-03-20 Tom Tromey <tromey@adacore.com>
13467
13468 * c-exp.y (lex_one_token): Fix assert.
13469
f67210ff
TT
134702020-03-20 Tom Tromey <tromey@adacore.com>
13471
13472 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13473 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13474 strncpy call.
13475
1773be9e
TT
134762020-03-20 Tom Tromey <tromey@adacore.com>
13477
13478 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13479
70304be9
TT
134802020-03-20 Tom Tromey <tromey@adacore.com>
13481
13482 * ada-valprint.c (print_variant_part): Remove parameters; switch
13483 to value-based API.
13484 (print_field_values): Likewise.
13485 (ada_val_print_struct_union): Likewise.
13486 (ada_value_print_1): Update.
13487
9faa006d
KR
134882020-03-20 Kamil Rytarowski <n54@gmx.com>
13489
13490 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13491 nbsd_nat_target instead of inf_ptrace_target.
13492 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13493 nbsd_nat_target.
13494
4a90f062
KR
134952020-03-20 Kamil Rytarowski <n54@gmx.com>
13496
13497 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13498 it to the ptrace call.
13499 * (store_registers): Likewise.
13500
135012020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13502
13503 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13504 it to the ptrace call.
13505 * (store_registers): Likewise.
13506
2d07da27
LM
135072020-03-19 Luis Machado <luis.machado@linaro.org>
13508
13509 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13510 valid, fetch vg value from ptrace.
13511
f09db380
KR
135122020-03-19 Kamil Rytarowski <n54@gmx.com>
13513 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13514 * inf-ptrace.c: Likewise.
13515 * (gdb_ptrace): Add.
13516 * (inf_ptrace_target::resume): Update.
13517 * (inf_ptrace_target::xfer_partial): Likewise.
13518 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13519 * (inf_ptrace_peek_poke): Update.
13520
fcc7376e
KR
135212020-03-19 Kamil Rytarowski <n54@gmx.com>
13522
13523 * x86-bsd-nat.c (gdb_ptrace): New.
13524 * (x86bsd_dr_set): Add new argument `ptid'.
13525 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13526 x86bsd_dr_set_addr): Update.
13527
cada5fc9
AB
135282020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13529
13530 * remote.c (remote_target::process_stop_reply): Handle events for
13531 all threads differently.
13532
19a2740f
AB
135332020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13534
13535 * completer.c (completion_tracker::remove_completion): Define new
13536 function.
13537 * completer.h (completion_tracker::remove_completion): Declare new
13538 function.
13539 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13540 when adding a C++ function symbol.
13541
724fd9ba
AB
135422020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13543
13544 * completer.c (completion_tracker::completion_hash_entry): Define
13545 new class.
13546 (advance_to_filename_complete_word_point): Call
13547 recompute_lowest_common_denominator.
13548 (completion_tracker::completion_tracker): Call discard_completions
13549 to setup the hash table.
13550 (completion_tracker::discard_completions): Allow for being called
13551 from the constructor, pass new equal function, and element deleter
13552 when constructing the hash table. Initialise new class member
13553 variables.
13554 (completion_tracker::maybe_add_completion): Remove use of
13555 m_entries_vec, and store more information into m_entries_hash.
13556 (completion_tracker::recompute_lcd_visitor): New function, most
13557 content taken from...
13558 (completion_tracker::recompute_lowest_common_denominator):
13559 ...here, this now just visits each item in the hash calling the
13560 above visitor.
13561 (completion_tracker::build_completion_result): Remove use of
13562 m_entries_vec, call recompute_lowest_common_denominator.
13563 * completer.h (completion_tracker::have_completions): Remove use
13564 of m_entries_vec.
13565 (completion_tracker::completion_hash_entry): Declare new class.
13566 (completion_tracker::recompute_lowest_common_denominator): Change
13567 function signature.
13568 (completion_tracker::recompute_lcd_visitor): Declare new function.
13569 (completion_tracker::m_entries_vec): Delete.
13570 (completion_tracker::m_entries_hash): Initialize to NULL.
13571 (completion_tracker::m_lowest_common_denominator_valid): New
13572 member variable.
13573 (completion_tracker::m_lowest_common_denominator_max_length): New
13574 member variable.
13575
5a82b8a1
KR
135762020-03-17 Kamil Rytarowski <n54@gmx.com>
13577
13578 * regformats/regdef.h: Put reg in gdb namespace.
13579
fb516a69
KR
135802020-03-17 Kamil Rytarowski <n54@gmx.com>
13581
13582 * i386-bsd-nat.c (gdb_ptrace): New.
13583 * (i386bsd_fetch_inferior_registers,
13584 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13585 * (i386bsd_fetch_inferior_registers,
13586 i386bsd_store_inferior_registers) Use gdb_ptrace.
13587
1c0aa1fb
KR
135882020-03-17 Kamil Rytarowski <n54@gmx.com>
13589
13590 * amd64-bsd-nat.c (gdb_ptrace): New.
13591 * (amd64bsd_fetch_inferior_registers,
13592 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13593 * (amd64bsd_fetch_inferior_registers,
13594 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13595
5ccd2fb7
KR
135962020-03-17 Kamil Rytarowski <n54@gmx.com>
13597
13598 * user-regs.c (user_reg::read): Rename to...
13599 (user_reg::xread): ...this.
13600 * (append_user_reg): Rename argument `read' to `xread'.
13601 * (user_reg_add_builtin): Likewise.
13602 * (user_reg_add): Likewise.
13603 * (value_of_user_reg): Likewise.
13604
2108a63a
KR
136052020-03-17 Kamil Rytarowski <n54@gmx.com>
13606
13607 * sparc-nat.c (gdb_ptrace): New.
13608 * sparc-nat.c (sparc_fetch_inferior_registers)
13609 (sparc_store_inferior_registers) Remove obsolete comment.
13610 * sparc-nat.c (sparc_fetch_inferior_registers)
13611 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13612 * sparc-nat.c (sparc_fetch_inferior_registers)
13613 (sparc_store_inferior_registers) Use gdb_ptrace.
13614
a225c9a8
KR
136152020-03-17 Kamil Rytarowski <n54@gmx.com>
13616
13617 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13618 it to the ptrace call.
13619 * sh-nbsd-nat.c (store_registers): Likewise.
13620
98097623
KR
136212020-03-17 Kamil Rytarowski <n54@gmx.com>
13622
13623 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13624 nbsd_nat_target instead of inf_ptrace_target.
13625 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13626 nbsd_nat_target.
13627
9e38d619
KR
136282020-03-17 Kamil Rytarowski <n54@gmx.com>
13629
13630 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13631
a2ecbe9f
KR
136322020-03-17 Kamil Rytarowski <n54@gmx.com>
13633
13634 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13635 <sys/sysctl.h>.
13636 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13637
58990295
TV
136382020-03-17 Tom de Vries <tdevries@suse.de>
13639
13640 PR gdb/23710
13641 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13642 fields.
13643 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13644 fields.
13645 (process_imported_unit_die): Skip import of c++ CUs.
13646
771dd3a8
TT
136472020-03-16 Tom Tromey <tom@tromey.com>
13648
13649 * p-valprint.c (pascal_object_print_value): Initialize
13650 base_value.
13651
817a7585
AK
136522020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13653 Shahab Vahedi <shahab@synopsys.com>
13654
13655 * Makefile.in: Add arch/arc.o
13656 * configure.tgt: Likewise.
13657 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13658 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13659 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13660 * arc-tdep.h (arc_read_description): Add proto type.
13661 * arch/arc.c: New file.
13662 * arch/arc.h: Likewise.
13663 * features/Makefile: Replace old target descriptions with new.
13664 * features/arc-arcompact.c: Remove.
13665 * features/arc-arcompact.xml: Likewise.
13666 * features/arc-v2.c: Likewise
13667 * features/arc-v2.xml: Likewise
13668 * features/arc/aux-arcompact.xml: New file.
13669 * features/arc/aux-v2.xml: Likewise.
13670 * features/arc/core-arcompact.xml: Likewise.
13671 * features/arc/core-v2.xml: Likewise.
13672 * features/arc/aux-arcompact.c: Generate.
13673 * features/arc/aux-v2.c: Likewise.
13674 * features/arc/core-arcompact.c: Likewise.
13675 * features/arc/core-v2.c: Likewise.
13676 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13677
67430cd0
TT
136782020-03-16 Tom Tromey <tromey@adacore.com>
13679
13680 PR gdb/25663:
13681 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13682 putting value into bcache.
13683
30efb6c7
SM
136842020-03-16 Simon Marchi <simon.marchi@efficios.com>
13685
13686 PR gdb/21500
13687 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13688 to...
13689 (amd64_windows_init_abi_common): ... this. Don't set size of
13690 long type.
13691 (amd64_windows_init_abi): New function.
13692 (amd64_cygwin_init_abi): New function.
13693 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13694 the Cygwin OS ABI.
13695 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13696 comment.
13697
8db52437
SM
136982020-03-16 Simon Marchi <simon.marchi@efficios.com>
13699
13700 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13701 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13702 (pe_import_directory_entry): New struct type.
13703 (is_linked_with_cygwin_dll): New function.
13704 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13705 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13706 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13707
5982a56a
SM
137082020-03-16 Simon Marchi <simon.marchi@efficios.com>
13709
13710 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13711 i386_cygwin_core_osabi_sniffer.
13712
7a1998df
SM
137132020-03-16 Simon Marchi <simon.marchi@efficios.com>
13714
13715 * i386-cygwin-tdep.c: Rename to...
13716 * i386-windows-tdep.c: ... this.
13717 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13718 i386-windows-tdep.c.
13719 * configure.tgt: Likewise.
13720
053205cc
SM
137212020-03-16 Simon Marchi <simon.marchi@efficios.com>
13722
13723 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13724 * osabi.c (gdb_osabi_names): Add "Windows".
13725 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13726 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13727 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13728 i386_cygwin_osabi_sniffer.
13729 (_initialize_i386_cygwin_tdep): Register OS ABI
13730 GDB_OSABI_WINDOWS for i386.
13731 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13732 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13733 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13734 for x86-64.
13735 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13736 when the target matches '*-*-mingw*'.
13737
fe4b2ee6
SM
137382020-03-16 Simon Marchi <simon.marchi@efficios.com>
13739
13740 * defs.h (enum gdb_osabi): Move to...
13741 * osabi.h (enum gdb_osabi): ... here.
13742 * gdbarch.sh: Include osabi.h in gdbarch.h.
13743 * gdbarch.h: Re-generate.
13744
cb9b645d
SM
137452020-03-16 Simon Marchi <simon.marchi@efficios.com>
13746
13747 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13748 function.
13749 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13750
3293bbaf
TT
137512020-03-14 Tom Tromey <tom@tromey.com>
13752
13753 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13754 for C++.
13755 (c_type_print_modifier): Likewise. Add "language" parameter.
13756 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13757 (c_type_print_base_1): Update.
13758 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13759 constants.
13760 * type-stack.c (type_stack::insert): Handle tp_atomic and
13761 tp_restrict.
13762 (type_stack::follow_type_instance_flags): Likewise.
13763 (type_stack::follow_types): Likewise. Merge type-following code.
13764 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13765 (space_identifier, cv_with_space_id)
13766 (const_or_volatile_or_space_identifier_noopt)
13767 (const_or_volatile_or_space_identifier): Remove.
13768 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13769 rules.
13770 (ptr_operator, typebase): Update.
13771 (enum token_flag) <FLAG_C>: New constant.
13772 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13773 "_Atomic".
13774 (lex_one_token): Handle FLAG_C.
13775
154151a6
KR
137762020-03-14 Kamil Rytarowski <n54@gmx.com>
13777
13778 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13779 it to the ptrace call.
13780 * m68k-bsd-nat.c (store_registers): Likewise.
13781
bc107784
KR
137822020-03-14 Kamil Rytarowski <n54@gmx.com>
13783
13784 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13785 gdb_byte *.
13786 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13787 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13788 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13789
01a80117
KR
137902020-03-14 Kamil Rytarowski <n54@gmx.com>
13791
13792 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13793 nbsd_nat_target instead of inf_ptrace_target.
13794 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13795 nbsd_nat_target.
13796
f90280ca
KR
137972020-03-14 Kamil Rytarowski <n54@gmx.com>
13798
13799 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13800 register_t.
13801
6def66f1
KR
138022020-03-14 Kamil Rytarowski <n54@gmx.com>
13803
13804 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13805 it to the ptrace call.
13806 * alpha-bsd-nat.c (store_registers): Likewise.
13807
66eaca97
KR
138082020-03-14 Kamil Rytarowski <n54@gmx.com>
13809
13810 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13811 includes.
13812 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13813 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13814 fill_fpregset): Likewise.
13815
4fed520b
KR
138162020-03-14 Kamil Rytarowski <n54@gmx.com>
13817
13818 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13819 nbsd_nat_target instead of inf_ptrace_target.
13820 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13821 nbsd_nat_target.
13822
2190cf06
KR
138232020-03-14 Kamil Rytarowski <n54@gmx.com>
13824
13825 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13826 register_t.
13827
75c56d3d
KR
138282020-03-14 Kamil Rytarowski <n54@gmx.com>
13829
13830 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13831 it to the ptrace call.
13832 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13833 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13834 * arm-nbsd-nat.c (store_register): Likewise.
13835 * arm-nbsd-nat.c (store_regs): Likewise.
13836 * arm-nbsd-nat.c (store_fp_register): Likewise.
13837 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13838
6018d381
KR
138392020-03-14 Kamil Rytarowski <n54@gmx.com>
13840
13841 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13842 nbsd_nat_target instead of inf_ptrace_target.
13843 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13844 nbsd_nat_target.
13845
013f99f0
KR
138462020-03-14 Kamil Rytarowski <n54@gmx.com>
13847
13848 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13849 it to the ptrace call.
13850 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13851
12753073
KR
138522020-03-14 Kamil Rytarowski <n54@gmx.com>
13853
6227b330
KR
13854 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13855 it to the ptrace call.
13856 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13857
138582020-03-14 Kamil Rytarowski <n54@gmx.com>
13859
13860 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13861 gdb_byte *.
12753073
KR
13862 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13863
d5be5fa4
KR
138642020-03-14 Kamil Rytarowski <n54@gmx.com>
13865
13866 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13867 instead of inf_ptrace_target.
13868 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13869 nbsd_nat_target.
13870
8110f842
KR
138712020-03-14 Kamil Rytarowski <n54@gmx.com>
13872
13873 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13874 register_t.
13875
52feded7
KR
138762020-03-14 Kamil Rytarowski <n54@gmx.com>
13877
13878 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13879 register_t.
13880
25567eee
KR
138812020-03-14 Kamil Rytarowski <n54@gmx.com>
13882
13883 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13884 register_t.
13885
426a9c18
TT
138862020-03-13 Tom Tromey <tom@tromey.com>
13887
13888 * value.h (val_print): Don't declare.
13889 * valprint.h (val_print_array_elements)
13890 (val_print_scalar_formatted, generic_val_print): Don't declare.
13891 * valprint.c (generic_val_print_array): Take a struct value.
13892 (generic_val_print_ptr, generic_val_print_memberptr)
13893 (generic_val_print_bool, generic_val_print_int)
13894 (generic_val_print_char, generic_val_print_complex)
13895 (generic_val_print): Remove.
13896 (generic_value_print): Update.
13897 (do_val_print): Remove unused parameters. Don't call
13898 la_val_print.
13899 (val_print): Remove.
13900 (common_val_print): Update. Don't call value_check_printable.
13901 (val_print_scalar_formatted, val_print_array_elements): Remove.
13902 * rust-lang.c (rust_val_print): Remove.
13903 (rust_language_defn): Update.
13904 * p-valprint.c (pascal_val_print): Remove.
13905 (pascal_value_print_inner): Update.
13906 (pascal_object_print_val_fields, pascal_object_print_val):
13907 Remove.
13908 (pascal_object_print_static_field): Update.
13909 * p-lang.h (pascal_val_print): Don't declare.
13910 * p-lang.c (pascal_language_defn): Update.
13911 * opencl-lang.c (opencl_language_defn): Update.
13912 * objc-lang.c (objc_language_defn): Update.
13913 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13914 * m2-lang.h (m2_val_print): Don't declare.
13915 * m2-lang.c (m2_language_defn): Update.
13916 * language.h (struct language_defn) <la_val_print>: Remove.
13917 * language.c (unk_lang_value_print_inner): Rename. Change
13918 argument types.
13919 (unknown_language_defn, auto_language_defn): Update.
13920 * go-valprint.c (go_val_print): Remove.
13921 * go-lang.h (go_val_print): Don't declare.
13922 * go-lang.c (go_language_defn): Update.
13923 * f-valprint.c (f_val_print): Remove.
13924 * f-lang.h (f_value_print): Don't declare.
13925 * f-lang.c (f_language_defn): Update.
13926 * d-valprint.c (d_val_print): Remove.
13927 * d-lang.h (d_value_print): Don't declare.
13928 * d-lang.c (d_language_defn): Update.
13929 * cp-valprint.c (cp_print_value_fields)
13930 (cp_print_value_fields_rtti, cp_print_value): Remove.
13931 (cp_print_static_field): Update.
13932 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13933 (c_val_print_struct, c_val_print_union, c_val_print_int)
13934 (c_val_print_memberptr, c_val_print): Remove.
13935 * c-lang.h (c_val_print_array, cp_print_value_fields)
13936 (cp_print_value_fields_rtti): Don't declare.
13937 * c-lang.c (c_language_defn, cplus_language_defn)
13938 (asm_language_defn, minimal_language_defn): Update.
13939 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13940 (ada_val_print_enum): Take a struct value.
13941 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13942 (ada_val_print): Remove.
13943 (ada_value_print_1): Update.
13944 (printable_val_type): Remove.
13945 * ada-lang.h (ada_val_print): Don't declare.
13946 * ada-lang.c (ada_language_defn): Update.
13947
42331a1e
TT
139482020-03-13 Tom Tromey <tom@tromey.com>
13949
13950 * valprint.c (do_val_print): Update.
13951 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13952 a struct value.
13953 (value_to_value_object_no_release): Declare.
13954 * python/py-value.c (value_to_value_object_no_release): New
13955 function.
13956 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13957 struct value.
13958 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13959 function.
13960 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13961 a struct value.
13962 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13963 Declare.
13964 (gdbscm_apply_val_pretty_printer): Take a struct value.
13965 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13966 value.
13967 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13968 value.
13969 * extension-priv.h (struct extension_language_ops)
13970 <apply_val_pretty_printer>: Take a struct value.
13971 * cp-valprint.c (cp_print_value): Create a struct value.
13972 (cp_print_value): Update.
13973
3a916a97
TT
139742020-03-13 Tom Tromey <tom@tromey.com>
13975
13976 * ada-valprint.c (print_field_values): Call common_val_print.
13977
b59eac37
TT
139782020-03-13 Tom Tromey <tom@tromey.com>
13979
13980 * ada-valprint.c (val_print_packed_array_elements): Remove
13981 bitoffset and val parameters. Call common_val_print.
13982 (ada_val_print_string): Remove offset, address, and original_value
13983 parameters.
13984 (ada_val_print_array): Update.
13985 (ada_value_print_array): New function.
13986 (ada_value_print_1): Call it.
13987
03371129
TT
139882020-03-13 Tom Tromey <tom@tromey.com>
13989
13990 * ada-valprint.c (ada_value_print): Use common_val_print.
13991
2e088f8b
TT
139922020-03-13 Tom Tromey <tom@tromey.com>
13993
13994 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13995
39ef85a8
TT
139962020-03-13 Tom Tromey <tom@tromey.com>
13997
13998 * ada-valprint.c (ada_value_print_num): New function.
13999 (ada_value_print_1): Use it.
14000
b9fa6e07
TT
140012020-03-13 Tom Tromey <tom@tromey.com>
14002
14003 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14004
416595d6
TT
140052020-03-13 Tom Tromey <tom@tromey.com>
14006
14007 * ada-valprint.c (ada_value_print_ptr): New function.
14008 (ada_value_print_1): Use it.
14009
5b5e15ec
TT
140102020-03-13 Tom Tromey <tom@tromey.com>
14011
14012 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14013 call common_val_print.
14014 (ada_val_print_1): Update.
14015 (ada_value_print_1): New function.
14016 (ada_value_print_inner): Rewrite.
14017
fbf54e75
TT
140182020-03-13 Tom Tromey <tom@tromey.com>
14019
14020 * cp-valprint.c (cp_print_value_fields): Update.
14021 (cp_print_value): New function.
14022
64b653ca
TT
140232020-03-13 Tom Tromey <tom@tromey.com>
14024
14025 * m2-valprint.c (m2_value_print_inner): Use
14026 cp_print_value_fields.
14027 * cp-valprint.c (cp_print_value_fields): New function.
14028 * c-valprint.c (c_value_print_struct): New function.
14029 (c_value_print_inner): Use c_value_print_struct.
14030 * c-lang.h (cp_print_value_fields): Declare.
14031
6999f067
TT
140322020-03-13 Tom Tromey <tom@tromey.com>
14033
14034 * c-valprint.c (c_value_print_array): New function.
14035 (c_value_print_inner): Use it.
14036
ce80b8bd
TT
140372020-03-13 Tom Tromey <tom@tromey.com>
14038
14039 * c-valprint.c (c_value_print_memberptr): New function.
14040 (c_value_print_inner): Use it.
14041
2faac269
TT
140422020-03-13 Tom Tromey <tom@tromey.com>
14043
14044 * c-valprint.c (c_value_print_int): New function.
14045 (c_value_print_inner): Use it.
14046
da3e2c29
TT
140472020-03-13 Tom Tromey <tom@tromey.com>
14048
14049 * c-valprint.c (c_value_print_ptr): New function.
14050 (c_value_print_inner): Use it.
14051
50836231
TT
140522020-03-13 Tom Tromey <tom@tromey.com>
14053
14054 * c-valprint.c (c_value_print_inner): Rewrite.
14055
4f412b6e
TT
140562020-03-13 Tom Tromey <tom@tromey.com>
14057
14058 * valprint.c (generic_value_print_complex): New function.
14059 (generic_value_print): Use it.
14060
f5354008
TT
140612020-03-13 Tom Tromey <tom@tromey.com>
14062
14063 * valprint.c (generic_val_print_float): Don't call
14064 val_print_scalar_formatted.
14065 (generic_val_print, generic_value_print): Update.
14066
3eec3b05
TT
140672020-03-13 Tom Tromey <tom@tromey.com>
14068
14069 * valprint.c (generic_value_print_char): New function
14070 (generic_value_print): Use it.
14071
fdddfccb
TT
140722020-03-13 Tom Tromey <tom@tromey.com>
14073
14074 * valprint.c (generic_value_print_int): New function.
14075 (generic_value_print): Use it.
14076
6dde7521
TT
140772020-03-13 Tom Tromey <tom@tromey.com>
14078
14079 * valprint.c (generic_value_print_bool): New function.
14080 (generic_value_print): Use it.
14081
4112d2e6
TT
140822020-03-13 Tom Tromey <tom@tromey.com>
14083
14084 * valprint.c (generic_val_print_func): Simplify.
14085 (generic_val_print, generic_value_print): Update.
14086
65786af6
TT
140872020-03-13 Tom Tromey <tom@tromey.com>
14088
14089 * valprint.c (generic_val_print_flags): Remove.
14090 (generic_val_print, generic_value_print): Update.
14091 (val_print_type_code_flags): Add original_value parameter.
14092
40f3ce18
TT
140932020-03-13 Tom Tromey <tom@tromey.com>
14094
14095 * valprint.c (generic_val_print): Update.
14096 (generic_value_print): Update.
14097 * valprint.c (generic_val_print_enum): Don't call
14098 val_print_scalar_formatted.
14099
2a5b130b
TT
141002020-03-13 Tom Tromey <tom@tromey.com>
14101
14102 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14103 * valprint.c (generic_value_print_ptr): New function.
14104
abc66ce9
TT
141052020-03-13 Tom Tromey <tom@tromey.com>
14106
14107 * valprint.c (generic_value_print): Rewrite.
14108
07a32858
TT
141092020-03-13 Tom Tromey <tom@tromey.com>
14110
14111 * p-valprint.c (pascal_object_print_value_fields)
14112 (pascal_object_print_value): New functions.
14113
64d64d3a
TT
141142020-03-13 Tom Tromey <tom@tromey.com>
14115
14116 * p-valprint.c (pascal_value_print_inner): Rewrite.
14117
6a95a1f5
TT
141182020-03-13 Tom Tromey <tom@tromey.com>
14119
14120 * f-valprint.c (f_value_print_innner): Rewrite.
14121
59fcdac6
TT
141222020-03-13 Tom Tromey <tom@tromey.com>
14123
14124 * m2-valprint.c (m2_print_unbounded_array): New overload.
14125 (m2_print_unbounded_array): Update.
14126 (m2_print_array_contents): Take a struct value.
14127 (m2_value_print_inner): Rewrite.
14128
d133c3e1
TT
141292020-03-13 Tom Tromey <tom@tromey.com>
14130
14131 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14132 (d_value_print_inner): New function.
14133 * d-lang.h (d_value_print_inner): Declare.
14134 * d-lang.c (d_language_defn): Use d_value_print_inner.
14135
23b0f06b
TT
141362020-03-13 Tom Tromey <tom@tromey.com>
14137
14138 * go-valprint.c (go_value_print_inner): New function.
14139 * go-lang.h (go_value_print_inner): Declare.
14140 * go-lang.c (go_language_defn): Use go_value_print_inner.
14141
5f56f7cb
TT
141422020-03-13 Tom Tromey <tom@tromey.com>
14143
14144 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14145 API.
14146 (rust_val_print): Rewrite.
14147 (rust_value_print_inner): New function, from rust_val_print.
14148 (rust_language_defn): Use rust_value_print_inner.
14149
26792ee0
TT
141502020-03-13 Tom Tromey <tom@tromey.com>
14151
14152 * ada-valprint.c (ada_value_print_inner): New function.
14153 * ada-lang.h (ada_value_print_inner): Declare.
14154 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14155
24051bbe
TT
141562020-03-13 Tom Tromey <tom@tromey.com>
14157
14158 * f-valprint.c (f_value_print_innner): New function.
14159 * f-lang.h (f_value_print_innner): Declare.
14160 * f-lang.c (f_language_defn): Use f_value_print_innner.
14161
c0941be6
TT
141622020-03-13 Tom Tromey <tom@tromey.com>
14163
14164 * p-valprint.c (pascal_value_print_inner): New function.
14165 * p-lang.h (pascal_value_print_inner): Declare.
14166 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14167
62c4663d
TT
141682020-03-13 Tom Tromey <tom@tromey.com>
14169
14170 * m2-valprint.c (m2_value_print_inner): New function.
14171 * m2-lang.h (m2_value_print_inner): Declare.
14172 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14173
62182190
TT
141742020-03-13 Tom Tromey <tom@tromey.com>
14175
14176 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14177 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14178 * c-valprint.c (c_value_print_inner): New function.
14179 * c-lang.h (c_value_print_inner): Declare.
14180 * c-lang.c (c_language_defn, cplus_language_defn)
14181 (asm_language_defn, minimal_language_defn): Use
14182 c_value_print_inner.
14183
1e592a8a
TT
141842020-03-13 Tom Tromey <tom@tromey.com>
14185
14186 * p-valprint.c (pascal_object_print_value_fields): Now static.
14187 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14188
7fe471e9
TT
141892020-03-13 Tom Tromey <tom@tromey.com>
14190
14191 * c-valprint.c (c_val_print_array): Simplify.
14192
d121c6ce
TT
141932020-03-13 Tom Tromey <tom@tromey.com>
14194
14195 * valprint.c (value_print_array_elements): New function.
14196 * valprint.h (value_print_array_elements): Declare.
14197
4dba70ee
TT
141982020-03-13 Tom Tromey <tom@tromey.com>
14199
14200 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14201 * mips-tdep.c (mips_print_register): Use
14202 value_print_scalar_formatted.
14203
4f9ae810
TT
142042020-03-13 Tom Tromey <tom@tromey.com>
14205
14206 * valprint.h (value_print_scalar_formatted): Declare.
14207 * valprint.c (value_print_scalar_formatted): New function.
14208
156bfec9
TT
142092020-03-13 Tom Tromey <tom@tromey.com>
14210
14211 * valprint.h (generic_value_print): Declare.
14212 * valprint.c (generic_value_print): New function.
14213
2b4e573d
TT
142142020-03-13 Tom Tromey <tom@tromey.com>
14215
14216 * valprint.c (do_val_print): Call la_value_print_inner, if
14217 available.
14218 * rust-lang.c (rust_language_defn): Update.
14219 * p-lang.c (pascal_language_defn): Update.
14220 * opencl-lang.c (opencl_language_defn): Update.
14221 * objc-lang.c (objc_language_defn): Update.
14222 * m2-lang.c (m2_language_defn): Update.
14223 * language.h (struct language_defn) <la_value_print_inner>: New
14224 member.
14225 * language.c (unknown_language_defn, auto_language_defn): Update.
14226 * go-lang.c (go_language_defn): Update.
14227 * f-lang.c (f_language_defn): Update.
14228 * d-lang.c (d_language_defn): Update.
14229 * c-lang.c (c_language_defn, cplus_language_defn)
14230 (asm_language_defn, minimal_language_defn): Update.
14231 * ada-lang.c (ada_language_defn): Update.
14232
a1f6a07c
TT
142332020-03-13 Tom Tromey <tom@tromey.com>
14234
14235 * c-valprint.c (c_value_print): Use common_val_print.
14236
410cf315
TT
142372020-03-13 Tom Tromey <tom@tromey.com>
14238
14239 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14240
72a45c93
TT
142412020-03-13 Tom Tromey <tom@tromey.com>
14242
14243 * f-valprint.c (f77_print_array_1, f_val_print): Use
14244 common_val_print.
14245
040f66bd
TT
142462020-03-13 Tom Tromey <tom@tromey.com>
14247
14248 * riscv-tdep.c (riscv_print_one_register_info): Use
14249 common_val_print.
14250
a6e05a6c
TT
142512020-03-13 Tom Tromey <tom@tromey.com>
14252
14253 * mi/mi-main.c (output_register): Use common_val_print.
14254
3444c526
TT
142552020-03-13 Tom Tromey <tom@tromey.com>
14256
14257 * infcmd.c (default_print_one_register_info): Use
14258 common_val_print.
14259
c2a44efe
TT
142602020-03-13 Tom Tromey <tom@tromey.com>
14261
14262 * valprint.h (common_val_print_checked): Declare.
14263 * valprint.c (common_val_print_checked): New function.
14264 * stack.c (print_frame_arg): Use common_val_print_checked.
14265
b0c26e99
TT
142662020-03-13 Tom Tromey <tom@tromey.com>
14267
14268 * valprint.c (do_val_print): New function, from val_print.
14269 (val_print): Use do_val_print.
14270 (common_val_print): Use do_val_print.
14271
ce3acbe9
TT
142722020-03-13 Tom Tromey <tom@tromey.com>
14273
14274 * valprint.c (value_print): Use scoped_value_mark.
14275
96c7f873
TV
142762020-03-13 Tom de Vries <tdevries@suse.de>
14277
14278 PR symtab/25646
14279 * psymtab.c (partial_symtab::partial_symtab): Don't set
14280 globals_offset and statics_offset. Push element onto
14281 current_global_psymbols and current_static_psymbols stacks.
14282 (concat): New function.
14283 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14284 element from current_global_psymbols and current_static_psymbols
14285 stacks. Concat popped elements to global_psymbols and
14286 static_symbols.
14287 (add_psymbol_to_list): Use current_global_psymbols and
14288 current_static_psymbols stacks.
14289 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14290 current_static_psymbols fields.
14291
6ba0a321
CB
142922020-03-12 Christian Biesinger <cbiesinger@google.com>
14293
14294 * corelow.c (sniff_core_bfd): Remove.
14295 (class core_target) <m_core_vec>: Remove.
14296 (core_target::core_target): Update.
14297 (core_file_fns): Remove.
14298 (deprecated_add_core_fns): Remove.
14299 (default_core_sniffer): Remove.
14300 (sniff_core_bfd): Remove.
14301 (default_check_format): Remove.
14302 (gdb_check_format): Remove.
14303 (core_target_open): Update.
14304 (core_target::get_core_register_section): Update.
14305 (get_core_registers_cb): Update.
14306 (core_target::fetch_registers): Update.
14307 * gdbcore.h (struct core_fns): Remove.
14308 (deprecated_add_core_fns): Remove.
14309 (default_core_sniffer): Remove.
14310 (default_check_format): Remove.
14311
227031b2
TT
143122020-03-12 Tom Tromey <tom@tromey.com>
14313
14314 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14315 CORE_ADDR.
14316 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14317
53807e9f
TT
143182020-03-12 Tom Tromey <tom@tromey.com>
14319
14320 * remote.c (remote_target::download_tracepoint)
14321 (remote_target::enable_tracepoint)
14322 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14323 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14324 sprintf_vma.
14325
64f25102
TT
143262020-03-12 Tom Tromey <tom@tromey.com>
14327
14328 * symfile-mem.c: Update CORE_ADDR size assert.
14329
272cd5a3
SM
143302020-03-12 Simon Marchi <simon.marchi@efficios.com>
14331
14332 * selftest.m4: Move to gdbsupport/.
14333 * acinclude.m4: Update path to selftest.m4.
14334
74cd3f9d
SM
143352020-03-12 Simon Marchi <simon.marchi@efficios.com>
14336
14337 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14338 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14339 gdbarch-selfselftests.c and selftest-arch.c.
14340 (SUBDIR_UNITTESTS_OBS): Rename to...
14341 (SELFTESTS_OBS): ... this.
14342 (COMMON_SFILES): Remove disasm-selftests.c and
14343 gdbarch-selftests.c.
14344 * configure.ac: Don't add selftest-arch.{c,o} to
14345 CONFIG_{SRCS,OBS}.
14346 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14347 preprocessor conditions.
14348
db6878ac
SM
143492020-03-12 Simon Marchi <simon.marchi@efficios.com>
14350
14351 * configure.ac: Don't source bfd/development.sh.
14352 * selftest.m4: Modify comment.
14353 * configure: Re-generate.
14354
4d696a5c
SM
143552020-03-12 Simon Marchi <simon.marchi@efficios.com>
14356
14357 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14358 not "true" or "false".
14359 * configure: Re-generate.
14360
8dd8e1c7
CB
143612020-03-12 Christian Biesinger <cbiesinger@google.com>
14362
14363 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14364 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14365 renamed to arm_nbsd_supply_gregset.
14366 (fetch_register): Update to call arm_nbsd_supply_gregset.
14367 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14368 (arm_netbsd_nat_target::fetch_registers): Update.
14369 (fetch_elfcore_registers): Removed.
14370 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14371 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14372 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14373 not require NetBSD system headers.
14374 (arm_nbsd_regset): New struct.
14375 (arm_nbsd_iterate_over_regset_sections): New function.
14376 (arm_netbsd_init_abi_common): Updated to call
14377 set_gdbarch_iterate_over_regset_sections.
14378 * arm-nbsd-tdep.h: New file.
14379
dd69bf7a
KB
143802020-03-11 Kevin Buettner <kevinb@redhat.com>
14381
14382 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14383 recursion.
14384
a0761e34
SM
143852020-03-11 Simon Marchi <simon.marchi@efficios.com>
14386
14387 * configure: Re-generate.
14388
e7a82140
TT
143892020-03-11 Tom Tromey <tromey@adacore.com>
14390
14391 * ada-typeprint.c (print_choices): Fix comment.
14392
dcc050c8
AB
143932020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14394
14395 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14396 previous item in the list, when the list has no items.
14397
1c33af77
TV
143982020-03-11 Tom de Vries <tdevries@suse.de>
14399
14400 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14401 PROP_LOCLIST handling code.
14402
8c95582d
AB
144032020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14404
14405 * buildsym-legacy.c (record_line): Pass extra parameter to
14406 record_line.
14407 * buildsym.c (buildsym_compunit::record_line): Take an extra
14408 parameter, reduce duplication in the line table, and record the
14409 is_stmt flag in the line table.
14410 * buildsym.h (buildsym_compunit::record_line): Add extra
14411 parameter.
14412 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14413 non-statement lines.
14414 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14415 this to the symtab builder.
14416 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14417 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14418 through to dwarf_record_line_1.
14419 * infrun.c (process_event_stop_test): When stepping, don't stop at
14420 a non-statement instruction, and only refresh the step info when
14421 we land in the middle of a line's range. Also add an extra
14422 comment.
14423 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14424 field.
14425 * record-btrace.c (btrace_find_line_range): Only record lines
14426 marked as is-statement.
14427 * stack.c (frame_show_address): Show the frame address if we are
14428 in a non-statement sal.
14429 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14430 (maintenance_print_one_line_table): Print a header for the is_stmt
14431 column, and include is_stmt information in the output.
14432 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14433 preference to non-statements.
14434 (find_pcs_for_symtab_line): Prefer is-statement entries.
14435 (find_line_common): Likewise.
14436 * symtab.h (struct linetable_entry): Add is_stmt field.
14437 (struct symtab_and_line): Likewise.
14438 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14439 arranging the line table.
14440
e4003a34
TV
144412020-03-07 Tom de Vries <tdevries@suse.de>
14442
14443 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14444 DIE.
14445
e8932576
TT
144462020-03-07 Tom Tromey <tom@tromey.com>
14447
14448 * valops.c (value_literal_complex): Remove obsolete comment.
14449 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14450 comment.
14451
29734269
SM
144522020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14453
14454 * infrun.h: Forward-declare thread_info.
14455 (set_step_info): Add thread_info parameter, add doc.
14456 * infrun.c (set_step_info): Add thread_info parameter, move doc
14457 to header.
14458 * infrun.c (process_event_stop_test): Pass thread to
14459 set_step_info call.
14460 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14461 set_step_info.
14462 (prepare_one_step): Add thread_info parameter, pass it to
14463 set_step_frame and prepare_one_step (recursive) call.
14464 (step_1): Pass thread to prepare_one_step call.
14465 (step_command_fsm::should_stop): Pass thread to
14466 prepare_one_step.
14467 (until_next_fsm): Pass thread to set_step_frame call.
14468 (finish_command): Pass thread to set_step_info call.
14469
b7d64b29
HD
144702020-03-06 Hannes Domani <ssbssa@yahoo.de>
14471
14472 * windows-tdep.c (windows_solib_create_inferior_hook):
14473 Check if inferior is running.
14474
09f2921c
TV
144752020-03-06 Tom de Vries <tdevries@suse.de>
14476
14477 * NEWS: Fix "the the".
14478 * ctfread.c: Same.
14479
fd760e79
TV
144802020-03-06 Tom de Vries <tdevries@suse.de>
14481
14482 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14483
20ea4a60
AB
144842020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14485
14486 * .dir-locals.el: Add a comment referencing the other copies of
14487 this file.
14488
0afbabf0
JB
144892020-03-05 John Baldwin <jhb@FreeBSD.org>
14490
14491 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14492 psargs.
14493
842806cb
TBA
144942020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14495
14496 * .gitattributes: New file.
14497
be1e3d3e
TT
144982020-03-04 Tom Tromey <tom@tromey.com>
14499
14500 * symmisc.c (print_symbol_bcache_statistics)
14501 (print_objfile_statistics): Update.
14502 * symfile.c (allocate_symtab): Use intern.
14503 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14504 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14505 macro_cache>: Remove.
14506 <string_cache>: New member.
14507 (struct objfile) <intern>: New methods.
14508 * elfread.c (elf_symtab_read): Use intern.
14509 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14510 (dwarf2_compute_name, dwarf2_physname)
14511 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14512 names.
14513 (guess_partial_die_structure_name): Update.
14514 (partial_die_info::fixup): Intern name.
14515 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14516 name.
14517 (dwarf2_name): Intern name. Update.
14518 * buildsym.c (buildsym_compunit::get_macro_table): Use
14519 string_cache.
14520
4e7625fd
TT
145212020-03-04 Tom Tromey <tom@tromey.com>
14522
14523 * jit.c (bfd_open_from_target_memory): Make "target" const.
14524 * corefile.c (gnutarget): Now const.
14525 * gdbcore.h (gnutarget): Now const.
14526
46f9f931
HD
145272020-03-04 Hannes Domani <ssbssa@yahoo.de>
14528
14529 * NEWS: Mention support for WOW64 processes.
14530 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14531 (amd64_windows_segment_register_p): Remove static.
14532 (_initialize_amd64_windows_nat): Update.
14533 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14534 * i386-windows-nat.c (context_offset): Update.
14535 (i386_mappings): Rename and remove static.
14536 (i386_windows_segment_register_p): Remove static.
14537 (_initialize_i386_windows_nat): Update.
14538 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14539 (STATUS_WX86_SINGLE_STEP): New macro.
14540 (EnumProcessModulesEx): New macro.
14541 (Wow64SuspendThread): New macro.
14542 (Wow64GetThreadContext): New macro.
14543 (Wow64SetThreadContext): New macro.
14544 (Wow64GetThreadSelectorEntry): New macro.
14545 (windows_set_context_register_offsets): Add static.
14546 (windows_set_segment_register_p): Likewise.
14547 (windows_add_thread): Adapt for WOW64 processes.
14548 (windows_fetch_one_register): Likewise.
14549 (windows_nat_target::fetch_registers): Likewise.
14550 (windows_store_one_register): Likewise.
14551 (display_selector): Likewise.
14552 (display_selectors): Likewise.
14553 (handle_exception): Likewise.
14554 (windows_continue): Likewise.
14555 (windows_nat_target::resume): Likewise.
14556 (windows_add_all_dlls): Likewise.
14557 (do_initial_windows_stuff): Likewise.
14558 (windows_nat_target::attach): Likewise.
14559 (windows_get_exec_module_filename): Likewise.
14560 (windows_nat_target::create_inferior): Likewise.
14561 (windows_xfer_siginfo): Likewise.
14562 (_initialize_loadable): Initialize Wow64SuspendThread,
14563 Wow64GetThreadContext, Wow64SetThreadContext,
14564 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14565 * windows-nat.h (windows_set_context_register_offsets):
14566 Remove declaration.
14567 (windows_set_segment_register_p): Likewise.
14568 (i386_windows_segment_register_p): Add declaration.
14569 (amd64_windows_segment_register_p): Likewise.
14570
440cf44e
LM
145712020-03-04 Luis Machado <luis.machado@linaro.org>
14572
14573 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14574 in "info registers" for AArch64/ARM.
14575
14576 The change caused "info registers" to not print GPR's.
14577
14578 gdb/ChangeLog:
14579
14580 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14581
14582 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14583 when reg->group is empty and reggroup is not.
14584
1009d92f
TT
145852020-03-03 Tom Tromey <tromey@adacore.com>
14586
14587 * dwarf2/frame.c (struct dwarf2_frame_cache)
14588 <checked_tailcall_bottom, entry_cfa_sp_offset,
14589 entry_cfa_sp_offset_p>: Remove members.
14590 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14591 (dwarf2_frame_prev_register): Don't call
14592 dwarf2_tailcall_sniffer_first.
14593 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14594 * frame-unwind.c (add_unwinder): New fuction.
14595 (frame_unwind_init): Use it. Add tailcall unwinder.
14596
5e5d66b6
AB
145972020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14598 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14599
14600 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14601 value should be printed as true.
14602
584cf46d
HD
146032020-03-03 Hannes Domani <ssbssa@yahoo.de>
14604
14605 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14606 (windows_init_abi): Set and use windows_so_ops.
14607
7b973adc
SDJ
146082020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14609
14610 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14611 when verifying if dealing with a convenience variable.
14612
bb7b70ab
LM
146132020-03-03 Luis Machado <luis.machado@linaro.org>
14614
14615 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14616
9822cb57
SM
146172020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14618
14619 * infrun.c (gdbarch_supports_displaced_stepping): New.
14620 (use_displaced_stepping): Break up conditions in smaller pieces.
14621 Use gdbarch_supports_displaced_stepping.
14622 (displaced_step_prepare_throw): Use
14623 gdbarch_supports_displaced_stepping.
14624
63e163f2
AB
146252020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14626
14627 * NEWS: Mention new behaviour of the history filename.
14628 * top.c (write_history_p): Add comment.
14629 (show_write_history_p): Add header comment, give a different
14630 message when history writing is on, but the history filename is
14631 empty.
14632 (history_filename): Add comment.
14633 (history_filename_empty): New function.
14634 (show_history_filename): Add header comment, give a different
14635 message when the filename is empty.
14636 (init_history): Compare history_filename against nullptr, and only
14637 read history if the filename is not empty.
14638 (set_history_filename): Add header comment, and only make
14639 non-empty filenames absolute.
14640 (init_main): Make the filename argument to 'set history filename'
14641 optional.
14642
81b86b97
CB
146432020-03-02 Christian Biesinger <cbiesinger@google.com>
14644
14645 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14646 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14647 (fetch_fp_register): Update.
14648 (fetch_fp_regs): Update.
14649 (store_fp_register): Update.
14650 (store_fp_regs): Update.
14651 (arm_netbsd_nat_target::read_description): New function.
14652 (fetch_elfcore_registers): Update.
14653
24ed6739
AB
146542020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14655
14656 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14657 general_thread if the stop reply is missing a thread-id.
14658 (remote_target::process_stop_reply): Use the first non-exited
14659 thread if the target didn't pass a thread-id.
14660 * infrun.c (do_target_wait): Move call to
14661 switch_to_inferior_no_thread to ....
14662 (do_target_wait_1): ... here.
14663
a84bb2a0
JT
146642020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14665
14666 * debuginfod-support.c: Include defs.h first.
14667
658dadf0
TV
146682020-02-28 Tom de Vries <tdevries@suse.de>
14669
14670 * symfile.c (set_initial_language): Use default language for lookup.
14671
4ebe4877
SM
146722020-02-28 Simon Marchi <simon.marchi@efficios.com>
14673
14674 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14675 reader variable, pass `this` to read_cutu_die_from_dwo.
14676
e5da1139
AM
146772020-02-27 Aaron Merey <amerey@redhat.com>
14678
14679 * source.c (open_source_file): Check for nullptr when computing
14680 srcpath.
14681
317f7127
TT
146822020-02-27 Tom Tromey <tromey@adacore.com>
14683
14684 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14685 member.
14686 (dwarf2_add_field): Don't update nfields.
14687 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14688
3104d9ee
AB
146892020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14690
14691 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14692 abs.
14693
b83470bf
TT
146942020-02-26 Tom Tromey <tom@tromey.com>
14695
14696 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14697 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14698 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14699 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14700 per_cu_data.
14701
edfe0a0c
TT
147022020-02-26 Tom Tromey <tom@tromey.com>
14703
14704 * dwarf2/index-write.c (psym_index_map): Change type.
14705 (add_address_entry_worker, write_one_signatured_type)
14706 (recursively_count_psymbols, recursively_write_psymbols)
14707 (class debug_names, psyms_seen_size, write_gdbindex)
14708 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14709
0d79cdc4
AM
147102020-02-26 Aaron Merey <amerey@redhat.com>
14711
14712 * Makefile.in: Handle optional debuginfod support.
14713 * NEWS: Update.
14714 * README: Add --with-debuginfod summary.
14715 * config.in: Regenerate.
14716 * configure: Regenerate.
14717 * configure.ac: Handle optional debuginfod support.
14718 * debuginfod-support.c: debuginfod helper functions.
14719 * debuginfod-support.h: Ditto.
14720 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14721 summary.
14722 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14723 when a dwz file cannot be found.
14724 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14725 debuginfo file cannot be found.
14726 * source.c (open_source_file): Query debuginfod servers when a
14727 source file cannot be found.
14728 * top.c (print_gdb_configuration): Include
14729 --{with,without}-debuginfod in the output.
14730
b65ce565
JG
147312020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14732
14733 * thread.c (thr_try_catch_cmd): Print thread name.
14734
d4c9a4f8
SM
147352020-02-26 Simon Marchi <simon.marchi@efficios.com>
14736
14737 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14738 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14739 dwarf2_fetch_die_type_sect_off): Move to...
14740 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14741 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14742 dwarf2_fetch_die_type_sect_off): ... here.
14743 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14744 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14745 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14746
0dce4280
TV
147472020-02-26 Tom de Vries <tdevries@suse.de>
14748
14749 PR gdb/25603
14750 * symfile.c (set_initial_language): Exit-early if
14751 language_mode == language_mode_manual.
14752
450a1bfc
SM
147532020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14754
14755 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14756 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14757 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14758
9e80cfa1
AB
147592020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14760
14761 * gdbtypes.c (create_array_type_with_stride): Handle negative
14762 array strides.
14763 * valarith.c (value_subscripted_rvalue): Likewise.
14764
09624f1f
LM
147652020-02-25 Luis Machado <luis.machado@linaro.org>
14766
14767 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14768
8cb5117c
SM
147692020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14770
14771 * loc.h (dwarf2_get_die_type): Move to...
14772 * read.h (dwarf2_get_die_type): ... here.
14773 * read.c (dwarf2_get_die_type): Move doc to header.
14774
c325c44e
JB
147752020-02-25 Joel Brobecker <brobecker@adacore.com>
14776
14777 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14778 'gnulib/Makefile.in' to the list.
14779
4ac93832
TT
147802020-02-24 Tom Tromey <tom@tromey.com>
14781
14782 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14783 Remove.
14784 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14785 XOBNEWVEC.
14786
197400e8
TT
147872020-02-24 Tom Tromey <tom@tromey.com>
14788
14789 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14790 New method.
14791 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14792 (dw2_do_instantiate_symtab, dw2_get_file_names)
14793 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14794
76935768
TT
147952020-02-24 Tom Tromey <tom@tromey.com>
14796
14797 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14798 make_scoped_restore.
14799 (dwarf2_psymtab::read_symtab): Don't clear
14800 reading_partial_symbols.
14801
a88ef40d
TV
148022020-02-24 Tom de Vries <tdevries@suse.de>
14803
14804 PR gdb/25592
14805 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14806
c9af6521
TV
148072020-02-24 Tom de Vries <tdevries@suse.de>
14808
14809 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14810 commands layout next/prev/regs.
14811
5707a07a
TT
148122020-02-22 Tom Tromey <tom@tromey.com>
14813
14814 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14815 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14816
3b0fb49e
TT
148172020-02-22 Tom Tromey <tom@tromey.com>
14818
14819 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14820
283be8bf
TT
148212020-02-22 Tom Tromey <tom@tromey.com>
14822
14823 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14824 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14825 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14826 * tui/tui.c (_initialize_tui): Add usage text.
14827
ca793b96
TT
148282020-02-22 Tom Tromey <tom@tromey.com>
14829
14830 * tui/tui-win.c (tui_set_focus_command)
14831 (tui_set_win_height_command): Use error_no_arg.
14832 (_initialize_tui_win): Update help text.
14833 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14834
432b5c40
TT
148352020-02-22 Tom Tromey <tom@tromey.com>
14836
14837 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14838 * tui/tui-disasm.h (struct tui_disasm_window)
14839 <display_start_addr>: Declare.
14840 * tui/tui-source.h (struct tui_source_window)
14841 <display_start_addr>: Declare.
14842 * tui/tui-winsource.h (struct tui_source_window_base)
14843 <show_source_line, display_start_addr>: New methods.
14844 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14845 Rename and move to protected section.
14846 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14847 (tui_source_window_base::do_erase_source_content): Update.
14848 (tui_source_window_base::show_source_line): Now a method.
14849 (tui_source_window_base::show_source_content)
14850 (tui_source_window_base::tui_source_window_base)
14851 (tui_source_window_base::rerender)
14852 (tui_source_window_base::refill)
14853 (tui_source_window_base::do_scroll_horizontal)
14854 (tui_source_window_base::set_is_exec_point_at)
14855 (tui_source_window_base::update_breakpoint_info)
14856 (tui_source_window_base::update_exec_info): Update.
14857 * tui/tui-source.c (tui_source_window::set_contents)
14858 (tui_source_window::showing_source_p)
14859 (tui_source_window::do_scroll_vertical)
14860 (tui_source_window::location_matches_p)
14861 (tui_source_window::line_is_displayed): Update.
14862 (tui_source_window::display_start_addr): New method.
14863 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14864 (tui_disasm_window::do_scroll_vertical)
14865 (tui_disasm_window::location_matches_p): Update.
14866 (tui_disasm_window::display_start_addr): New method.
14867
01b1af32
TT
148682020-02-22 Tom Tromey <tom@tromey.com>
14869
14870 * NEWS: Add entry for gdb.register_window_type.
14871 * tui/tui-layout.h (window_factory): New typedef.
14872 (tui_register_window): Declare.
14873 * tui/tui-layout.c (saved_tui_windows): New global.
14874 (tui_apply_current_layout): Use it.
14875 (tui_register_window): New function.
14876 * python/python.c (do_start_initialization): Call
14877 gdbpy_initialize_tui.
14878 (python_GdbMethods): Add "register_window_type" function.
14879 * python/python-internal.h (gdbpy_register_tui_window)
14880 (gdbpy_initialize_tui): Declare.
14881 * python/py-tui.c: New file.
14882 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14883
fc96d20b
TT
148842020-02-22 Tom Tromey <tom@tromey.com>
14885
14886 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14887
935c78c0
TT
148882020-02-22 Tom Tromey <tom@tromey.com>
14889
14890 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14891 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14892 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14893 (tui_set_win_focus_to): Move from tui-win.c.
14894
0240c8f1
TT
148952020-02-22 Tom Tromey <tom@tromey.com>
14896
14897 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14898 functions.
14899 (known_window_types): New global.
14900 (tui_get_window_by_name): Reimplement.
14901 (initialize_known_windows): New function.
14902 (validate_window_name): Rewrite.
14903 (_initialize_tui_layout): Call initialize_known_windows.
14904
fdb01f0c
TT
149052020-02-22 Tom Tromey <tom@tromey.com>
14906
14907 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14908 Remove constants.
14909 * tui/tui-winsource.h (struct tui_source_window_base)
14910 <tui_source_window_base>: Remove parameter.
14911 * tui/tui-winsource.c
14912 (tui_source_window_base::tui_source_window_base): Remove
14913 parameter.
14914 (tui_source_window_base::refill): Update.
14915 * tui/tui-stack.h (struct tui_locator_window)
14916 <tui_locator_window>: Update.
14917 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14918 Default the constructor.
14919 * tui/tui-regs.h (struct tui_data_item_window)
14920 <tui_data_item_window>: Default the constructor.
14921 (struct tui_data_window) <tui_data_window>: Likewise.
14922 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14923 Default the constructor.
14924 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14925 Default the constructor.
14926 <type>: Remove.
14927 (struct tui_win_info) <tui_win_info>: Default the constructor.
14928 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14929 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14930 Default the constructor.
14931
865a5aec
TT
149322020-02-22 Tom Tromey <tom@tromey.com>
14933
14934 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14935 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14936 * tui/tui-win.c (tui_resize_all): Don't call
14937 tui_delete_invisible_windows.
14938 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14939 done.
14940 (tui_set_layout): Update.
14941 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14942 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14943 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14944
e098d18c
TT
149452020-02-22 Tom Tromey <tom@tromey.com>
14946
14947 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14948 correctly.
14949
eb9c8874
TT
149502020-02-22 Tom Tromey <tom@tromey.com>
14951
14952 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14953
7eed1a8e
TT
149542020-02-22 Tom Tromey <tom@tromey.com>
14955
14956 * tui/tui-winsource.h (struct tui_source_window_iterator)
14957 <inner_iterator>: New etytypedef.
14958 <tui_source_window_iterator>: Take "end" parameter.
14959 <tui_source_window_iterator>: Take iterator.
14960 <operator*, advance>: Update.
14961 <m_iter>: Change type.
14962 <m_end>: New field.
14963 (struct tui_source_windows) <begin, end>: Update.
14964 * tui/tui-layout.c (tui_windows): New global.
14965 (tui_apply_current_layout): Clear tui_windows.
14966 (tui_layout_window::apply): Update tui_windows.
14967 * tui/tui-data.h (tui_windows): Declare.
14968 (all_tui_windows): Now inline function.
14969 (class tui_window_iterator, struct all_tui_windows): Remove.
14970
7c043ba6
TT
149712020-02-22 Tom Tromey <tom@tromey.com>
14972
14973 PR tui/17850:
14974 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14975 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14976 "height" argument.
14977 (class tui_layout_window) <get_sizes>: Likewise.
14978 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14979 argument.
14980 <get_sizes>: Add "height" argument.
14981 <m_vertical>: New field.
14982 * tui/tui-layout.c (tui_layout_split::clone): Update.
14983 (tui_layout_split::get_sizes): Add "height" argument.
14984 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14985 (tui_new_layout_command): Parse "-horizontal".
14986 (_initialize_tui_layout): Update help string.
14987 (tui_layout_split::specification): Add "-horizontal" when needed.
14988 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14989 argument.
14990 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14991 New methods.
14992
6bc56648
TT
149932020-02-22 Tom Tromey <tom@tromey.com>
14994
14995 * tui/tui-layout.h (enum tui_adjust_result): New.
14996 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14997 (class tui_layout_window) <adjust_size>: Return
14998 tui_adjust_result. Rewrite.
14999 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15000 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15001
c22fef7e
TT
150022020-02-22 Tom Tromey <tom@tromey.com>
15003
15004 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15005 parameter and return types.
15006 (class tui_layout_base) <specification>: Add "depth".
15007 (class tui_layout_window) <specification>: Add "depth".
15008 (class tui_layout_split) <specification>: Add "depth".
15009 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15010 and return types.
15011 (tui_new_layout_command): Parse sub-layouts.
15012 (_initialize_tui_layout): Update help string.
15013 (tui_layout_window::specification): Add "depth".
15014 (add_layout_command): Update.
15015
ee325b61
TT
150162020-02-22 Tom Tromey <tom@tromey.com>
15017
15018 * NEWS: Add "tui new-layout" item.
15019 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15020 Add new-layout command to help text.
15021 (validate_window_name): New function.
15022 (tui_new_layout_command): New function.
15023 (_initialize_tui_layout): Register "new-layout".
15024 (tui_layout_window::specification): New method.
15025 (tui_layout_window::specification): New method.
15026 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15027 method.
15028 (class tui_layout_window) <specification>: New method.
15029 (class tui_layout_split) <specification>: New method.
15030
416eb92d
TT
150312020-02-22 Tom Tromey <tom@tromey.com>
15032
15033 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15034 * tui/tui-win.c (window_name_completer): Update comment.
15035 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15036 Declare method.
15037 (class tui_layout_window) <replace_window>: Likewise.
15038 (class tui_layout_split) <replace_window>: Likewise.
15039 (tui_set_layout): Don't declare.
15040 (tui_set_initial_layout): Declare function.
15041 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15042 (asm_regs_layout): New globals.
15043 (tui_current_layout, show_layout): Remove.
15044 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15045 (find_layout, tui_apply_layout): New function.
15046 (layout_completer): Remove.
15047 (tui_next_layout): Reimplement.
15048 (tui_next_layout_command): New function.
15049 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15050 (tui_regs_layout): Reimplement.
15051 (tui_regs_layout_command): New function.
15052 (extract_display_start_addr): Rewrite.
15053 (next_layout, prev_layout): Remove.
15054 (tui_layout_window::replace_window): New method.
15055 (tui_layout_split::replace_window): New method.
15056 (destroy_layout): New function.
15057 (layout_list): New global.
15058 (add_layout_command): New function.
15059 (initialize_layouts): Update.
15060 (tui_layout_command): New function.
15061 (_initialize_tui_layout): Install "layout" commands.
15062 * tui/tui-data.h (enum tui_layout_type): Remove.
15063 (tui_current_layout): Don't declare.
15064
0dbc2fc7
TT
150652020-02-22 Tom Tromey <tom@tromey.com>
15066
15067 * tui/tui-regs.c (tui_reg_layout): Remove.
15068 (tui_reg_command): Use tui_regs_layout.
15069 * tui/tui-layout.h (tui_reg_command): Declare.
15070 * tui/tui-layout.c (tui_reg_command): New function.
15071
5afe342e
TT
150722020-02-22 Tom Tromey <tom@tromey.com>
15073
15074 * tui/tui.c (tui_rl_delete_other_windows): Call
15075 tui_remove_some_windows.
15076 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15077 Declare method.
15078 (class tui_layout_window) <remove_windows>: New method.
15079 (class tui_layout_split) <remove_windows>: Declare.
15080 (tui_remove_some_windows): Declare.
15081 * tui/tui-layout.c (tui_remove_some_windows): New function.
15082 (tui_layout_split::remove_windows): New method.
15083
427326a8
TT
150842020-02-22 Tom Tromey <tom@tromey.com>
15085
15086 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15087 * tui/tui-layout.h (tui_next_layout): Declare.
15088 * tui/tui-layout.c (tui_next_layout): New function.
15089
3fe12b6d
TT
150902020-02-22 Tom Tromey <tom@tromey.com>
15091
15092 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15093 correct coordinates.
15094
59b8b5d2
TT
150952020-02-22 Tom Tromey <tom@tromey.com>
15096
15097 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15098 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15099 DATA_WIN case.
15100
2a3d458b
TT
151012020-02-22 Tom Tromey <tom@tromey.com>
15102
15103 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15104 TUI_DISASM_WIN, not tui_win_list.
15105
3f0cbb04
TT
151062020-02-22 Tom Tromey <tom@tromey.com>
15107
15108 * valprint.c (generic_val_print_enum_1)
15109 (val_print_type_code_flags): Style member names.
15110 * rust-lang.c (val_print_struct, rust_print_enum)
15111 (rust_print_struct_def, rust_internal_print_type): Style member
15112 names.
15113 * p-valprint.c (pascal_object_print_value_fields): Style member
15114 names. Only call fprintf_symbol_filtered for static members.
15115 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15116 * f-valprint.c (f_val_print): Style member names.
15117 * f-typeprint.c (f_type_print_base): Style member names.
15118 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15119 call fprintf_symbol_filtered for static members.
15120 (cp_print_class_member): Style member names.
15121 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15122 member names.
15123 * ada-valprint.c (ada_print_scalar): Style enum names.
15124 (ada_val_print_enum): Likewise.
15125 * ada-typeprint.c (print_enum_type): Style enum names.
15126
d4d947ae
TT
151272020-02-21 Tom Tromey <tom@tromey.com>
15128
15129 * psympriv.h (struct partial_symtab): Update comment.
15130
e94e944b
TT
151312020-02-21 Tom Tromey <tromey@adacore.com>
15132
15133 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15134 type is CORE_ADDR.
15135
1eb73179
TV
151362020-02-21 Tom de Vries <tdevries@suse.de>
15137
15138 PR gdb/25534
15139 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15140 if dependencies[i]->user != NULL.
15141
4f180d53
AT
151422020-02-21 Ali Tamur <tamur@google.com>
15143
15144 * dwarf2/read.c (dwarf2_name): Add null check.
15145
22b6cd70
TT
151462020-02-20 Tom Tromey <tom@tromey.com>
15147
15148 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15149 ">=", in binary search.
15150 (dwarf2_find_containing_comp_unit): New overload.
15151 (run_test): New self-test.
15152 (_initialize_dwarf2_read): Register new test.
15153
bd0cf5a6
NC
151542020-02-20 Nelson Chu <nelson.chu@sifive.com>
15155
15156 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15157 * riscv-tdep.h: Likewise.
15158 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15159 rv32-only CSR.
15160 * features/riscv/64bit-csr.xml: Regenerated.
15161
3f702acd
SDJ
151622020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15163 Tom Tromey <tom@tromey.com>
15164
15165 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15166 of 'fputc_unfiltered'.
15167 (putchar_unfiltered): Call 'fputc_unfiltered'.
15168 (fputc_unfiltered): Call 'fputs_unfiltered'.
15169
d13c7322
AB
151702020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15171
15172 * config.in: Regenerate.
15173 * configure: Regenerate.
15174 * configure.ac: Add --with-python-libdir option.
15175 * main.c: Use WITH_PYTHON_LIBDIR.
15176
869d8950
TT
151772020-02-19 Tom Tromey <tom@tromey.com>
15178
15179 * symtab.c (general_symbol_info::compute_and_set_names): Use
15180 obstack_strndup. Simplify call to symbol_set_demangled_name.
15181
298e9637
SM
151822020-02-19 Simon Marchi <simon.marchi@efficios.com>
15183
15184 * dwarf2/read.c (allocate_signatured_type_table,
15185 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15186 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15187 Remove objfile parameter, update all callers.
15188
08410482
DE
151892020-02-19 Doug Evans <dje@google.com>
15190
15191 PR rust/25535
15192 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15193 rust_enum_variant calculation.
15194
dfdeeca1
TT
151952020-02-19 Tom Tromey <tromey@adacore.com>
15196
15197 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15198
2ef5453b
TT
151992020-02-19 Tom Tromey <tromey@adacore.com>
15200
15201 * ada-lang.c (cache_symbol): Use obstack_strdup.
15202
9f1528a1
AB
152032020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15204
15205 * configure: Regenerate.
15206
d3c22fa8
TT
152072020-02-19 Tom Tromey <tromey@adacore.com>
15208
15209 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15210 NULL check.
15211
bf84f706
MR
152122020-02-19 Maciej W. Rozycki <macro@wdc.com>
15213
15214 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15215
d1c9b20f
AB
152162020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15217
15218 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15219 if GDBSERVER is not defined.
15220 (riscv_tdesc_cache): Likewise, also store const target_desc.
15221 (STATIC_IN_GDB): Define.
15222 (riscv_create_target_description): Update declaration with
15223 STATIC_IN_GDB.
15224 (riscv_lookup_target_description): New function, only define if
15225 GDBSERVER is not defined.
15226 * arch/riscv.h (riscv_create_target_description): Declare only
15227 when GDBSERVER is defined.
15228 (riscv_lookup_target_description): New declaration when GDBSERVER
15229 is not defined.
15230 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15231 (riscv_linux_read_features): ...this, and return
15232 riscv_gdbarch_features instead of target_desc.
15233 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15234 (riscv_linux_read_description): Rename to...
15235 (riscv_linux_read_features): ...this.
15236 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15237 Update to use riscv_gdbarch_features and
15238 riscv_lookup_target_description.
15239 * riscv-tdep.c (riscv_find_default_target_description): Use
15240 riscv_lookup_target_description instead of
15241 riscv_create_target_description.
15242
373d7ac0
SM
152432020-02-18 Simon Marchi <simon.marchi@efficios.com>
15244
15245 * valprint.c (generic_val_print_enum_1): When printing a flag
15246 enum with value 0 and there is no enumerator with value 0, print
15247 just "0" instead of "(unknown: 0x0)".
15248
b29a2df0
SM
152492020-02-18 Simon Marchi <simon.marchi@efficios.com>
15250
15251 * valprint.c (generic_val_print_enum_1): Print unknown part of
15252 flag enum in hex.
15253
6740f0cc
SM
152542020-02-18 Simon Marchi <simon.marchi@efficios.com>
15255
15256 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15257 flag enums to contain duplicate enumerators.
15258 * valprint.c (generic_val_print_enum_1): Update comment.
15259
edd45eb0
SM
152602020-02-18 Simon Marchi <simon.marchi@efficios.com>
15261
15262 * dwarf2/read.c: Include "count-one-bits.h".
15263 (update_enumeration_type_from_children): If an enumerator has
15264 multiple bits set, don't treat the enumeration as a "flag enum".
15265 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15266 of flag enums have 0 or 1 bit set.
15267
6d0cf446
BE
152682020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15269
15270 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15271 conversion.
15272 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15273 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15274 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15275 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15276 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15277
7001c1b7
SM
152782020-02-18 Simon Marchi <simon.marchi@efficios.com>
15279
15280 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15281
fdb61c6c
SM
152822020-02-14 Simon Marchi <simon.marchi@efficios.com>
15283
15284 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15285 displaced_step_closure_up.
15286 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15287 (struct displaced_step_closure_up):
15288 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15289 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15290 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15291 Likewise.
15292 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15293 * gdbarch.c, gdbarch.h: Re-generate.
15294 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15295 displaced_step_closure_up.
15296 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15297 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15298 * infrun.h (displaced_step_closure_up): New type alias.
15299 (struct displaced_step_inferior_state) <step_closure>: Change
15300 type to displaced_step_closure_up.
15301 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15302 displaced_step_closure_up.
15303 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15304
a4a38eb4
TT
153052020-02-14 Tom Tromey <tom@tromey.com>
15306
15307 * minidebug.c (gnu_debug_key): New global.
15308 (find_separate_debug_file_in_section): Use it.
15309
e8217e61
SM
153102020-02-14 Simon Marchi <simon.marchi@efficios.com>
15311
15312 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15313 std::unique_ptr.
15314 * gdbarch.c: Re-generate.
15315 * gdbarch.h: Re-generate.
15316 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15317 change.
15318 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15319 type to std::unique_ptr.
15320 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15321 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15322 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15323 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15324 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15325 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15326 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15327 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15328 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15329
d8d83535
SM
153302020-02-14 Simon Marchi <simon.marchi@efficios.com>
15331
15332 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15333 std::unique_ptr.
15334 (displaced_step_clear): Rename to...
15335 (displaced_step_reset): ... this. Just call displaced->reset ().
15336 (displaced_step_clear_cleanup): Rename to...
15337 (displaced_step_reset_cleanup): ... this.
15338 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15339 (displaced_step_fixup): Likewise.
15340 (resume_1): Likewise.
15341 (handle_inferior_event): Restore child's memory before calling
15342 displaced_step_fixup on the parent.
15343 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15344 to std::unique_ptr.
15345 <step_closure>: Change type to std::unique_ptr.
15346
5f661e03
SM
153472020-02-14 Simon Marchi <simon.marchi@efficios.com>
15348
15349 * arm-tdep.c: Include count-one-bits.h.
15350 (cleanup_block_store_pc): Use count_one_bits.
15351 (cleanup_block_load_pc): Use count_one_bits.
15352 (arm_copy_block_xfer): Use count_one_bits.
15353 (thumb2_copy_block_xfer): Use count_one_bits.
15354 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15355 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15356 (thumb_get_next_pcs_raw): Use count_one_bits.
15357 (arm_get_next_pcs_raw): Use count_one_bits_l.
15358 * arch/arm.c (bitcount): Remove.
15359 * arch/arm.h (bitcount): Remove.
15360
8084e579
TT
153612020-02-14 Tom Tromey <tromey@adacore.com>
15362
15363 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15364 Update.
15365 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15366 * dwarf2/loc.c (call_site_find_chain_1): Return
15367 unique_xmalloc_ptr.
15368 (call_site_find_chain): Likewise.
15369
258bf0ee
RB
153702020-02-14 Richard Biener <rguenther@suse.de>
15371
15372 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15373 on expression with division operators.
15374
f98a8458
AKS
153752020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15376
15377 * MAINTAINERS (Write After Approval): Adding myself.
15378
d1437c0e
TT
153792020-02-12 Tom Tromey <tom@tromey.com>
15380
15381 * event-loop.c (event_data, gdb_event, event_handler_func):
15382 Remove.
15383
3d4560f7
TT
153842020-02-12 Tom Tromey <tom@tromey.com>
15385
15386 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15387 (dwarf2_frame_objfile_data): Add comment.
15388 (find_comp_unit, set_comp_unit): New functions.
15389 (dwarf2_frame_find_fde): Use find_comp_unit.
15390 (dwarf2_build_frame_info): Use set_comp_unit.
15391
21982304
TT
153922020-02-12 Tom Tromey <tom@tromey.com>
15393
15394 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15395 (comp_unit): Don't initialize objfile.
15396 (execute_cfa_program): Add text_offset parameter.
15397 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15398 (dwarf2_frame_cache): Update.
15399 (dwarf2_build_frame_info): Don't set "objfile" member.
15400
4debb237
TT
154012020-02-12 Tom Tromey <tom@tromey.com>
15402
15403 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15404 (decode_frame_entry): Likewise.
15405 (dwarf2_build_frame_info): Update.
15406
0d404d44
TT
154072020-02-12 Tom Tromey <tom@tromey.com>
15408
15409 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15410 (decode_frame_entry_1): Use the comp_unit obstack.
15411
a7a3ae5c
TT
154122020-02-12 Tom Tromey <tom@tromey.com>
15413
15414 * dwarf2/frame.c (struct comp_unit): Add initializers and
15415 constructor.
15416 (dwarf2_frame_objfile_data): Store a comp_unit.
15417 (dwarf2_frame_find_fde): Update.
15418 (dwarf2_build_frame_info): Use "new".
15419
a9d65418
TT
154202020-02-12 Tom Tromey <tom@tromey.com>
15421
15422 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15423 (dwarf2_fde_table): Typedef for std::vector.
15424 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15425 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15426 (decode_frame_entry): Update.
15427 (dwarf2_build_frame_info): Use "new".
15428
7559c217
CB
154292020-02-12 Christian Biesinger <cbiesinger@google.com>
15430
15431 * arm-tdep.c (arm_gdbarch_init): Update.
15432 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15433 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15434 have_neon, is_m>: Change to bool.
15435
aeefc73c
CB
154362020-02-12 Christian Biesinger <cbiesinger@google.com>
15437
15438 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15439
d27b8e5f
TT
154402020-02-12 Tom Tromey <tom@tromey.com>
15441
15442 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15443
cd5900f3
HD
154442020-02-12 Hannes Domani <ssbssa@yahoo.de>
15445
15446 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15447 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15448
f056b22b
TT
154492020-02-11 Tom Tromey <tom@tromey.com>
15450
15451 * psymtab.h: Update comment.
15452
f92ff6b5
TT
154532020-02-11 Tom Tromey <tom@tromey.com>
15454
15455 * gdb_obstack.h (struct auto_obstack): Use
15456 DISABLE_COPY_AND_ASSIGN.
15457
3fd6912b
TT
154582020-02-11 Tom Tromey <tom@tromey.com>
15459
15460 * dwarf2/frame.h (struct objfile): Don't forward declare.
15461
69ed9b74
CB
154622020-02-11 Christian Biesinger <cbiesinger@google.com>
15463
15464 * cris-tdep.c (cris_supply_gregset): Change signature to match
15465 what struct regset expects.
15466 (cris_regset): New struct.
15467 (fetch_core_registers): Remove.
15468 (cris_iterate_over_regset_sections): New function.
15469 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15470 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15471
bda874f6
CB
154722020-02-11 Christian Biesinger <cbiesinger@google.com>
15473
15474 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15475 registers.
15476
754e1564
CB
154772020-02-11 Christian Biesinger <cbiesinger@google.com>
15478
15479 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15480
8ddd8e0e
SM
154812020-02-11 Simon Marchi <simon.marchi@efficios.com>
15482
15483 * configure: Re-generate.
15484
898e7f60
SM
154852020-02-11 Simon Marchi <simon.marchi@efficios.com>
15486
15487 * configure: Re-generate.
15488
58df732b
SM
154892020-02-11 Simon Marchi <simon.marchi@efficios.com>
15490
15491 * acinclude: Update warning.m4 path.
15492 * warning.m4: Move to gdbsupport.
15493
da5bd37e
TT
154942020-02-11 Tom Tromey <tromey@adacore.com>
15495
15496 * remote.c (remote_console_output): Update.
15497 * printcmd.c (printf_command): Update.
15498 * event-loop.c (gdb_wait_for_event): Update.
15499 * linux-nat.c (sigchld_handler): Update.
15500 * remote-sim.c (gdb_os_write_stdout): Update.
15501 (gdb_os_flush_stdout): Update.
15502 (gdb_os_flush_stderr): Update.
15503 (gdb_os_write_stderr): Update.
15504 * exceptions.c (print_exception): Update.
15505 * remote-fileio.c (remote_fileio_func_read): Update.
15506 (remote_fileio_func_write): Update.
15507 * tui/tui.c (tui_enable): Update.
15508 * tui/tui-interp.c (tui_interp::init): Update.
15509 * utils.c (init_page_info): Update.
15510 (putchar_unfiltered, fputc_unfiltered): Update.
15511 (gdb_flush): Update.
15512 (emit_style_escape): Update.
15513 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15514 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15515 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15516 (stderr_file::write): Update.
15517 (stderr_file::puts): Update.
15518 * ui-file.h (ui_file_isatty, ui_file_write)
15519 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15520 (ui_file_puts): Don't declare.
15521
85f0dd3c
TV
155222020-02-10 Tom de Vries <tdevries@suse.de>
15523
15524 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15525 sentinel to char *.
15526
2e927613
TV
155272020-02-09 Tom de Vries <tdevries@suse.de>
15528
15529 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15530 filename if it matches "<artificial>".
15531
6bafc845
HD
155322020-02-09 Hannes Domani <ssbssa@yahoo.de>
15533
15534 * windows-tdep.c (struct enum_value_name): New struct.
15535 (create_enum): New function.
15536 (windows_get_siginfo_type): Create and use enum types.
15537
7928d571
HD
155382020-02-09 Hannes Domani <ssbssa@yahoo.de>
15539
15540 * NEWS: Mention $_siginfo support for Windows.
15541 * windows-nat.c (handle_exception): Set siginfo_er.
15542 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15543 (windows_xfer_siginfo): New function.
15544 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15545 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15546 (init_windows_gdbarch_data): New function.
15547 (get_windows_gdbarch_data): New function.
15548 (windows_get_siginfo_type): New function.
15549 (windows_init_abi): Register windows_get_siginfo_type.
15550 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15551
6751ebae
TT
155522020-02-08 Tom Tromey <tom@tromey.com>
15553
15554 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15555 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15556 <keep>: Declare method.
15557 <m_keep>: Remove member.
15558 <~cutu_reader>: Remove.
15559 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15560 (cutu_reader::cutu_reader): Update.
15561 (cutu_reader::keep): Rename from ~cutu_reader.
15562 (process_psymtab_comp_unit, build_type_psymtabs_1)
15563 (process_skeletonless_type_unit, load_partial_comp_unit)
15564 (load_full_comp_unit, dwarf2_read_addr_index)
15565 (read_signatured_type): Update.
15566
135f5437
TT
155672020-02-08 Tom Tromey <tom@tromey.com>
15568
15569 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15570 "want_partial_unit" parameter.
15571 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15572 Inline check for DW_TAG_partial_unit.
15573 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15574
9f66ff1c
TT
155752020-02-08 Tom Tromey <tom@tromey.com>
15576
15577 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15578 read.c.
15579 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15580 read.c.
15581
c8a7a66f
TT
155822020-02-08 Tom Tromey <tom@tromey.com>
15583
15584 * dwarf2/read.c (read_address): Move to comp-unit.c.
15585 (dwarf2_rnglists_process, dwarf2_ranges_process)
15586 (read_attribute_value, dwarf_decode_lines_1)
15587 (var_decode_location, decode_locdesc): Update.
15588 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15589 read.c. Remove "cu" parameter.
15590 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15591 method.
15592
8266302d
TT
155932020-02-08 Tom Tromey <tom@tromey.com>
15594
15595 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15596 (read_indirect_line_string): Update.
15597 * dwarf2/comp-unit.c (read_offset): Remove.
15598 (read_comp_unit_head): Update.
15599 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15600 method.
15601 (read_offset): Don't declare.
15602
4057dfde
TT
156032020-02-08 Tom Tromey <tom@tromey.com>
15604
15605 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15606 * dwarf2/read.c (struct comp_unit_head): Move to
15607 dwarf2/comp-unit.h.
15608 (enum class rcuh_kind): Move to comp-unit.h.
15609 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15610 (read_comp_unit_head, error_check_comp_unit_head)
15611 (read_and_check_comp_unit_head): Move to comp-unit.c.
15612 (read_offset, dwarf_unit_type_name): Likewise.
15613 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15614 (cutu_reader::cutu_reader, read_call_site_scope)
15615 (find_partial_die, follow_die_offset): Update.
15616 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15617
24aa364d
TT
156182020-02-08 Tom Tromey <tom@tromey.com>
15619
15620 * dwarf2/read.c (read_offset_1): Move to leb.c.
15621 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15622 (dwarf_decode_macro_bytes): Update.
15623 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15624 * dwarf2/leb.h (read_offset): Declare.
15625
2c7d5afc
TT
156262020-02-08 Tom Tromey <tom@tromey.com>
15627
15628 * dwarf2/read.c (dwarf2_section_size): Remove.
15629 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15630 Update.
15631 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15632
4075cb26
TT
156332020-02-08 Tom Tromey <tom@tromey.com>
15634
15635 * dwarf2/read.c (read_initial_length): Move to leb.c.
15636 * dwarf2/leb.h (read_initial_length): Declare.
15637 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15638 handle_nonstd parameter.
15639 * dwarf2/frame.c (read_initial_length): Remove.
15640 (decode_frame_entry_1): Update.
15641
09ba997f
TT
156422020-02-08 Tom Tromey <tom@tromey.com>
15643
15644 * dwarf2/loc.c (dwarf2_find_location_expression)
15645 (dwarf_evaluate_loc_desc::get_tls_address)
15646 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15647 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15648 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15649 (dwarf2_compile_property_to_c)
15650 (dwarf2_loc_desc_get_symbol_read_needs)
15651 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15652 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15653 (loclist_describe_location, loclist_tracepoint_var_ref)
15654 (loclist_generate_c_location): Update.
15655 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15656 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15657 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15658 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15659 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15660 (dwarf2_per_cu_data::addr_size)
15661 (dwarf2_per_cu_data::ref_addr_size)
15662 (dwarf2_per_cu_data::text_offset)
15663 (dwarf2_per_cu_data::addr_type): Now methods.
15664 (per_cu_header_read_in): Make per_cu "const".
15665 (dwarf2_version): Remove.
15666 (dwarf2_per_cu_data::int_type): Now a method.
15667 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15668 (set_die_type, read_array_type, read_subrange_index_type)
15669 (read_tag_string_type, read_subrange_type): Update.
15670 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15671 offset_size, ref_addr_size, text_offset, addr_type, version,
15672 objfile, int_type, addr_sized_int_type>: Declare methods.
15673
96c738c0
TT
156742020-02-08 Tom Tromey <tom@tromey.com>
15675
15676 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15677 Move earlier.
15678
8fdd972c
TT
156792020-02-08 Tom Tromey <tom@tromey.com>
15680
15681 * dwarf2/read.h (dwarf_line_debug): Declare.
15682 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15683 * dwarf2/read.c: Move line_header code to new files.
15684 (dwarf_line_debug): No longer static.
15685 * dwarf2/line-header.c: New file.
15686 * dwarf2/line-header.h: New file.
15687
03075812
TT
156882020-02-08 Tom Tromey <tom@tromey.com>
15689
15690 * dwarf2/read.c (struct line_header) <file_full_name,
15691 file_file_name>: Return unique_xmalloc_ptr.
15692 (line_header::file_file_name): Update.
15693 (line_header::file_full_name): Update.
15694 (dw2_get_file_names_reader): Update.
15695 (macro_start_file): Update.
15696
bb822404
TT
156972020-02-08 Tom Tromey <tom@tromey.com>
15698
15699 * dwarf2/read.c (struct line_header) <file_full_name,
15700 file_file_name>: Declare methods.
15701 (dw2_get_file_names_reader): Update.
15702 (file_file_name): Now a method.
15703 (file_full_name): Likewise.
15704 (macro_start_file): Update.
15705
009b64fc
TT
157062020-02-08 Tom Tromey <tom@tromey.com>
15707
15708 * dwarf2/read.c (dwarf_always_disassemble)
15709 (show_dwarf_always_disassemble): Move to loc.c.
15710 (_initialize_dwarf2_read): Move "always-disassemble" registration
15711 to loc.c.
15712 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15713 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15714 static.
15715 (show_dwarf_always_disassemble): Move from read.c.
15716 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15717
5895093f
TT
157182020-02-08 Tom Tromey <tom@tromey.com>
15719
15720 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15721 (create_quick_file_names_table): Return htab_up.
15722 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15723 Update.
15724 * dwarf2/read.h (struct dwarf2_per_objfile)
15725 <quick_file_names_table>: Now htab_up.
15726
b3b32279
TT
157272020-02-08 Tom Tromey <tom@tromey.com>
15728
15729 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15730
1d33d811
TT
157312020-02-08 Tom Tromey <tom@tromey.com>
15732
15733 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15734 Rewrite.
15735 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15736 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15737 (abbrev_table::abbrev_table): No longer inline.
15738 (ABBREV_HASH_SIZE): Remove.
15739 (abbrev_table::m_abbrevs): Now an htab_up.
15740
86de1d91
TT
157412020-02-08 Tom Tromey <tom@tromey.com>
15742
15743 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15744 (cutu_reader): Update.
15745 (build_type_psymtabs_1): Update.
15746 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15747 (abbrev_table::alloc_abbrev): Update.
15748 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15749 (abbrev_table::read): New static method, renamed from
15750 abbrev_table_read_table.
15751 (abbrev_table::alloc_abbrev)
15752 (abbrev_table::add_abbrev): Now private.
15753 (abbrev_table::abbrev_table): Now private.
15754 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15755
0335378b
TT
157562020-02-08 Tom Tromey <tom@tromey.com>
15757
15758 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15759 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15760 htab_up.
15761
48b490f2
TT
157622020-02-08 Tom Tromey <tom@tromey.com>
15763
15764 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15765 htab_up.
15766 (lookup_dwo_unit_in_dwp): Update.
15767 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15768 on obstack.
15769
bc68fb19
TT
157702020-02-08 Tom Tromey <tom@tromey.com>
15771
15772 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15773 obstack.
15774
d15acc42
TT
157752020-02-08 Tom Tromey <tom@tromey.com>
15776
15777 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15778 line_header_hash.
15779 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15780 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15781 Change type to htab_up.
15782
eaa5fa8b
TT
157832020-02-08 Tom Tromey <tom@tromey.com>
15784
15785 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15786 htab_up. Don't allocate on obstack.
15787 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15788 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15789 Change type to htab_up.
15790
b0b6a987
TT
157912020-02-08 Tom Tromey <tom@tromey.com>
15792
15793 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15794 Change type to htab_up.
15795 * dwarf2/read.c (create_signatured_type_table_from_index)
15796 (create_signatured_type_table_from_debug_names)
15797 (create_all_type_units, add_type_unit)
15798 (lookup_dwo_signatured_type, lookup_signatured_type)
15799 (process_skeletonless_type_unit): Update.
15800 (create_debug_type_hash_table, create_debug_types_hash_table):
15801 Change type of types_htab.
15802 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15803 htab_up. Don't allocate on obstack.
15804 (create_cus_hash_table): Change type of cus_htab parameter.
15805 (struct dwo_file) <cus, tus>: Now htab_up.
15806 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15807 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15808 (queue_and_load_all_dwo_tus): Update.
15809 * dwarf2/index-write.c (write_gdbindex): Update.
15810 (write_debug_names): Update.
15811
39856def
TT
158122020-02-08 Tom Tromey <tom@tromey.com>
15813
15814 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15815 dwarf2/read.c. Remove "next" member. Add constructor ntad
15816 destructor.
15817 (struct dwarf2_per_objfile) <queue>: New member.
15818 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15819 dwarf2/read.h.
15820 (dwarf2_queue, dwarf2_queue_tail): Remove.
15821 (class dwarf2_queue_guard): Add parameter to constructor. Use
15822 DISABLE_COPY_AND_ASSIGN.
15823 <m_per_objfile>: New member.
15824 <~dwarf2_queue_guard>: Rewrite.
15825 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15826 Update.
15827 (~dwarf2_queue_item): New.
15828
3e225074
TT
158292020-02-08 Tom Tromey <tom@tromey.com>
15830
15831 * dwarf2/read.c (struct die_info) <has_children>: New member.
15832 (dw2_get_file_names_reader): Remove has_children.
15833 (dw2_get_file_names): Update.
15834 (read_cutu_die_from_dwo): Remove has_children.
15835 (cutu_reader::init_tu_and_read_dwo_dies)
15836 (cutu_reader::cutu_reader): Update.
15837 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15838 Remove has_children.
15839 (build_type_psymtabs_1, process_skeletonless_type_unit)
15840 (load_partial_comp_unit, load_full_comp_unit): Update.
15841 (create_dwo_cu_reader): Remove has_children.
15842 (create_cus_hash_table, read_die_and_children): Update.
15843 (read_full_die_1,read_full_die): Remove has_children.
15844 (read_signatured_type): Update.
15845 (class cutu_reader) <has_children>: Remove.
15846
82ca8957
TT
158472020-02-08 Tom Tromey <tom@tromey.com>
15848
15849 * dwarf2/expr.c: Rename from dwarf2expr.c.
15850 * dwarf2/expr.h: Rename from dwarf2expr.h.
15851 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15852 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15853 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15854 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15855 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15856 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15857 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15858 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15859 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15860 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15861 * dwarf2/loc.c: Rename from dwarf2loc.c.
15862 * dwarf2/loc.h: Rename from dwarf2loc.h.
15863 * dwarf2/read.c: Rename from dwarf2read.c.
15864 * dwarf2/read.h: Rename from dwarf2read.h.
15865 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15866 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15867 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15868 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15869 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15870 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15871 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15872 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15873 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15874 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15875 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15876 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15877 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15878 Update.
15879 * Makefile.in (COMMON_SFILES): Update.
15880 (HFILES_NO_SRCDIR): Update.
15881
9e35d499
TT
158822020-02-08 Tom Tromey <tom@tromey.com>
15883
15884 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15885 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15886
1eba2311
TT
158872020-02-08 Tom Tromey <tom@tromey.com>
15888
15889 * dwarf2read.h (struct die_info): Don't declare.
15890
e41c2da2
TT
158912020-02-08 Tom Tromey <tom@tromey.com>
15892
15893 * dwarf2read.h (die_info_ptr): Remove typedef.
15894
4fc6c0d5
TT
158952020-02-08 Tom Tromey <tom@tromey.com>
15896
15897 * dwarf2read.c (read_call_site_scope)
15898 (handle_data_member_location, dwarf2_add_member_fn)
15899 (mark_common_block_symbol_computed, read_common_block)
15900 (attr_to_dynamic_prop, partial_die_info::read)
15901 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15902 (dwarf2_symbol_mark_computed, set_die_type): Update.
15903 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15904 method.
15905 (attr_form_is_block): Don't declare.
15906 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15907
cd6c91b4
TT
159082020-02-08 Tom Tromey <tom@tromey.com>
15909
15910 * dwarf2read.c (dwarf2_find_base_address, )
15911 (read_call_site_scope, rust_containing_type)
15912 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15913 (handle_data_member_location, dwarf2_add_member_fn)
15914 (get_alignment, read_structure_type, process_structure_scope)
15915 (mark_common_block_symbol_computed, read_common_block)
15916 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15917 (partial_die_info::read, read_attribute_value, new_symbol)
15918 (lookup_die_type, dwarf2_get_ref_die_offset)
15919 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15920 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15921 (dwarf2_symbol_mark_computed): Update.
15922 * dwarf2/attribute.h (struct attribute) <value_as_address,
15923 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15924 methods.
15925 (value_as_address, attr_form_is_section_offset)
15926 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15927 * dwarf2/attribute.c (attribute::value_as_address)
15928 (attribute::form_is_section_offset, attribute::form_is_constant)
15929 (attribute::form_is_ref): Now methods.
15930
162dce55
TT
159312020-02-08 Tom Tromey <tom@tromey.com>
15932
15933 * dwarf2read.c (struct attribute, DW_STRING)
15934 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15935 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15936 (attr_form_is_block, attr_form_is_section_offset)
15937 (attr_form_is_constant, attr_form_is_ref): Move.
15938 * dwarf2/attribute.h: New file.
15939 * dwarf2/attribute.c: New file, from dwarf2read.c.
15940 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15941
3054dd54
TT
159422020-02-08 Tom Tromey <tom@tromey.com>
15943
15944 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15945 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15946 Move.
15947 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15948 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15949 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15950 abbrev.c.
15951 * dwarf2/abbrev.h: New file.
15952 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15953 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15954
96b79293
TT
159552020-02-08 Tom Tromey <tom@tromey.com>
15956
15957 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15958 (dwarf2_section_size, dwarf2_get_section_info)
15959 (create_signatured_type_table_from_debug_names)
15960 (create_addrmap_from_aranges, read_debug_names_from_section)
15961 (get_gdb_index_contents_from_section, read_comp_unit_head)
15962 (error_check_comp_unit_head, read_abbrev_offset)
15963 (create_debug_type_hash_table, init_cu_die_reader)
15964 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15965 (read_comp_units_from_section, create_cus_hash_table)
15966 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15967 (create_dwp_v2_section, dwarf2_rnglists_process)
15968 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15969 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15970 (read_indirect_string_from_dwz, read_addr_index_1)
15971 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15972 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15973 (fill_in_loclist_baton): Update.
15974 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15975 get_containing_section, get_bfd_owner, get_bfd_section,
15976 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15977 (dwarf2_read_section, get_section_name, get_section_file_name)
15978 (get_containing_section, get_section_bfd_owner)
15979 (get_section_bfd_section, get_section_name, get_section_file_name)
15980 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15981 declare.
15982 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15983 (dwarf2_section_info::get_bfd_owner)
15984 (dwarf2_section_info::get_bfd_section)
15985 (dwarf2_section_info::get_name)
15986 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15987 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15988 (dwarf2_section_info::read): Now methods.
15989 * dwarf-index-write.c (class debug_names): Update.
15990
2c86cff9
TT
159912020-02-08 Tom Tromey <tom@tromey.com>
15992
15993 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15994 Move to dwarf2/section.h.
15995 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15996 (get_section_bfd_section, get_section_name)
15997 (get_section_file_name, get_section_id, get_section_flags)
15998 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15999 dwarf2/section.c.
16000 * dwarf2/section.h: New file.
16001 * dwarf2/section.c: New file, from dwarf2read.c.
16002 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16003
f4382c45
TT
160042020-02-08 Tom Tromey <tom@tromey.com>
16005
16006 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16007 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16008 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16009 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16010 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16011 * dwarf2/leb.h: New file, from dwarf2read.c.
16012 * dwarf2/leb.c: New file, from dwarf2read.c.
16013 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16014 Remove.
16015 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16016 (COMMON_SFILES): Add dwarf2/leb.c.
16017
01840b7a
JB
160182020-02-08 Joel Brobecker <brobecker@adacore.com>
16019
16020 GDB 9.1 released.
16021
dfcb27e4
IB
160222020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16023
16024 PR gdb/25190:
aac66a4c
SM
16025 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16026 * gdb/remote.c (remote_console_output): Update.
16027 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16028 (ui_file_puts): ...this.
16029 * gdb/ui-file.h (ui_file_puts): Add declaration.
16030 * gdb/utils.c (emit_style_escape): Update.
16031 (flush_wrap_buffer): Update.
16032 (fputs_maybe_filtered): Update.
16033 (fputs_unfiltered): Add function.
dfcb27e4 16034
faa17681
IB
160352020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16036
aac66a4c
SM
16037 * gdb/event-loop.c (gdb_wait_for_event): Update.
16038 * gdb/printcmd.c (printf_command): Update.
16039 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16040 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16041 (gdb_os_flush_stderr): Update.
16042 * gdb/remote.c (remote_console_output): Update.
16043 * gdb/ui-file.c (gdb_flush): Rename to...
16044 (ui_file_flush): ...this.
16045 (stderr_file::write): Update.
16046 (stderr_file::puts): Update.
16047 * gdb/ui-file.h (gdb_flush): Rename to...
16048 (ui_file_flush): ...this.
16049 * gdb/utils.c (gdb_flush): Add function.
16050 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 16051
5abbbe1d
TT
160522020-02-07 Tom Tromey <tromey@adacore.com>
16053
16054 PR breakpoints/24915:
16055 * source.c (find_and_open_source): Do not check basenames_may_differ.
16056
919adfe8
TT
160572020-02-07 Tom Tromey <tom@tromey.com>
16058
16059 * README: Update gdbserver documentation.
16060 * gdbserver: Move to top level.
16061 * configure.tgt (build_gdbserver): Remove.
16062 * configure.ac: Remove --enable-gdbserver.
16063 * configure: Rebuild.
16064 * Makefile.in (distclean): Don't mention gdbserver.
16065
1d5d29e7
SV
160662020-02-06 Shahab Vahedi <shahab@synopsys.com>
16067
16068 * source-cache.c (source_cache::ensure): Surround
16069 get_plain_source_lines with a try/catch.
16070 (source_cache::get_line_charpos): Get rid of try/catch
16071 and only check for the return value of "ensure".
16072 * tui/tui-source.c (tui_source_window::set_contents):
16073 Simplify "nlines" calculation.
16074
6eb1129c
SV
160752020-02-06 Shahab Vahedi <shahab@synopsys.com>
16076
16077 * MAINTAINERS (Write After Approval): Add myself.
16078
c6a42d11
CB
160792020-02-05 Christian Biesinger <cbiesinger@google.com>
16080
16081 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16082 function call.
16083
c8ecdda6
CB
160842020-02-05 Christian Biesinger <cbiesinger@google.com>
16085
16086 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16087
f6480e70
MR
160882020-02-05 Maciej W. Rozycki <macro@wdc.com>
16089
16090 * nat/riscv-linux-tdesc.h: New file.
16091 * nat/riscv-linux-tdesc.c: New file, taking code from...
16092 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16093 ... here.
16094 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16095 NATDEPFILES.
16096
dcc9fbc6
AB
160972020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16098
16099 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16100 we don't set the fake simulator ptid to the null_ptid.
16101
719546c4
SM
161022020-02-03 Simon Marchi <simon.marchi@efficios.com>
16103
16104 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16105 * gdbthread.h (class thread_info) <resumed>: Likewise.
16106 * infrun.c (resume_1): Likewise.
16107 (proceed): Likewise.
16108 (infrun_thread_stop_requested): Likewise.
16109 (stop_all_threads): Likewise.
16110 (handle_inferior_event): Likewise.
16111 (restart_threads): Likewise.
16112 (finish_step_over): Likewise.
16113 (keep_going_stepped_thread): Likewise.
16114 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16115 (linux_handle_extended_wait): Likewise.
16116 * record-btrace.c (get_thread_current_frame_id): Likewise.
16117 * record-full.c (record_full_wait_1): Likewise.
16118 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16119 * target.c (target_resume): Likewise.
16120 * thread.c (set_running_thread): Likewise.
16121
e409c542
AKS
161222020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16123
16124 * f-valprint.c (f77_print_array_1): Changed datatype of index
16125 variable to LONGEST from int to enable it to contain bound
16126 values correctly.
16127
ee98c0da
MR
161282020-02-03 Maciej W. Rozycki <macro@wdc.com>
16129
16130 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16131 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16132 offsets according to FLEN determined.
16133 (riscv_linux_nat_target::read_description): Determine FLEN
16134 dynamically.
16135 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16136 according to FLEN determined.
16137 (riscv_linux_nat_target::store_registers): Likewise.
16138
aa66aac4
SV
161392020-02-01 Shahab Vahedi <shahab@synopsys.com>
16140
16141 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16142 when reg->group is empty and reggroup is not.
16143
fd9faca8
TT
161442020-01-31 Tom Tromey <tromey@adacore.com>
16145
16146 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16147 Call beneath target's mourn_inferior after unpushing.
16148
42330a68
AB
161492020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16150
16151 PR tui/9765
16152 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16153 have enough lines to fill the screen, still return the lowest
16154 address we found.
16155
7a27a45b
AB
161562020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16157
16158 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16159 '-', '<', and '>' commands.
16160
c47f70e2
PA
161612020-01-29 Pedro Alves <palves@redhat.com>
16162 Sergio Durigan Junior <sergiodj@redhat.com>
16163
16164 * infcmd.c (construct_inferior_arguments): Assert that
16165 'argc' is greater than 0.
16166
5133a315
LM
161672020-01-29 Luis Machado <luis.machado@linaro.org>
16168
16169 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16170 (BRK_INSN_MASK): Define to 0xd4200000.
16171 (aarch64_program_breakpoint_here_p): New function.
16172 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16173 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16174 breakpoint.c.
16175 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16176 breakpoint.h
16177 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16178 call gdbarch_program_breakpoint_here_p.
16179 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16180 default_program_breakpoint_here_p, changed return type to bool and
16181 simplified.
16182 * breakpoint.h (program_breakpoint_here): Moved prototype to
16183 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16184 return type to bool.
16185 * gdbarch.c: Regenerate.
16186 * gdbarch.h: Regenerate.
16187 * gdbarch.sh (program_breakpoint_here_p): New method.
16188 * infrun.c (handle_signal_stop): Call
16189 gdbarch_program_breakpoint_here_p.
16190
168f8c6b
TT
161912020-01-26 Tom Tromey <tom@tromey.com>
16192
16193 * ctfread.c (struct ctf_fp_info): Reindent.
16194 (_initialize_ctfread): Remove.
16195
128a391f
TT
161962020-01-26 Tom Tromey <tom@tromey.com>
16197
16198 * psymtab.c (partial_map_expand_apply)
16199 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16200 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16201 (psym_print_stats, psym_expand_symtabs_for_function)
16202 (psym_map_symbol_filenames, psym_map_matching_symbols)
16203 (psym_expand_symtabs_matching)
16204 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16205 (maintenance_check_psymtabs): Use new methods.
16206 * psympriv.h (struct partial_symtab) <readin_p,
16207 get_compunit_symtab>: New methods.
16208 <readin, compunit_symtab>: Remove members.
16209 (struct standard_psymtab): New.
16210 (struct legacy_psymtab): Derive from standard_psymtab.
16211 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16212 standard_psymtab.
16213 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16214
0494dbec
TT
162152020-01-26 Tom Tromey <tom@tromey.com>
16216
16217 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16218 read_dependencies. Add assert.
16219 * psymtab.c (partial_symtab::read_dependencies): New method.
16220 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16221 method.
16222 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16223 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16224 read_dependencies.
16225 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16226 Add assert.
16227
8566b89b
TT
162282020-01-26 Tom Tromey <tom@tromey.com>
16229
16230 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16231 Call expand_psymtab.
16232 (xcoff_read_symtab): Call expand_psymtab.
16233 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16234 legacy_expand_psymtab.
16235 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16236 method.
16237 (struct legacy_psymtab) <expand_psymtab>: Implement.
16238 <legacy_expand_psymtab>: New member.
16239 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16240 (parse_partial_symbols): Set legacy_expand_psymtab.
16241 (psymtab_to_symtab_1): Change argument order. Call
16242 expand_psymtab.
16243 (new_psymtab): Set legacy_expand_psymtab.
16244 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16245 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16246 expand_psymtab.
16247 (dwarf2_psymtab::expand_psymtab): Rename from
16248 psymtab_to_symtab_1. Call expand_psymtab.
16249 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16250 (dbx_end_psymtab): Likewise.
16251 (dbx_psymtab_to_symtab_1): Change argument order. Call
16252 expand_psymtab.
16253 (dbx_read_symtab): Call expand_psymtab.
16254 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16255 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16256 (ctf_psymtab::read_symtab): Call expand_psymtab.
16257
077cbab2
TT
162582020-01-26 Tom Tromey <tom@tromey.com>
16259
16260 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16261 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16262 messages.
16263 * mdebugread.c (mdebug_read_symtab): Remove prints.
16264 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16265 assert.
16266 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16267
891813be
TT
162682020-01-26 Tom Tromey <tom@tromey.com>
16269
16270 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16271 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16272 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16273 legacy_symtab.
16274 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16275 * psymtab.c (psymtab_to_symtab): Call method.
16276 (dump_psymtab): Update.
16277 * psympriv.h (struct partial_symtab): Add virtual destructor.
16278 <read_symtab>: New method.
16279 (struct legacy_symtab): New.
16280 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16281 (struct pst_map) <pst>: Now a legacy_psymtab.
16282 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16283 (new_psymtab): Use legacy_psymtab.
16284 * dwarf2read.h (struct dwarf2_psymtab): New.
16285 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16286 * dwarf2read.c (dwarf2_create_include_psymtab)
16287 (dwarf2_build_include_psymtabs, create_type_unit_group)
16288 (create_partial_symtab, process_psymtab_comp_unit_reader)
16289 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16290 (set_partial_user): Use dwarf2_psymtab.
16291 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16292 (psymtab_to_symtab_1, process_full_comp_unit)
16293 (process_full_type_unit, dwarf2_ranges_read)
16294 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16295 (dwarf_decode_lines): Use dwarf2_psymtab.
16296 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16297 (add_address_entry_worker, write_one_signatured_type)
16298 (recursively_count_psymbols, recursively_write_psymbols)
16299 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16300 (write_debug_names): Likewise.
16301 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16302 <pst>: Now a legacy_psymtab.
16303 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16304 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16305 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16306 * ctfread.c (struct ctf_psymtab): New.
16307 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16308 ctf_psymtab.
16309 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16310 (create_partial_symtab): Return a ctf_psymtab.
16311 (scan_partial_symbols): Update.
16312
c3693a1d
TT
163132020-01-26 Tom Tromey <tom@tromey.com>
16314
16315 * xcoffread.c (xcoff_start_psymtab): Use new.
16316 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16317 renamed from start_psymtab_common.
16318 * psympriv.h (struct partial_symtab): Add new constructor.
16319 (start_psymtab_common): Don't declare.
16320 * mdebugread.c (parse_partial_symbols): Use new.
16321 * dwarf2read.c (create_partial_symtab): Use new.
16322 * dbxread.c (start_psymtab): Use new.
16323 * ctfread.c (create_partial_symtab): Use new.
16324
32caafd0
TT
163252020-01-26 Tom Tromey <tom@tromey.com>
16326
16327 * xcoffread.c (xcoff_end_psymtab): Use new.
16328 * psymtab.c (start_psymtab_common): Use new.
16329 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16330 Update.
16331 * psympriv.h (struct partial_symtab): Add parameters to
16332 constructor. Don't inline.
16333 (allocate_psymtab): Don't declare.
16334 * mdebugread.c (new_psymtab): Use new.
16335 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16336 * dbxread.c (dbx_end_psymtab): Use new.
16337
abaa2f23
TT
163382020-01-26 Tom Tromey <tom@tromey.com>
16339
16340 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16341 allocate_psymtab. Update documentation.
16342 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16343 allocate_psymtab. Do not use new.
16344 (allocate_psymtab): Use new. Update.
16345
6d94535f
TT
163462020-01-26 Tom Tromey <tom@tromey.com>
16347
16348 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16349 * psymtab.c (psym_print_stats): Update.
16350 * psympriv.h (struct partial_symtab) <readin,
16351 psymtabs_addrmap_supported, anonymous>: Now bool.
16352 * mdebugread.c (psymtab_to_symtab_1): Update.
16353 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16354 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16355 (process_full_comp_unit, process_full_type_unit): Update.
16356 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16357 * ctfread.c (psymtab_to_symtab): Update.
16358
6f17252b
TT
163592020-01-26 Tom Tromey <tom@tromey.com>
16360
16361 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16362 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16363 * psymtab.c (psymtab_storage): Delete psymtabs.
16364 (psymtab_storage::allocate_psymtab): Use new.
16365 (psymtab_storage::discard_psymtab): Use delete.
16366 * psympriv.h (struct partial_symtab): Add constructor and
16367 initializers.
16368
f6f1cebc
TT
163692020-01-26 Tom Tromey <tom@tromey.com>
16370
16371 * machoread.c: Do not include psympriv.h.
16372
e47e48f6
PW
163732020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16374
16375 * NEWS: Mention the new option and the set/show commands.
16376
a2fedca9
PW
163772020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16378
16379 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16380 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16381 (validate_exec_file): New variables, enums, functions.
16382 (exec_file_locate_attach, print_section_info): Style the filenames.
16383 (_initialize_exec): Install show_exec_file_mismatch_command and
16384 set_exec_file_mismatch_command.
16385 * gdbcore.h (validate_exec_file): Declare.
16386 * infcmd.c (attach_command): Call validate_exec_file.
16387 * remote.c ( remote_target::remote_add_inferior): Likewise.
16388
7ffa82e1
AB
163892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16390
16391 * frame.c (find_frame_sal): Move call to get_next_frame into more
16392 inner scope.
16393 * inline-frame.c (inilne_state) <inline_state>: Update argument
16394 types.
16395 (inilne_state) <skipped_symbol>: Rename to...
16396 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16397 (skip_inline_frames): Build vector of skipped symbols and use this
16398 to reate the inline_state.
16399 (inline_skipped_symbol): Add a comment and some assertions, fetch
16400 skipped symbol from the list.
16401
3d92a3e3
AB
164022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16403
16404 * buildsym.c (lte_is_less_than): Delete.
16405 (buildsym_compunit::end_symtab_with_blockvector): Create local
16406 lambda function to sort line table entries, and use
16407 std::stable_sort instead of std::sort.
16408 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16409 markers when looking for a previous line.
16410
94a72be7
AB
164112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16412
16413 * dwarf2read.c (lnp_state_machine::record_line): Include
16414 end_sequence parameter in debug print out. Record the line if we
16415 are at an end_sequence marker even if it's not the start of a
16416 statement.
16417 * symmisc.c (maintenance_print_one_line_table): Print end of
16418 sequence markers with 'END' not '0'.
16419
53af73bf
PA
164202020-01-24 Pedro Alves <palves@redhat.com>
16421
16422 PR gdb/25410
16423 * thread.c (scoped_restore_current_thread::restore): Use
16424 switch_to_inferior_no_thread.
16425 * exec.c: Include "progspace-and-thread.h".
16426 (add_target_sections, remove_target_sections):
16427 scoped_restore_current_pspace_and_thread instead of
16428 scoped_restore_current_thread.
16429 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16430 and aspace to the inferior before calling clone_program_space.
16431 Remove stale comment.
16432
3050c6f4
CB
164332020-01-24 Christian Biesinger <cbiesinger@google.com>
16434
16435 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16436 (arm_netbsd_nat_target::fetch_registers): ...this.
16437 (arm_nbsd_nat_target::store_registers): Rename to...
16438 (arm_netbsd_nat_target::store_registers): ...this.
16439
73685c7e
CB
164402020-01-24 Christian Biesinger <cbiesinger@google.com>
16441
16442 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16443 register_t.
16444
89203d40
CB
164452020-01-24 Christian Biesinger <cbiesinger@google.com>
16446
16447 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16448 Update comment.
16449 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16450 Likewise.
16451 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16452 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16453 the correct replacement (iterate_over_regset_sections).
16454 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16455 Update comment.
16456
1ba1ac88
AB
164572020-01-24 Graham Markall <graham.markall@embecosm.com>
16458
16459 PR gdb/23718
16460 * gdb/python/python.c (execute_gdb_command): Call
16461 async_enable_stdin in catch block.
16462
f3364a6d
AB
164632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16464
16465 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16466 SWITCH_THRU_ALL_UIS.
16467
733d0a67
AB
164682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16469
16470 PR tui/9765
16471 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16472 comment, add extra parameter, and update to store previous symbol
16473 when appropriate.
16474 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16475 add extra parameter.
16476 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16477 remove unneeded parameter, add try/catch around gdb_print_insn,
16478 rewrite to add items to asm_lines vector.
16479 (tui_find_backward_disassembly_start_address): New function.
16480 (tui_find_disassembly_address): Updated throughout.
16481 (tui_disasm_window::set_contents): Update for changes to
16482 tui_disassemble.
16483 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16484 number of lines to scroll.
16485
b3b3bada
SM
164862020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16487
16488 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16489 (SECT_OFF_DATA): Likewise.
16490 (SECT_OFF_RODATA): Likewise.
16491 (SECT_OFF_TEXT): Likewise.
16492 (SECT_OFF_BSS): Likewise.
16493 (struct objfile) <text_section_offset, data_section_offset>: New
16494 methods.
16495 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16496 objfile::text_section_offset.
16497 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16498 * coffread.c (coff_symtab_read): Likewise.
16499 (enter_linenos): Likewise.
16500 (process_coff_symbol): Likewise.
16501 * ctfread.c (get_objfile_text_range): Likewise.
16502 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16503 Use objfile::data_section_offset.
16504 * dwarf2-frame.c (execute_cfa_program): Use
16505 objfile::text_section_offset.
16506 (dwarf2_frame_find_fde): Likewise.
16507 * dwarf2read.c (create_addrmap_from_index): Likewise.
16508 (create_addrmap_from_aranges): Likewise.
16509 (dw2_find_pc_sect_compunit_symtab): Likewise.
16510 (process_psymtab_comp_unit_reader): Likewise.
16511 (add_partial_symbol): Likewise.
16512 (add_partial_subprogram): Likewise.
16513 (process_full_comp_unit): Likewise.
16514 (read_file_scope): Likewise.
16515 (read_func_scope): Likewise.
16516 (read_lexical_block_scope): Likewise.
16517 (read_call_site_scope): Likewise.
16518 (dwarf2_rnglists_process): Likewise.
16519 (dwarf2_ranges_process): Likewise.
16520 (dwarf2_ranges_read): Likewise.
16521 (dwarf_decode_lines_1): Likewise.
16522 (new_symbol): Likewise.
16523 (dwarf2_fetch_die_loc_sect_off): Likewise.
16524 (dwarf2_per_cu_text_offset): Likewise.
16525 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16526 * hppa-tdep.c (read_unwind_info): Likewise.
16527 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16528 * psympriv.h (struct partial_symtab): Likewise.
16529 * psymtab.c (find_pc_sect_psymtab): Likewise.
16530 * solib-svr4.c (enable_break): Likewise.
16531 * stap-probe.c (relocate_address): Use
16532 objfile::data_section_offset.
16533 * xcoffread.c (enter_line_range): Use
16534 objfile::text_section_offset.
16535 (read_xcoff_symtab): Likewise.
16536
ab53f382
SM
165372020-01-23 Simon Marchi <simon.marchi@efficios.com>
16538
16539 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16540 declaration to narrower scopes.
16541
e7eee665
SM
165422020-01-23 Simon Marchi <simon.marchi@efficios.com>
16543
16544 * darwin-nat.h (struct darwin_exception_msg, enum
16545 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16546 Move up.
16547 (class darwin_nat_target) <wait_1, check_new_threads,
16548 decode_exception_message, decode_message, stop_inferior,
16549 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16550 * darwin-nat.c (darwin_check_new_threads): Rename to...
16551 (darwin_nat_target::check_new_threads): ... this.
16552 (darwin_suspend_inferior_it): Remove.
16553 (darwin_decode_exception_message): Rename to...
16554 (darwin_nat_target::decode_exception_message): ... this.
16555 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16556 (darwin_decode_message): Rename to...
16557 (darwin_nat_target::decode_message): ... this.
16558 (cancel_breakpoint): Rename to...
16559 (darwin_nat_target::cancel_breakpoint): ... this.
16560 (darwin_wait): Rename to...
16561 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16562 instead of iterate_over_inferiors.
16563 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16564 (darwin_stop_inferior): Rename to...
16565 (darwin_nat_target::stop_inferior): ... this.
16566 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16567 (darwin_init_thread_list): Rename to...
16568 (darwin_nat_target::init_thread_list): ... this.
16569 (darwin_ptrace_him): Rename to...
16570 (darwin_nat_target::ptrace_him): ... this.
16571 (darwin_nat_target::create_inferior): Pass lambda function to
16572 fork_inferior.
16573 (darwin_nat_target::detach): Call stop_inferior instead of
16574 darwin_stop_inferior.
16575 * fork-inferior.h (fork_inferior): Change init_trace_fun
16576 parameter to gdb::function_view.
16577 * fork-inferior.c (fork_inferior): Likewise.
16578
c162ed3e
HD
165792020-01-23 Hannes Domani <ssbssa@yahoo.de>
16580
16581 * i386-cygwin-tdep.c (core_process_module_section): Update.
16582 * windows-nat.c (struct lm_info_windows): Add text_offset.
16583 (windows_xfer_shared_libraries): Update.
16584 * windows-tdep.c (windows_xfer_shared_library):
16585 Add text_offset_cached argument.
16586 * windows-tdep.h (windows_xfer_shared_library): Update.
16587
a1237872
SM
165882020-01-21 Simon Marchi <simon.marchi@efficios.com>
16589
16590 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16591
b3ee6dd9
SM
165922020-01-21 Simon Marchi <simon.marchi@efficios.com>
16593
16594 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16595 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16596 replace with range-based for.
16597 (gdbsim_interrupt_inferior): Remove.
16598 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16599 with a range-based for. Inline code from
16600 gdbsim_interrupt_inferior.
16601
f9fac3c8
SM
166022020-01-21 Simon Marchi <simon.marchi@efficios.com>
16603
16604 * infrun.c (proceed): Fix indentation.
16605
f6474de9
TT
166062020-01-21 Tom Tromey <tromey@adacore.com>
16607
16608 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16609 * python/python.c (python_extension_ops): Update.
16610 (gdbpy_colorize): New function.
16611 * python/lib/gdb/__init__.py (colorize): New function.
16612 * extension.h (ext_lang_colorize): Declare.
16613 * extension.c (ext_lang_colorize): New function.
16614 * extension-priv.h (struct extension_language_ops) <colorize>: New
16615 member.
16616 * cli/cli-style.c (_initialize_cli_style): Update help text.
16617
f0c702d4
LM
166182020-01-21 Luis Machado <luis.machado@linaro.org>
16619
16620 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16621 <cond>: Change type to bool.
16622 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16623 (aarch64_displaced_step_cb): Likewise.
16624 (aarch64_displaced_step_tb): Likewise.
16625
1ab139e5
LM
166262020-01-21 Luis Machado <luis.machado@linaro.org>
16627
16628 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16629 output.
16630
0c271889
LM
166312020-01-21 Luis Machado <luis.machado@linaro.org>
16632
16633 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16634 <pc_adjust>: Adjust the documentation.
16635 (aarch64_displaced_step_fixup): Check if PC really moved before
16636 adjusting it.
16637
4d89c1c7
TT
166382020-01-19 Tom Tromey <tom@tromey.com>
16639
16640 * disasm.c (~gdb_disassembler): New destructor.
16641 (gdb_buffered_insn_length): Call disassemble_free_target.
16642 * disasm.h (class gdb_disassembler): Declare destructor. Use
16643 DISABLE_COPY_AND_ASSIGN.
16644
c0ab21c2
TT
166452020-01-19 Tom Tromey <tom@tromey.com>
16646
16647 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16648 (die_reader_func_ftype): Remove.
16649 (cutu_reader): New class.
16650 (dw2_get_file_names_reader): Remove "data" parameter.
16651 (dw2_get_file_names): Use cutu_reader.
16652 (create_debug_type_hash_table): Update.
16653 (read_cutu_die_from_dwo): Update comment.
16654 (lookup_dwo_unit): Add dwo_name parameter.
16655 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16656 die_reader_func_ftype and data parameters.
16657 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16658 Remove die_reader_func_ftype and data parameters.
16659 (~cutu_reader): New; from init_cutu_and_read_dies.
16660 (cutu_reader::cutu_reader): Rename from
16661 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16662 and data parameters.
16663 (init_cutu_and_read_dies_simple): Remove.
16664 (struct process_psymtab_comp_unit_data): Remove.
16665 (process_psymtab_comp_unit_reader): Remove data parameter; add
16666 want_partial_unit and pretend_language parameters.
16667 (process_psymtab_comp_unit): Use cutu_reader.
16668 (build_type_psymtabs_reader): Remove data parameter.
16669 (build_type_psymtabs_1): Use cutu_reader.
16670 (process_skeletonless_type_unit): Likewise.
16671 (load_partial_comp_unit_reader): Remove.
16672 (load_partial_comp_unit): Use cutu_reader.
16673 (load_full_comp_unit_reader): Remove.
16674 (load_full_comp_unit): Use cutu_reader.
16675 (struct create_dwo_cu_data): Remove.
16676 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16677 dwo_unit parameters.
16678 (create_cus_hash_table): Use cutu_reader.
16679 (struct dwarf2_read_addr_index_data): Remove.
16680 (dwarf2_read_addr_index_reader): Remove.
16681 (dwarf2_read_addr_index): Use cutu_reader.
16682 (read_signatured_type_reader): Remove.
16683 (read_signatured_type): Use cutu_reader.
16684
45bbae5c
TT
166852020-01-19 Tom Tromey <tom@tromey.com>
16686
16687 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16688 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16689 (tui_wrefresh): Declare.
16690 * tui/tui-wingeneral.c (suppress_output): New global.
16691 (tui_suppress_output, ~tui_suppress_output): New constructor and
16692 destructor.
16693 (tui_wrefresh): New function.
16694 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16695 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16696 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16697 method.
16698 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16699 tui_wrefresh.
16700 (tui_data_window::no_refresh): New method.
16701 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16702 (tui_reg_command): Use tui_suppress_output
16703 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16704 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16705 method.
16706 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16707
4f13c1c0
TT
167082020-01-19 Tom Tromey <tom@tromey.com>
16709
16710 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16711 Handle case where symtab is null.
16712
fa47e446
SM
167132020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16714
16715 * linux-fork.c (one_fork_p): Simplify.
16716
26f42329
SM
167172020-01-17 Simon Marchi <simon.marchi@efficios.com>
16718
16719 * top.c (struct qt_args): Remove.
16720 (kill_or_detach): Change return type to void, replace `void *`
16721 parameter with a proper one.
16722 (print_inferior_quit_action): Likewise.
16723 (quit_confirm): Use range-based for loop to iterate over inferiors.
16724 (quit_force): Likewise.
16725
a9ac81b1
SM
167262020-01-17 Simon Marchi <simon.marchi@efficios.com>
16727
16728 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16729 `void *` parameter with proper parameters.
16730 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16731 (print_one_inferior): Change return type to void, replace `void *`
16732 parameter with proper parameters.
16733 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16734 inferiors.
16735 (get_other_inferior): Remove.
16736 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16737 inferiors.
16738
788eca49
SM
167392020-01-17 Simon Marchi <simon.marchi@efficios.com>
16740
16741 * mi/mi-interp.c (report_initial_inferior): Remove.
16742 (mi_interp::init): Use range-based for to iterate over inferiors.
16743
d9bc85b6
SM
167442020-01-17 Simon Marchi <simon.marchi@efficios.com>
16745
16746 * python/py-inferior.c (build_inferior_list): Remove.
16747 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16748
40c94099
CB
167492020-01-16 Christian Biesinger <cbiesinger@google.com>
16750
16751 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16752 (btrace_stitch_trace): Likewise.
16753 * charset.c (intermediate_encoding): Likewise (vaild).
16754 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16755 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16756 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16757
e0cdfe3c
HD
167582020-01-16 Hannes Domani <ssbssa@yahoo.de>
16759
16760 * windows-tdep.c (windows_get_tlb_type):
16761 Add rtl_user_process_parameters type.
16762
790f1718 167632020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16764 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16765
16766 PR build/24805
16767 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16768 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16769 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16770 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16771 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16772 (ps_plog): Redeclare exported functions with default visibility.
16773
3112ed97
NA
167742020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16775
16776 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16777 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16778
8dc3273e
SM
167792020-01-15 Simon Marchi <simon.marchi@efficios.com>
16780
16781 * infcmd.c (post_create_inferior): Use get_thread_regcache
16782 instead of get_current_regcache.
16783
ff47f4f0
TT
167842020-01-14 Tom Tromey <tom@tromey.com>
16785
16786 PR symtab/12535:
16787 * python/python.c (gdbpy_decode_line): Treat empty string the same
16788 as no argument.
16789
975f45b7
TT
167902020-01-14 Tom Tromey <tom@tromey.com>
16791
16792 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16793
25e57356
TT
167942020-01-14 Tom Tromey <tom@tromey.com>
16795
16796 * nat/linux-btrace.c: Don't include <config.h>.
16797 * nat/linux-ptrace.c: Don't include <config.h>.
16798 * nat/x86-linux-dregs.c: Don't include <config.h>.
16799
05ea2a05
TT
168002020-01-14 Tom Tromey <tom@tromey.com>
16801
16802 * configure: Rebuild.
16803 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16804
01027315
TT
168052020-01-14 Tom Tromey <tom@tromey.com>
16806
16807 * nat/x86-linux-dregs.c: Include configh.h.
16808 * nat/linux-ptrace.c: Include configh.h.
16809 * nat/linux-btrace.c: Include configh.h.
16810 * defs.h: Include config.h, bfd.h.
16811 * configure.ac: Don't source common.host.
16812 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16813 * configure: Rebuild.
16814 * acinclude.m4: Update path.
16815 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16816 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16817 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16818 (CLIBS): Add LIBSUPPORT.
16819 (CDEPS): Likewise.
16820 (COMMON_SFILES): Remove gdbsupport files.
16821 (HFILES_NO_SRCDIR): Likewise.
16822 (stamp-version): Update path to create-version.sh.
16823 (ALLDEPFILES): Remove gdbsupport files.
16824
b2ceabe8
TT
168252020-01-14 Tom Tromey <tom@tromey.com>
16826
16827 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16828 USE_WIN32API when needed.
16829 * configure.ac (USE_WIN32API): Don't define.
16830 (WIN32LIBS): Use WIN32APILIBS.
16831 * configure: Rebuild.
16832
25c51f71
TT
168332020-01-14 Tom Tromey <tom@tromey.com>
16834
16835 * configure: Rebuild.
16836 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16837
717c684d
BE
168382020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16839
16840 * skip.c (skip_function_command): Make skip w/o arguments use the
16841 name of the inlined function if pc is inside any inlined function.
16842
7da6a5b9
LM
168432020-01-14 Luis Machado <luis.machado@linaro.org>
16844
16845 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16846 * infrun.c (resume_1): Likewise.
16847 (handle_inferior_event): Remove stale comment.
16848 * linux-nat.c (linux_nat_target::resume): Update comments.
16849 (save_stop_reason): Likewise.
16850 (linux_nat_filter_event): Likewise.
16851 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16852
44e4c775
AB
168532020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16854
16855 * elfread.c (record_minimal_symbol): Set section index to 0 for
16856 non-allocatable sections.
16857
18a8505e
AT
16858
168592020-01-13 Ali Tamur <tamur@google.com>
16860
16861 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16862 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16863 to gdb::optional. Update comments.
16864 (dwo_file): Update comments.
16865 (read_attribute): Update API to take an additional out parameter,
16866 need_reprocess. This is used to mark attributes that need other
16867 attributes (e.g. str_offsets_base) for correct computation which may not
16868 have been read yet.
16869 (read_attribute_reprocess): New function declaration.
16870 (read_addr_index): Likewise.
16871 (read_dwo_str_index): Likewise.
16872 (read_stub_str_index): Likewise.
16873 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16874 (lookup_addr_base): New function definition.
16875 (lookup_ranges_base): Likewise.
16876 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16877 lookup_ranges_base.
16878 (init_cutu_and_read_dies): Update comments.
16879 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16880 unit. This is used to inherit parent's str_offsets_base and addr_base.
16881 Update comments.
16882 (init_cutu_and_read_dies_simple): Reflect API changes.
16883 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16884 (create_cus_hash_table): Change API to take parent compile unit.
16885 Reflect API changes.
16886 (open_and_init_dwo_file): Reflect API changes.
16887 (dwarf2_get_pc_bounds): Update comments.
16888 (dwarf2_record_block_ranges): Likewise.
16889 (read_full_die_1): Change implementation to reprocess attributes that
16890 need str_offsets_base and addr_base.
16891 (partial_die_info::read): Likewise.
16892 (read_attribute_reprocess): New function definition.
16893 (read_attribute_value): Change API to take an additional out parameter,
16894 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16895 when a non-dwo compile unit has index based attributes.
16896 (read_attribute): Reflect API changes.
16897 (read_addr_index_1): Reflect API changes. Update comments.
16898 (dwarf2_read_addr_index_data): Reflect API changes.
16899 (dwarf2_read_addr_index): Likewise.
16900 (read_str_index): Change API and implementation. This becomes a helper
16901 to be used by the new string index related methods. Update error
16902 message and comments.
16903 (read_dwo_str_index): New function definition.
16904 (read_stub_str_index): Likewise.
16905 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16906 * symfile.h (dwarf2_debug_sections): Likewise.
16907 * xcoffread.c (dwarf2_debug_sections): Likewise.
16908
0cac9354
SM
169092020-01-13 Simon Marchi <simon.marchi@efficios.com>
16910
16911 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16912 core_reg_sect type to gdb_byte *.
16913 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16914 * cris-tdep.c (fetch_core_registers): Likewise.
16915 * corelow.c (core_target::get_core_register_section): Change
16916 type of `contents` to gdb::byte_vector.
16917
9a6d629c
AB
169182020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16919
16920 * tui/tui-wingeneral.c (box_win): Position the title in the center
16921 of the border.
16922
d8b2f9e3
SM
169232020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16924
16925 * corelow.c (core_target::get_core_register_section): Use
16926 std::vector instead of alloca.
16927
bb564c58
SM
169282020-01-13 Simon Marchi <simon.marchi@efficios.com>
16929
16930 * warning.m4: Add -Wmissing-declarations to build_warnings.
16931 * configure: Re-generate.
16932
6b366111
SM
169332020-01-13 Simon Marchi <simon.marchi@efficios.com>
16934
16935 * python/python.c (init__gdb_module): Add declaration.
16936
6c265988
SM
169372020-01-13 Simon Marchi <simon.marchi@efficios.com>
16938
16939 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16940 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16941 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16942 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16943 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16944 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16945 * ada-exp.y (_initialize_ada_exp): Add declaration.
16946 * ada-lang.c (_initialize_ada_language): Add declaration.
16947 * ada-tasks.c (_initialize_tasks): Add declaration.
16948 * agent.c (_initialize_agent): Add declaration.
16949 * aix-thread.c (_initialize_aix_thread): Add declaration.
16950 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16951 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16952 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16953 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16954 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16955 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16956 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16957 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16958 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16959 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16960 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16961 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16962 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16963 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16964 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16965 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16966 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16967 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16968 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16969 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16970 * annotate.c (_initialize_annotate): Add declaration.
16971 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16972 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16973 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16974 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16975 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16976 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16977 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16978 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16979 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16980 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16981 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16982 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16983 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16984 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16985 * auto-load.c (_initialize_auto_load): Add declaration.
16986 * auxv.c (_initialize_auxv): Add declaration.
16987 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16988 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16989 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16990 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16991 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16992 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16993 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16994 * breakpoint.c (_initialize_breakpoint): Add declaration.
16995 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16996 * btrace.c (_initialize_btrace): Add declaration.
16997 * charset.c (_initialize_charset): Add declaration.
16998 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16999 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17000 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17001 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17002 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17003 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17004 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17005 * coffread.c (_initialize_coffread): Add declaration.
17006 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17007 * compile/compile.c (_initialize_compile): Add declaration.
17008 * complaints.c (_initialize_complaints): Add declaration.
17009 * completer.c (_initialize_completer): Add declaration.
17010 * copying.c (_initialize_copying): Add declaration.
17011 * corefile.c (_initialize_core): Add declaration.
17012 * corelow.c (_initialize_corelow): Add declaration.
17013 * cp-abi.c (_initialize_cp_abi): Add declaration.
17014 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17015 * cp-support.c (_initialize_cp_support): Add declaration.
17016 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17017 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17018 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17019 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17020 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17021 * ctfread.c (_initialize_ctfread): Add declaration.
17022 * d-lang.c (_initialize_d_language): Add declaration.
17023 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17024 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17025 * dbxread.c (_initialize_dbxread): Add declaration.
17026 * dcache.c (_initialize_dcache): Add declaration.
17027 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17028 * disasm.c (_initialize_disasm): Add declaration.
17029 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17030 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17031 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17032 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17033 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17034 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17035 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17036 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17037 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17038 * elfread.c (_initialize_elfread): Add declaration.
17039 * exec.c (_initialize_exec): Add declaration.
17040 * extension.c (_initialize_extension): Add declaration.
17041 * f-lang.c (_initialize_f_language): Add declaration.
17042 * f-valprint.c (_initialize_f_valprint): Add declaration.
17043 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17044 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17045 * filesystem.c (_initialize_filesystem): Add declaration.
17046 * findcmd.c (_initialize_mem_search): Add declaration.
17047 * findvar.c (_initialize_findvar): Add declaration.
17048 * fork-child.c (_initialize_fork_child): Add declaration.
17049 * frame-base.c (_initialize_frame_base): Add declaration.
17050 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17051 * frame.c (_initialize_frame): Add declaration.
17052 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17053 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17054 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17055 * gcore.c (_initialize_gcore): Add declaration.
17056 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17057 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17058 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17059 * gdbarch.c (_initialize_gdbarch): Add declaration.
17060 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17061 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17062 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17063 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17064 * go-lang.c (_initialize_go_language): Add declaration.
17065 * go32-nat.c (_initialize_go32_nat): Add declaration.
17066 * guile/guile.c (_initialize_guile): Add declaration.
17067 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17068 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17069 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17070 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17071 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17072 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17073 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17074 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17075 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17076 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17077 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17078 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17079 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17080 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17081 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17082 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17083 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17084 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17085 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17086 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17087 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17088 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17089 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17090 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17091 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17092 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17093 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17094 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17095 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17096 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17097 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17098 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17099 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17100 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17101 * infcall.c (_initialize_infcall): Add declaration.
17102 * infcmd.c (_initialize_infcmd): Add declaration.
17103 * inflow.c (_initialize_inflow): Add declaration.
17104 * infrun.c (_initialize_infrun): Add declaration.
17105 * interps.c (_initialize_interpreter): Add declaration.
17106 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17107 * jit.c (_initialize_jit): Add declaration.
17108 * language.c (_initialize_language): Add declaration.
17109 * linux-fork.c (_initialize_linux_fork): Add declaration.
17110 * linux-nat.c (_initialize_linux_nat): Add declaration.
17111 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17112 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17113 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17114 * m2-lang.c (_initialize_m2_language): Add declaration.
17115 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17116 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17117 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17118 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17119 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17120 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17121 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17122 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17123 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17124 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17125 * machoread.c (_initialize_machoread): Add declaration.
17126 * macrocmd.c (_initialize_macrocmd): Add declaration.
17127 * macroscope.c (_initialize_macroscope): Add declaration.
17128 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17129 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17130 * maint.c (_initialize_maint_cmds): Add declaration.
17131 * mdebugread.c (_initialize_mdebugread): Add declaration.
17132 * memattr.c (_initialize_mem): Add declaration.
17133 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17134 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17135 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17136 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17137 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17138 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17139 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17140 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17141 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17142 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17143 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17144 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17145 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17146 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17147 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17148 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17149 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17150 * mipsread.c (_initialize_mipsread): Add declaration.
17151 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17152 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17153 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17154 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17155 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17156 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17157 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17158 * nto-procfs.c (_initialize_procfs): Add declaration.
17159 * objc-lang.c (_initialize_objc_language): Add declaration.
17160 * observable.c (_initialize_observer): Add declaration.
17161 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17162 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17163 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17164 * osabi.c (_initialize_gdb_osabi): Add declaration.
17165 * osdata.c (_initialize_osdata): Add declaration.
17166 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17167 * parse.c (_initialize_parse): Add declaration.
17168 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17169 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17170 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17171 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17172 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17173 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17174 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17175 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17176 * printcmd.c (_initialize_printcmd): Add declaration.
17177 * probe.c (_initialize_probe): Add declaration.
17178 * proc-api.c (_initialize_proc_api): Add declaration.
17179 * proc-events.c (_initialize_proc_events): Add declaration.
17180 * proc-service.c (_initialize_proc_service): Add declaration.
17181 * procfs.c (_initialize_procfs): Add declaration.
17182 * producer.c (_initialize_producer): Add declaration.
17183 * psymtab.c (_initialize_psymtab): Add declaration.
17184 * python/python.c (_initialize_python): Add declaration.
17185 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17186 * record-btrace.c (_initialize_record_btrace): Add declaration.
17187 * record-full.c (_initialize_record_full): Add declaration.
17188 * record.c (_initialize_record): Add declaration.
17189 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17190 * regcache.c (_initialize_regcache): Add declaration.
17191 * reggroups.c (_initialize_reggroup): Add declaration.
17192 * remote-notif.c (_initialize_notif): Add declaration.
17193 * remote-sim.c (_initialize_remote_sim): Add declaration.
17194 * remote.c (_initialize_remote): Add declaration.
17195 * reverse.c (_initialize_reverse): Add declaration.
17196 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17197 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17198 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17199 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17200 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17201 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17202 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17203 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17204 Add declaration.
17205 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17206 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17207 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17208 * rust-exp.y (_initialize_rust_exp): Add declaration.
17209 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17210 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17211 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17212 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17213 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17214 * score-tdep.c (_initialize_score_tdep): Add declaration.
17215 * ser-go32.c (_initialize_ser_dos): Add declaration.
17216 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17217 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17218 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17219 * ser-uds.c (_initialize_ser_socket): Add declaration.
17220 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17221 * serial.c (_initialize_serial): Add declaration.
17222 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17223 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17224 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17225 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17226 * skip.c (_initialize_step_skip): Add declaration.
17227 * sol-thread.c (_initialize_sol_thread): Add declaration.
17228 * solib-aix.c (_initialize_solib_aix): Add declaration.
17229 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17230 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17231 * solib-frv.c (_initialize_frv_solib): Add declaration.
17232 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17233 * solib-target.c (_initialize_solib_target): Add declaration.
17234 * solib.c (_initialize_solib): Add declaration.
17235 * source-cache.c (_initialize_source_cache): Add declaration.
17236 * source.c (_initialize_source): Add declaration.
17237 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17238 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17239 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17240 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17241 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17242 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17243 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17244 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17245 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17246 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17247 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17248 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17249 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17250 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17251 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17252 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17253 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17254 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17255 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17256 * stabsread.c (_initialize_stabsread): Add declaration.
17257 * stack.c (_initialize_stack): Add declaration.
17258 * stap-probe.c (_initialize_stap_probe): Add declaration.
17259 * std-regs.c (_initialize_frame_reg): Add declaration.
17260 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17261 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17262 * symfile.c (_initialize_symfile): Add declaration.
17263 * symmisc.c (_initialize_symmisc): Add declaration.
17264 * symtab.c (_initialize_symtab): Add declaration.
17265 * target.c (_initialize_target): Add declaration.
17266 * target-connection.c (_initialize_target_connection): Add
17267 declaration.
17268 * target-dcache.c (_initialize_target_dcache): Add declaration.
17269 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17270 * thread.c (_initialize_thread): Add declaration.
17271 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17272 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17273 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17274 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17275 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17276 * tracectf.c (_initialize_ctf): Add declaration.
17277 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17278 * tracefile.c (_initialize_tracefile): Add declaration.
17279 * tracepoint.c (_initialize_tracepoint): Add declaration.
17280 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17281 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17282 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17283 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17284 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17285 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17286 * tui/tui.c (_initialize_tui): Add declaration.
17287 * typeprint.c (_initialize_typeprint): Add declaration.
17288 * ui-style.c (_initialize_ui_style): Add declaration.
17289 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17290 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17291 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17292 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17293 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17294 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17295 * unittests/filtered_iterator-selftests.c
17296 (_initialize_filtered_iterator_selftests): Add declaration.
17297 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17298 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17299 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17300 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17301 * unittests/main-thread-selftests.c
17302 (_initialize_main_thread_selftests): Add declaration.
17303 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17304 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17305 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17306 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17307 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17308 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17309 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17310 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17311 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17312 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17313 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17314 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17315 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17316 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17317 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17318 declaration.
17319 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17320 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17321 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17322 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17323 * user-regs.c (_initialize_user_regs): Add declaration.
17324 * utils.c (_initialize_utils): Add declaration.
17325 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17326 * valops.c (_initialize_valops): Add declaration.
17327 * valprint.c (_initialize_valprint): Add declaration.
17328 * value.c (_initialize_values): Add declaration.
17329 * varobj.c (_initialize_varobj): Add declaration.
17330 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17331 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17332 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17333 * windows-nat.c (_initialize_windows_nat): Add declaration.
17334 (_initialize_check_for_gdb_ini): Add declaration.
17335 (_initialize_loadable): Add declaration.
17336 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17337 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17338 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17339 * xcoffread.c (_initialize_xcoffread): Add declaration.
17340 * xml-support.c (_initialize_xml_support): Add declaration.
17341 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17342 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17343 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17344 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17345
e2de1eec
SM
173462020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17347
17348 * regformats/regdat.sh: Generate declaration for init function.
17349
e0037b4c
SM
173502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17351
17352 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17353 up.
17354 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17355 close_one_inferior>: New methods.
17356 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17357 pass down target to find_inferior_pid.
17358 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17359 Pass down target to find_inferior_ptid.
17360 (gdbsim_target::create_inferior): Pass down target to
17361 add_thread_silent.
17362 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17363 target down to find_inferior_ptid and switch_to_thread.
17364 (gdbsim_target::close): Update to call close_one_inferior.
17365 (struct resume_data): Remove.
17366 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17367 directly, rather than through a void pointer.
17368 (gdbsim_target::resume): Update to call resume_one_inferior.
17369
58920b5b
SM
173702020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17371
17372 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17373
4ec89149
PA
173742020-01-12 Pedro Alves <palves@redhat.com>
17375
17376 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17377 directly for the current inferior instead of
17378 discard_all_inferiors.
17379 (discard_all_inferiors): Delete.
17380
7c392d1d
TT
173812020-01-11 Tom Tromey <tom@tromey.com>
17382
17383 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17384 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17385 deprecated_safe_get_selected_frame.
17386
d9ebdab7
TBA
173872020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17388
17389 * inferior.c (print_inferior): Switch inferior before printing it.
17390
f3c469b9
PA
173912020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17392 Pedro Alves <palves@redhat.com>
17393
17394 * progspace-and-thread.c (switch_to_program_space_and_thread):
17395 Assert there's an inferior for PSPACE. Use
17396 switch_to_inferior_no_thread to switch the inferior too.
17397 * progspace.c (program_space::~program_space): Call
17398 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17399 (program_space::free_all_objfiles): Don't call clear_symtab_users
17400 here.
17401 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17402
65c574f6
PA
174032020-01-10 Pedro Alves <palves@redhat.com>
17404
17405 * NEWS: Mention multi-target debugging, "info connections", and
17406 "add-inferior -no-connection".
17407
2f4fcf00
PA
174082020-01-10 Pedro Alves <palves@redhat.com>
17409
17410 * infrun.c: Include "target-connection.h".
17411 (check_multi_target_resumption): New.
17412 (proceed): Call it.
17413 * target-connection.c (make_target_connection_string): Make
17414 extern.
17415 * target-connection.h (make_target_connection_string): Declare.
17416
121b3efd
PA
174172020-01-10 Pedro Alves <palves@redhat.com>
17418
17419 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17420 * inferior.c (uiout_field_connection): New function.
17421 (print_inferior): Add new "connection-id" column.
17422 (add_inferior_command): Show connection number/string of added
17423 inferior.
17424 * process-stratum-target.h
17425 (process_stratum_target::connection_string): New virtual method.
17426 (process_stratum_target::connection_number): New field.
17427 * remote.c (remote_target::connection_string): New override.
17428 * target-connection.c: New file.
17429 * target-connection.h: New file.
17430 * target.c (decref_target): Remove process_stratum targets from
17431 the connection list.
17432 (target_stack::push): Add process_stratum targets to the
17433 connection list.
17434
4f837581
PA
174352020-01-10 Pedro Alves <palves@redhat.com>
17436
17437 Revert:
17438 2016-04-12 Pedro Alves <palves@redhat.com>
17439 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17440 Remove references to name.
17441 * serial.h (struct serial) <name>: Delete.
17442
f4ec508e
PA
174432020-01-10 Pedro Alves <palves@redhat.com>
17444
17445 * gdbarch-selftests.c (register_to_value_test): Remove "target
17446 already pushed" check.
17447
5b6d1e4f
PA
174482020-01-10 Pedro Alves <palves@redhat.com>
17449 John Baldwin <jhb@FreeBSD.org>
17450
17451 * aarch64-linux-nat.c
17452 (aarch64_linux_nat_target::thread_architecture): Adjust.
17453 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17454 (task_command_1): Likewise.
17455 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17456 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17457 (aix_thread_target::store_registers)
17458 (aix_thread_target::thread_alive): Adjust.
17459 * amd64-fbsd-tdep.c: Include "inferior.h".
17460 (amd64fbsd_get_thread_local_address): Pass down target.
17461 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17462 thread's gdbarch instead of target_gdbarch.
17463 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17464 get_last_target_status.
17465 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17466 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17467 inferiors.
17468 (update_inserted_breakpoint_locations): Skip if inferiors with no
17469 execution.
17470 (update_global_location_list): When handling moribund locations,
17471 find representative inferior for location's pspace, and use thread
17472 count of its process_stratum target.
17473 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17474 * bsd-uthread.c (bsd_uthread_target::wait): Use
17475 as_process_stratum_target and adjust thread_change_ptid and
17476 add_thread calls.
17477 (bsd_uthread_target::update_thread_list): Use
17478 as_process_stratum_target and adjust find_thread_ptid,
17479 thread_change_ptid and add_thread calls.
17480 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17481 find_thread_ptid call.
17482 * corelow.c (add_to_thread_list): Adjust add_thread call.
17483 (core_target_open): Adjust add_thread_silent and thread_count
17484 calls.
17485 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17486 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17487 * event-top.c (async_disconnect): Pop targets from all inferiors.
17488 * exec.c (add_target_sections): Push exec target on all inferiors
17489 sharing the program space.
17490 (remove_target_sections): Remove the exec target from all
17491 inferiors sharing the program space.
17492 (exec_on_vfork): New.
17493 * exec.h (exec_on_vfork): Declare.
17494 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17495 Pass it down.
17496 (fbsd_nat_target::update_thread_list): Adjust.
17497 (fbsd_nat_target::resume): Adjust.
17498 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17499 down.
17500 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17501 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17502 get_thread_arch_regcache call.
17503 * fork-child.c (gdb_startup_inferior): Pass target down to
17504 startup_inferior and set_executing.
17505 * gdbthread.h (struct process_stratum_target): Forward declare.
17506 (add_thread, add_thread_silent, add_thread_with_info)
17507 (in_thread_list): Add process_stratum_target parameter.
17508 (find_thread_ptid(inferior*, ptid_t)): New overload.
17509 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17510 parameter.
17511 (all_threads()): Delete overload.
17512 (all_threads, all_non_exited_threads): Add process_stratum_target
17513 parameter.
17514 (all_threads_safe): Use brace initialization.
17515 (thread_count): Add process_stratum_target parameter.
17516 (set_resumed, set_running, set_stop_requested, set_executing)
17517 (threads_are_executing, finish_thread_state): Add
17518 process_stratum_target parameter.
17519 (switch_to_thread): Use is_current_thread.
17520 * i386-fbsd-tdep.c: Include "inferior.h".
17521 (i386fbsd_get_thread_local_address): Pass down target.
17522 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17523 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17524 have_inferiors check.
17525 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17526 (inf_ptrace_target::attach): Adjust.
17527 * infcall.c (run_inferior_call): Adjust.
17528 * infcmd.c (run_command_1): Pass target to
17529 scoped_finish_thread_state.
17530 (proceed_thread_callback): Skip inferiors with no execution.
17531 (continue_command): Rename 'all_threads' local to avoid hiding
17532 'all_threads' function. Adjust get_last_target_status call.
17533 (prepare_one_step): Adjust set_running call.
17534 (signal_command): Use user_visible_resume_target. Compare thread
17535 pointers instead of inferior_ptid.
17536 (info_program_command): Adjust to pass down target.
17537 (attach_command): Mark target's 'thread_executing' flag.
17538 (stop_current_target_threads_ns): New, factored out from ...
17539 (interrupt_target_1): ... this. Switch inferior before making
17540 target calls.
17541 * inferior-iter.h
17542 (struct all_inferiors_iterator, struct all_inferiors_range)
17543 (struct all_inferiors_safe_range)
17544 (struct all_non_exited_inferiors_range): Filter on
17545 process_stratum_target too. Remove explicit.
17546 * inferior.c (inferior::inferior): Push dummy target on target
17547 stack.
17548 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17549 Add process_stratum_target parameter, and pass it down.
17550 (have_live_inferiors): Adjust.
17551 (switch_to_inferior_and_push_target): New.
17552 (add_inferior_command, clone_inferior_command): Handle
17553 "-no-connection" parameter. Use
17554 switch_to_inferior_and_push_target.
17555 (_initialize_inferior): Mention "-no-connection" option in
17556 the help of "add-inferior" and "clone-inferior" commands.
17557 * inferior.h: Include "process-stratum-target.h".
17558 (interrupt_target_1): Use bool.
17559 (struct inferior) <push_target, unpush_target, target_is_pushed,
17560 find_target_beneath, top_target, process_target, target_at,
17561 m_stack>: New.
17562 (discard_all_inferiors): Delete.
17563 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17564 (all_inferiors, all_non_exited_inferiors): Add
17565 process_stratum_target parameter.
17566 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17567 (target_last_proc_target): New global.
17568 (follow_fork_inferior): Push target on new inferior. Pass target
17569 to add_thread_silent. Call exec_on_vfork. Handle target's
17570 reference count.
17571 (follow_fork): Adjust get_last_target_status call. Also consider
17572 target.
17573 (follow_exec): Push target on new inferior.
17574 (struct execution_control_state) <target>: New field.
17575 (user_visible_resume_target): New.
17576 (do_target_resume): Call target_async.
17577 (resume_1): Set target's threads_executing flag. Consider resume
17578 target.
17579 (commit_resume_all_targets): New.
17580 (proceed): Also consider resume target. Skip threads of inferiors
17581 with no execution. Commit resumtion in all targets.
17582 (start_remote): Pass current inferior to wait_for_inferior.
17583 (infrun_thread_stop_requested): Consider target as well. Pass
17584 thread_info pointer to clear_inline_frame_state instead of ptid.
17585 (infrun_thread_thread_exit): Consider target as well.
17586 (random_pending_event_thread): New inferior parameter. Use it.
17587 (do_target_wait): Rename to ...
17588 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17589 down.
17590 (threads_are_resumed_pending_p, do_target_wait): New.
17591 (prepare_for_detach): Adjust calls.
17592 (wait_for_inferior): New inferior parameter. Handle it. Use
17593 do_target_wait_1 instead of do_target_wait.
17594 (fetch_inferior_event): Adjust. Switch to representative
17595 inferior. Pass target down.
17596 (set_last_target_status): Add process_stratum_target parameter.
17597 Save target in global.
17598 (get_last_target_status): Add process_stratum_target parameter and
17599 handle it.
17600 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17601 (context_switch): Check inferior_ptid == null_ptid before calling
17602 inferior_thread().
17603 (get_inferior_stop_soon): Pass down target.
17604 (wait_one): Rename to ...
17605 (poll_one_curr_target): ... this.
17606 (struct wait_one_event): New.
17607 (wait_one): New.
17608 (stop_all_threads): Adjust.
17609 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17610 event's target.
17611 (switch_back_to_stepped_thread): Also consider target.
17612 (print_stop_event): Update.
17613 (normal_stop): Update. Also consider the resume target.
17614 * infrun.h (wait_for_inferior): Remove declaration.
17615 (user_visible_resume_target): New declaration.
17616 (get_last_target_status, set_last_target_status): New
17617 process_stratum_target parameter.
17618 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17619 process_stratum_target parameter, and use it.
17620 (clear_inline_frame_state (thread_info*)): New.
17621 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17622 process_stratum_target parameter.
17623 (clear_inline_frame_state (thread_info*)): Declare.
17624 * linux-fork.c (delete_checkpoint_command): Pass target down to
17625 find_thread_ptid.
17626 (checkpoint_command): Adjust.
17627 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17628 instead of just tweaking inferior_ptid.
17629 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17630 (exit_lwp): Pass target down to find_thread_ptid.
17631 (attach_proc_task_lwp_callback): Pass target down to
17632 add_thread/set_running/set_executing.
17633 (linux_nat_target::attach): Pass target down to
17634 thread_change_ptid.
17635 (get_detach_signal): Pass target down to find_thread_ptid.
17636 Consider last target status's target.
17637 (linux_resume_one_lwp_throw, resume_lwp)
17638 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17639 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17640 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17641 (linux_nat_target::async_wait_fd): New.
17642 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17643 target down.
17644 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17645 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17646 * linux-thread-db.c (struct thread_db_info::process_target): New
17647 field.
17648 (add_thread_db_info): Save target.
17649 (get_thread_db_info): New process_stratum_target parameter. Also
17650 match target.
17651 (delete_thread_db_info): New process_stratum_target parameter.
17652 Also match target.
17653 (thread_from_lwp): Adjust to pass down target.
17654 (thread_db_notice_clone): Pass down target.
17655 (check_thread_db_callback): Pass down target.
17656 (try_thread_db_load_1): Always push the thread_db target.
17657 (try_thread_db_load, record_thread): Pass target down.
17658 (thread_db_target::detach): Pass target down. Always unpush the
17659 thread_db target.
17660 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17661 target down. Always unpush the thread_db target.
17662 (find_new_threads_callback, thread_db_find_new_threads_2)
17663 (thread_db_target::update_thread_list): Pass target down.
17664 (thread_db_target::pid_to_str): Pass current inferior down.
17665 (thread_db_target::get_thread_local_address): Pass target down.
17666 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17667 target down.
17668 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17669 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17670 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17671 (procfs_init_inferior): Rename to ...
17672 (procfs_target::procfs_init_inferior): ... this and adjust.
17673 (procfs_target::create_inferior, procfs_notice_thread)
17674 (procfs_do_thread_registers): Adjust.
17675 * ppc-fbsd-tdep.c: Include "inferior.h".
17676 (ppcfbsd_get_thread_local_address): Pass down target.
17677 * proc-service.c (ps_xfer_memory): Switch current inferior and
17678 program space as well.
17679 (get_ps_regcache): Pass target down.
17680 * process-stratum-target.c
17681 (process_stratum_target::thread_address_space)
17682 (process_stratum_target::thread_architecture): Pass target down.
17683 * process-stratum-target.h
17684 (process_stratum_target::threads_executing): New field.
17685 (as_process_stratum_target): New.
17686 * ravenscar-thread.c
17687 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17688 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17689 down.
17690 * record-btrace.c (record_btrace_target::info_record): Adjust.
17691 (record_btrace_target::record_method)
17692 (record_btrace_target::record_is_replaying)
17693 (record_btrace_target::fetch_registers)
17694 (get_thread_current_frame_id, record_btrace_target::resume)
17695 (record_btrace_target::wait, record_btrace_target::stop): Pass
17696 target down.
17697 * record-full.c (record_full_wait_1): Switch to event thread.
17698 Pass target down.
17699 * regcache.c (regcache::regcache)
17700 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17701 process_stratum_target parameter and handle it.
17702 (current_thread_target): New global.
17703 (get_thread_regcache): Add process_stratum_target parameter and
17704 handle it. Switch inferior before calling target method.
17705 (get_thread_regcache): Pass target down.
17706 (get_thread_regcache_for_ptid): Pass target down.
17707 (registers_changed_ptid): Add process_stratum_target parameter and
17708 handle it.
17709 (registers_changed_thread, registers_changed): Pass target down.
17710 (test_get_thread_arch_aspace_regcache): New.
17711 (current_regcache_test): Define a couple local test_target_ops
17712 instances and use them for testing.
17713 (readwrite_regcache): Pass process_stratum_target parameter.
17714 (cooked_read_test, cooked_write_test): Pass mock_target down.
17715 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17716 (get_thread_arch_aspace_regcache): Add process_stratum_target
17717 parameter.
17718 (regcache::target): New method.
17719 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17720 (regcache::registers_changed_ptid): Add process_stratum_target
17721 parameter.
17722 (regcache::m_target): New field.
17723 (registers_changed_ptid): Add process_stratum_target parameter.
17724 * remote.c (remote_state::supports_vCont_probed): New field.
17725 (remote_target::async_wait_fd): New method.
17726 (remote_unpush_and_throw): Add remote_target parameter.
17727 (get_current_remote_target): Adjust.
17728 (remote_target::remote_add_inferior): Push target.
17729 (remote_target::remote_add_thread)
17730 (remote_target::remote_notice_new_inferior)
17731 (get_remote_thread_info): Pass target down.
17732 (remote_target::update_thread_list): Skip threads of inferiors
17733 bound to other targets. (remote_target::close): Don't discard
17734 inferiors. (remote_target::add_current_inferior_and_thread)
17735 (remote_target::process_initial_stop_replies)
17736 (remote_target::start_remote)
17737 (remote_target::remote_serial_quit_handler): Pass down target.
17738 (remote_target::remote_unpush_target): New remote_target
17739 parameter. Unpush the target from all inferiors.
17740 (remote_target::remote_unpush_and_throw): New remote_target
17741 parameter. Pass it down.
17742 (remote_target::open_1): Check whether the current inferior has
17743 execution instead of checking whether any inferior is live. Pass
17744 target down.
17745 (remote_target::remote_detach_1): Pass down target. Use
17746 remote_unpush_target.
17747 (extended_remote_target::attach): Pass down target.
17748 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17749 (remote_target::append_resumption): Pass down target.
17750 (remote_target::append_pending_thread_resumptions)
17751 (remote_target::remote_resume_with_hc, remote_target::resume)
17752 (remote_target::commit_resume): Pass down target.
17753 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17754 (remote_target::interrupt_query)
17755 (remote_target::remove_new_fork_children)
17756 (remote_target::check_pending_events_prevent_wildcard_vcont)
17757 (remote_target::remote_parse_stop_reply)
17758 (remote_target::process_stop_reply): Pass down target.
17759 (first_remote_resumed_thread): New remote_target parameter. Pass
17760 it down.
17761 (remote_target::wait_as): Pass down target.
17762 (unpush_and_perror): New remote_target parameter. Pass it down.
17763 (remote_target::readchar, remote_target::remote_serial_write)
17764 (remote_target::getpkt_or_notif_sane_1)
17765 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17766 down target.
17767 (remote_target::mourn_inferior): Pass down target. Use
17768 remote_unpush_target.
17769 (remote_target::core_of_thread)
17770 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17771 (remote_target::pid_to_exec_file)
17772 (remote_target::thread_handle_to_thread_info): Pass down target.
17773 (remote_target::async_wait_fd): New.
17774 * riscv-fbsd-tdep.c: Include "inferior.h".
17775 (riscv_fbsd_get_thread_local_address): Pass down target.
17776 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17777 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17778 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17779 Adjust.
17780 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17781 * solib-svr4.c (enable_break): Pass down target.
17782 * spu-multiarch.c (parse_spufs_run): Pass down target.
17783 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17784 * target-delegates.c: Regenerate.
17785 * target.c (g_target_stack): Delete.
17786 (current_top_target): Return the current inferior's top target.
17787 (target_has_execution_1): Refer to the passed-in inferior's top
17788 target.
17789 (target_supports_terminal_ours): Check whether the initial
17790 inferior was already created.
17791 (decref_target): New.
17792 (target_stack::push): Incref/decref the target.
17793 (push_target, push_target, unpush_target): Adjust.
17794 (target_stack::unpush): Defref target.
17795 (target_is_pushed): Return bool. Adjust to refer to the current
17796 inferior's target stack.
17797 (dispose_inferior): Delete, and inline parts ...
17798 (target_preopen): ... here. Only dispose of the current inferior.
17799 (target_detach): Hold strong target reference while detaching.
17800 Pass target down.
17801 (target_thread_name): Add assertion.
17802 (target_resume): Pass down target.
17803 (target_ops::beneath, find_target_at): Adjust to refer to the
17804 current inferior's target stack.
17805 (get_dummy_target): New.
17806 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17807 has a thread running.
17808 (initialize_targets): Rename to ...
17809 (_initialize_target): ... this.
17810 * target.h: Include "gdbsupport/refcounted-object.h".
17811 (struct target_ops): Inherit refcounted_object.
17812 (target_ops::shortname, target_ops::longname): Make const.
17813 (target_ops::async_wait_fd): New method.
17814 (decref_target): Declare.
17815 (struct target_ops_ref_policy): New.
17816 (target_ops_ref): New typedef.
17817 (get_dummy_target): Declare function.
17818 (target_is_pushed): Return bool.
17819 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17820 (all_matching_threads_iterator::all_matching_threads_iterator):
17821 Handle filter target.
17822 * thread-iter.h (struct all_matching_threads_iterator, struct
17823 all_matching_threads_range, class all_non_exited_threads_range):
17824 Filter by target too. Remove explicit.
17825 * thread.c (threads_executing): Delete.
17826 (inferior_thread): Pass down current inferior.
17827 (clear_thread_inferior_resources): Pass down thread pointer
17828 instead of ptid_t.
17829 (add_thread_silent, add_thread_with_info, add_thread): Add
17830 process_stratum_target parameter. Use it for thread and inferior
17831 searches.
17832 (is_current_thread): New.
17833 (thread_info::deletable): Use it.
17834 (find_thread_ptid, thread_count, in_thread_list)
17835 (thread_change_ptid, set_resumed, set_running): New
17836 process_stratum_target parameter. Pass it down.
17837 (set_executing): New process_stratum_target parameter. Pass it
17838 down. Adjust reference to 'threads_executing'.
17839 (threads_are_executing): New process_stratum_target parameter.
17840 Adjust reference to 'threads_executing'.
17841 (set_stop_requested, finish_thread_state): New
17842 process_stratum_target parameter. Pass it down.
17843 (switch_to_thread): Also match inferior.
17844 (switch_to_thread): New process_stratum_target parameter. Pass it
17845 down.
17846 (update_threads_executing): Reimplement.
17847 * top.c (quit_force): Pop targets from all inferior.
17848 (gdb_init): Don't call initialize_targets.
17849 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17850 Declare.
17851 (windows_add_thread, windows_delete_thread): Adjust.
17852 (get_windows_debug_event): Rename to ...
17853 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17854 * tracefile-tfile.c (tfile_target_open): Pass down target.
17855 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17856 Forward declare.
17857 (switch_to_thread): Add process_stratum_target parameter.
17858 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17859 parameter. Use it.
17860 (mi_on_resume): Pass target down.
17861 * nat/fork-inferior.c (startup_inferior): Add
17862 process_stratum_target parameter. Pass it down.
17863 * nat/fork-inferior.h (startup_inferior): Add
17864 process_stratum_target parameter.
17865 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17866
75c6c844
PA
178672020-01-10 Pedro Alves <palves@redhat.com>
17868
17869 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17870 directly. Instead find the first thread in the thread list and
17871 use switch_to_thread.
17872
78f2c40a
PA
178732020-01-10 Pedro Alves <palves@redhat.com>
17874
17875 * remote.c (remote_target::remote_add_inferior): Don't bind a
17876 process to the current inferior if the current inferior is already
17877 bound to a process.
17878
e7af6c70
TBA
178792020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17880 Pedro Alves <palves@redhat.com>
17881
17882 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17883 If no process is specified, return null_ptid instead of
17884 inferior_ptid.
17885 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17886 TARGET_WAITKIND_SIGNALLED with no pid.
17887
31ba933e
PA
178882020-01-10 Pedro Alves <palves@redhat.com>
17889
17890 * remote.c (first_remote_resumed_thread): New.
17891 (remote_target::wait_as): Use it as default event_ptid instead of
17892 inferior_ptid.
17893
735fc2ca
PA
178942020-01-10 Pedro Alves <palves@redhat.com>
17895
17896 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17897
c17e02e1
PA
178982020-01-10 Pedro Alves <palves@redhat.com>
17899
17900 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17901 not -1.
17902
ab1ddbcf
PA
179032020-01-10 Pedro Alves <palves@redhat.com>
17904
17905 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17906 ptid to get_last_target_status.
17907 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17908 ptid to get_last_target_status.
17909 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17910 get_last_target_status.
17911 (info_program_command): Don't pass a target_waitstatus to
17912 get_last_target_status.
17913 * infrun.c (init_wait_for_inferior): Use
17914 nullify_last_target_wait_ptid.
17915 (get_last_target_status): Handle nullptr arguments.
17916 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17917 (print_stop_event): Don't pass a ptid to get_last_target_status.
17918 (normal_stop): Don't pass a ptid to get_last_target_status.
17919 * infrun.h (get_last_target_status, set_last_target_status): Move
17920 comments here and update.
17921 (nullify_last_target_wait_ptid): Declare.
17922 * linux-fork.c (fork_load_infrun_state): Remove local extern
17923 declaration of nullify_last_target_wait_ptid.
17924 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17925 to get_last_target_status.
17926
f3f8ece4
PA
179272020-01-10 Pedro Alves <palves@redhat.com>
17928
17929 * gdbthread.h (scoped_restore_current_thread)
17930 <dont_restore, restore, m_dont_restore>: Declare.
17931 * thread.c (thread_alive): Add assertion. Return bool.
17932 (switch_to_thread_if_alive): New.
17933 (prune_threads): Switch inferior/thread.
17934 (print_thread_info_1): Switch thread before calling target methods.
17935 (scoped_restore_current_thread::restore): New, factored out from
17936 ...
17937 (scoped_restore_current_thread::~scoped_restore_current_thread):
17938 ... this.
17939 (scoped_restore_current_thread::scoped_restore_current_thread):
17940 Add assertion.
17941 (thread_apply_all_command, thread_select): Use
17942 switch_to_thread_if_alive.
17943 * infrun.c (proceed, restart_threads, handle_signal_stop)
17944 (switch_back_to_stepped_thread): Switch current thread before
17945 calling target methods.
17946
db2d40f7
PA
179472020-01-10 Pedro Alves <palves@redhat.com>
17948
17949 * inferior.c (switch_to_inferior_no_thread): New function,
17950 factored out from ...
17951 (inferior_command): ... here.
17952 * inferior.h (switch_to_inferior_no_thread): Declare.
17953 * mi/mi-main.c (run_one_inferior): Use
17954 switch_to_inferior_no_thread.
17955
bd420a2d
PA
179562020-01-10 Pedro Alves <palves@redhat.com>
17957
17958 * infcmd.c (kill_command): Remove dead code.
17959
ddf5db90
PA
179602020-01-10 Pedro Alves <palves@redhat.com>
17961
17962 * remote.c (remote_target::mourn_inferior): No longer check
17963 whether the target is running.
17964
5018ce90
PA
179652020-01-10 Pedro Alves <palves@redhat.com>
17966
17967 * corelow.c (core_target::has_execution): Change parameter type to
17968 inferior pointer.
17969 * inferior.c (number_of_live_inferiors): Use
17970 inferior::has_execution instead of target_has_execution_1.
17971 * inferior.h (inferior::has_execution): New.
17972 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17973 inferior::has_execution instead of target_has_execution_1.
17974 * process-stratum-target.c
17975 (process_stratum_target::has_execution): Change parameter type to
17976 inferior pointer. Check the inferior's PID instead of
17977 inferior_ptid.
17978 * process-stratum-target.h
17979 (process_stratum_target::has_execution): Change parameter type to
17980 inferior pointer.
17981 * record-full.c (record_full_core_target::has_execution): Change
17982 parameter type to inferior pointer.
17983 * target.c (target_has_execution_1): Change parameter type to
17984 inferior pointer.
17985 (target_has_execution_current): Adjust.
17986 * target.h (target_ops::has_execution): Change parameter type to
17987 inferior pointer.
17988 (target_has_execution_1): Change parameter type to inferior
17989 pointer. Change return type to bool.
17990 * tracefile.h (tracefile_target::has_execution): Change parameter
17991 type to inferior pointer.
17992
74375d18
PA
179932020-01-10 Pedro Alves <palves@redhat.com>
17994
17995 * exceptions.c (print_flush): Remove current_top_target() check.
17996
acdf84a6
PA
179972020-01-10 Pedro Alves <palves@redhat.com>
17998
17999 * remote.c (show_remote_exec_file): Show the current inferior's
18000 exec-file instead of the command variable's value.
18001
ec506636
PA
180022020-01-10 Pedro Alves <palves@redhat.com>
18003
18004 * record-full.c (record_full_resume_ptid): New global.
18005 (record_full_target::resume): Set it.
18006 (record_full_wait_1): Use record_full_resume_ptid instead of
18007 inferior_ptid.
18008
873657b9
PA
180092020-01-10 Pedro Alves <palves@redhat.com>
18010
18011 * gdbthread.h (scoped_restore_current_thread)
18012 <dont_restore, restore, m_dont_restore>: Declare.
18013 * thread.c (thread_alive): Add assertion. Return bool.
18014 (switch_to_thread_if_alive): New.
18015 (prune_threads): Switch inferior/thread.
18016 (print_thread_info_1): Switch thread before calling target methods.
18017 (scoped_restore_current_thread::restore): New, factored out from
18018 ...
18019 (scoped_restore_current_thread::~scoped_restore_current_thread):
18020 ... this.
18021 (scoped_restore_current_thread::scoped_restore_current_thread):
18022 Add assertion.
18023 (thread_apply_all_command, thread_select): Use
18024 switch_to_thread_if_alive.
18025
7f0ae84c
GB
180262020-01-10 George Barrett <bob@bob131.so>
18027
18028 * stap-probe.c (stap_modify_semaphore): Don't check for null
18029 semaphores.
18030 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18031 for null semaphores.
18032
f5a7c406
AB
180332020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18034
18035 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18036 all source windows, and maintain horizontal scroll status while
18037 doing so.
18038
9ae6bf64
TT
180392020-01-09 Tom Tromey <tom@tromey.com>
18040
18041 PR tui/18932:
18042 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18043 update_source_window, not print_source_lines.
18044
b2efe70c
AB
180452020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18046
18047 * tui/tui.c (tui_enable): Register tui hooks after calling
18048 tui_display_main.
18049
5f23a082
CB
180502020-01-09 Christian Biesinger <cbiesinger@google.com>
18051
18052 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18053
3061113b
SM
180542020-01-08 Simon Marchi <simon.marchi@efficios.com>
18055
18056 * thread.c (print_thread_info_1): Fix indentation.
18057
57d75002
CB
180582020-01-09 Christian Biesinger <cbiesinger@google.com>
18059
18060 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18061 unique_xmalloc_ptr outside the if to always free the demangled name.
18062
6a053cb1
TT
180632020-01-08 Tom Tromey <tromey@adacore.com>
18064
18065 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18066 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18067 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18068 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18069 Remove.
18070 (section_offsets): New typedef.
18071 * symtab.c (fixup_section, get_msymbol_address): Update.
18072 * symmisc.c (dump_msymbols): Update.
18073 * symfile.h (relative_addr_info_to_section_offsets)
18074 (symfile_map_offsets_to_segments): Update.
18075 * symfile.c (build_section_addr_info_from_objfile)
18076 (init_objfile_sect_indices): Update.
18077 (struct place_section_arg): Change type of "offsets".
18078 (place_section): Update.
18079 (relative_addr_info_to_section_offsets): Change type of
18080 "section_offsets". Remove "num_sections" parameter.
18081 (default_symfile_offsets, syms_from_objfile_1)
18082 (set_objfile_default_section_offset): Update.
18083 (reread_symbols): No need to preserve section offsets by hand.
18084 (symfile_map_offsets_to_segments): Change type of "offsets".
18085 * stap-probe.c (relocate_address): Update.
18086 * stabsread.h (process_one_symbol): Update.
18087 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18088 (solib_target_relocate_section_addresses): Update.
18089 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18090 Update.
18091 * solib-frv.c (frv_relocate_main_executable): Update.
18092 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18093 * solib-aix.c (solib_aix_get_section_offsets): Change return
18094 type.
18095 (solib_aix_solib_create_inferior_hook): Update.
18096 * remote.c (remote_target::get_offsets): Update.
18097 * psymtab.c (find_pc_sect_psymtab): Update.
18098 * psympriv.h (struct partial_symbol) <address, text_low,
18099 text_high>: Update.
18100 * objfiles.h (obj_section_offset): Update.
18101 (struct objfile) <section_offsets>: Change type.
18102 <num_sections>: Remove.
18103 (objfile_relocate): Update.
18104 * objfiles.c (entry_point_address_query): Update
18105 (relocate_one_symbol): Change type of "section_offsets".
18106 (objfile_relocate1, objfile_relocate1): Change type of
18107 "new_offsets".
18108 (objfile_rebase1): Update.
18109 * mipsread.c (mipscoff_symfile_read): Update.
18110 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18111 parameter.
18112 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18113 (parse_external, psymtab_to_symtab_1): Update.
18114 * machoread.c (macho_symfile_offsets): Update.
18115 * ia64-tdep.c (ia64_find_unwind_table): Update.
18116 * hppa-tdep.c (read_unwind_info): Update.
18117 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18118 * dwarf2read.c (create_addrmap_from_index)
18119 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18120 (process_psymtab_comp_unit_reader, add_partial_symbol)
18121 (add_partial_subprogram, process_full_comp_unit)
18122 (read_file_scope, read_func_scope, read_lexical_block_scope)
18123 (read_call_site_scope, dwarf2_rnglists_process)
18124 (dwarf2_ranges_process, dwarf2_ranges_read)
18125 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18126 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18127 Update.
18128 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18129 Update.
18130 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18131 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18132 (process_one_symbol): Change type of "section_offsets".
18133 * ctfread.c (get_objfile_text_range): Update.
18134 * coffread.c (coff_symtab_read, enter_linenos)
18135 (process_coff_symbol): Update.
18136 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18137 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18138
456e800a
TT
181392020-01-08 Tom Tromey <tromey@adacore.com>
18140
18141 * dwarf2read.c (parse_macro_definition): Use std::string.
18142 (parse_macro_definition): Likewise.
18143
6dfa2fc2
TT
181442020-01-08 Tom Tromey <tromey@adacore.com>
18145
18146 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18147 (ATTR_ALLOC_CHUNK): Remove.
18148
421d1616
TT
181492020-01-08 Tom Tromey <tromey@adacore.com>
18150
18151 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18152
43816ebc
TT
181532020-01-08 Tom Tromey <tromey@adacore.com>
18154
18155 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18156 (dwarf2_compute_name, open_dwo_file): Likewise.
18157 (process_enumeration_scope): Use std::vector.
18158 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18159 (partial_die_info::fixup, dwarf2_start_subfile)
18160 (guess_full_die_structure_name, dwarf2_name): Likewise.
18161 (determine_prefix): Update.
18162 (guess_full_die_structure_name): Make return type const.
18163 (partial_die_full_name): Return unique_xmalloc_ptr.
18164 (DW_FIELD_ALLOC_CHUNK): Remove.
18165
4212d509
TT
181662020-01-07 Tom Tromey <tromey@adacore.com>
18167
18168 PR build/24937:
18169 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18170
06a6207a
JT
181712020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18172
18173 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18174
153d79c4
AB
181752020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18176
18177 * stack.c (print_frame_info): Move disassemble_next_line code
18178 inside source_print block.
18179
66182876
EZ
181802020-01-06 Eli Zaretskii <eliz@gnu.org>
18181
18182 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18183 gdb/signals.h, as we are now using native signal symbols.
18184
cbfa8581
SV
181852020-01-06 Shahab Vahedi <shahab@synopsys.com>
18186
18187 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18188 overflow by an early check of content vs threshold.
aac66a4c 18189 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
18190 Likewise.
18191
3f602821
EZ
181922020-01-06 Eli Zaretskii <eliz@gnu.org>
18193
18194 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18195
a08c904d
JT
181962020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18197
18198 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18199 export table if no section contains it's RVA.
18200
89a65580
EZ
182012020-01-06 Eli Zaretskii <eliz@gnu.org>
18202
18203 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18204
8b7fcda2
HD
182052020-01-06 Hannes Domani <ssbssa@yahoo.de>
18206
18207 * source.c (print_source_lines_base): Set last_line_listed.
18208
a61b4f69
SV
182092020-01-06 Shahab Vahedi <shahab@synopsys.com>
18210
18211 * tui/tui-disasm.c: Remove trailing spaces.
18212
559e7e50
EZ
182132020-01-06 Eli Zaretskii <eliz@gnu.org>
18214 Pedro Alves <palves@redhat.com>
18215
18216 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18217 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18218 (windows_gdb_signal_to_target): New function, uses the above
18219 enumeration to convert GDB internal signal codes to equivalent
18220 Windows codes.
18221 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18222 * windows-nat.c: Include "gdb_wait.h".
18223 (get_windows_debug_event): Extract the fatal exception from the
18224 exit status and convert to the equivalent Posix signal number.
18225 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18226 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18227 * gdbsupport/gdb_wait.c: New file, implements
18228 windows_status_to_termsig.
18229 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18230 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18231
f2302a34
AB
182322020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18233
18234 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18235 show_layout.
18236
6a5206eb
LM
182372020-01-05 Luis Machado <luis.machado@linaro.org>
18238
18239 * aarch64-linux-nat.c
18240 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18241 and bfd_mach_aarch64.
18242
6ec1d75e
PW
182432020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18244
18245 * ui-file.c (stdio_file::can_emit_style_escape)
18246 (tee_file::can_emit_style_escape): Ensure style is used also on
18247 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18248 to gdb_stdout.
18249 * main.c (set_gdb_data_directory): Use file style to output the
18250 warning that the given pathname is not a directory.
18251 * top.c (show_history_filename, gdb_safe_append_history)
18252 (show_gdb_datadir): Use file style.
18253
44f81a76
HD
182542020-01-03 Hannes Domani <ssbssa@yahoo.de>
18255
18256 * solib-target.c (struct lm_info_target):
18257 Change offsets to be a unique_xmalloc_ptr.
18258 (solib_target_relocate_section_addresses): Update.
18259
25057eb0
HD
182602020-01-03 Hannes Domani <ssbssa@yahoo.de>
18261
18262 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18263
6e2118f5
BE
182642020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18265
18266 * MAINTAINERS (Write After Approval): Add myself.
18267
8133c7dc
LM
182682020-01-02 Luis Machado <luis.machado@linaro.org>
18269
18270 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18271 Cell BE architecture.
18272 * target.h (struct target_ops) <thread_architecture>: Likewise.
18273
48189bec
HD
182742020-01-01 Hannes Domani <ssbssa@yahoo.de>
18275
18276 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18277
ead1063b
HD
182782020-01-01 Hannes Domani <ssbssa@yahoo.de>
18279
18280 * MAINTAINERS (Write After Approval): Add myself.
18281
e5d78223
JB
182822020-01-01 Joel Brobecker <brobecker@adacore.com>
18283
18284 * gdbarch.sh: Update copyright year range of generated files.
18285
b811d2c2
JB
182862020-01-01 Joel Brobecker <brobecker@adacore.com>
18287
18288 Update copyright year range in all GDB files.
18289
5f4def5c
JB
182902020-01-01 Joel Brobecker <brobecker@adacore.com>
18291
18292 * copyright.py: Convert to Python 3.
18293
51fd4002
JB
182942020-01-01 Joel Brobecker <brobecker@adacore.com>
18295
18296 * copyright.py: Adapt after move of gnulib directory from gdb
18297 directory to toplevel directory.
18298
5fb651f2
JB
182992020-01-01 Joel Brobecker <brobecker@adacore.com>
18300
18301 * copyright.py (main): Exit if run from the wrong directory.
18302
5dd8bf88
JB
183032020-01-01 Joel Brobecker <brobecker@adacore.com>
18304
18305 * top.c (print_gdb_version): Change copyright year to 2020.
18306
9f71dacb 183072020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18308
9f71dacb 18309 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18310
9f71dacb 18311For older changes see ChangeLog-2019.
c906108c
SS
18312\f
18313Local Variables:
18314mode: change-log
18315left-margin: 8
18316fill-column: 74
18317version-control: never
57da7796 18318coding: utf-8
c906108c 18319End: