gdb: make deprecated_cmd_warning i18n friendly
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
44c77c32
AB
12020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
4 of NULL. Don't print message piece by piece, but sentence at a
5 time to allow internationalisation. Some whitespace cleanup.
6
9ef6d4a1
AB
72020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 PR cli/15104
10 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
11 deprecated_cmd_warning.
12 (deprecated_cmd_warning): Take extra parameter, call
13 lookup_cmd_composition_1 and pass new parameter through.
14 (lookup_cmd_composition_1): New function, takes implementation of
15 lookup_cmd_composition but with extra parameter.
16 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
17 passing in cmdlist.
18 * command.h (deprecated_cmd_warning): Add extra parameter to
19 declaration.
20 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
21
1536146f
AB
222020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
23
24 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
25 command.h, add extra parameter, and use this to guard giving a
26 warning.
27 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
28 include argument names in declaration, add new argument.
29 * completer.c (complete_line_internal_1): Remove unneeded
30 brackets, pass extra argument to lookup_cmd_1.
31
94ba44a6
SM
322020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * infrun.h (debug_infrun): Make a bool.
35 * infrun.c (debug_infrun): Make a bool.
36 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
37 debug infrun".
38
74b773fc
SM
392020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
40
41 * displaced-stepping.h (displaced_debug_printf): Use
42 debug_prefixed_printf_cond.
43 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
44 (dwarf_read_debug_printf_v): Likewise.
45 * infrun.h (infrun_debug_printf): Likewise.
46 * linux-nat.c (linux_nat_debug_printf): Likewise.
47
02c72701
TT
482020-12-11 Tom Tromey <tom@tromey.com>
49
50 * p-exp.y (intvar): Remove global.
51 (DOLLAR_VARIABLE): Change type.
52 (start): Update.
53 (exp): Call write_dollar_variable here...
54 (yylex): ... not here.
55 * m2-exp.y (DOLLAR_VARIABLE): Change type.
56 (variable): Call write_dollar_variable here...
57 (yylex): ... not here.
58 * f-exp.y (DOLLAR_VARIABLE): Change type.
59 (exp): Call write_dollar_variable here...
60 (yylex): ... not here.
61
07d9937a
TT
622020-12-11 Tom Tromey <tom@tromey.com>
63
64 * varobj.c (varobj_create): Update.
65 (install_variable): Return void.
66
1345dee2
TT
672020-12-11 Tom Tromey <tom@tromey.com>
68
69 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
70
446d2c03
TT
712020-12-11 Tom Tromey <tom@tromey.com>
72
73 * varobj.c (varobj_clear_saved_item): Remove.
74 (update_dynamic_varobj_children): Update.
75 (varobj::~varobj): Don't call varobj_clear_saved_item.
76
11106495
TT
772020-12-11 Tom Tromey <tom@tromey.com>
78
79 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
80 (update_dynamic_varobj_children, create_child)
81 (create_child_with_value): Update.
82 * varobj-iter.h (struct varobj_item) <value>: Now a
83 value_ref_ptr.
84 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
85
24fd95b4
TT
862020-12-11 Tom Tromey <tom@tromey.com>
87
88 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
89 (varobj_get_iterator): Return unique_ptr.
90 (update_dynamic_varobj_children, install_visualizer)
91 (varobj::~varobj): Update.
92 * python/python-internal.h (py_varobj_get_iterator): Return
93 unique_ptr.
94 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
95
74462664
TT
962020-12-11 Tom Tromey <tom@tromey.com>
97
98 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
99 (varobj_clear_saved_item, update_dynamic_varobj_children):
100 Update.
101
60ee72f6
TT
1022020-12-11 Tom Tromey <tom@tromey.com>
103
104 * varobj.c (update_dynamic_varobj_children): Update.
105 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
106 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
107 type.
108 (py_varobj_iter::next): Likewise.
109
54746ce3
TT
1102020-12-11 Tom Tromey <tom@tromey.com>
111
112 * varobj.c (update_dynamic_varobj_children, install_visualizer)
113 (varobj::~varobj): Update.
114 * varobj-iter.h (struct varobj_iter): Change to interface class.
115 (struct varobj_iter_ops): Remove.
116 (varobj_iter_next, varobj_iter_delete): Remove.
117 * python/py-varobj.c (struct py_varobj_iter): Derive from
118 varobj_iter. Add constructor, destructor. Rename members.
119 (py_varobj_iter::~py_varobj_iter): Rename from
120 py_varobj_iter_dtor.
121 (py_varobj_iter::next): Rename from py_varobj_iter_next.
122 (py_varobj_iter_ops): Remove.
123 (py_varobj_iter): Rename from py_varobj_iter_ctor.
124 (py_varobj_iter_new): Remove.
125 (py_varobj_get_iterator): Update.
126
d8f168dd
TT
1272020-12-11 Tom Tromey <tom@tromey.com>
128
129 * varobj.h (all_root_varobjs): Take a function_view.
130 * varobj.c (all_root_varobjs): Take a function_view.
131 (varobj_invalidate_iter): Remove unused parameter.
132 (varobj_invalidate): Update.
133 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
134 (mi_cmd_var_update_iter): Change parameters.
135
76deb5d9
TT
1362020-12-11 Tom Tromey <tom@tromey.com>
137
138 * varobj.c (struct varobj_root) <next>: Remove.
139 (struct vlist): Remove.
140 (rootlist): Now a std::list.
141 (install_variable, uninstall_variable, all_root_varobjs): Update.
142
2c1413a9
TT
1432020-12-11 Tom Tromey <tom@tromey.com>
144
145 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
146 (varobj_table): Now htab_t.
147 (varobj_get_handle, install_variable, uninstall_variable):
148 Update.
149 (hash_varobj, eq_varobj_and_string): New functions.
150 (hash_varobj): Update.
151
b6433ede
TT
1522020-12-11 Tom Tromey <tom@tromey.com>
153
154 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
155 * ada-lang.c (check_status_exception): Update.
156 * breakpoint.c (free_bp_location): Remove.
157 (decref_bp_location): Use bp_location_ref_policy.
158 (bpstats::bpstats): Don't call incref_bp_location.
159 (bpstats::~bpstats): Remove.
160 (bpstats::bpstats): Update.
161 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
162 (bp_location::bp_location): Update.
163 (incref_bp_location): Remove.
164 (bkpt_print_it): Update.
165 * breakpoint.h (class bp_location): Derive from
166 refcounted_object.
167 (struct bpstats): Remove destructor.
168 <bp_location_at>: Now a bp_location_ref_ptr.
169 <refc>: Remove.
170 (bp_location_ref_ptr): New typedef.
171 (struct bp_location_ref_policy): New.
172
bfcb9db8
TT
1732020-12-11 Tom Tromey <tom@tromey.com>
174
175 * thread.c (class scoped_inc_dec_ref): Remove.
176 (tp_array_compar_ascending, tp_array_compar_descending): Change
177 parameter types.
178 (thread_apply_all_command): Use thread_info_ref.
179
d634cd0b
TT
1802020-12-11 Tom Tromey <tom@tromey.com>
181
182 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
183 (stop_context::stop_context): Update.
184 (stop_context::~stop_context): Remove.
185
51107df5
TT
1862020-12-11 Tom Tromey <tom@tromey.com>
187
188 * inferior.c (current_inferior_): Change type.
189 (current_inferior, set_current_inferior, initialize_inferiors):
190 Update.
191
15f4dddd
TT
1922020-12-11 Tom Tromey <tom@tromey.com>
193
194 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
195 Change type.
196
a9f14fa5
TT
1972020-12-11 Tom Tromey <tromey@adacore.com>
198
199 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
200 field.
201 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
202 (read_atcb): Use cpu_id_offset.
203
2ccee230
KB
2042020-12-10 Kevin Buettner <kevinb@redhat.com>
205
206 * ada-lang.c (ada_fold_name): Fix off-by-one error.
207
ae1f4d2d
LM
2082020-12-10 Luis Machado <luis.machado@linaro.org>
209
210 * breakpoint.c (should_be_inserted): Don't output newline.
211
6afcd2d4
LM
2122020-12-10 Luis Machado <luis.machado@linaro.org>
213
214 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
215 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
216 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
217 * arch/aarch64.h: ... here.
218 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
219 (aarch64_maybe_swab128): New function.
220 (aarch64_sve_regs_copy_to_reg_buf)
221 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
222 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
223 the data field.
224 (TF_REG_VALUE_BYTES): New enum value.
225 (trad_frame_value_bytes_p): New function.
226 (trad_frame_set_value_bytes): New function.
227 (trad_frame_set_reg_value_bytes): New function.
228 (trad_frame_get_prev_register): Handle register values saved as bytes.
229 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
230 (struct trad_frame_saved_reg) <data>: New field.
231 (trad_frame_set_value_bytes): New prototype.
232 (trad_frame_value_bytes_p): New prototype.
233
15cc148f
MS
2342020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
235
236 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
237 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
238 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
239
12932e2c
TT
2402020-12-09 Tom Tromey <tromey@adacore.com>
241
242 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
243
5cde1d82
TT
2442020-12-09 Tom Tromey <tromey@adacore.com>
245
246 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
247 and "denominator" to gdb_mpz. Handle block forms.
248 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
249 "denominator" to gdb_mpz.
250 (finish_fixed_point_type): Update.
251 (has_zero_over_zero_small_attribute): Update.
252
d9c3a9c0
TT
2532020-12-09 Tom Tromey <tromey@adacore.com>
254
255 * expprint.c (op_name): Update.
256 * expression.h (enum exp_opcode): Update.
257 * std-operator.def: Add more opcodes.
258 * ada-operator.def, fortran-operator.def: Remove, moving contents
259 into std-operator.def.
260
6ad368b8
SM
2612020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
262
263 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
264 Return {} instead of false.
265 (get_discrete_bounds): Compute high bound only if low bound is
266 valid.
267
5b56203a
SM
2682020-12-09 Simon Marchi <simon.marchi@efficios.com>
269
270 PR 26875, PR 26901
271 * gdbtypes.c (get_discrete_low_bound): Make non-static.
272 (get_discrete_high_bound): Make non-static.
273 * gdbtypes.h (get_discrete_low_bound): New declaration.
274 (get_discrete_high_bound): New declaration.
275 * valarith.c (value_subscript): Only fetch high bound if
276 necessary.
277
14c09924
SM
2782020-12-09 Simon Marchi <simon.marchi@efficios.com>
279
280 * gdbtypes.c (get_discrete_bounds): Implement with
281 get_discrete_low_bound and get_discrete_high_bound.
282 (get_discrete_low_bound): New.
283 (get_discrete_high_bound): New.
284
1f8d2881
SM
2852020-12-09 Simon Marchi <simon.marchi@efficios.com>
286
287 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
288 callers.
289 * gdbtypes.c (get_discrete_bounds): Return bool.
290
6244c119
SM
2912020-12-09 Simon Marchi <simon.marchi@efficios.com>
292
293 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
294 (ada_value_slice): Adjust.
295 (pos_atr): Adjust.
296 * gdbtypes.c (get_discrete_bounds): Adjust.
297 (discrete_position): Return optional.
298 * gdbtypes.h (discrete_position): Return optional.
299
a4915e8d
TT
3002020-12-07 Tom Tromey <tromey@adacore.com>
301
302 * maint.c (_initialize_maint_cmds): Use expression command
303 completer for "maint print type".
304
1f58f6c2
TBA
3052020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
306
307 * completer.c (complete_explicit_location): Also add keywords
308 that start with '-' to the completion list.
309
5759831a
TBA
3102020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
311
312 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
313 keyword may be followed by any keyword.
314 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
315 'toklen' in the case for "-force-condition".
316
21e051b3
TBA
3172020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
318
319 * main.c (catch_command_errors): Add a flag parameter; invoke
320 `bpstat_do_actions` if the flag is set.
321 (execute_cmdargs): Update a call to `catch_command_errors`.
322
f51f9f1d
TV
3232020-12-07 Tom de Vries <tdevries@suse.de>
324
325 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
326
00158a68
TT
3272020-12-06 Tom Tromey <tom@tromey.com>
328
329 PR ada/26999
330 * ada-lang.c (replace_operator_with_call): Rewrite.
331
296cfb88
GF
3322020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
333
334 PR breakpoints/27009
335 * s390-tdep.h (op_bc): Correct BC opcode value.
336
63c457b9
JB
3372020-12-06 Joel Brobecker <brobecker@adacore.com>
338
339 * gmp-utils.h (gdb_mpz::safe_export): New private method.
340 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
341 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
342 (gdb_mpz::safe_export): New method.
343 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
344 Update function description.
345 (check_as_integer_raises_out_of_range_error): New function.
346 (gdb_mpz_as_integer_out_of_range): New function.
347 (_initialize_gmp_utils_selftests): Register
348 gdb_mpz_as_integer_out_of_range as a selftest.
349
3c7ba803
JB
3502020-12-05 Joel Brobecker <brobecker@adacore.com>
351
352 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
353 TARGET_CHAR_BIT.
354 (gdb_mpz::write): Likewise.
355
372ff58f
SM
3562020-12-04 Simon Marchi <simon.marchi@efficios.com>
357
358 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
359 number of displaced step buffers.
360
480af54c
SM
3612020-12-04 Simon Marchi <simon.marchi@efficios.com>
362
363 * displaced-stepping.h (struct displaced_step_buffer): Rename
364 to...
365 (struct displaced_step_buffers): ... this.
366 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
367 <struct displaced_step_buffer>: New inner class.
368 <m_buffers>: New.
369 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
370 to...
371 (displaced_step_buffers::prepare): ... this, adjust for multiple
372 buffers.
373 (displaced_step_buffer::finish): Rename to...
374 (displaced_step_buffers::finish): ... this, adjust for multiple
375 buffers.
376 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
377 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
378 adjust for multiple buffers.
379 (displaced_step_buffer::restore_in_ptid): Rename to...
380 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
381 multiple buffers.
382 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
383 for num_disp_step_buffers.
384 * linux-tdep.c (struct linux_gdbarch_data)
385 <num_disp_step_buffers>: New field.
386 (struct linux_info) <disp_step_buf>: Rename to...
387 <disp_step_bufs>: ... this, change type to
388 displaced_step_buffers.
389 (linux_displaced_step_prepare): Use
390 linux_gdbarch_data::num_disp_step_buffers to create that number
391 of buffers.
392 (linux_displaced_step_finish): Adjust.
393 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
394 (linux_displaced_step_restore_all_in_ptid): Adjust.
395 (linux_init_abi): Change supports_displaced_step parameter for
396 num_disp_step_buffers, save it in linux_gdbarch_data.
397 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
398 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
399 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
400 supports_displaced_step parameter for num_disp_step_buffers.
401 (amd64_linux_init_abi): Adjust.
402 (amd64_x32_linux_init_abi): Adjust.
403 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
404 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
405 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
406 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
407 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
408 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
409 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
410 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
411 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
412 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
413 * m68k-linux-tdep.c (m68k_linux_init_abi):
414 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
415 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
416 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
417 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
418 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
419 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
420 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
421 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
422 Change type to displaced_step_buffers.
423 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
424 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
425 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
426 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
427 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
428 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
429 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
430
d9655058
SM
4312020-12-04 Simon Marchi <simon.marchi@efficios.com>
432
433 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
434 obkstack.
435 (_initialize_linux_tdep): Register pre-init gdb data instead of
436 post-init.
437
187b041e
SM
4382020-12-04 Simon Marchi <simon.marchi@efficios.com>
439
440 * displaced-stepping.h (struct
441 displaced_step_copy_insn_closure): Adjust comments.
442 (struct displaced_step_inferior_state) <step_thread,
443 step_gdbarch, step_closure, step_original, step_copy,
444 step_saved_copy>: Remove fields.
445 (struct displaced_step_thread_state): New.
446 (struct displaced_step_buffer): New.
447 * displaced-stepping.c (displaced_step_buffer::prepare): New.
448 (write_memory_ptid): Move from infrun.c.
449 (displaced_step_instruction_executed_successfully): New,
450 factored out of displaced_step_finish.
451 (displaced_step_buffer::finish): New.
452 (displaced_step_buffer::copy_insn_closure_by_addr): New.
453 (displaced_step_buffer::restore_in_ptid): New.
454 * gdbarch.sh (displaced_step_location): Remove.
455 (displaced_step_prepare, displaced_step_finish,
456 displaced_step_copy_insn_closure_by_addr,
457 displaced_step_restore_all_in_ptid): New.
458 * gdbarch.c: Re-generate.
459 * gdbarch.h: Re-generate.
460 * gdbthread.h (class thread_info) <displaced_step_state>: New
461 field.
462 (thread_step_over_chain_remove): New declaration.
463 (thread_step_over_chain_next): New declaration.
464 (thread_step_over_chain_length): New declaration.
465 * thread.c (thread_step_over_chain_remove): Make non-static.
466 (thread_step_over_chain_next): New.
467 (global_thread_step_over_chain_next): Use
468 thread_step_over_chain_next.
469 (thread_step_over_chain_length): New.
470 (global_thread_step_over_chain_enqueue): Add debug print.
471 (global_thread_step_over_chain_remove): Add debug print.
472 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
473 Remove.
474 * infrun.c (get_displaced_stepping_state): New.
475 (displaced_step_in_progress_any_inferior): Remove.
476 (displaced_step_in_progress_thread): Adjust.
477 (displaced_step_in_progress): Adjust.
478 (displaced_step_in_progress_any_thread): New.
479 (get_displaced_step_copy_insn_closure_by_addr): Remove.
480 (gdbarch_supports_displaced_stepping): Use
481 gdbarch_displaced_step_prepare_p.
482 (displaced_step_reset): Change parameter from inferior to
483 thread.
484 (displaced_step_prepare_throw): Implement using
485 gdbarch_displaced_step_prepare.
486 (write_memory_ptid): Move to displaced-step.c.
487 (displaced_step_restore): Remove.
488 (displaced_step_finish): Implement using
489 gdbarch_displaced_step_finish.
490 (start_step_over): Allow starting more than one displaced step.
491 (prepare_for_detach): Handle possibly multiple threads doing
492 displaced steps.
493 (handle_inferior_event): Handle possibility that fork event
494 happens while another thread displaced steps.
495 * linux-tdep.h (linux_displaced_step_prepare): New.
496 (linux_displaced_step_finish): New.
497 (linux_displaced_step_copy_insn_closure_by_addr): New.
498 (linux_displaced_step_restore_all_in_ptid): New.
499 (linux_init_abi): Add supports_displaced_step parameter.
500 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
501 (linux_displaced_step_prepare): New.
502 (linux_displaced_step_finish): New.
503 (linux_displaced_step_copy_insn_closure_by_addr): New.
504 (linux_displaced_step_restore_all_in_ptid): New.
505 (linux_init_abi): Add supports_displaced_step parameter,
506 register displaced step methods if true.
507 (_initialize_linux_tdep): Register inferior_execd observer.
508 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
509 supports_displaced_step parameter, adjust call to
510 linux_init_abi. Remove call to
511 set_gdbarch_displaced_step_location.
512 (amd64_linux_init_abi): Adjust call to
513 amd64_linux_init_abi_common.
514 (amd64_x32_linux_init_abi): Likewise.
515 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
516 linux_init_abi. Remove call to
517 set_gdbarch_displaced_step_location.
518 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
519 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
520 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
521 linux_init_abi.
522 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
523 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
524 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
525 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
526 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
527 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
528 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
529 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
530 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
531 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
532 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
533 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
534 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
535 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
536 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
537 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
538 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
539 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
540 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
541 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
542 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
543 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
544 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
545 linux_init_abi. Remove call to
546 set_gdbarch_displaced_step_location.
547 * arm-tdep.c (arm_pc_is_thumb): Call
548 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
549 get_displaced_step_copy_insn_closure_by_addr.
550 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
551 clear gdbarch methods.
552 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
553 (get_ppc_per_inferior): New function.
554 (ppc_displaced_step_prepare): New function.
555 (ppc_displaced_step_finish): New function.
556 (ppc_displaced_step_restore_all_in_ptid): New function.
557 (rs6000_gdbarch_init): Register new gdbarch methods.
558 * s390-tdep.c (s390_gdbarch_init): Don't call
559 set_gdbarch_displaced_step_location, set new gdbarch methods.
560
c7acb87b
SM
5612020-12-04 Simon Marchi <simon.marchi@efficios.com>
562
563 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
564 * aarch64-tdep.h: Include displaced-stepping.h.
565 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
566 Move here.
567 (displaced_step_copy_insn_closure_up): Move here.
568 (struct buf_displaced_step_copy_insn_closure): Move here.
569 (struct displaced_step_inferior_state): Move here.
570 (debug_displaced): Move here.
571 (displaced_debug_printf_1): Move here.
572 (displaced_debug_printf): Move here.
573 * displaced-stepping.c: New file.
574 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
575 * gdbarch.h: Re-generate.
576 * inferior.h: Include displaced-stepping.h.
577 * infrun.h (debug_displaced): Move to displaced-stepping.h.
578 (displaced_debug_printf_1): Likewise.
579 (displaced_debug_printf): Likewise.
580 (struct displaced_step_copy_insn_closure): Likewise.
581 (displaced_step_copy_insn_closure_up): Likewise.
582 (struct buf_displaced_step_copy_insn_closure): Likewise.
583 (struct displaced_step_inferior_state): Likewise.
584 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
585 (displaced_debug_printf_1): Likewise.
586 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
587 Likewise.
588 (_initialize_infrun): Don't register "set/show debug displaced".
589
94b24c74
SM
5902020-12-04 Simon Marchi <simon.marchi@efficios.com>
591
592 * linux-tdep.c (get_linux_inferior_data): Add inferior
593 parameter.
594 (linux_vsyscall_range): Pass current inferior.
595
bab37966
SM
5962020-12-04 Simon Marchi <simon.marchi@efficios.com>
597
598 * infrun.c (displaced_step_prepare_throw): Change return type to
599 displaced_step_prepare_status.
600 (displaced_step_prepare): Likewise.
601 (displaced_step_finish): Change return type to
602 displaced_step_finish_status.
603 (resume_1): Adjust.
604 (stop_all_threads): Adjust.
605 * displaced-stepping.h: New file.
606
7def77a1
SM
6072020-12-04 Simon Marchi <simon.marchi@efficios.com>
608
609 * infrun.c (displaced_step_fixup): Rename to...
610 (displaced_step_finish): ... this, update all callers.
611
1152d984
SM
6122020-12-04 Simon Marchi <simon.marchi@efficios.com>
613
614 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
615 (get_displaced_step_copy_insn_closure_by_addr): ... this.
616 Update all users.
617 (displaced_step_closure): Rename to...
618 (displaced_step_copy_insn_closure): ... this. Update all users.
619 (displaced_step_closure_up): Rename to...
620 (displaced_step_copy_insn_closure_up). ... this. Update all
621 users.
622 (buf_displaced_step_closure): Rename to...
623 (buf_displaced_step_copy_insn_closure): ... this. Update all
624 users.
625 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
626 (get_displaced_step_copy_insn_closure_by_addr): ... this.
627 Update all users.
628 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
629 (aarch64_displaced_step_copy_insn_closure): ... this. Update
630 all users.
631 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
632 (amd64_displaced_step_copy_insn_closure): ... this. Update all
633 users.
634 * arm-tdep.h (arm_displaced_step_closure): Rename to...
635 (arm_displaced_step_copy_insn_closure): ... this. Update all
636 users.
637 * i386-tdep.h (i386_displaced_step_closure): Rename to...
638 (i386_displaced_step_copy_insn_closure): ... this. Update all
639 users.
640 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
641 (ppc_displaced_step_copy_insn_closure): ... this. Update all
642 users.
643 * s390-tdep.c (s390_displaced_step_closure): Rename to...
644 (s390_displaced_step_copy_insn_closure): ... this. Update all
645 users.
646 * gdbarch.h: Re-generate.
647 * gdbarch.c: Re-generate.
648
28d5518b
SM
6492020-12-04 Simon Marchi <simon.marchi@efficios.com>
650
651 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
652 (global_thread_step_over_chain_enqueue): ... this. Update all
653 users.
654 (thread_step_over_chain_remove): Rename to...
655 (global_thread_step_over_chain_remove): ... this. Update all
656 users.
657 (thread_step_over_chain_next): Rename to...
658 (global_thread_step_over_chain_next): ... this. Update all
659 users.
660 * infrun.h (step_over_queue_head): Rename to...
661 (global_thread_step_over_chain_head): ... this. Update all
662 users.
663 * infrun.c (step_over_queue_head): Rename to...
664 (global_thread_step_over_chain_head): ... this. Update all
665 users.
666 * thread.c (step_over_chain_remove): Rename to...
667 (thread_step_over_chain_remove): ... this. Update all users.
668 (thread_step_over_chain_next): Rename to...
669 (global_thread_step_over_chain_next): ... this. Update all
670 users.
671 (thread_step_over_chain_enqueue): Rename to...
672 (global_thread_step_over_chain_enqueue): ... this. Update all
673 users.
674 (thread_step_over_chain_remove): Rename to...
675 (global_thread_step_over_chain_remove): ... this. Update all
676 users.
677
f5f01699
SM
6782020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
679
680 * infrun.c (get_displaced_stepping_state): Remove, change
681 callers to access the field directly.
682
c0aba012
SM
6832020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
684
685 * infrun.c (handle_inferior_event): Restore displaced step
686 buffer bytes in child process when handling fork, even if fork
687 happened in another thread than the displaced-stepping one.
688
3b7a962d
SM
6892020-12-04 Simon Marchi <simon.marchi@efficios.com>
690
691 * infrun.c (infrun_inferior_execd): New function.
692 (_initialize_infrun): Attach inferior_execd observer.
693
42a4fec5
SM
6942020-12-04 Simon Marchi <simon.marchi@efficios.com>
695
696 * observable.h (inferior_execd): Declare new observable.
697 * observable.c (inferior_execd): Declare new observable.
698 * infrun.c (follow_exec): Notify inferior_execd observer.
699 * jit.c (jit_inferior_created_hook): Make static.
700 (_initialize_jit): Register inferior_execd observer.
701 * jit.h (jit_inferior_created_hook): Remove declaration.
702 * solib.c (_initialize_solib): Register inferior_execd observer.
703
aafdfb4e
TV
7042020-12-04 Tom de Vries <tdevries@suse.de>
705
706 PR gdb/27003
707 * completer.c (completion_tracker::build_completion_result): Don't
708 access match_list[0][-1].
709
f99b5177
TT
7102020-12-04 Tom Tromey <tromey@adacore.com>
711
712 * linespec.c (struct linespec_token): Rename; remove typedef.
713 * guile/scm-block.c (struct block_smob): Remove typedef.
714 (struct block_syms_progress_smob): Likewise.
715 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
716 * guile/scm-symtab.c (symtab_smob): Remove typedef.
717 (struct sal_smob): Remove typedef.
718 * guile/scm-param.c (struct param_smob): Remove typedef.
719 * guile/scm-progspace.c (struct pspace_smob): Rename.
720 * guile/scm-objfile.c (struct objfile_smob): Rename.
721 * guile/scm-iterator.c (struct iterator_smob): Rename.
722 * guile/scm-frame.c (struct frame_smob): Rename.
723 * guile/scm-arch.c (struct arch_smob): Rename.
724 * guile/scm-type.c (struct field_smob): Remove typedef.
725 (struct type_smob): Rename.
726 * guile/scm-cmd.c (struct command_smob): Remove typedef.
727 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
728 * guile/scm-value.c (struct value_smob): Remove typedef.
729 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
730 * guile/guile-internal.h (struct scheme_variable)
731 (struct scheme_function, struct scheme_integer_constant)
732 (struct gdb_smob, struct chained_gdb_smob)
733 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
734 (objfile_smob, pspace_smob, type_smob): Remove typedef.
735 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
736 (struct pretty_printer_worker_smob): Remove typedef.
737 * guile/scm-exception.c (struct exception_smob): Remove typedef.
738 * python/py-block.c (struct block_object): Remove typedef.
739 (block_syms_iterator_object): Update.
740 (set_block): Update.
741 (block_syms_iterator_object): Remove typedef.
742 * python/py-inferior.c (struct membuf_object): Remove typedef.
743 * python/py-symtab.c (struct symtab_object): Remove typedef.
744 (set_symtab): Update.
745 (sal_object): Remove typedef.
746 (set_sal): Update.
747 * python/py-frame.c (frame_object): Remove typedef.
748 * python/py-record-btrace.c (struct btpy_list_object): Remove
749 typedef.
750 * python/py-arch.c (struct arch_object): Remove typedef.
751 * python/py-linetable.c (struct linetable_entry_object)
752 (linetable_object, struct ltpy_iterator_object): Remove typedef.
753 * python/py-events.h (eventregistry_object): Remove typedef.
754 (struct events_object): Remove typedef.
755 * python/python-internal.h (gdbpy_breakpoint_object): Remove
756 typedef.
757 (thread_object): Remove typedef.
758 * python/py-progspace.c (pspace_object): Remove typedef.
759 * python/py-value.c (struct value_object): Remove typedef.
760 * python/py-record.h (recpy_record_object): Remove typedef.
761 (struct recpy_element_object): Remove typedef.
762 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
763 * python/py-objfile.c (objfile_object): Remove typedef.
764 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
765 * python/py-type.c (type_object): Remove typedef.
766 (typy_iterator_object): Update.
767 (set_type): Update.
768 (field_object): Remove typedef.
769 (typy_iterator_object): Remove typedef.
770 * python/py-registers.c (register_descriptor_iterator_object):
771 Remove typedef.
772 (struct register_descriptor_object)
773 (struct reggroup_iterator_object, struct reggroup_object): Remove
774 typedef.
775 * python/py-record.c (recpy_gap_object): Remove typedef.
776 * python/py-symbol.c (symbol_object): Remove typedef.
777 (set_symbol): Update.
778 * python/py-event.h (event_object): Remove typedef.
779 * python/py-param.c (parmpy_object): Remove typedef.
780 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
781 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
782 (unwind_info_object, struct cached_frame_info): Likewise.
783
91f87213
TT
7842020-12-04 Tom Tromey <tromey@adacore.com>
785
786 * value.c (value_internal_function_name): Make return type const.
787 * value.h (value_internal_function_name): Make return type const.
788
5382f971
LM
7892020-12-04 Luis Machado <luis.machado@linaro.org>
790
791 * aarch64-tdep.c (submask, bit, bits): Remove.
792 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
793 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
794 (aarch64_decode_cb, aarch64_decode_tb)
795 (aarch64_decode_ldr_literal): Use sbits to extract a signed
796 immediate.
797 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
798
b6a6aa07
TV
7992020-12-04 Tom de Vries <tdevries@suse.de>
800
801 PR tdep/27007
802 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
803
0bc2e38d
SM
8042020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
805
806 PR gdb/26876
807 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
808 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
809
25428040
AB
8102020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
811
812 * arch/riscv.c: Include 'rv32e-xregs.c'.
813 (riscv_create_target_description): Update to handle rv32e.
814 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
815 member variable.
816 <operator==>: Update to account for new field.
817 <hash>: Likewise.
818 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
819 * features/riscv/rv32e-xregs.c: Generated.
820 * features/riscv/rv32e-xregs.xml: New file.
821 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
822 file.
823 (riscv_debug_infcall): Likewise.
824 (riscv_debug_unwinder): Likewise.
825 (riscv_debug_gdbarch): Likewise.
826 (enum riscv_register_required_status): Delete.
827 (struct riscv_register_feature): Add constructor, delete default
828 constructor, copy, and assign constructors.
829 (struct riscv_register_feature::register_info) <required>: Delete.
830 <check>: Update comment and arguments.
831 (struct riscv_register_feature) <name>: Change to member function.
832 <prefer_first_name>: Delete.
833 <tdesc_feature>: New member function.
834 <registers>: Rename to...
835 <m_registers>: ...this.
836 <m_feature_name>: New member variable.
837 (riscv_register_feature::register_info::check): Update arguments.
838 (riscv_xreg_feature): Rewrite as class, create a single static
839 instance of the class.
840 (riscv_freg_feature): Likewise.
841 (riscv_virtual_feature): Likewise.
842 (riscv_csr_feature): Likewise.
843 (riscv_create_csr_aliases): Has become a member function inside
844 riscv_csr_feature class.
845 (riscv_abi_embedded): New function definition.
846 (riscv_register_name): Adjust to use new feature objects.
847 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
848 and adjust available argument registers.
849 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
850 (riscv_check_tdesc_feature): Delete.
851 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
852 (riscv_gdbarch_init): Delete target description checking code, and
853 instead call to the new feature objects to perform the checks.
854 Reorder handling of no abi information case, allows small code
855 simplification.
856 (_initialize_riscv_tdep): Remove call, this is now done in the
857 riscv_csr_feature constructor.
858 * riscv-tdep.h (riscv_abi_embedded): Declare.
859
533b2ae0
AB
8602020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
861
862 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
863 DECLARE_CSR_ALIAS.
864
e4502042
AB
8652020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
866
867 * riscv-tdep.c (riscv_is_unknown_csr): New function,
868 implementation moved from riscv_register_reggroup_p.
869 (riscv_register_reggroup_p): Update group handling for unknown
870 CSRs.
871
2bf3b79d
SDJ
8722020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
873
874 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
875 (dwarf2_get_dwz_file): Convert 'filename' to a
876 std::string. Use dwz_search_other_debugdirs to search for DWZ
877 files in the debug-file-directories provided by the user as well.
878
77bf7e99
TT
8792020-12-01 Tom Tromey <tom@tromey.com>
880
881 * parse.c (expr_builder::expr_builder): Initialize expout.
882 (expr_builder::release): Use expression::resize.
883 (expression::expression, expression::~expression)
884 (expression::resize): New methods.
885 (write_exp_elt): Use expression::resize.
886 (prefixify_expression): Update.
887 (increase_expout_size): Use expression::resize.
888 * expression.h (struct expression): Add constructor, destructor.
889 <resize>: New method.
890 (expression_up): Change type.
891
539d71e8
RA
8922020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
893 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
894 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
895 set region.
896
7ce05d21
TV
8972020-11-30 Tom de Vries <tdevries@suse.de>
898
899 PR symtab/26905
900 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
901 is_reference parameter.
902 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
903
88b91969
TT
9042020-11-30 Tom Tromey <tom@tromey.com>
905
906 * rust-lang.c (rust_op_name): Remove.
907 (exp_descriptor_rust): Update.
908 * parser-defs.h (op_name_standard): Don't declare.
909 (struct exp_descriptor) <op_name>: Remove.
910 * parse.c (exp_descriptor_standard): Update.
911 * opencl-lang.c (exp_descriptor_opencl): Update.
912 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
913 * f-lang.c (op_name_f): Remove.
914 (f_language::exp_descriptor_tab): Update.
915 * expression.h (op_name): Update.
916 * expprint.c (op_name): Rewrite.
917 (op_name_standard): Remove.
918 (dump_raw_expression, dump_subexp): Update.
919 * c-lang.c (exp_descriptor_c): Update.
920 * ax-gdb.c (gen_expr): Update.
921 * ada-lang.c (ada_op_name): Remove.
922 (ada_exp_descriptor): Update.
923
1cd49c43
TT
9242020-11-30 Tom Tromey <tom@tromey.com>
925
926 * eval.c (init_array_element): Remove.
927 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
928
96fb9086
HD
9292020-11-29 Hannes Domani <ssbssa@yahoo.de>
930
931 PR tui/26973
932 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
933 static locator win info.
934
b4132322
AR
9352020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
936
937 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
938 program.
939
3df8c6af
AB
9402020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
941
942 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
943 is always initialized.
944
0ae45769
RA
9452020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
946 * MAINTAINERS (Write After Approval): Add myself.
947
239ca5e4
PW
9482020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
949
950 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
951 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
952
cbfa382a
TT
9532020-11-25 Tom Tromey <tom@tromey.com>
954
955 * eval.c (evaluate_subexp_standard): Remove unnecessary
956 variables.
957
af30c400
TT
9582020-11-25 Tom Tromey <tom@tromey.com>
959
960 * d-lang.c: Include parser-defs.h.
961 * rust-lang.c: Include parser-defs.h.
962 * c-lang.h: Do not include parser-defs.h.
963
1c64f6cb
SM
9642020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
965
966 * regcache.h (struct cached_reg): Remove typedef.
967
2c20a601
JB
9682020-11-24 Joel Brobecker <brobecker@adacore.com>
969
970 * README: Fix the URL of the MPFR library.
971
c609df64
JB
9722020-11-24 Joel Brobecker <brobecker@adacore.com>
973
974 * README: Document the --with-libgmp-prefix configure option.
975
fa123c32
JB
9762020-11-24 Joel Brobecker <brobecker@adacore.com>
977
978 * NEWS: Add entry documenting support for DWARF-based fixed
979 point types.
980
0fb8bb02
JB
9812020-11-24 Joel Brobecker <brobecker@adacore.com>
982
983 * NEWS: Document that building GDB now requires GMP.
984
4afa9fd9
JB
9852020-11-24 Joel Brobecker <brobecker@adacore.com>
986
987 * typeprint.c (print_type_scalar): Add handling of
988 TYPE_CODE_FIXED_POINT.
989
af619ce9
JB
9902020-11-24 Joel Brobecker <brobecker@adacore.com>
991
992 * valarith.c (fixed_point_binop): Replace the
993 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
994 users accordingly.
995
e6fcee3a
JB
9962020-11-24 Joel Brobecker <brobecker@adacore.com>
997
998 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
999 replacing fixed_point_scaling_factor. All callers updated
1000 throughout this project.
1001 (fixed_point_scaling_factor): Delete declaration.
1002 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1003 fixed_point_scaling_factor. Adjust implementation accordingly.
1004
d19937a7
JB
10052020-11-24 Joel Brobecker <brobecker@adacore.com>
1006
1007 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1008 replacing the fixed_point_type_base_type function. All callers
1009 updated throughout this project.
1010 (fixed_point_type_base_type): Remove declaration.
1011 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1012 fixed_point_type_base_type. Adjust implementation accordingly.
1013
2a12c336
JB
10142020-11-24 Joel Brobecker <brobecker@adacore.com>
1015
1016 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1017 New methods.
1018 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1019 (TYPE_FIXED_POINT_INFO): Delete macro.
1020 (allocate_fixed_point_type_info): Change return type to void.
1021 * gdbtypes.c (copy_type_recursive): Replace the use of
1022 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1023 (fixed_point_scaling_factor): Likewise.
1024 (allocate_fixed_point_type_info): Change return type to void.
1025 Adjust implementation accordingly.
1026 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1027 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1028
c9f0b43f
JB
10292020-11-24 Joel Brobecker <brobecker@adacore.com>
1030
1031 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1032 into one single gdb::array_view parameter.
1033 (gdb_mpz::write): Likewise.
1034 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1035 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1036 into one single gdb::array_view parameter.
1037 Adjust implementation accordingly.
1038 (gdb_mpz::write): Likewise.
1039 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1040 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1041 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1042
987b6703
JB
10432020-11-24 Joel Brobecker <brobecker@adacore.com>
1044
1045 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1046 Change return type to std::string. Update all callers.
1047 * gmp-utils.c (gmp_string_printf): Likewise.
1048
4fbb7cce
JB
10492020-11-24 Joel Brobecker <brobecker@adacore.com>
1050
1051 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1052 instead of mpq_set_ui to initialize our GMP rational.
1053
d6ab69dd
TV
10542020-11-23 Tom de Vries <tdevries@suse.de>
1055
1056 * debuginfod-support.c (debuginfod_source_query)
1057 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1058
dab72643
TT
10592020-11-21 Tom Tromey <tom@tromey.com>
1060
1061 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1062
c0ad05d5
SM
10632020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1064
1065 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1066 Pass 2.0 to pow.
1067 (gdb_mpz_write_all_from_small): Likewise.
1068
a43b29c9
SM
10692020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1070
1071 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1072 of abs.
1073
ae41200b
NA
10742020-11-20 Nick Alcock <nick.alcock@oracle.com>
1075
1076 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1077 ctf_arc_open_by_name.
1078
139633c3
NA
10792020-11-20 Nick Alcock <nick.alcock@oracle.com>
1080
1081 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1082 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1083
cbbcd7a7
PA
10842020-11-20 Pedro Alves <pedro@palves.net>
1085
1086 * language.c (language_arch_info::lookup_primitive_type): Use
1087 gdb::function_view instead of gdb::function.
1088 (template language_lookup_primitive_type): Rename to ...
1089 (language_lookup_primitive_type_1): ... this, and make static.
1090 (language_lookup_primitive_type(const struct language_defn *,
1091 struct gdbarch *, const char *): Make non-template.
1092 (language_lookup_primitive_type(const struct language_defn *,
1093 struct gdbarch *, std::function<bool (struct type *)>): Make
1094 non-template and use gdb::function_view.
1095 * language.h (language_arch_info::lookup_primitive_type): Use
1096 gdb::function_view instead of std::function.
1097 (language_lookup_primitive_type): No longer template.
1098 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1099 lambda instead of a std::function.
1100
d5ef21c3
AA
11012020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1102
1103 PR tdep/26916
1104 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1105 and STOCFH.
1106
a5adb8f3
SM
11072020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1108
1109 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1110
70125a45
SM
11112020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1112
1113 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1114 in `loop_cb` parameter.
1115 * gdbarch.c: Re-generate.
1116 * gdbarch.h: Re-generate.
1117 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1118 parameter.
1119 * arch-utils.h (default_read_core_file_mappings): Likewise.
1120 * corelow.c (core_target::build_file_mappings): Likewise.
1121 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1122 (linux_core_info_proc_mappings): Likewise.
1123
a5c641b5
AB
11242020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1125
1126 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1127 * NEWS: Mention new options.
1128 * f-array-walker.h: New file.
1129 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1130 (repack_array_slices): New static global.
1131 (show_repack_array_slices): New function.
1132 (fortran_array_slicing_debug): New static global.
1133 (show_fortran_array_slicing_debug): New function.
1134 (value_f90_subarray): Delete.
1135 (skip_undetermined_arglist): Delete.
1136 (class fortran_array_repacker_base_impl): New class.
1137 (class fortran_lazy_array_repacker_impl): New class.
1138 (class fortran_array_repacker_impl): New class.
1139 (fortran_value_subarray): Complete rewrite.
1140 (set_fortran_list): New static global.
1141 (show_fortran_list): Likewise.
1142 (_initialize_f_language): Register new commands.
1143 (fortran_adjust_dynamic_array_base_address_hack): New function.
1144 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1145 Declare.
1146 * f-valprint.c: Include 'f-array-walker.h'.
1147 (class fortran_array_printer_impl): New class.
1148 (f77_print_array_1): Delete.
1149 (f77_print_array): Delete.
1150 (fortran_print_array): New.
1151 (f_value_print_inner): Update to call fortran_print_array.
1152 * gdbtypes.c: Include 'f-lang.h'.
1153 (resolve_dynamic_type_internal): Call
1154 fortran_adjust_dynamic_array_base_address_hack.
1155
a15a5258
AB
11562020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1157
1158 * breakpoint.c (struct watch_options): New struct.
1159 (watch_option_defs): New static global.
1160 (make_watch_options_def_group): New function.
1161 (watch_maybe_just_location): Convert option parsing.
1162 (watch_command_completer): New function.
1163 (_initialize_breakpoint): Build help text using options mechanism.
1164
2e362716
AB
11652020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1166
1167 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1168 (watch_command_1): Update parameter types. Convert locals to
1169 bool.
1170 (watch_command_wrapper): Change parameter type.
1171 (watch_maybe_just_location): Change locals to bool.
1172 (rwatch_command_wrapper): Update parameter type.
1173 (awatch_command_wrapper): Update parameter type.
1174 * breakpoint.h (watch_command_wrapper): Change parameter type.
1175 (rwatch_command_wrapper): Update parameter type.
1176 (awatch_command_wrapper): Update parameter type.
1177 * eval.c (fetch_subexp_value): Change parameter type.
1178 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1179 'false' not '0'.
1180 * value.h (fetch_subexp_value): Change parameter type in
1181 declaration.
1182
b3ff61f8
AB
11832020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1184
1185 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1186 skip_spaces.
1187
5b7d45d3
KS
11882020-11-18 Keith Seitz <keiths@redhat.com>
1189
1190 * linux-tdep.c (dump_note_entry_p): Return true instead of
1191 checking `filename'.
1192
c44191f8
TV
11932020-11-18 Tom de Vries <tdevries@suse.de>
1194
1195 * debuginfod-support.c (debuginfod_source_query)
1196 (debuginfod_debuginfo_query): Also do early exit if
1197 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1198
5d8254e1
TV
11992020-11-18 Tom de Vries <tdevries@suse.de>
1200
1201 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1202 warning.
1203
584903d3
SM
12042020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1205
1206 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1207 callers. Move doc here.
1208 * gdbtypes.c (get_array_bounds): Return bool
1209
6f2643db
AB
12102020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1211
1212 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1213 assert.
1214 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1215 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1216 case to the default.
1217
037d7135
AB
12182020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 * printcmd.c: Include 'safe-ctype.c'.
1221 (skip_over_slash_fmt): New function.
1222 (print_command_completer): Call skip_over_slash_fmt.
1223 (display_and_x_command_completer): New function.
1224 (_initialize_printcmd): Add command completion for 'x' and
1225 'display'.
1226
2b3cb400
PA
12272020-11-16 Pedro Alves <pedro@palves.net>
1228
1229 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1230 (get_prev_frame_always_1): ... to here.
1231 * inline-frame.c (inline_frame_this_id): Mention
1232 get_prev_frame_always_1 in comment.
1233
b74dbc20
JB
12342020-11-15 Joel Brobecker <brobecker@adacore.com>
1235
1236 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1237 handling.
1238 (value_less): Add fixed-point handling.
1239
0a12719e
JB
12402020-11-15 Joel Brobecker <brobecker@adacore.com>
1241
1242 * eval.c (binop_promote): Add fixed-point type handling.
1243 * valarith.c (fixed_point_binop): New function.
1244 (scalar_binop): Add fixed-point type handling.
1245 (value_neg): Add fixed-point type handling.
1246 * valops.c (value_cast_to_fixed_point): New function.
1247 (value_cast): Add fixed-point type handling.
1248
0c9150e4
JB
12492020-11-15 Joel Brobecker <brobecker@adacore.com>
1250
1251 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1252 range types.
1253 * c-typeprint.c (c_type_print_varspec_prefix)
1254 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1255 TYPE_CODE_FIXED_POINT handling.
1256 * p-typeprint.c (pascal_type_print_varspec_prefix)
1257 (pascal_type_print_varspec_suffix): Likewise.
1258 * typeprint.c (print_type_fixed_point): New function.
1259 * typeprint.h (print_type_fixed_point): Add declaration.
1260
b26daff9
JB
12612020-11-15 Joel Brobecker <brobecker@adacore.com>
1262
1263 * printcmd.c (print_scalar_formatted): Add fixed-point type
1264 handling when options->format is set.
1265
09584414
JB
12662020-11-15 Joel Brobecker <brobecker@adacore.com>
1267
1268 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1269 * dwarf2/read.c (get_dwarf2_rational_constant)
1270 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1271 (has_zero_over_zero_small_attribute): New functions.
1272 read_base_type, set_die_type): Add fixed-point type handling.
1273 * gdb-gdb.py.in: Add fixed-point type handling.
1274 * gdbtypes.c: #include "gmp-utils.h".
1275 (create_range_type, set_type_code): Add fixed-point type handling.
1276 (init_fixed_point_type): New function.
1277 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1278 (print_fixed_point_type_info): New function.
1279 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1280 handling.
1281 (fixed_point_type_storage): New typedef.
1282 (fixed_point_objfile_key): New static global.
1283 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1284 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1285 functions.
1286 * gdbtypes.h: #include "gmp-utils.h".
1287 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1288 (union type_specific) <fixed_point_info>: New field.
1289 (struct fixed_point_type_info): New struct.
1290 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1291 (init_fixed_point_type, is_fixed_point_type)
1292 (fixed_point_type_base_type, fixed_point_scaling_factor)
1293 (allocate_fixed_point_type_info): Add declarations.
1294 * valprint.c (generic_val_print_fixed_point): New function.
1295 (generic_value_print): Add fixed-point type handling.
1296 * value.c (value_as_address, unpack_long): Add fixed-point type
1297 handling.
1298
e55c6530
JB
12992020-11-15 Joel Brobecker <brobecker@adacore.com>
1300
1301 * utils.h (uinteger_pow): Add declaration.
1302 * utils.c (uinteger_pow): Moved here (without changes)...
1303 * valarith.c (uinteger_pow): ... from here.
1304
b34c74ab
JB
13052020-11-15 Joel Brobecker <brobecker@adacore.com>
1306
40d9d2fd 1307 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1308 * unittests/gmp-utils-selftests.c: New file.
1309 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1310 unittests/gmp-utils-selftests.c.
1311 (COMMON_SFILES) Add gmp-utils.c.
1312 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1313
1b4ac058
JB
13142020-11-15 Joel Brobecker <brobecker@adacore.com>
1315
1316 * configure.ac: Generate an error if a usable GMP library
1317 could not be found.
1318 * configure: Regenerate.
1319
2c947d9b
JB
13202020-11-15 Joel Brobecker <brobecker@adacore.com>
1321
1322 * configure.ac: Add support for --with-libgmp-prefix.
1323 * Makefile.in (LIBGMP): New variable.
1324 (CLIBS): Include $(LIBGMP).
1325 * configure, config.in: Regenerate
1326
9dd02fc0
AB
13272020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 PR cli/26879
1330 * f-exp.y (COMPLETE): New token.
1331 (exp): Two new rules for tab-completion.
1332 (saw_name_at_eof): New static global.
1333 (last_was_structop): Likewise.
1334 (yylex): Set new variables, and return COMPLETE token at the end
1335 of the input stream in some cases.
1336
758cb810
TT
13372020-11-14 Tom Tromey <tom@tromey.com>
1338
1339 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1340
749065b7
TT
13412020-11-14 Tom Tromey <tom@tromey.com>
1342
1343 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1344
2c5b1849
SM
13452020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1346
1347 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1348
e8b2f0d9
TT
13492020-11-13 Tom Tromey <tom@tromey.com>
1350
1351 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1352 (convert_escape, parse_one_string): Constify.
1353
25f4c262
KS
13542020-11-13 Keith Seitz <keiths@redhat.com>
1355
1356 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1357 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1358 outside of ELF segments" warning for debugin
1359
9d3ab915
KS
13602020-11-13 Keith Seitz <keiths@redhat.com>
1361
1362 PR gdb/23034
1363 * elfread.c (elf_symfile_segments): Output a BFD file name
1364 for the "Loadable section ... outside of ELF segments" warning.
1365
9ecab40c
SM
13662020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1367
1368 PR gdb/26835
1369 * arm-tdep.c (class arm_instruction_reader): New.
1370 (target_arm_instruction_reader): New.
1371 (arm_analyze_prologue): Add instruction reader parameter and use
1372 it. Use arm_expand_immediate.
1373 (class target_arm_instruction_reader): Adjust.
1374 (arm_skip_prologue): Adjust.
1375 (arm_expand_immediate): New.
1376 (arm_scan_prologue): Adjust.
1377 (arm_analyze_prologue_test): New.
1378 (class test_arm_instruction_reader): New.
1379
5a7cf527
AB
13802020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * f-lang.c (fortran_argument_convert): Add declaration. Add
1383 header comment, taken from f-lang.h. Make static.
1384 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1385 (fortran_argument_convert): Delete declaration.
1386
7bea47f0
AB
13872020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1388
1389 * ada-exp.y (find_primitive_type): Make parameter const.
1390 * ada-lang.c (enum ada_primitive_types): Delete.
1391 (ada_language::language_arch_info): Update.
1392 * c-lang.c (enum c_primitive_types): Delete.
1393 (c_language_arch_info): Update.
1394 (enum cplus_primitive_types): Delete.
1395 (cplus_language::language_arch_info): Update.
1396 * d-lang.c (enum d_primitive_types): Delete.
1397 (d_language::language_arch_info): Update.
1398 * f-lang.c (enum f_primitive_types): Delete.
1399 (f_language::language_arch_info): Update.
1400 * go-lang.c (enum go_primitive_types): Delete.
1401 (go_language::language_arch_info): Update.
1402 * language.c (auto_or_unknown_language::language_arch_info):
1403 Update.
1404 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1405 (language_string_char_type): Add header comment, call function in
1406 language_arch_info.
1407 (language_bool_type): Likewise
1408 (language_arch_info::bool_type): Define.
1409 (language_lookup_primitive_type_1): Delete.
1410 (language_lookup_primitive_type): Rewrite as a templated function
1411 to call function in language_arch_info, then instantiate twice.
1412 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1413 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1414 (language_arch_info::lookup_primitive_type): Define twice with
1415 different signatures.
1416 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1417 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1418 member function in language_arch_info.
1419 * language.h (language_arch_info): Complete rewrite.
1420 (language_lookup_primitive_type): Make templated.
1421 * m2-lang.c (enum m2_primitive_types): Delete.
1422 (m2_language::language_arch_info): Update.
1423 * opencl-lang.c (OCL_P_TYPE): Delete.
1424 (enum opencl_primitive_types): Delete.
1425 (opencl_type_data): Delete.
1426 (builtin_opencl_type): Delete.
1427 (lookup_opencl_vector_type): Update.
1428 (opencl_language::language_arch_info): Update, lots of content
1429 moved from...
1430 (build_opencl_types): ...here. This function is now deleted.
1431 (_initialize_opencl_language): Delete.
1432 * p-lang.c (enum pascal_primitive_types): Delete.
1433 (pascal_language::language_arch_info): Update.
1434 * rust-lang.c (enum rust_primitive_types): Delete.
1435 (rust_language::language_arch_info): Update.
1436
bf6e5d01
SM
14372020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1438
1439 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1440 dwarf2_queue_guard.
1441
1350c3b4
SM
14422020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1443
1444 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1445 comment.
1446
6f738b01
SM
14472020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1448
1449 * dwarf2/read.c (dwarf_read_debug_printf,
1450 dwarf_read_debug_printf_v): New macros, use throughout the file.
1451
10c19fad
SV
14522020-11-12 Shahab Vahedi <shahab@synopsys.com>
1453
10806efd 1454 PR tdep/27015
10c19fad
SV
1455 * arc-linux-tdep.c (collect_register): Populate "eret" by
1456 "pc" value from the regcache when asked for "pc" value.
1457
1f2624a3
TT
14582020-11-12 Tom Tromey <tom@tromey.com>
1459
1460 PR rust/26799:
1461 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1462 exist.
1463
ab33b152
AB
14642020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1465
1466 * features/Makefile (XMLTOC): Add rx.xml.
1467 (FEATURE_XMLFILES): Remove rx.xml.
1468 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1469 * features/rx.c: Regenerate.
1470 * features/rx.xml: Wrap in `target` tags, and reindent.
1471 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1472 structure.
1473 (maint_print_c_tdesc_opt_def): New typedef.
1474 (maint_print_c_tdesc_opt_defs): New static global.
1475 (make_maint_print_c_tdesc_options_def_group): New function.
1476 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1477 print single feature C file for target descriptions containing a
1478 single feature.
1479 (maint_print_c_tdesc_cmd_completer): New function.
1480 (_initialize_target_descriptions): Update call to register command
1481 completer, and include command line flag in help text.
1482
550820e1
AB
14832020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1484
1485 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1486 numbers.
1487 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1488 enum values.
1489
baf20f76
TT
14902020-11-10 Tom Tromey <tom@tromey.com>
1491
1492 * value.h (internalvar_name): Update.
1493 * value.c (internalvar_name): Make return type const.
1494
caaece0e
TT
14952020-11-10 Tom Tromey <tom@tromey.com>
1496
1497 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1498 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1499 const.
1500
8e20b4be
TT
15012020-11-10 Tom Tromey <tom@tromey.com>
1502
1503 * objc-lang.h (value_nsstring): Update.
1504 * objc-lang.c (value_nsstring): Make "ptr" const.
1505
86775fab
AB
15062020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1507
1508 * expprint.c (print_subexp_funcall): Increment expression position
1509 after reading argument count.
1510 * f-lang.c (print_subexp_f): Skip over opcode before calling
1511 common function.
1512 (dump_subexp_body_f): Likewise.
1513
3fed4c0b
RG
15142020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1515
1516 PR python/26832
1517 * configure: Regenerate.
1518 * configure.ac: Check for python modules ctypes instead of
1519 itertools.
1520
ac3d4064
PA
15212020-11-06 Pedro Alves <pedro@palves.net>
1522
1523 * macroexp.c (struct macro_buffer): Split in two classes. Add
1524 uses adjusted.
1525 (struct shared_macro_buffer): New, factored out from struct
1526 macro_buffer.
1527 (struct growable_macro_buffer): New, factored out from struct
1528 macro_buffer.
1529 (set_token, get_comment, get_identifier, get_pp_number)
1530 (get_character_constant, get_string_literal, get_punctuator)
1531 (get_next_token_for_substitution): Constify parameters.
1532 (substitute_args): Constify locals.
1533
606decb2
TT
15342020-11-05 Tom Tromey <tom@tromey.com>
1535
1536 * dwarf2/read.c (read_cutu_die_from_dwo)
1537 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1538 (build_type_psymtabs_1): Update.
1539 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1540 parameter.
1541 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1542 Don't read section. Add assert.
1543
9c91c725
TT
15442020-11-04 Tom Tromey <tromey@adacore.com>
1545
1546 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1547
8d9fd3a1
TT
15482020-11-04 Tom Tromey <tromey@adacore.com>
1549
1550 * ada-typeprint.c (ada_print_type): Handle __T types.
1551
d8f62e84
TT
15522020-11-04 Tom Tromey <tromey@adacore.com>
1553
1554 * dwarf2/read.c (add_partial_symbol, process_die):
1555 Handle DW_TAG_array_type.
1556 (is_type_tag_for_partial): Add "lang" parameter.
1557 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1558
7ff5b937
TT
15592020-11-04 Tom Tromey <tromey@adacore.com>
1560
1561 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1562
10f6a3ad
TT
15632020-11-04 Tom Tromey <tromey@adacore.com>
1564
1565 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1566 array.
1567
b72795a8
TT
15682020-11-04 Tom Tromey <tromey@adacore.com>
1569
1570 * gdbtypes.c (update_static_array_size): Handle bit stride.
1571
24aa1b02
TT
15722020-11-04 Tom Tromey <tromey@adacore.com>
1573
1574 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1575
c9a28cbe
TT
15762020-11-04 Tom Tromey <tromey@adacore.com>
1577
1578 * ada-lang.c (ada_is_any_packed_array_type): New function.
1579 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1580
57567375
TT
15812020-11-04 Tom Tromey <tromey@adacore.com>
1582
1583 * dwarf2/read.c (recognize_bound_expression)
1584 (quirk_ada_thick_pointer): New functions.
1585 (read_array_type): Call quirk_ada_thick_pointer.
1586 (set_die_type): Add "skip_data_location" parameter.
1587 (quirk_ada_thick_pointer): New function.
1588 (process_structure_scope): Call quirk_ada_thick_pointer.
1589 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1590 (decode_packed_array_bitsize): Handle thick pointers without
1591 parallel types.
1592 (ada_is_gnat_encoded_packed_array_type): Rename from
1593 ada_is_packed_array_type.
1594 (ada_is_constrained_packed_array_type): Update.
1595 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1596 (ada_value_print_1): Use ada_get_decoded_value.
1597
a7400e44
TT
15982020-11-04 Tom Tromey <tromey@adacore.com>
1599
1600 * ada-lang.c (recursively_update_array_bitsize): New function.
1601 (decode_constrained_packed_array_type): Call it.
1602
75fd6a26
TT
16032020-11-04 Tom Tromey <tromey@adacore.com>
1604
1605 * ada-lang.c (to_fixed_array_type): Error if
1606 decode_constrained_packed_array_type returns NULL.
1607
93f9561e
TT
16082020-11-04 Tom Tromey <tromey@adacore.com>
1609
1610 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1611
257e02d8
TT
16122020-11-02 Tom Tromey <tromey@adacore.com>
1613
1614 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1615 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1616 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1617 * amd64-ravenscar-thread.c: New file.
1618 * amd64-ravenscar-thread.h: New file.
1619 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1620 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1621
74d877e5
AB
16222020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1623
1624 * main.c (execute_cmdargs): New function.
1625 (captured_main_1): Make use of execute_cmdargs.
1626
64aaad63
AB
16272020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1628
1629 * NEWS: Mention changes to config file search path.
1630 * main.c
1631
5b3d3560
TT
16322020-11-02 Tom Tromey <tromey@adacore.com>
1633
1634 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1635 (python_GdbModuleDef): Move earlier. Now static.
1636 (do_start_initialization): Consolidate some IS_PY3K blocks.
1637
dda83cd7
SM
16382020-11-02 Simon Marchi <simon.marchi@efficios.com>
1639
1640 * aarch64-linux-tdep.c: Fix indentation.
1641 * aarch64-ravenscar-thread.c: Fix indentation.
1642 * aarch64-tdep.c: Fix indentation.
1643 * aarch64-tdep.h: Fix indentation.
1644 * ada-lang.c: Fix indentation.
1645 * ada-lang.h: Fix indentation.
1646 * ada-tasks.c: Fix indentation.
1647 * ada-typeprint.c: Fix indentation.
1648 * ada-valprint.c: Fix indentation.
1649 * ada-varobj.c: Fix indentation.
1650 * addrmap.c: Fix indentation.
1651 * addrmap.h: Fix indentation.
1652 * agent.c: Fix indentation.
1653 * aix-thread.c: Fix indentation.
1654 * alpha-bsd-nat.c: Fix indentation.
1655 * alpha-linux-tdep.c: Fix indentation.
1656 * alpha-mdebug-tdep.c: Fix indentation.
1657 * alpha-nbsd-tdep.c: Fix indentation.
1658 * alpha-obsd-tdep.c: Fix indentation.
1659 * alpha-tdep.c: Fix indentation.
1660 * amd64-bsd-nat.c: Fix indentation.
1661 * amd64-darwin-tdep.c: Fix indentation.
1662 * amd64-linux-nat.c: Fix indentation.
1663 * amd64-linux-tdep.c: Fix indentation.
1664 * amd64-nat.c: Fix indentation.
1665 * amd64-obsd-tdep.c: Fix indentation.
1666 * amd64-tdep.c: Fix indentation.
1667 * amd64-windows-tdep.c: Fix indentation.
1668 * annotate.c: Fix indentation.
1669 * arc-tdep.c: Fix indentation.
1670 * arch-utils.c: Fix indentation.
1671 * arch/arm-get-next-pcs.c: Fix indentation.
1672 * arch/arm.c: Fix indentation.
1673 * arm-linux-nat.c: Fix indentation.
1674 * arm-linux-tdep.c: Fix indentation.
1675 * arm-nbsd-tdep.c: Fix indentation.
1676 * arm-pikeos-tdep.c: Fix indentation.
1677 * arm-tdep.c: Fix indentation.
1678 * arm-tdep.h: Fix indentation.
1679 * arm-wince-tdep.c: Fix indentation.
1680 * auto-load.c: Fix indentation.
1681 * auxv.c: Fix indentation.
1682 * avr-tdep.c: Fix indentation.
1683 * ax-gdb.c: Fix indentation.
1684 * ax-general.c: Fix indentation.
1685 * bfin-linux-tdep.c: Fix indentation.
1686 * block.c: Fix indentation.
1687 * block.h: Fix indentation.
1688 * blockframe.c: Fix indentation.
1689 * bpf-tdep.c: Fix indentation.
1690 * break-catch-sig.c: Fix indentation.
1691 * break-catch-syscall.c: Fix indentation.
1692 * break-catch-throw.c: Fix indentation.
1693 * breakpoint.c: Fix indentation.
1694 * breakpoint.h: Fix indentation.
1695 * bsd-uthread.c: Fix indentation.
1696 * btrace.c: Fix indentation.
1697 * build-id.c: Fix indentation.
1698 * buildsym-legacy.h: Fix indentation.
1699 * buildsym.c: Fix indentation.
1700 * c-typeprint.c: Fix indentation.
1701 * c-valprint.c: Fix indentation.
1702 * c-varobj.c: Fix indentation.
1703 * charset.c: Fix indentation.
1704 * cli/cli-cmds.c: Fix indentation.
1705 * cli/cli-decode.c: Fix indentation.
1706 * cli/cli-decode.h: Fix indentation.
1707 * cli/cli-script.c: Fix indentation.
1708 * cli/cli-setshow.c: Fix indentation.
1709 * coff-pe-read.c: Fix indentation.
1710 * coffread.c: Fix indentation.
1711 * compile/compile-cplus-types.c: Fix indentation.
1712 * compile/compile-object-load.c: Fix indentation.
1713 * compile/compile-object-run.c: Fix indentation.
1714 * completer.c: Fix indentation.
1715 * corefile.c: Fix indentation.
1716 * corelow.c: Fix indentation.
1717 * cp-abi.h: Fix indentation.
1718 * cp-namespace.c: Fix indentation.
1719 * cp-support.c: Fix indentation.
1720 * cp-valprint.c: Fix indentation.
1721 * cris-linux-tdep.c: Fix indentation.
1722 * cris-tdep.c: Fix indentation.
1723 * darwin-nat-info.c: Fix indentation.
1724 * darwin-nat.c: Fix indentation.
1725 * darwin-nat.h: Fix indentation.
1726 * dbxread.c: Fix indentation.
1727 * dcache.c: Fix indentation.
1728 * disasm.c: Fix indentation.
1729 * dtrace-probe.c: Fix indentation.
1730 * dwarf2/abbrev.c: Fix indentation.
1731 * dwarf2/attribute.c: Fix indentation.
1732 * dwarf2/expr.c: Fix indentation.
1733 * dwarf2/frame.c: Fix indentation.
1734 * dwarf2/index-cache.c: Fix indentation.
1735 * dwarf2/index-write.c: Fix indentation.
1736 * dwarf2/line-header.c: Fix indentation.
1737 * dwarf2/loc.c: Fix indentation.
1738 * dwarf2/macro.c: Fix indentation.
1739 * dwarf2/read.c: Fix indentation.
1740 * dwarf2/read.h: Fix indentation.
1741 * elfread.c: Fix indentation.
1742 * eval.c: Fix indentation.
1743 * event-top.c: Fix indentation.
1744 * exec.c: Fix indentation.
1745 * exec.h: Fix indentation.
1746 * expprint.c: Fix indentation.
1747 * f-lang.c: Fix indentation.
1748 * f-typeprint.c: Fix indentation.
1749 * f-valprint.c: Fix indentation.
1750 * fbsd-nat.c: Fix indentation.
1751 * fbsd-tdep.c: Fix indentation.
1752 * findvar.c: Fix indentation.
1753 * fork-child.c: Fix indentation.
1754 * frame-unwind.c: Fix indentation.
1755 * frame-unwind.h: Fix indentation.
1756 * frame.c: Fix indentation.
1757 * frv-linux-tdep.c: Fix indentation.
1758 * frv-tdep.c: Fix indentation.
1759 * frv-tdep.h: Fix indentation.
1760 * ft32-tdep.c: Fix indentation.
1761 * gcore.c: Fix indentation.
1762 * gdb_bfd.c: Fix indentation.
1763 * gdbarch.sh: Fix indentation.
1764 * gdbarch.c: Re-generate
1765 * gdbarch.h: Re-generate.
1766 * gdbcore.h: Fix indentation.
1767 * gdbthread.h: Fix indentation.
1768 * gdbtypes.c: Fix indentation.
1769 * gdbtypes.h: Fix indentation.
1770 * glibc-tdep.c: Fix indentation.
1771 * gnu-nat.c: Fix indentation.
1772 * gnu-nat.h: Fix indentation.
1773 * gnu-v2-abi.c: Fix indentation.
1774 * gnu-v3-abi.c: Fix indentation.
1775 * go32-nat.c: Fix indentation.
1776 * guile/guile-internal.h: Fix indentation.
1777 * guile/scm-cmd.c: Fix indentation.
1778 * guile/scm-frame.c: Fix indentation.
1779 * guile/scm-iterator.c: Fix indentation.
1780 * guile/scm-math.c: Fix indentation.
1781 * guile/scm-ports.c: Fix indentation.
1782 * guile/scm-pretty-print.c: Fix indentation.
1783 * guile/scm-value.c: Fix indentation.
1784 * h8300-tdep.c: Fix indentation.
1785 * hppa-linux-nat.c: Fix indentation.
1786 * hppa-linux-tdep.c: Fix indentation.
1787 * hppa-nbsd-nat.c: Fix indentation.
1788 * hppa-nbsd-tdep.c: Fix indentation.
1789 * hppa-obsd-nat.c: Fix indentation.
1790 * hppa-tdep.c: Fix indentation.
1791 * hppa-tdep.h: Fix indentation.
1792 * i386-bsd-nat.c: Fix indentation.
1793 * i386-darwin-nat.c: Fix indentation.
1794 * i386-darwin-tdep.c: Fix indentation.
1795 * i386-dicos-tdep.c: Fix indentation.
1796 * i386-gnu-nat.c: Fix indentation.
1797 * i386-linux-nat.c: Fix indentation.
1798 * i386-linux-tdep.c: Fix indentation.
1799 * i386-nto-tdep.c: Fix indentation.
1800 * i386-obsd-tdep.c: Fix indentation.
1801 * i386-sol2-nat.c: Fix indentation.
1802 * i386-tdep.c: Fix indentation.
1803 * i386-tdep.h: Fix indentation.
1804 * i386-windows-tdep.c: Fix indentation.
1805 * i387-tdep.c: Fix indentation.
1806 * i387-tdep.h: Fix indentation.
1807 * ia64-libunwind-tdep.c: Fix indentation.
1808 * ia64-libunwind-tdep.h: Fix indentation.
1809 * ia64-linux-nat.c: Fix indentation.
1810 * ia64-linux-tdep.c: Fix indentation.
1811 * ia64-tdep.c: Fix indentation.
1812 * ia64-tdep.h: Fix indentation.
1813 * ia64-vms-tdep.c: Fix indentation.
1814 * infcall.c: Fix indentation.
1815 * infcmd.c: Fix indentation.
1816 * inferior.c: Fix indentation.
1817 * infrun.c: Fix indentation.
1818 * iq2000-tdep.c: Fix indentation.
1819 * language.c: Fix indentation.
1820 * linespec.c: Fix indentation.
1821 * linux-fork.c: Fix indentation.
1822 * linux-nat.c: Fix indentation.
1823 * linux-tdep.c: Fix indentation.
1824 * linux-thread-db.c: Fix indentation.
1825 * lm32-tdep.c: Fix indentation.
1826 * m2-lang.c: Fix indentation.
1827 * m2-typeprint.c: Fix indentation.
1828 * m2-valprint.c: Fix indentation.
1829 * m32c-tdep.c: Fix indentation.
1830 * m32r-linux-tdep.c: Fix indentation.
1831 * m32r-tdep.c: Fix indentation.
1832 * m68hc11-tdep.c: Fix indentation.
1833 * m68k-bsd-nat.c: Fix indentation.
1834 * m68k-linux-nat.c: Fix indentation.
1835 * m68k-linux-tdep.c: Fix indentation.
1836 * m68k-tdep.c: Fix indentation.
1837 * machoread.c: Fix indentation.
1838 * macrocmd.c: Fix indentation.
1839 * macroexp.c: Fix indentation.
1840 * macroscope.c: Fix indentation.
1841 * macrotab.c: Fix indentation.
1842 * macrotab.h: Fix indentation.
1843 * main.c: Fix indentation.
1844 * mdebugread.c: Fix indentation.
1845 * mep-tdep.c: Fix indentation.
1846 * mi/mi-cmd-catch.c: Fix indentation.
1847 * mi/mi-cmd-disas.c: Fix indentation.
1848 * mi/mi-cmd-env.c: Fix indentation.
1849 * mi/mi-cmd-stack.c: Fix indentation.
1850 * mi/mi-cmd-var.c: Fix indentation.
1851 * mi/mi-cmds.c: Fix indentation.
1852 * mi/mi-main.c: Fix indentation.
1853 * mi/mi-parse.c: Fix indentation.
1854 * microblaze-tdep.c: Fix indentation.
1855 * minidebug.c: Fix indentation.
1856 * minsyms.c: Fix indentation.
1857 * mips-linux-nat.c: Fix indentation.
1858 * mips-linux-tdep.c: Fix indentation.
1859 * mips-nbsd-tdep.c: Fix indentation.
1860 * mips-tdep.c: Fix indentation.
1861 * mn10300-linux-tdep.c: Fix indentation.
1862 * mn10300-tdep.c: Fix indentation.
1863 * moxie-tdep.c: Fix indentation.
1864 * msp430-tdep.c: Fix indentation.
1865 * namespace.h: Fix indentation.
1866 * nat/fork-inferior.c: Fix indentation.
1867 * nat/gdb_ptrace.h: Fix indentation.
1868 * nat/linux-namespaces.c: Fix indentation.
1869 * nat/linux-osdata.c: Fix indentation.
1870 * nat/netbsd-nat.c: Fix indentation.
1871 * nat/x86-dregs.c: Fix indentation.
1872 * nbsd-nat.c: Fix indentation.
1873 * nbsd-tdep.c: Fix indentation.
1874 * nios2-linux-tdep.c: Fix indentation.
1875 * nios2-tdep.c: Fix indentation.
1876 * nto-procfs.c: Fix indentation.
1877 * nto-tdep.c: Fix indentation.
1878 * objfiles.c: Fix indentation.
1879 * objfiles.h: Fix indentation.
1880 * opencl-lang.c: Fix indentation.
1881 * or1k-tdep.c: Fix indentation.
1882 * osabi.c: Fix indentation.
1883 * osabi.h: Fix indentation.
1884 * osdata.c: Fix indentation.
1885 * p-lang.c: Fix indentation.
1886 * p-typeprint.c: Fix indentation.
1887 * p-valprint.c: Fix indentation.
1888 * parse.c: Fix indentation.
1889 * ppc-linux-nat.c: Fix indentation.
1890 * ppc-linux-tdep.c: Fix indentation.
1891 * ppc-nbsd-nat.c: Fix indentation.
1892 * ppc-nbsd-tdep.c: Fix indentation.
1893 * ppc-obsd-nat.c: Fix indentation.
1894 * ppc-ravenscar-thread.c: Fix indentation.
1895 * ppc-sysv-tdep.c: Fix indentation.
1896 * ppc64-tdep.c: Fix indentation.
1897 * printcmd.c: Fix indentation.
1898 * proc-api.c: Fix indentation.
1899 * producer.c: Fix indentation.
1900 * producer.h: Fix indentation.
1901 * prologue-value.c: Fix indentation.
1902 * prologue-value.h: Fix indentation.
1903 * psymtab.c: Fix indentation.
1904 * python/py-arch.c: Fix indentation.
1905 * python/py-bpevent.c: Fix indentation.
1906 * python/py-event.c: Fix indentation.
1907 * python/py-event.h: Fix indentation.
1908 * python/py-finishbreakpoint.c: Fix indentation.
1909 * python/py-frame.c: Fix indentation.
1910 * python/py-framefilter.c: Fix indentation.
1911 * python/py-inferior.c: Fix indentation.
1912 * python/py-infthread.c: Fix indentation.
1913 * python/py-objfile.c: Fix indentation.
1914 * python/py-prettyprint.c: Fix indentation.
1915 * python/py-registers.c: Fix indentation.
1916 * python/py-signalevent.c: Fix indentation.
1917 * python/py-stopevent.c: Fix indentation.
1918 * python/py-stopevent.h: Fix indentation.
1919 * python/py-threadevent.c: Fix indentation.
1920 * python/py-tui.c: Fix indentation.
1921 * python/py-unwind.c: Fix indentation.
1922 * python/py-value.c: Fix indentation.
1923 * python/py-xmethods.c: Fix indentation.
1924 * python/python-internal.h: Fix indentation.
1925 * python/python.c: Fix indentation.
1926 * ravenscar-thread.c: Fix indentation.
1927 * record-btrace.c: Fix indentation.
1928 * record-full.c: Fix indentation.
1929 * record.c: Fix indentation.
1930 * reggroups.c: Fix indentation.
1931 * regset.h: Fix indentation.
1932 * remote-fileio.c: Fix indentation.
1933 * remote.c: Fix indentation.
1934 * reverse.c: Fix indentation.
1935 * riscv-linux-tdep.c: Fix indentation.
1936 * riscv-ravenscar-thread.c: Fix indentation.
1937 * riscv-tdep.c: Fix indentation.
1938 * rl78-tdep.c: Fix indentation.
1939 * rs6000-aix-tdep.c: Fix indentation.
1940 * rs6000-lynx178-tdep.c: Fix indentation.
1941 * rs6000-nat.c: Fix indentation.
1942 * rs6000-tdep.c: Fix indentation.
1943 * rust-lang.c: Fix indentation.
1944 * rx-tdep.c: Fix indentation.
1945 * s12z-tdep.c: Fix indentation.
1946 * s390-linux-tdep.c: Fix indentation.
1947 * score-tdep.c: Fix indentation.
1948 * ser-base.c: Fix indentation.
1949 * ser-mingw.c: Fix indentation.
1950 * ser-uds.c: Fix indentation.
1951 * ser-unix.c: Fix indentation.
1952 * serial.c: Fix indentation.
1953 * sh-linux-tdep.c: Fix indentation.
1954 * sh-nbsd-tdep.c: Fix indentation.
1955 * sh-tdep.c: Fix indentation.
1956 * skip.c: Fix indentation.
1957 * sol-thread.c: Fix indentation.
1958 * solib-aix.c: Fix indentation.
1959 * solib-darwin.c: Fix indentation.
1960 * solib-frv.c: Fix indentation.
1961 * solib-svr4.c: Fix indentation.
1962 * solib.c: Fix indentation.
1963 * source.c: Fix indentation.
1964 * sparc-linux-tdep.c: Fix indentation.
1965 * sparc-nbsd-tdep.c: Fix indentation.
1966 * sparc-obsd-tdep.c: Fix indentation.
1967 * sparc-ravenscar-thread.c: Fix indentation.
1968 * sparc-tdep.c: Fix indentation.
1969 * sparc64-linux-tdep.c: Fix indentation.
1970 * sparc64-nbsd-tdep.c: Fix indentation.
1971 * sparc64-obsd-tdep.c: Fix indentation.
1972 * sparc64-tdep.c: Fix indentation.
1973 * stabsread.c: Fix indentation.
1974 * stack.c: Fix indentation.
1975 * stap-probe.c: Fix indentation.
1976 * stubs/ia64vms-stub.c: Fix indentation.
1977 * stubs/m32r-stub.c: Fix indentation.
1978 * stubs/m68k-stub.c: Fix indentation.
1979 * stubs/sh-stub.c: Fix indentation.
1980 * stubs/sparc-stub.c: Fix indentation.
1981 * symfile-mem.c: Fix indentation.
1982 * symfile.c: Fix indentation.
1983 * symfile.h: Fix indentation.
1984 * symmisc.c: Fix indentation.
1985 * symtab.c: Fix indentation.
1986 * symtab.h: Fix indentation.
1987 * target-float.c: Fix indentation.
1988 * target.c: Fix indentation.
1989 * target.h: Fix indentation.
1990 * tic6x-tdep.c: Fix indentation.
1991 * tilegx-linux-tdep.c: Fix indentation.
1992 * tilegx-tdep.c: Fix indentation.
1993 * top.c: Fix indentation.
1994 * tracefile-tfile.c: Fix indentation.
1995 * tracepoint.c: Fix indentation.
1996 * tui/tui-disasm.c: Fix indentation.
1997 * tui/tui-io.c: Fix indentation.
1998 * tui/tui-regs.c: Fix indentation.
1999 * tui/tui-stack.c: Fix indentation.
2000 * tui/tui-win.c: Fix indentation.
2001 * tui/tui-winsource.c: Fix indentation.
2002 * tui/tui.c: Fix indentation.
2003 * typeprint.c: Fix indentation.
2004 * ui-out.h: Fix indentation.
2005 * unittests/copy_bitwise-selftests.c: Fix indentation.
2006 * unittests/memory-map-selftests.c: Fix indentation.
2007 * utils.c: Fix indentation.
2008 * v850-tdep.c: Fix indentation.
2009 * valarith.c: Fix indentation.
2010 * valops.c: Fix indentation.
2011 * valprint.c: Fix indentation.
2012 * valprint.h: Fix indentation.
2013 * value.c: Fix indentation.
2014 * value.h: Fix indentation.
2015 * varobj.c: Fix indentation.
2016 * vax-tdep.c: Fix indentation.
2017 * windows-nat.c: Fix indentation.
2018 * windows-tdep.c: Fix indentation.
2019 * xcoffread.c: Fix indentation.
2020 * xml-syscall.c: Fix indentation.
2021 * xml-tdesc.c: Fix indentation.
2022 * xstormy16-tdep.c: Fix indentation.
2023 * xtensa-config.c: Fix indentation.
2024 * xtensa-linux-nat.c: Fix indentation.
2025 * xtensa-linux-tdep.c: Fix indentation.
2026 * xtensa-tdep.c: Fix indentation.
2027
e1f57067
AB
20282020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2029 Craig Blackmore <craig.blackmore@embecosm.com>
2030
2031 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2032 as an unsigned value.
2033
ae7754b2
TT
20342020-11-01 Tom Tromey <tom@tromey.com>
2035
2036 * dbxread.c (dbx_end_psymtab): Update.
2037 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2038 (build_type_psymtabs_reader): Update.
2039 * xcoffread.c (xcoff_end_psymtab): Update.
2040 * ctfread.c (scan_partial_symbols): Update.
2041 * psymtab.c (sort_pst_symbols): Remove.
2042 (partial_symtab::end): Rename from end_psymtab_common. Inline
2043 sort_pst_symbols.
2044 * psympriv.h (struct partial_symtab) <end>: New method.
2045 (end_psymtab_common): Don't declare.
2046
0684bb51
TT
20472020-11-01 Tom Tromey <tom@tromey.com>
2048
2049 * symmisc.c (count_psyms): New function.
2050 (print_objfile_statistics): Use it.
2051 * psymtab.c (append_psymbol_to_list): Remove.
2052 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2053 * objfiles.h (struct objstats) <n_psyms>: Remove.
2054
089002bb
TT
20552020-11-01 Tom Tromey <tom@tromey.com>
2056
2057 * dbxread.c (dbx_end_psymtab): Update.
2058 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2059 (build_type_psymtabs_reader): Update.
2060 * xcoffread.c (xcoff_end_psymtab): Update.
2061 * ctfread.c (scan_partial_symbols): Update.
2062 * psympriv.h (end_psymtab_common): Update.
2063 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2064 (sort_pst_symbols): Likewise.
2065
525454d6
TT
20662020-11-01 Tom Tromey <tom@tromey.com>
2067
2068 * dbxread.c (dbx_symfile_read): Update.
2069 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2070 * xcoffread.c (xcoff_initial_scan): Update.
2071 * psympriv.h (init_psymbol_list): Don't declare.
2072 * psymtab.c (init_psymbol_list): Remove.
2073
60bd1d53
JB
20742020-11-01 Joel Brobecker <brobecker@adacore.com>
2075
2076 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2077 gnat_encoded_fixed_type_info. Update all callers.
2078
db99d0d0
JB
20792020-11-01 Joel Brobecker <brobecker@adacore.com>
2080
2081 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2082 line too long.
2083
75f24e86
JB
20842020-11-01 Joel Brobecker <brobecker@adacore.com>
2085
2086 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2087 cast_from_fixed. Update all callers.
2088 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2089 Update all callers.
2090 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2091 Update all callers.
2092 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2093 ada_scaling_factor.
2094 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2095 to print_gnat_encoded_fixed_point_type.
2096 * ada-valprint.c: Likewise.
2097
4f0469cd
AB
20982020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2099
2100 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2101 (debug_prefixed_printf): Add check of debug_displaced flag.
2102 * linux-nat.c (linux_nat_debug_printf): Add check of
2103 debug_linux_nat flag.
2104
17417fb0
SM
21052020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2106
2107 * infrun.c (infrun_debug_printf_1): Remove.
2108 (displaced_debug_printf_1): Remove.
2109 (stop_all_threads): Use debug_prefixed_printf.
2110 * infrun.h (infrun_debug_printf_1): Remove.
2111 (infrun_debug_printf): Use debug_prefixed_printf.
2112 (displaced_debug_printf_1): Remove.
2113 (displaced_debug_printf): Use debug_prefixed_printf.
2114 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2115 (linux_nat_debug_printf): Use debug_prefixed_printf.
2116
ad6dba1c
SM
21172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2118
2119 * configure: Re-generate.
2120 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2121 AC_LANG_PROGRAM.
2122
b6fb30ed
SM
21232020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2124
2125 * configure: Re-generate.
2126
5164c117
SM
21272020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2128
2129 * configure: Re-generate.
2130
864ca435
SM
21312020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2132
2133 * configure: Re-generate.
2134
b9442ec1
SM
21352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2136
2137 * configure: Re-generate.
2138
294f2697
SM
21392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2140
2141 * acinclude.m4: Modernize.
2142 * configure: Re-generate.
2143
5593a99a
SM
21442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2145
2146 * configure.ac: Modernize.
2147 * configure: Re-generate.
2148
e41fda1d
SM
21492020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2150
2151 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2152 * configure: Re-generate.
2153 * configure.ac: Remove AM_PROG_CC_STDC.
2154
91e1a0ed
SM
21552020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2156
2157 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2158 AC_CANONICAL_SYSTEM.
2159 * configure: Re-generate.
2160
136821d9
SM
21612020-10-30 Simon Marchi <simon.marchi@efficios.com>
2162
2163 * infrun.h (displaced_debug_printf): New macro. Replace
2164 displaced debug prints throughout to use it.
2165 (displaced_debug_printf_1): New declaration.
2166 (displaced_step_dump_bytes): Return string, remove ui_file
2167 parameter, update all callers.
2168 * infrun.c (displaced_debug_printf_1): New function.
2169 (displaced_step_dump_bytes): Return string, remove ui_file
2170 parameter
2171
aa2045e7
SM
21722020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2173
2174 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2175
b1ec2735
TT
21762020-10-30 Tom Tromey <tromey@adacore.com>
2177
2178 * Makefile.in (stamp-init): Depend on config.status.
2179
b78b3a29
TBA
21802020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2181
2182 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2183
d70bdd3c
PA
21842020-10-30 Pedro Alves <pedro@palves.net>
2185
2186 * thread.c (lookup_selected_frame): Move ...
2187 * frame.c (lookup_selected_frame): ... here.
2188
79952e69
PA
21892020-10-30 Pedro Alves <pedro@palves.net>
2190
2191 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2192 * frame.c
2193 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2194 Use save_selected_frame. Save language as well.
2195 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2196 Use restore_selected_frame, and restore language as well.
2197 (selected_frame_id, selected_frame_level): New.
2198 (selected_frame): Update comments.
2199 (save_selected_frame, restore_selected_frame): New.
2200 (get_selected_frame): Use lookup_selected_frame.
2201 (get_selected_frame_if_set): Delete.
2202 (select_frame): Record selected_frame_level and selected_frame_id.
2203 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2204 fields.
2205 (get_selected_frame): Make 'message' parameter optional.
2206 (get_selected_frame_if_set): Delete declaration.
2207 (select_frame): Update comments.
2208 (save_selected_frame, restore_selected_frame)
2209 (lookup_selected_frame): Declare.
2210 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2211 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2212 New field.
2213 (save_infcall_control_state): Use save_selected_frame.
2214 (restore_selected_frame): Delete.
2215 (restore_infcall_control_state): Use restore_selected_frame.
2216 * stack.c (select_frame_command_core, frame_command_core): Use
2217 get_selected_frame.
2218 * thread.c (restore_selected_frame): Rename to ...
2219 (lookup_selected_frame): ... this and make extern. Select the
2220 current frame if the frame level is -1.
2221 (scoped_restore_current_thread::restore): Also restore the
2222 language.
2223 (scoped_restore_current_thread::~scoped_restore_current_thread):
2224 Don't try/catch.
2225 (scoped_restore_current_thread::scoped_restore_current_thread):
2226 Save the language as well. Use save_selected_frame.
2227
58103c33
SM
22282020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2229
2230 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2231 documentation.
2232 * gdbarch.h: Re-generate.
2233
40a53766
SM
22342020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2235
2236 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2237 parameter.
2238 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2239 Likewise.
2240 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2241 Likewise.
2242 * arch-utils.c (default_displaced_step_hw_singlestep):
2243 Likewise.
2244 * arch-utils.h (default_displaced_step_hw_singlestep):
2245 Likewise.
2246 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2247 Likewise.
2248 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2249 Likewise.
2250 * gdbarch.c: Re-generate.
2251 * gdbarch.h: Re-generate.
2252 * infrun.c (resume_1): Adjust.
2253
8407f91b
TT
22542020-10-29 Tom Tromey <tom@tromey.com>
2255
2256 * progspace.c (program_space::~program_space): Don't call
2257 exec_close.
2258
5008b3b2
TT
22592020-10-29 Tom Tromey <tom@tromey.com>
2260
2261 * exec.c (exec_target::close): Don't change current program
2262 space.
2263
d9eebde0
TT
22642020-10-29 Tom Tromey <tom@tromey.com>
2265
2266 * symfile.c (add_symbol_file_command): Update.
2267 * exec.c (program_space::add_target_sections): Rename.
2268 * symfile-mem.c (symbol_file_add_from_memory): Update.
2269 * progspace.h (struct program_space) <add_target_sections>:
2270 Declare new overload.
2271 * exec.h (add_target_sections_of_objfile): Don't declare.
2272
3769e227
TT
22732020-10-29 Tom Tromey <tom@tromey.com>
2274
2275 * solib.c (solib_map_sections): Update.
2276 * exec.c (program_space::add_target_sections): Now a method.
2277 (exec_file_attach): Update.
2278 * exec.h (add_target_sections): Don't declare.
2279 * progspace.h (struct program_space) <add_target_sections>:
2280 Declare.
2281
2a3f84af
TT
22822020-10-29 Tom Tromey <tom@tromey.com>
2283
2284 * progspace.h (struct program_space) <remove_target_sections>:
2285 Declare.
2286 * exec.c (program_space::remove_target_sections): Now a method.
2287 * exec.h (remove_target_sections): Don't declare.
2288
004eecfd
TT
22892020-10-29 Tom Tromey <tom@tromey.com>
2290
2291 * inferior.c (delete_inferior): Update.
2292 * progspace.c (program_space::empty): Rename from
2293 program_space_empty_p. Return bool.
2294 * progspace.h (struct program_space) <empty>: New method.
2295 (program_space_empty_p): Don't declare.
2296
e39fb971
TT
22972020-10-29 Tom Tromey <tom@tromey.com>
2298
2299 * progspace.c (program_space::~program_space): Don't call
2300 clear_program_space_solib_cache.
2301 (program_space::clear_solib_cache): Rename from
2302 clear_solib_cache.
2303 * solib.c (handle_solib_event): Update.
2304 * progspace.h (struct program_space) <clear_solib_cache>: New
2305 method.
2306 (clear_program_space_solib_cache): Don't declare.
2307
a42d7dd8
TT
23082020-10-29 Tom Tromey <tom@tromey.com>
2309
2310 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2311 * target.c (info_target_command): Update.
2312 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2313 (symbol_file_clear, reread_symbols): Update.
2314 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2315 * stabsread.c (scan_file_globals): Update.
2316 * solib.c (update_solib_list): Update.
2317 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2318 (svr4_fetch_objfile_link_map, enable_break)
2319 (svr4_relocate_main_executable)
2320 (svr4_iterate_over_objfiles_in_search_order): Update.
2321 * solib-frv.c (lm_base, enable_break)
2322 (frv_relocate_main_executable): Update.
2323 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2324 (frv_fetch_objfile_link_map): Update.
2325 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2326 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2327 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2328 * remote.c (remote_target::get_offsets): Update.
2329 (remote_target::start_remote)
2330 (extended_remote_target::post_attach): Update.
2331 * objfiles.c (entry_point_address_query): Update.
2332 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2333 * minsyms.c (get_symbol_leading_char): Update.
2334 * frame.c (inside_main_func): Update.
2335 * progspace.h (symfile_objfile): Remove macro.
2336
19f6550e
TT
23372020-10-29 Tom Tromey <tom@tromey.com>
2338
2339 * exec.c (exec_file_attach): Update.
2340 * progspace.c (program_space::exec_close): Update.
2341 * progspace.h (struct program_space) <ebfd>: Now a
2342 gdb_bfd_ref_ptr.
2343 <set_exec_bfd>: Change argument type.
2344 <exec_bfd>: Update.
2345
7e10abd1
TT
23462020-10-29 Tom Tromey <tom@tromey.com>
2347
2348 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2349 * symfile.c (reread_symbols): Update.
2350 * symfile-mem.c (add_symbol_file_from_memory_command)
2351 (add_vsyscall_page): Update.
2352 * source-cache.c (source_cache::get_plain_source_lines): Update.
2353 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2354 (svr4_current_sos_direct, svr4_exec_displacement)
2355 (svr4_relocate_main_executable): Update.
2356 (svr4_iterate_over_objfiles_in_search_order): Update.
2357 * solib-frv.c (enable_break2, enable_break): Update.
2358 * solib-dsbt.c (lm_base, enable_break): Update.
2359 * solib-darwin.c (find_program_interpreter)
2360 (darwin_solib_create_inferior_hook): Update.
2361 * sol-thread.c (rw_common, ps_pdmodel): Update.
2362 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2363 * remote.c (compare_sections_command)
2364 (remote_target::trace_set_readonly_regions): Update.
2365 * remote-sim.c (get_sim_inferior_data)
2366 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2367 (gdbsim_target_open, gdbsim_target::files_info): Update.
2368 * exec.h (exec_bfd): Remove macro.
2369 * progspace.c (initialize_progspace): Update.
2370 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2371 Update.
2372 * nto-procfs.c (nto_procfs_target::post_attach)
2373 (nto_procfs_target::create_inferior): Update.
2374 * maint.c (maintenance_info_sections): Update.
2375 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2376 Update.
2377 * infcmd.c (post_create_inferior): Update.
2378 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2379 (objfile_find_memory_regions): Update.
2380 * exec.c (validate_exec_file, exec_file_attach)
2381 (exec_read_partial_read_only, print_section_info): Update.
2382 * corelow.c (core_target_open): Update.
2383 * corefile.c (reopen_exec_file, validate_files): Update.
2384 * arm-tdep.c (gdb_print_insn_arm): Update.
2385 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2386 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2387 methods.
2388
b55221ab
TT
23892020-10-29 Tom Tromey <tom@tromey.com>
2390
2391 * progspace.h (current_target_sections): Remove macro.
2392 * solib-svr4.c (scan_dyntag): Update.
2393 * solib-dsbt.c (scan_dyntag): Update.
2394 * exec.c (exec_target::close): Update.
2395 (add_target_sections, add_target_sections_of_objfile)
2396 (remove_target_sections, exec_target::get_section_table)
2397 (exec_target::files_info, set_section_command)
2398 (exec_set_section_address, exec_target::has_memory)
2399 (exec_target::has_memory): Update.
2400
5a36e715
TT
24012020-10-29 Tom Tromey <tom@tromey.com>
2402
2403 * source-cache.c (source_cache::get_plain_source_lines): Use
2404 current_program_space.
2405 * corefile.c (reopen_exec_file): Use current_program_space.
2406 * exec.c (exec_file_attach): Use current_program_space.
2407 * exec.h (exec_bfd_mtime): Remove.
2408
784c8592
TT
24092020-10-29 Tom Tromey <tom@tromey.com>
2410
2411 * gcore.c (default_gcore_mach): Remove.
2412 (create_gcore_bfd): Update.
2413
8a4f1402
TT
24142020-10-29 Tom Tromey <tom@tromey.com>
2415
2416 * progspace.c (program_space::exec_close): New method, from
2417 exec_close in exec.c.
2418 * exec.c (exec_close): Move to progspace.c.
2419 (exec_target::close, exec_file_attach): Update.
2420 * progspace.h (struct program_space) <exec_close>: Declare
2421 method.
2422
c20cb686
TT
24232020-10-29 Tom Tromey <tom@tromey.com>
2424
2425 * progspace.h (struct program_space) <exec_filename>: Rename from
2426 pspace_exec_filename. Now a unique_xmalloc_ptr.
2427 * inferior.c (print_selected_inferior): Update.
2428 (print_inferior): Update.
2429 * mi/mi-main.c (print_one_inferior): Update.
2430 * exec.h (exec_filename): Remove macro.
2431 * corefile.c (get_exec_file): Update.
2432 * exec.c (exec_close): Update.
2433 (exec_file_attach): Update.
2434 * progspace.c (clone_program_space): Update.
2435 (print_program_space): Update.
2436
6be2a9ab
TT
24372020-10-29 Tom Tromey <tom@tromey.com>
2438
2439 * target-section.h (struct target_section): Add constructor.
2440 * exec.c (build_section_table, add_target_sections_of_objfile):
2441 Update.
2442 * corelow.c (core_target::build_file_mappings): Update.
2443
cfaa8f76
TBA
24442020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2445
2446 PR gdb/19318
2447 * inferior.c (detach_inferior_command): Restore the current thread.
2448 (kill_inferior_command): Ditto.
2449
1b00ef06
TV
24502020-10-28 Tom de Vries <tdevries@suse.de>
2451
2452 PR symtab/26772
2453 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2454 map, check it in the "best match" loop.
2455
7f40ce1a
SM
24562020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2457
2458 * m32c-tdep.c: Remove unused includes.
2459
5eb9e3f5
SM
24602020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2461
2462 * xtensa-tdep.c: Remove includes.
2463
b1d4d8d1
TBA
24642020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2465
2466 * breakpoint.c (struct condition_command_opts): New struct.
2467 (condition_command_option_defs): New static global.
2468 (make_condition_command_options_def_group): New function.
2469 (condition_completer): Update to consider the '-force' flag.
2470 (condition_command): Use gdb::option for the '-force' flag.
2471
bd24c5d6
TV
24722020-10-27 Tom de Vries <tdevries@suse.de>
2473
2474 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2475 symbols in section check.
2476
61eb46a4
TV
24772020-10-27 Tom de Vries <tdevries@suse.de>
2478
2479 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2480
733d554a
TBA
24812020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2482
2483 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2484 * breakpoint.c: Update the help text of the 'condition' and 'break'
2485 commands.
2486 (set_breakpoint_condition): Take a new bool parameter
2487 to control whether condition definition should be forced even when
2488 the condition expression is invalid in all of the current locations.
2489 (condition_command): Update the call to 'set_breakpoint_condition'.
2490 (find_condition_and_thread): Take the "-force-condition" flag into
2491 account.
2492 * linespec.c (linespec_keywords): Add "-force-condition" as an
2493 element.
2494 (FORCE_KEYWORD_INDEX): New #define.
2495 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2496 as a keyword.
2497 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2498 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2499 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2500 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2501
b5fa468f
TBA
25022020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2503
2504 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2505 * breakpoint.c (set_breakpoint_location_condition): New function.
2506 (set_breakpoint_condition): Disable a breakpoint location if parsing
2507 the condition string gives an error.
2508 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2509 (build_target_condition_list): Ditto.
2510 (build_target_command_list): Ditto.
2511 (build_bpstat_chain): Ditto.
2512 (print_one_breakpoint_location): Ditto.
2513 (print_one_breakpoint): Ditto.
2514 (breakpoint_1): Ditto.
2515 (bp_location::bp_location): Ditto.
2516 (locations_are_equal): Ditto.
2517 (update_breakpoint_locations): Ditto.
2518 (enable_disable_bp_num_loc): Ditto.
2519 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2520 (find_condition_and_thread_for_sals): New static function.
2521 (create_breakpoint): Call find_condition_and_thread_for_sals.
2522 (location_to_sals): Call find_condition_and_thread_for_sals instead
2523 of find_condition_and_thread.
2524
1c47ec3e
TV
25252020-10-26 Tom de Vries <tdevries@suse.de>
2526
2527 * dwarf2/read.c (process_full_comp_unit): Call
2528 dwarf2_find_base_address.
2529
6390859c
TT
25302020-10-26 Tom Tromey <tromey@adacore.com>
2531
2532 * gdbtypes.c (create_range_type): Revert previous patch. Add
2533 comment.
2534
d744f0f9
PA
25352020-10-26 Pedro Alves <pedro@palves.net>
2536
2537 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2538 (my_waitpid): Use gdb::handle_eintr.
2539
006811bc
SM
25402020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2541
2542 * acinclude.m4: Update ptrace.m4 path.
2543 * ptrace.m4: Moved to gdbsupport.
2544
c75e31a1
SM
25452020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2546
2547 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2548 instead of target_gdbarch.
2549
32495661
SM
25502020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2551
2552 * jit.c (jit_reader_load_command): Pass current inferior.
2553 (jit_inferior_init): Change parameter type to inferior, use it.
2554 (jit_inferior_created): Remove.
2555 (jit_inferior_created_hook): Pass inferior parameter down.
2556 (_initialize_jit): Use jit_inferior_created_hook instead of
2557 jit_inferior_created.
2558 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2559 * infrun.c (follow_exec): Pass inferior to
2560 jit_inferior_created_hook.
2561
3f66685e
SM
25622020-10-24 Simon Marchi <simon.marchi@efficios.com>
2563
2564 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2565 parameter and use it.
2566 (thread_db_inferior_created): Pass inferior argument.
2567
a0ff652f
SM
25682020-10-24 Simon Marchi <simon.marchi@efficios.com>
2569
2570 * aix-thread.c (aix_thread_inferior_created): Add inferior
2571 parameter.
2572 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2573 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2574 * jit.c (jit_inferior_created): Likewise.
2575 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2576 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2577 * observable.h (inferior_created): Likewise.
2578 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2579 * symfile-mem.c (add_vsyscall_page): Likewise.
2580 * infcmd.c (post_create_inferior): Pass inferior argument.
2581
3c67532c
JB
25822020-10-24 Joel Brobecker <brobecker@adacore.com>
2583
2584 GDB 10.1 released.
2585
8747316e
JB
25862020-10-23 Joel Brobecker <brobecker@adacore.com>
2587
2588 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2589 to ada_check_typedef.
2590
1a0ea399
AB
25912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2592
2593 * f-exp.y (f_parse): Rename to...
2594 (f_language::parser): ...this.
2595 * f-lang.c (f_get_encoding): Rename to...
2596 (f_language::get_encoding): ...this.
2597 (f_op_print_tab): Rename to...
2598 (f_language::op_print_tab): ...this.
2599 (exp_descriptor_f): Rename to...
2600 (f_language::exp_descriptor_tab): ...this.
2601 (class f_language): Moved to f-lang.h.
2602 (f_language::language_arch_info): New function, moved out of class
2603 declaration.
2604 (f_language::search_name_hash): Likewise.
2605 (f_language::lookup_symbol_nonlocal): Likewise.
2606 (f_language::get_symbol_name_matcher_inner): Likewise.
2607 * f-lang.h: Add 'valprint.h' include.
2608 (class f_language): Moved here from f-lang.c.
2609 * f-typeprint.c (f_type_print_args): Delete commented out
2610 declaration.
2611 (f_print_typedef): Rename to...
2612 (f_language::print_typedef): ...this.
2613 (f_print_type): Rename to...
2614 (f_language::print_type): ...this.
2615 (f_type_print_varspec_prefix): Delete declaration and rename to...
2616 (f_language::f_type_print_varspec_prefix): ...this.
2617 (f_type_print_varspec_suffix): Delete declaration and rename to...
2618 (f_language::f_type_print_varspec_suffix): ...this.
2619 (f_type_print_base): Delete declaration and rename to...
2620 (f_language::f_type_print_base): ...this.
2621 * f-valprint.c (f_value_print_inner): Rename to...
2622 (f_language::value_print_inner): ...this.
2623 * parse.c: Delete 'f-lang.h' include.
2624
88cefd9b
AB
26252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * language.h (language_defn::print_type): Add variable names in
2628 declaration, and update header comment.
2629
5399db93
AB
26302020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2631
2632 * ada-lang.c (ada_language::demangle): Rename to...
2633 (ada_language::demangle_symbol): ...this.
2634 * c-lang.c (cplus_language::demangle): Rename to...
2635 (cplus_language::demangle_symbol): ...this.
2636 * d-lang.c (d_language::demangle): Rename to...
2637 (d_language::demangle_symbol): ...this.
2638 * f-lang.c (f_language::demangle): Rename to...
2639 (f_language::demangle_symbol): ...this.
2640 * go-lang.c (go_language::demangle): Rename to...
2641 (go_language::demangle_symbol): ...this.
2642 * language.c (language_demangle): Update call to demangle_symbol.
2643 (auto_or_unknown_language::demangle): Rename to...
2644 (auto_or_unknown_language::demangle_symbol): ...this.
2645 * language.h (language_defn::demangle): Rename to...
2646 (language_defn::demangle_symbol): ...this.
2647 * objc-lang.c (objc_language::demangle): Rename to...
2648 (objc_language::demangle_symbol): ...this.
2649 * rust-lang.c (rust_language::demangle): Rename to...
2650 (rust_language::demangle_symbol): ...this.
2651
4b2f86ef
AB
26522020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2653
2654 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2655 (iterate_over_file_blocks): Replace use of macro with the macros
2656 definition.
2657
e74b39de
AB
26582020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2659
2660 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2661 * valprint.c (maybe_print_array_index): Replace use of macro with
2662 the macros definition.
2663
00c696a6
AB
26642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2665
2666 * ada-lang.c (ada_language::print_array_index): Call value_print
2667 directly.
2668 * language.c (language_defn::print_array_index): Likewise.
2669 * language.h (LA_VALUE_PRINT): Delete.
2670 * valprint.c (value_print): Call value_print on the
2671 current_language directly.
2672
d3b67c56
AB
26732020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2674
2675 * language.h (LA_PRINT_TYPEDEF): Delete.
2676 * typeprint.c (typedef_print): Call print_typedef directly on the
2677 current_language object.
2678
790e2a12
AB
26792020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2680
2681 * m2-exp.y (m2_parse): Rename to...
2682 (m2_language::parser): ...this. Update function signature.
2683 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2684 (m2_op_print): Rename to...
2685 (m2_language::op_print_tab): ...this, and make const.
2686 (exp_descriptor_modula2): Rename to...
2687 (m2_language::exp_descriptor_modula2): ...this.
2688 (class m2_language): Move to m2-lang.h.
2689 (m2_language::language_arch_info): New function, moved out of
2690 class declaration.
2691 (m2_language::printchar): New function, body from m2_printchar.
2692 (m2_language::printstr): New function, moved out of class
2693 declaration.
2694 (m2_language::emitchar): Likewise.
2695 * m2-lang.h (m2_parse): Delete declaration.
2696 (m2_print_typedef): Delete declaration.
2697 (m2_value_print_inner): Delete declaration.
2698 (class m2_language): Class declaration moved from m2-lang.c,
2699 larger functions are left in m2-lang.c.
2700 * m2-typeprint.c (m2_print_typedef): Rename to...
2701 (m2_language::print_typedef): ...this, and update function
2702 signature.
2703 * m2-valprint.c (m2_value_print_inner): Rename to...
2704 (m2_language::value_print_inner): ...this, replace use of
2705 LA_PRINT_STRING with a direct call to printstr member function,
2706 and update recursive call.
2707
b01175fc
AB
27082020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2709
2710 * language.c (default_is_string_type_p): Delete, implementation
2711 moved into auto_or_unknown_language::is_string_type_p.
2712 (unk_op_print_tab): Moved into
2713 auto_or_unknown_language::opcode_print_table.
2714 (unknown_language_arch_info): Delete, implementation moved into
2715 auto_or_unknown_language::language_arch_info.
2716 (class auto_or_unknown_language): New class, member functions
2717 copied from unknown_language class, with some updates.
2718 (class unknown_language): Most member functions moved into
2719 auto_or_unknown_language class. Inherit from
2720 auto_or_unknown_language class.
2721 (class auto_language): Inherit from auto_or_unknown_language.
2722 Delete most member functions.
2723
1a97fe8c
HD
27242020-10-22 Hannes Domani <ssbssa@yahoo.de>
2725
2726 * stabsread.c (read_member_functions): Remove gdb_assert.
2727
6b9d0dfd
HD
27282020-10-22 Hannes Domani <ssbssa@yahoo.de>
2729
2730 * gdbtypes.c (init_complex_type): Check target type name.
2731
4b4bb603
SM
27322020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2733
2734 * target-debug.h (target_debug_print_struct_target_ops_p):
2735 Remove.
2736 (target_debug_print_async_callback_ftype_p): Remove.
2737 (target_debug_print_struct_trace_state_variable_p): Remove.
2738 (target_debug_print_struct_traceframe_info_p): Remove.
2739 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2740 (target_debug_print_enum_btrace_format): Remove.
2741 (target_debug_print_enum_info_proc_what): Remove.
2742 (target_debug_print_thread_info_pp): Remove.
2743
24f5300a
SM
27442020-10-22 Simon Marchi <simon.marchi@efficios.com>
2745
2746 * target.h (struct target_ops) <make_corefile_notes>:
2747 Change return type to unique pointer.
2748 * target.c (dummy_make_corefile_notes): Likewise.
2749 * exec.c (struct exec_target) <make_corefile_notes>:
2750 Likewise.
2751 (exec_target::make_corefile_notes): Likewise.
2752 * procfs.c (class procfs_target) <make_corefile_notes>:
2753 Likewise.
2754 (procfs_do_thread_registers): Adjust to unique pointer.
2755 (struct procfs_corefile_thread_data): Add constructor.
2756 <note_data>: Change type to unique pointer.
2757 (procfs_corefile_thread_callback): Adjust to unique pointer.
2758 (procfs_target::make_corefile_notes): Change return type to
2759 unique pointer.
2760 * target-delegates.c: Re-generate.
2761 * gcore.c (write_gcore_file_1): Adjust.
2762 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2763 New.
2764
5fb4027f
TV
27652020-10-22 Tom de Vries <tdevries@suse.de>
2766
2767 * block.c (find_block_in_blockvector): Make sure the returned block
2768 contains pc.
2769
4a636814
SM
27702020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2771
2772 PR gdb/26693
2773 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2774 parameter.
2775 (load_cu): Pass existing CU.
2776 (process_imported_unit_die): Likewise.
2777 (follow_die_offset): Likewise.
2778
1bd57575
LM
27792020-10-22 Luis Machado <luis.machado@linaro.org>
2780
2781 * corelow.c (core_target::xfer_partial): Also check for an empty
2782 m_core_unavailable_mappings vector.
2783
6b4c676c
AB
27842020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2785
2786 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2787 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2788 * f-exp.y (arglist): Allow for a series of subranges.
2789 (subrange): Add cases for subranges with strides.
2790 * f-lang.c (value_f90_subarray): Catch use of array strides and
2791 throw an error.
2792 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2793
f2d8e4c5
AB
27942020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2795
2796 * expprint.c (print_subexp_standard): Change enum range_type to
2797 range_flag and rename variables to match.
2798 (dump_subexp_body_standard): Likewise.
2799 * expression.h (enum range_type): Rename to...
2800 (enum range_flag): ...this.
2801 (range_types): Rename to...
2802 (range_flags): ...this.
2803 * f-lang.c (value_f90_subarray): Change enum range_type to
2804 range_flag and rename variables to match.
2805 * parse.c (operator_length_standard): Likewise.
2806 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2807 range_type to range_flag.
2808 * rust-lang.c (rust_evaluate_funcall): Likewise.
2809 (rust_range): Likewise.
2810 (rust_compute_range): Likewise.
2811 (rust_subscript): Likewise.
2812
2f1b18db
AB
28132020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2814
2815 * expprint.c (print_subexp_standard): Update to reflect changes to
2816 enum range_type.
2817 (dump_subexp_body_standard): Likewise.
2818 * expression.h (enum range_type): Convert to a bit field enum, and
2819 make the enum unsigned.
2820 * f-exp.y (subrange): Update to reflect changes to enum
2821 range_type.
2822 * f-lang.c (value_f90_subarray): Likewise.
2823 * parse.c (operator_length_standard): Likewise.
2824 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2825 * rust-lang.c (rust_range): Likewise.
2826 (rust_compute_range): Likewise.
2827 (rust_subscript): Likewise.
2828
a46d1843
SM
28292020-10-21 Simon Marchi <simon.marchi@efficios.com>
2830
2831 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2832 (displaced_step_in_progress): Fix comment.
2833
c21f37a8
SM
28342020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2835
2836 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2837 * gdbarch.c: Re-generate.
2838 * gdbarch.h: Re-generate.
2839 * gcore.c (write_gcore_file_1): Adjust.
2840 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2841 constructor.
2842 <note_data>: Change type to unique pointer.
2843 <abort_iteration>: Change type to bool.
2844 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2845 (fbsd_collect_thread_registers): Return void, adjust.
2846 (struct fbsd_corefile_thread_data): Add construtor.
2847 <note_data>: Change type to unique pointer.
2848 (fbsd_corefile_thread): Adjust.
2849 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2850 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2851 to unique pointer, adjust.
2852 (struct linux_collect_regset_section_cb_data): Add constructor.
2853 <note_data>: Change type to unique pointer.
2854 <abort_iteration>: Change type to bool.
2855 (linux_collect_thread_registers): Return void, adjust.
2856 (struct linux_corefile_thread_data): Add constructor.
2857 <note_data>: Change type to unique pointer.
2858 (linux_corefile_thread): Adjust.
2859 (linux_make_corefile_notes): Return unique pointer, adjust.
2860
07fbbd01
SM
28612020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2862
2863 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2864 * gdbarch.c: Re-generate.
2865 * gdbarch.h: Re-generate.
2866 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2867 bool.
2868 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2869 Likewise.
2870 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2871 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2872 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2873 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2874
39535193
SM
28752020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2876
2877 * gdbarch.sh: Make generated predicates return bool.
2878 * gdbarch.c: Re-generate.
2879 * gdbarch.h: Re-generate.
2880
ad523d01
TT
28812020-10-20 Tom Tromey <tom@tromey.com>
2882
2883 * varobj-iter.h (struct varobj_item): Remove typedef.
2884
c4464ade
SM
28852020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2886
2887 * infrun.c (currently_stepping): Change int to bool
2888 (maybe_software_singlestep): Likewise.
2889 (show_stop_on_solib_events): Likewise.
2890 (stepping_past_nonsteppable_watchpoint): Likewise.
2891 (displaced_step_in_progress_any_inferior): Likewise.
2892 (displaced_step_in_progress_thread): Likewise.
2893 (keep_going_stepped_thread): Likewise.
2894 (thread_still_needs_step_over): Likewise.
2895 (start_step_over): Likewise.
2896 (do_target_resume): Likewise.
2897 (resume_1): Likewise.
2898 (clear_proceed_status): Likewise.
2899 (thread_still_needs_step_over_bp): Likewise.
2900 (proceed): Likewise.
2901 (switch_back_to_stepped_thread): Likewise.
2902 (adjust_pc_after_break): Likewise.
2903 (stepped_in_from): Likewise.
2904 (handle_stop_requested): Likewise.
2905 (handle_syscall_event): Likewise.
2906 (handle_no_resumed): Likewise.
2907 (handle_inferior_event): Likewise.
2908 (finish_step_over): Likewise.
2909 (handle_signal_stop): Likewise.
2910 (process_event_stop_test): Likewise.
2911
2eb20436
SM
29122020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2913
2914 * infrun.c (get_displaced_stepping_state): Fix comment.
2915
e0c45ded
AS
29162020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2917
2918 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2919
22cc388e
TT
29202020-10-19 Tom Tromey <tromey@adacore.com>
2921
2922 PR tui/26719
2923 * tui/tui-winsource.h (struct tui_source_window_base)
2924 <refresh_window>: Rename from refresh_pad.
2925 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2926 Rename from refresh_pad.
2927 (tui_source_window_base::show_source_content)
2928 (tui_source_window_base::do_scroll_horizontal): Update.
2929
3c6eb4d4
TBA
29302020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2931
2932 * thread.c (_initialize_thread): Fine-tune the help text of
2933 'info threads'.
2934
26703721
TBA
29352020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2936
2937 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2938
61c26be8
MS
29392020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2940
2941 * breakpoint.c (handle_jit_event): Add an argument, change how
2942 `jit_event_handler` is called.
2943
932539d7
TT
29442020-10-17 Tom Tromey <tom@tromey.com>
2945
2946 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2947 (scan_xcoff_symtab): Update.
2948 * psymtab.h (class psymtab_storage) <global_psymbols,
2949 static_psymbols, current_global_psymbols,
2950 current_static_psymbols>: Remove.
2951 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2952 (match_partial_symbol, lookup_partial_symbol): Update.
2953 (print_partial_symbols): Change parameters.
2954 (dump_psymtab, recursively_search_psymtabs)
2955 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2956 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2957 (concat): Remove.
2958 (end_psymtab_common): Simplify.
2959 (append_psymbol_to_list): Change parameters.
2960 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2961 (init_psymbol_list): Simplify.
2962 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2963 * psympriv.h (struct partial_symtab) <empty>: New method.
2964 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2965 Remove.
2966 <global_psymbols, static_psymbols>: New members.
2967 <add_psymbol>: New methods.
2968 (add_psymbol_to_list): Don't declare.
2969 (psymbol_placement): Move earlier.
2970 * mdebugread.c (parse_partial_symbols): Update.
2971 (handle_psymbol_enumerators): Change parameters.
2972 (mdebug_expand_psymtab): Update.
2973 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2974 (add_partial_symbol): Update.
2975 * dwarf2/index-write.c (write_psymbols): Change parameters.
2976 (write_one_signatured_type): Update.
2977 (recursively_count_psymbols): Update.
2978 (recursively_write_psymbols): Update.
2979 (class debug_names) <recursively_write_psymbols>: Update.
2980 <write_psymbols>: Change parameters.
2981 <write_one_signatured_type>: Update.
2982 * dbxread.c (read_dbx_symtab): Update.
2983 (dbx_end_psymtab): Use partial_symtab::empty.
2984 * ctfread.c (struct ctf_context) <pst>: New member.
2985 (create_partial_symtab): Set it.
2986 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2987 (scan_partial_symbols): Use the psymtab's context. Update.
2988
cfabbd35
TT
29892020-10-17 Tom Tromey <tom@tromey.com>
2990
2991 * valprint.c (generic_value_print): Remove comment.
2992 * m2-valprint.c (m2_value_print_inner): Remove comment.
2993 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2994 type.
2995
520596f2
TV
29962020-10-17 Tom de Vries <tdevries@suse.de>
2997
2998 PR symtab/26317
2999 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3000 symbol main.
3001
76547ab3
TV
30022020-10-14 Tom de Vries <tdevries@suse.de>
3003
3004 PR gdb/26733
3005 * solib.c (solib_contains_address_p): Handle
3006 'solib->sections == nullptr'.
3007
d3a07122
SM
30082020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3009
3010 PR gdb/26642
3011 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3012 target can't do async.
3013 * target.c (target_wait): Assert that we don't pass
3014 TARGET_WNOHANG to a target that can't async.
3015
1b71cfcf
KR
30162020-10-13 Kamil Rytarowski <n54@gmx.com>
3017
3018 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3019 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3020 * alpha-bsd-nat.c: Adjust include.
3021 * alpha-bsd-tdep.h: Adjust comment.
3022 * alpha-nbsd-tdep.c: Rename to ...
3023 * alpha-netbsd-tdep.c: ... this, adjust include.
3024 * amd64-nbsd-nat.c: Rename to ...
3025 * amd64-netbsd-nat.c: ... this, adjust include.
3026 * amd64-nbsd-tdep.c: Rename to ...
3027 * amd64-netbsd-tdep.c: ... this, adjust include.
3028 * amd64-tdep.h: Adjust include.
3029 * arm-nbsd-nat.c: Rename to ...
3030 * arm-netbsd-nat.c: ... this, adjust include.
3031 * arm-nbsd-tdep.c: Rename to ...
3032 * arm-netbsd-tdep.c: ... this, adjust include.
3033 * arm-nbsd-tdep.h: Rename to ...
3034 * arm-netbsd-tdep.h: ... this, adjust include.
3035 * configure.nat: Adjust file lists.
3036 * configure.tgt: Likewise.
3037 * hppa-nbsd-nat.c: Rename to ...
3038 * hppa-netbsd-nat.c: ... this, adjust include.
3039 * hppa-nbsd-tdep.c: Rename to ...
3040 * hppa-netbsd-tdep.c: ... this, adjust include.
3041 * i386-nbsd-nat.c: Rename to ...
3042 * i386-netbsd-nat.c: ... this, adjust include.
3043 * i386-nbsd-tdep.c: Rename to ...
3044 * i386-netbsd-tdep.c: ... this, adjust include.
3045 * m68k-bsd-nat.c: Adjust include.
3046 * mips-nbsd-nat.c: Rename to ...
3047 * mips-netbsd-nat.c: ... this, adjust include.
3048 * mips-nbsd-tdep.c: Rename to ...
3049 * mips-netbsd-tdep.c: ... this, adjust include.
3050 * mips-nbsd-tdep.h: Rename to ...
3051 * mips-netbsd-tdep.h: ... this.
3052 * nbsd-nat.c: Rename to ...
3053 * netbsd-nat.c: ... this, adjust include.
3054 * nbsd-nat.h: Rename to ...
3055 * netbsd-nat.h: ... this, adjust include.
3056 * nbsd-tdep.c: Rename to ...
3057 * netbsd-tdep.c: ... this, adjust include.
3058 * nbsd-tdep.h: Rename to ...
3059 * netbsd-tdep.h: ... this.
3060 * ppc-nbsd-nat.c: Rename to ...
3061 * ppc-netbsd-nat.c: ... this, adjust include.
3062 * ppc-nbsd-tdep.c: Rename to ...
3063 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3064 * ppc-nbsd-tdep.h: Rename to ...
3065 * ppc-netbsd-tdep.h: ... this.
3066 * sh-nbsd-nat.c: Rename to ...
3067 * sh-netbsd-nat.c: ... this, adjust include.
3068 * sh-nbsd-tdep.c: Rename to ...
3069 * sh-netbsd-tdep.c: ... this, adjust include.
3070 * sparc-nbsd-nat.c: Rename to ...
3071 * sparc-netbsd-nat.c: ... this.
3072 * sparc-nbsd-tdep.c: Rename to ...
3073 * sparc-netbsd-tdep.c: ... this, adjust include.
3074 * sparc64-nbsd-nat.c: Rename to ...
3075 * sparc64-netbsd-nat.c: ... this.
3076 * sparc64-nbsd-tdep.c: Rename to ...
3077 * sparc64-netbsd-tdep.c: ... this, adjust include.
3078 * sparc64-tdep.h: Adjust comment.
3079 * vax-bsd-nat.c: Adjust include.
3080 * vax-nbsd-tdep.c: Rename to ...
3081 * vax-netbsd-tdep.c: ... this, adjust include.
3082
d7a78e5c
TT
30832020-10-12 Tom Tromey <tom@tromey.com>
3084
3085 * target.h (struct target_ops) <get_section_table>: Update.
3086 (target_get_section_table): Update.
3087 * target.c (target_get_section_table, target_section_by_addr)
3088 (memory_xfer_partial_1): Update.
3089 * target-section.h (target_section_table): Now an alias.
3090 * target-delegates.c: Rebuild.
3091 * target-debug.h (target_debug_print_target_section_table_p):
3092 Rename from target_debug_print_struct_target_section_table_p.
3093 * symfile.c (build_section_addr_info_from_section_table): Update.
3094 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3095 * solib-svr4.c (scan_dyntag): Update.
3096 * solib-dsbt.c (scan_dyntag): Update.
3097 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3098 Update.
3099 * record-full.c (record_full_core_target::xfer_partial): Update.
3100 * progspace.h (struct program_space) <target_sections>: Update.
3101 * exec.h (print_section_info): Update.
3102 * exec.c (exec_target::close, build_section_table)
3103 (add_target_sections, add_target_sections_of_objfile)
3104 (remove_target_sections, exec_on_vfork)
3105 (section_table_available_memory)
3106 (section_table_xfer_memory_partial)
3107 (exec_target::get_section_table, exec_target::xfer_partial)
3108 (print_section_info, set_section_command)
3109 (exec_set_section_address, exec_target::has_memory): Update.
3110 * corelow.c (core_target::build_file_mappings)
3111 (core_target::xfer_partial, core_target::info_proc_mappings)
3112 (core_target::info_proc_mappings): Update.
3113 * bfd-target.c (class target_bfd): Update
3114
eda214ce
TT
31152020-10-12 Tom Tromey <tom@tromey.com>
3116
3117 * progspace.c (program_space::~program_space): Don't call
3118 clear_section_table.
3119 * exec.h (clear_section_table): Don't declare.
3120 * exec.c (exec_target::close): Update.
3121 (clear_section_table): Remove.
3122
91840ee3
TT
31232020-10-12 Tom Tromey <tom@tromey.com>
3124
3125 * exec.c (add_target_sections_of_objfile): Simplify.
3126
2d128614
TT
31272020-10-12 Tom Tromey <tom@tromey.com>
3128
3129 * solib.c (solib_map_sections): Update.
3130 * record-full.c (record_full_core_open_1): Update.
3131 * exec.h (build_section_table): Return a target_section_table.
3132 * exec.c (exec_file_attach): Update.
3133 (build_section_table): Return a target_section_table.
3134 * corelow.c (core_target::core_target): Update.
3135 * bfd-target.c (target_bfd::target_bfd): Update.
3136
bb2a6777
TT
31372020-10-12 Tom Tromey <tom@tromey.com>
3138
3139 * target.c (target_section_by_addr, memory_xfer_partial_1):
3140 Update.
3141 * target-section.h (struct target_section_table): Use
3142 std::vector.
3143 * symfile.h (build_section_addr_info_from_section_table): Take a
3144 target_section_table.
3145 * symfile.c (build_section_addr_info_from_section_table): Take a
3146 target_section_table.
3147 * solist.h (struct so_list) <sections>: Change type.
3148 <sections_end>: Remove.
3149 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3150 (solib_contains_address_p): Update.
3151 * solib-svr4.c (scan_dyntag): Update.
3152 * solib-dsbt.c (scan_dyntag): Update.
3153 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3154 Update.
3155 * record-full.c (record_full_core_start, record_full_core_end):
3156 Remove.
3157 (record_full_core_sections): New global.
3158 (record_full_core_open_1, record_full_core_target::xfer_partial):
3159 Update.
3160 * exec.h (build_section_table, section_table_xfer_memory_partial)
3161 (add_target_sections): Take a target_section_table.
3162 * exec.c (exec_file_attach, clear_section_table): Update.
3163 (resize_section_table): Remove.
3164 (build_section_table, add_target_sections): Take a
3165 target_section_table.
3166 (add_target_sections_of_objfile, remove_target_sections)
3167 (exec_on_vfork): Update.
3168 (section_table_available_memory): Take a target_section_table.
3169 (section_table_read_available_memory): Update.
3170 (section_table_xfer_memory_partial): Take a target_section_table.
3171 (print_section_info, set_section_command)
3172 (exec_set_section_address, exec_target::has_memory): Update.
3173 * corelow.c (class core_target) <m_core_section_table,
3174 m_core_file_mappings>: Remove braces.
3175 <~core_target>: Remove.
3176 (core_target::core_target): Update.
3177 (core_target::~core_target): Remove.
3178 (core_target::build_file_mappings)
3179 (core_target::xfer_memory_via_mappings)
3180 (core_target::xfer_partial, core_target::info_proc_mappings):
3181 Update.
3182 * bfd-target.c (target_bfd::xfer_partial): Update.
3183 (target_bfd::target_bfd): Update.
3184 (target_bfd::~target_bfd): Remove.
3185
7b466b10
TT
31862020-10-12 Tom Tromey <tom@tromey.com>
3187
3188 * target.h (struct target_section, struct target_section_table):
3189 Move to target-section.h.
3190 * target-section.h: New file.
3191
87a37e5e
PA
31922020-10-12 Pedro Alves <pedro@palves.net>
3193
3194 PR exp/26602
3195 * valops.c (struct struct_field_searcher): New.
3196 (update_search_result): Rename to ...
3197 (struct_field_searcher::update_result): ... this. Simplify
3198 prototype. Record all found fields.
3199 (do_search_struct_field): Rename to ...
3200 (struct_field_searcher::search): ... this. Simplify prototype.
3201 Maintain stack of visited baseclass path. Call update_result for
3202 fields too. Keep searching fields in baseclasses instead of
3203 stopping at the first found field.
3204 (search_struct_field): Use struct_field_searcher. When looking
3205 for fields, report ambiguous access attempts.
3206
9370fd51
AB
32072020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3208
3209 * frame.c (inside_main_func): Check full symbols as well as
3210 minimal symbols.
3211
59c8a30b
JB
32122020-10-09 Joel Brobecker <brobecker@adacore.com>
3213
3214 * ada-lang.c (advance_wild_match): Rewrite the function's
3215 description. Change the type of target0, t0 and t1 to char.
3216
7c184d33
TT
32172020-10-09 Tom Tromey <tromey@adacore.com>
3218
3219 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3220
5c4258f4
TT
32212020-10-09 Tom Tromey <tromey@adacore.com>
3222
3223 * ada-lang.h (ada_encode): Return std::string.
3224 * ada-lang.c (ada_encode_1): Return std::string.
3225 (ada_encode): Likewise.
3226 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3227 Update.
3228 * ada-exp.y (block_lookup, write_var_or_type): Update.
3229
3d87245c
HD
32302020-10-09 Hannes Domani <ssbssa@yahoo.de>
3231
3232 PR exp/26714
3233 * printcmd.c (print_formatted): Handle void results as
3234 unformatted prints.
3235
bbb826f5
AB
32362020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3237
3238 * arch/aarch32.c (aarch32_create_target_description): Release the
3239 target_desc_up as late as possible.
3240 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3241 * arch/amd64.c (amd64_create_target_description): Likewise.
3242 * arch/arc.c (arc_create_target_description): Return a
3243 target_desc_up, don't release it.
3244 * arch/arc.h (arc_create_target_description): Update declaration.
3245 (arc_lookup_target_description): Move target_desc_up into the
3246 cache, and return a borrowed pointer.
3247 * arch/arm.c (arm_create_target_description): Release the
3248 target_desc_up as late as possible.
3249 * arch/i386.c (i386_create_target_description): Likewise.
3250 * arch/riscv.h (riscv_create_target_description): Update
3251 declaration to match definition.
3252 * arch/tic6x.c (tic6x_create_target_description): Release the
3253 target_desc_up as late as possible.
3254
361cb219
AB
32552020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3256
3257 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3258 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3259
f5c4b229
JV
32602020-10-09 Jan Vrany <jan.vrany@labware.com>
3261
3262 * source.c (directory_command): Notify observers that "directories"
3263 parameter has changed.
3264
b2701685
TT
32652020-10-08 Tom Tromey <tom@tromey.com>
3266
3267 * cli/cli-cmds.c (print_disassembly): Style function name and
3268 addresses. Add _() wrappers.
3269
ada508b6
SV
32702020-10-08 Shahab Vahedi <shahab@synopsys.com>
3271
3272 * NEWS: Mention ARC support in GDBserver.
3273
51a948fd
AB
32742020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3275
3276 * arch/aarch32.c (aarch32_create_target_description): Release
3277 unique_ptr returned from allocate_target_description.
3278 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3279 * arch/amd64.c (amd64_create_target_description): Likewise.
3280 * arch/arc.c (arc_create_target_description): Likewise.
3281 * arch/arm.c (arm_create_target_description): Likewise.
3282 * arch/i386.c (i386_create_target_description): Likewise.
3283 * arch/riscv.c (riscv_create_target_description): Update return
3284 type. Handle allocate_target_description returning a unique_ptr.
3285 (riscv_lookup_target_description): Update to handle unique_ptr.
3286 * arch/tic6x.c (tic6x_create_target_description): Release
3287 unique_ptr returned from allocate_target_description.
3288 * features/microblaze-with-stack-protect.c: Regenerate.
3289 * features/microblaze.c: Regenerate.
3290 * features/mips-dsp-linux.c: Regenerate.
3291 * features/mips-linux.c: Regenerate.
3292 * features/mips64-dsp-linux.c: Regenerate.
3293 * features/mips64-linux.c: Regenerate.
3294 * features/nds32.c: Regenerate.
3295 * features/nios2.c: Regenerate.
3296 * features/or1k.c: Regenerate.
3297 * features/rs6000/powerpc-32.c: Regenerate.
3298 * features/rs6000/powerpc-32l.c: Regenerate.
3299 * features/rs6000/powerpc-403.c: Regenerate.
3300 * features/rs6000/powerpc-403gc.c: Regenerate.
3301 * features/rs6000/powerpc-405.c: Regenerate.
3302 * features/rs6000/powerpc-505.c: Regenerate.
3303 * features/rs6000/powerpc-601.c: Regenerate.
3304 * features/rs6000/powerpc-602.c: Regenerate.
3305 * features/rs6000/powerpc-603.c: Regenerate.
3306 * features/rs6000/powerpc-604.c: Regenerate.
3307 * features/rs6000/powerpc-64.c: Regenerate.
3308 * features/rs6000/powerpc-64l.c: Regenerate.
3309 * features/rs6000/powerpc-7400.c: Regenerate.
3310 * features/rs6000/powerpc-750.c: Regenerate.
3311 * features/rs6000/powerpc-860.c: Regenerate.
3312 * features/rs6000/powerpc-altivec32.c: Regenerate.
3313 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3314 * features/rs6000/powerpc-altivec64.c: Regenerate.
3315 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3316 * features/rs6000/powerpc-e500.c: Regenerate.
3317 * features/rs6000/powerpc-e500l.c: Regenerate.
3318 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3319 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3320 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3321 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3322 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3323 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3324 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3325 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3326 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3327 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3328 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3329 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3330 * features/rs6000/powerpc-vsx32.c: Regenerate.
3331 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3332 * features/rs6000/powerpc-vsx64.c: Regenerate.
3333 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3334 * features/rs6000/rs6000.c: Regenerate.
3335 * features/rx.c: Regenerate.
3336 * features/s390-gs-linux64.c: Regenerate.
3337 * features/s390-linux32.c: Regenerate.
3338 * features/s390-linux32v1.c: Regenerate.
3339 * features/s390-linux32v2.c: Regenerate.
3340 * features/s390-linux64.c: Regenerate.
3341 * features/s390-linux64v1.c: Regenerate.
3342 * features/s390-linux64v2.c: Regenerate.
3343 * features/s390-te-linux64.c: Regenerate.
3344 * features/s390-tevx-linux64.c: Regenerate.
3345 * features/s390-vx-linux64.c: Regenerate.
3346 * features/s390x-gs-linux64.c: Regenerate.
3347 * features/s390x-linux64.c: Regenerate.
3348 * features/s390x-linux64v1.c: Regenerate.
3349 * features/s390x-linux64v2.c: Regenerate.
3350 * features/s390x-te-linux64.c: Regenerate.
3351 * features/s390x-tevx-linux64.c: Regenerate.
3352 * features/s390x-vx-linux64.c: Regenerate.
3353 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3354 from allocate_target_description.
3355 * target-descriptions.c (allocate_target_description): Update
3356 return type.
3357 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3358 allocate_target_description.
3359
485c47e5
TT
33602020-10-07 Tom Tromey <tromey@adacore.com>
3361
3362 * unittests/search-memory-selftests.c: New file.
3363 * Makefile.in (SELFTESTS_SRCS): Add
3364 unittests/search-memory-selftests.c.
3365
3a135a91
TT
33662020-10-07 Tom Tromey <tromey@adacore.com>
3367
3368 PR gdb/16930:
3369 * findcmd.c (_initialize_mem_search): Mention that the range is
3370 inclusive.
3371
4a72de73
TT
33722020-10-07 Tom Tromey <tromey@adacore.com>
3373
3374 * target.h (simple_search_memory): Don't declare.
3375 * target.c (simple_search_memory): Move to gdbsupport.
3376 (default_search_memory): Update.
3377 * remote.c (remote_target::search_memory): Update.
3378
a038ffd8
SM
33792020-10-07 Simon Marchi <simon.marchi@efficios.com>
3380
3381 * Makefile.in (COMPILE): Add CXXFLAGS.
3382 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3383 (check-headers): Add CXXFLAGS.
3384
cc463201
AK
33852020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3386
3387 * arc-linux-tdep.h: New file.
3388 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3389 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3390 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3391 arc_linux_gregset, arc_linux_v2_regset,
3392 arc_linux_iterate_over_regset_sections,
3393 arc_linux_core_read_description): Implement.
3394 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3395 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3396 (arc_gdbarch_features_create): Add.
3397 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3398
e4bd363f
SV
33992020-10-07 Shahab Vahedi <shahab@synopsys.com>
3400
3401 * arch/arc.h: Rename "arc_gdbarch_features" to
3402 "arc_arch_features".
3403 * arc-tdep.h: Likewise.
3404 * arc-tdep.c: Likewise.
3405
b68bef99
TBA
34062020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3407
3408 * infcmd.c (attach_command): Remove the redundant call to
3409 `clear_proceed_status`.
3410
4641551a
KR
34112020-10-07 Kamil Rytarowski <n54@gmx.com>
3412
3413 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3414
91e5e8db
KR
34152020-10-07 Kamil Rytarowski <n54@gmx.com>
3416
3417 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3418 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3419 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3420
64c03bdb
SM
34212020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3422
3423 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3424 (_initialize_break_catch_sig): Don't allocate array.
3425
31a8f60f
AB
34262020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3427
3428 * symtab.c (find_pc_line): Return unmapped addresses when the
3429 requested address is also unmapped.
3430
9e6dbd8b
SM
34312020-10-05 Simon Marchi <simon.marchi@efficios.com>
3432
3433 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3434 tui/tui-out.h.
3435
a1d217e8
SM
34362020-10-05 Simon Marchi <simon.marchi@efficios.com>
3437
3438 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3439 type::is_vector instead of TYPE_VECTOR.
3440
7d144117
SM
34412020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3442
3443 * auto-load.c (auto_load_objfile_script_1): Don't use
3444 debugfile_holder as temporary variable when stripping drive
3445 letter.
3446
cd096ec8
HD
34472020-10-05 Hannes Domani <ssbssa@yahoo.de>
3448
3449 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3450 Add TYPE_CODE_COMPLEX.
3451 (amd64_windows_return_value): Fix types returned via XMM0.
3452
b58e7f72
AH
34532020-10-05 Alan Hayward <alan.hayward@arm.com>
3454
3455 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3456 AArch64/ARM maintainers.
3457
8d378f27
SM
34582020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3459
3460 * NEWS: Mention set/show debug event-loop.
3461
d5519913
TT
34622020-10-02 Tom Tromey <tromey@adacore.com>
3463
3464 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3465 REG_EXTENDED.
3466
18b67edc
SM
34672020-10-02 Simon Marchi <simon.marchi@efficios.com>
3468
3469 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3470 * procfs.c (procfs_inferior_created): Remove.
3471 (_initialize_procfs): Don't register procfs_inferior_created.
3472
6b01403b
SM
34732020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3474
3475 * async-event.c (invoke_async_signal_handlers): Add debug
3476 print.
3477 (check_async_event_handlers): Likewise.
3478 * event-top.c (show_debug_event_loop): New function.
3479 (_initialize_event_top): Register "set debug event-loop"
3480 setting.
3481
ba988419
SM
34822020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3483
3484 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3485 * debug.h: Remove.
3486 * infrun.c: Include gdbsupport/common-debug.h.
3487 * linux-nat.c: Likewise.
3488
db20ebdf
SM
34892020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3490
3491 * async-event.h (create_async_signal_handler): Add name
3492 parameter.
3493 (create_async_event_handler): Likewise.
3494 * async-event.c (struct async_signal_handler) <name>: New field.
3495 (struct async_event_handler) <name>: New field.
3496 (create_async_signal_handler): Assign name.
3497 (create_async_event_handler): Assign name.
3498 * event-top.c (async_init_signals): Pass name when creating
3499 handler.
3500 * infrun.c (_initialize_infrun): Likewise.
3501 * record-btrace.c (record_btrace_push_target): Likewise.
3502 * record-full.c (record_full_open): Likewise.
3503 * remote-notif.c (remote_notif_state_allocate): Likewise.
3504 * remote.c (remote_target::open_1): Likewise.
3505 * tui/tui-win.c (tui_initialize_win): Likewise.
3506
2554f6f5
SM
35072020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3508
3509 * async-event.c (initialize_async_signal_handlers): Pass name to
3510 add_file_handler
3511 * event-top.c (ui_register_input_event_handler): Likewise.
3512 * linux-nat.c (linux_nat_target::async): Likewise.
3513 * run-on-main-thread.c (_initialize_run_on_main_thread):
3514 Likewise
3515 * ser-base.c (reschedule): Likewise.
3516 (ser_base_async): Likewise.
3517 * tui/tui-io.c: Likewise.
3518 * top.h (struct ui) <num>: New field.
3519 * top.c (highest_ui_num): New variable.
3520 (ui::ui): Initialize num.
3521
a7aba266
SM
35222020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3523
3524 * observable.h <inferior_created>: Remove parameters. Update all
3525 listeners.
3526 * inferior.h (post_create_inferior): Remove target parameter.
3527 Update all callers.
3528
048fde1e 35292020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3530
3531 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3532 and DW_MACRO_undef_strx.
3533 (dwarf_decode_macros): Likewise
3534 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3535 which is the value of DW_AT_str_offsets_base.
3536 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3537 str_offsets_base.
3538
064280be
KR
35392020-10-01 Kamil Rytarowski <n54@gmx.com>
3540
3541 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3542
6ff33035
KR
35432020-10-01 Kamil Rytarowski <n54@gmx.com>
3544
3545 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3546 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3547
1eb6eb79
KR
35482020-10-01 Kamil Rytarowski <n54@gmx.com>
3549
3550 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3551
95eb9e54
TV
35522020-09-30 Tom de Vries <tdevries@suse.de>
3553
3554 PR symtab/26683
3555 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3556
cae21f8e
TT
35572020-09-30 Tom Tromey <tromey@adacore.com>
3558
3559 * dwarf2/read.c (handle_variant): Use constant_value.
3560
529908cb
TT
35612020-09-29 Tom Tromey <tom@tromey.com>
3562
3563 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3564 (read_file_scope, dwarf2_get_pc_bounds)
3565 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3566 (read_structure_type, handle_struct_member_die)
3567 (read_enumeration_type, read_array_type, read_set_type)
3568 (read_tag_pointer_type, read_tag_reference_type)
3569 (read_subroutine_type, read_base_type, read_subrange_type)
3570 (read_full_die_1, partial_die_info::read)
3571 (partial_die_info::read, by, new_symbol)
3572 (dwarf2_const_value_data, dwarf2_const_value_attr)
3573 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3574 (prepare_one_comp_unit): Update.
3575 * dwarf2/attribute.h (DW_UNSND): Remove.
3576
c45bc3f8
TT
35772020-09-29 Tom Tromey <tom@tromey.com>
3578
3579 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3580 (read_subroutine_type, partial_die_info::read)
3581 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3582 (dwarf2_add_member_fn): Update.
3583 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3584 * dwarf2/attribute.c (attribute::as_boolean): New method.
3585
23dca5c3
TT
35862020-09-29 Tom Tromey <tom@tromey.com>
3587
3588 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3589 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3590 method.
3591 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3592
52c14d11
TT
35932020-09-29 Tom Tromey <tom@tromey.com>
3594
3595 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3596 the attribute's form.
3597
e8e5c158
TT
35982020-09-29 Tom Tromey <tom@tromey.com>
3599
3600 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3601 (dwarf2_add_member_fn): Update.
3602 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3603 * dwarf2/attribute.c (attribute::defaulted): New method, from
3604 is_valid_DW_AT_defaulted.
3605
d4df075e
TT
36062020-09-29 Tom Tromey <tom@tromey.com>
3607
3608 * dwarf2/read.c (dw2_get_file_names_reader)
3609 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3610 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3611 (dwarf2_symbol_mark_computed): Use as_unsigned.
3612 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3613 method.
3614 <form_is_section_offset>: Update comment.
3615
bf23a268
TT
36162020-09-29 Tom Tromey <tom@tromey.com>
3617
3618 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3619 dwarf2_default_access_attribute. Look up attribute.
3620 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3621 Update.
3622
7a5f294d
TT
36232020-09-29 Tom Tromey <tom@tromey.com>
3624
3625 * dwarf2/read.c (skip_one_die): Update.
3626 (read_full_die_1): Change how reprocessing is done.
3627 (partial_die_info::read): Update.
3628 (read_attribute_value): Remove need_reprocess parameter.
3629 (read_attribute): Likewise.
3630 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3631 New method.
3632
36d378cf
TT
36332020-09-29 Tom Tromey <tom@tromey.com>
3634
3635 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3636 (dwarf2_const_value_attr, dump_die_shallow)
3637 (dwarf2_fetch_constant_bytes): Update.
3638 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3639 comment.
3640 <set_address>: New method.
3641 (DW_ADDR): Remove.
3642 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3643 (attribute::as_string, attribute::as_address): Add assert.
3644
fe56917a
TT
36452020-09-29 Tom Tromey <tom@tromey.com>
3646
3647 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3648 (read_attribute_reprocess, read_attribute_value): Update.
3649 (read_attribute): Clear requires_reprocessing.
3650 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3651 form_requires_reprocessing>: New methods.
3652 <string_init>: Clear requires_reprocessing.
3653 <set_unsigned_reprocess>: New method.
3654 <name>: Shrink by one bit.
3655 <requires_reprocessing>: New member.
3656 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3657 method.
3658
414ad644
TT
36592020-09-29 Tom Tromey <tom@tromey.com>
3660
3661 * dwarf2/read.c (read_attribute_value): Update.
3662 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3663 set_unsigned>: New methods.
3664 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3665
1bc397c5
TT
36662020-09-29 Tom Tromey <tom@tromey.com>
3667
3668 * dwarf2/read.c (get_alignment, read_array_order)
3669 (read_attribute_value, dwarf2_const_value_attr)
3670 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3671 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3672 New methods.
3673 (DW_SND): Remove.
3674
630ed6b9
TT
36752020-09-29 Tom Tromey <tom@tromey.com>
3676
3677 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3678 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3679 Update.
3680 * dwarf2/attribute.h (struct attribute) <as_signature,
3681 set_signature>: New methods.
3682 (DW_SIGNATURE): Remove.
3683
9d2246fc
TT
36842020-09-29 Tom Tromey <tom@tromey.com>
3685
3686 * dwarf2/read.c (read_call_site_scope)
3687 (handle_data_member_location, dwarf2_add_member_fn)
3688 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3689 (partial_die_info::read, read_attribute_value)
3690 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3691 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3692 (dwarf2_symbol_mark_computed): Update.
3693 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3694 methods.
3695 (DW_BLOCK): Remove.
3696 * dwarf2/attribute.c (attribute::form_is_block): Add
3697 DW_FORM_data16.
3698
c6481205
TT
36992020-09-29 Tom Tromey <tom@tromey.com>
3700
3701 * dwarf2/read.c (read_cutu_die_from_dwo)
3702 (read_attribute_reprocess, read_attribute_value, read_attribute)
3703 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3704 (dwarf2_fetch_constant_bytes): Update.
3705 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3706 <set_string_noncanonical, set_string_canonical>: New methods.
3707 <string_is_canonical>: Update comment.
3708 <canonical_string_p>: Add assert.
3709 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3710 * dwarf2/attribute.c (attribute::form_is_string): New method.
3711 (attribute::string): Use it.
3712
3b64bf15
TT
37132020-09-29 Tom Tromey <tom@tromey.com>
3714
3715 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3716 (dump_die_shallow): Use canonical_string_p.
3717 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3718 method.
3719
2c830f54
TT
37202020-09-29 Tom Tromey <tom@tromey.com>
3721
3722 * dwarf2/read.c (partial_die_info::read)
3723 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3724 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3725 attribute::as_string.
3726
6c412691
TT
37272020-09-29 Tom Tromey <tom@tromey.com>
3728
3729 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3730 DW_ADDR.
3731 (attribute::string): Don't use DW_STRING.
3732 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3733 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3734
95f982e5
TT
37352020-09-29 Tom Tromey <tom@tromey.com>
3736
3737 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3738 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3739 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3740 * dwarf2/attribute.h (struct attribute): Rename methods.
3741 * dwarf2/attribute.c (attribute::as_address): Rename from
3742 value_as_address.
3743 (attribute::as_string): Rename from value_as_string.
3744
f800b00e
TT
37452020-09-29 Tom Tromey <tom@tromey.com>
3746
3747 * dwarf2/read.c (partial_die_info::read) <case
3748 DW_AT_linkage_name>: Use value_as_string.
3749 (dwarf2_string_attr): Use value_as_string.
3750 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3751 method.
3752 * dwarf2/attribute.c (attribute::value_as_string): New method.
3753
de38d64a
PA
37542020-09-29 Pedro Alves <pedro@palves.net>
3755
3756 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3757 defined before using '#pragma GCC diagnostic' instead of checking
3758 __clang__.
3759
9aed480c
TT
37602020-09-28 Tom Tromey <tom@tromey.com>
3761
3762 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3763 (handle_signal_stop): Update.
3764 * procfs.c (procfs_target::insert_watchpoint): Update.
3765 * target.h (target_have_steppable_watchpoint): Now a function.
3766
8a3ecb79
TT
37672020-09-28 Tom Tromey <tom@tromey.com>
3768
3769 * infrun.c (set_schedlock_func): Update.
3770 * target.h (target_can_lock_scheduler): Now a function.
3771
55f6301a
TT
37722020-09-28 Tom Tromey <tom@tromey.com>
3773
3774 * inferior.h (class inferior) <has_execution>: Update.
3775 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3776 * valops.c (find_function_in_inferior)
3777 (value_allocate_space_in_inferior): Update.
3778 * top.c (kill_or_detach): Update.
3779 * target.c (target_preopen, set_target_permissions): Update.
3780 (target_has_execution_current): Remove.
3781 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3782 Update.
3783 * solib.c (update_solib_list, reload_shared_libraries): Update.
3784 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3785 * solib-dsbt.c (enable_break): Update.
3786 * score-tdep.c (score7_fetch_inst): Update.
3787 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3788 Update.
3789 * remote.c (remote_target::start_remote)
3790 (remote_target::remote_check_symbols, remote_target::open_1)
3791 (remote_target::remote_detach_1, remote_target::verify_memory)
3792 (remote_target::xfer_partial, remote_target::read_description)
3793 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3794 * record-full.c (record_full_open_1): Update.
3795 * record-btrace.c (record_btrace_target_open): Update.
3796 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3797 (value_nsstring): Update.
3798 * linux-thread-db.c (add_thread_db_info)
3799 (thread_db_find_new_threads_silently, check_thread_db_callback)
3800 (try_thread_db_load_1, record_thread): Update.
3801 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3802 Update.
3803 * linux-fork.c (checkpoint_command): Update.
3804 * infrun.c (set_non_stop, set_observer_mode)
3805 (check_multi_target_resumption, for_each_just_stopped_thread)
3806 (maybe_remove_breakpoints, normal_stop)
3807 (class infcall_suspend_state): Update.
3808 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3809 (info_program_command, attach_command): Update.
3810 * infcall.c (call_function_by_hand_dummy): Update.
3811 * inf-loop.c (inferior_event_handler): Update.
3812 * gcore.c (gcore_command, derive_heap_segment): Update.
3813 * exec.c (exec_file_command): Update.
3814 * eval.c (evaluate_subexp): Update.
3815 * compile/compile.c (compile_to_object): Update.
3816 * cli/cli-dump.c (restore_command): Update.
3817 * breakpoint.c (update_watchpoint)
3818 (update_inserted_breakpoint_locations)
3819 (insert_breakpoint_locations, get_bpstat_thread): Update.
3820 * target.h (target_has_execution): Remove macro.
3821 (target_has_execution_current): Don't declare.
3822 (target_has_execution): Rename from target_has_execution_1. Add
3823 argument default.
3824
05374cfd
TT
38252020-09-28 Tom Tromey <tom@tromey.com>
3826
3827 * mi/mi-main.c (exec_reverse_continue)
3828 (mi_cmd_list_target_features): Update.
3829 * infrun.c (set_exec_direction_func): Update.
3830 * target.c (default_execution_direction): Update.
3831 * reverse.c (exec_reverse_once): Update.
3832 * target.h (target_can_execute_reverse): Now a function.
3833
9dccd06e
TT
38342020-09-28 Tom Tromey <tom@tromey.com>
3835
3836 * tui/tui-regs.c (tui_get_register)
3837 (tui_data_window::show_registers): Update.
3838 * thread.c (scoped_restore_current_thread::restore)
3839 (scoped_restore_current_thread::scoped_restore_current_thread):
3840 Update.
3841 * regcache-dump.c (regcache_print): Update.
3842 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3843 Update.
3844 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3845 * mep-tdep.c (current_me_module, current_options): Update.
3846 * linux-thread-db.c (thread_db_load): Update.
3847 * infcmd.c (registers_info, info_vector_command)
3848 (info_float_command): Update.
3849 * ia64-tdep.c (ia64_frame_prev_register)
3850 (ia64_sigtramp_frame_prev_register): Update.
3851 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3852 * gcore.c (derive_stack_segment): Update.
3853 * frame.c (get_current_frame, has_stack_frames): Update.
3854 * findvar.c (language_defn::read_var_value): Update.
3855 * arm-tdep.c (arm_pc_is_thumb): Update.
3856 * target.c (target_has_registers): Rename from
3857 target_has_registers_1.
3858 * target.h (target_has_registers): Remove macro.
3859 (target_has_registers): Rename from target_has_registers_1.
3860
841de120
TT
38612020-09-28 Tom Tromey <tom@tromey.com>
3862
3863 * windows-tdep.c (tlb_make_value): Update.
3864 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3865 * thread.c (scoped_restore_current_thread::restore)
3866 (scoped_restore_current_thread::scoped_restore_current_thread)
3867 (thread_command): Update.
3868 * stack.c (backtrace_command_1, frame_apply_level_command)
3869 (frame_apply_all_command, frame_apply_command): Update.
3870 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3871 Update.
3872 * gcore.c (derive_stack_segment): Update.
3873 * frame.c (get_current_frame, has_stack_frames): Update.
3874 * auxv.c (info_auxv_command): Update.
3875 * ada-tasks.c (ada_build_task_list): Update.
3876 * target.c (target_has_stack): Rename from target_has_stack_1.
3877 * target.h (target_has_stack): Remove macro.
3878 (target_has_stack): Rename from target_has_stack_1.
3879
a739972c
TT
38802020-09-28 Tom Tromey <tom@tromey.com>
3881
3882 * target.c (target_has_memory): Rename from target_has_memory_1.
3883 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3884 * thread.c (scoped_restore_current_thread::restore)
3885 (scoped_restore_current_thread::scoped_restore_current_thread):
3886 Update.
3887 * frame.c (get_current_frame, has_stack_frames): Update.
3888 * target.h (target_has_memory): Remove macro.
3889 (target_has_memory): Rename from target_has_memory_1.
3890
5b8a4776
TT
38912020-09-28 Tom Tromey <tom@tromey.com>
3892
3893 * target.c (target_has_all_memory_1): Remove.
3894 * target.h (target_has_all_memory): Remove define.
3895 (target_has_all_memory_1): Don't declare.
3896
bd356ec6
SM
38972020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3898
3899 * ser-base.c: Adjust comments formatting.
3900
2c72d5e5
TT
39012020-09-27 Tom Tromey <tom@tromey.com>
3902
3903 PR tui/25342:
3904 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3905
35a98237
TT
39062020-09-27 Tom Tromey <tom@tromey.com>
3907
3908 PR tui/25342:
3909 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3910
9e820dec
TT
39112020-09-27 Tom Tromey <tom@tromey.com>
3912
3913 * unittests/tui-selftests.c: Update.
3914 * tui/tui-winsource.h (struct tui_source_window_base)
3915 <extra_margin, show_line_number, refresh_pad>: New methods.
3916 <m_max_length, m_pad>: New members.
3917 (tui_copy_source_line): Update.
3918 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3919 first_col, line_width, ndigits parameters. Add length.
3920 (tui_source_window_base::show_source_line): Write to pad. Line
3921 number now 0-based.
3922 (tui_source_window_base::refresh_pad): New method.
3923 (tui_source_window_base::show_source_content): Write to pad. Call
3924 refresh_pad.
3925 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3926 not refill.
3927 (tui_source_window_base::update_exec_info): Call
3928 show_line_number.
3929 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3930 method.
3931 <m_digits>: New member.
3932 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3933 and m_max_length.
3934 (tui_source_window::show_line_number): New method.
3935 * tui/tui-io.h (tui_puts): Fix comment.
3936 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3937 m_max_length.
3938
c15c15c8
TT
39392020-09-27 Tom Tromey <tom@tromey.com>
3940
3941 * tui/tui-winsource.c
3942 (tui_source_window_base::set_is_exec_point_at): Don't call
3943 show_source_line.
3944
149830c1
TT
39452020-09-27 Tom Tromey <tom@tromey.com>
3946
3947 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3948 method.
3949 <erase>: Update.
3950 <cursor_x, cursor_y>: Remove.
3951 <m_inner_window>: New member.
3952 (tui_py_window::rerender): Create inner window.
3953 (tui_py_window::output): Write to inner window.
3954
8f9929bb
GR
39552020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3956
3957 PR python/26586
3958 * cli/cli-script.c (execute_control_commands): don't set
3959 instream to nullptr here as this breaks the from_tty argument
3960 to gdb.execute in Python.
3961 (execute_user_command): set instream to nullptr here instead.
3962
956bdb59
SM
39632020-09-25 Simon Marchi <simon.marchi@efficios.com>
3964
3965 * infrun.h (infrun_debug_printf): Fix formatting.
3966 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3967
3b93626b
SJ
39682020-09-25 Saagar Jha <saagar@saagarjha.com>
3969
3970 * compile/compile-object-load.h (struct munmap_list): Add
3971 explicitly-defined move constructor.
3972
b551a89f
TT
39732020-09-24 Tom Tromey <tromey@adacore.com>
3974
3975 PR tui/26638:
3976 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3977 method.
3978 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3979 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3980 (tui_prev_win): Rewrite.
3981
99bb393f
HD
39822020-09-23 Hannes Domani <ssbssa@yahoo.de>
3983
3984 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3985 in WOW64 processes as SIGINT.
3986 * nat/windows-nat.h: Make wow64_process a shared variable.
3987 * windows-nat.c: Remove static wow64_process variable.
3988
20a5fcbd
TT
39892020-09-23 Tom Tromey <tom@tromey.com>
3990
3991 PR symtab/25470:
3992 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3993 offset and bit size.
3994 * printcmd.c (print_scalar_formatted): Handle zero-length
3995 integer.
3996 (print_scalar_formatted): Use bit_size_differs_p.
3997 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3998 constant.
3999 (union type_specific): <int_stuff>: New member.
4000 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4001 methods.
4002 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4003 TYPE_SPECIFIC_FIELD.
4004 (recursive_dump_type, copy_type_recursive): Update.
4005 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4006 DW_AT_data_bit_offset.
4007
bac51ab7
TT
40082020-09-23 Tom Tromey <tom@tromey.com>
4009
4010 * utils.h (class gdb_argv): Add move operators.
4011 <append>: New methods.
4012 * compile/compile.c (build_argc_argv): Remove.
4013 (compile_args_argc): Remove.
4014 (compile_args_argv): Change type.
4015 (set_compile_args): Simplify.
4016 (append_args): Remove.
4017 (filter_args): Remove argcp parameter.
4018 (get_args): Return gdb_argv. Simplify.
4019 (compile_to_object): Update.
4020
92677124
TT
40212020-09-23 Tom Tromey <tom@tromey.com>
4022
4023 * compile/compile-object-run.c (do_module_cleanup)
4024 <~do_module_cleanup> :Remove.
4025 (do_module_cleanup): Update.
4026 * compile/compile-object-load.h (struct munmap_list): Add move
4027 assignment operator.
4028 <source_file>: Now a std::string.
4029 <munmap_list>: Rename. No longer a pointer.
4030 * compile/compile-object-load.c (struct setup_sections_data): Add
4031 constructor.
4032 <setup_one_section>: Declare.
4033 <munmap_list>: Move earlier.
4034 <m_bfd>: New member.
4035 <m_last_size, m_last_section_first, m_last_prot,
4036 m_last_max_alignment>: Rename, add initializers where needed.
4037 (setup_sections_data::setup_one_section): Rename from
4038 setup_sections. Update.
4039 (compile_object_load): Update. Don't use bfd_map_over_sections.
4040
e616f60a
TT
40412020-09-23 Tom Tromey <tom@tromey.com>
4042
4043 * compile/compile-object-run.c (struct do_module_cleanup): Add
4044 parameters to constructor. Update destructor.
4045 <source_file, scope, scope_data, out_value_type, out_value_addr,
4046 munmap_list_head, objfile_name_string>: Remove.
4047 <module>: New member.
4048 (do_module_cleanup): Update.
4049 (compile_object_run): Update.
4050
e947a848
TT
40512020-09-23 Tom Tromey <tom@tromey.com>
4052
4053 * compile/compile.c (eval_compile_command): Update.
4054 * compile/compile-object-run.h (compile_object_run): Take a
4055 compile_module_up.
4056 * compile/compile-object-run.c (compile_object_run): Take a
4057 compile_module_up.
4058 * compile/compile-object-load.h (struct compile_module): Add
4059 constructor, destructor.
4060 (compile_module_up): New typedef.
4061 (compile_object_load): Return compile_object_up.
4062 * compile/compile-object-load.c (compile_object_load): Return
4063 compile_module_up.
4064
0dbf6ee6
TT
40652020-09-23 Tom Tromey <tom@tromey.com>
4066
4067 * compile/compile-object-run.c (struct do_module_cleanup): Add
4068 constructor, destructor.
4069 <objfile_name_string>: Don't use struct hack.
4070 (do_module_cleanup): Use delete.
4071 (compile_object_run): Use new.
4072
ebe824f5
TT
40732020-09-23 Tom Tromey <tom@tromey.com>
4074
4075 * compile/compile-cplus-types.c
4076 (compile_cplus_convert_struct_or_union): Use std::vector.
4077 (compile_cplus_convert_func): Likewise.
4078 * compile/compile-c-types.c (convert_func): Use std::vector.
4079
5dd918d9
TT
40802020-09-21 Tom Tromey <tromey@adacore.com>
4081
4082 * sparc-tdep.c (sparc32_skip_prologue): Use
4083 skip_prologue_using_sal.
4084
5486c517
TT
40852020-09-19 Tom Tromey <tom@tromey.com>
4086
4087 * symfile.c (add_section_size_callback): Remove.
4088 (load_one_section): Rename from load_section_callback. Change
4089 parameters.
4090 (generic_load): Use foreach.
4091
8a6bb1d1
TT
40922020-09-19 Tom Tromey <tom@tromey.com>
4093
4094 * exec.c (add_to_section_table): Remove.
4095 (build_section_table): Use foreach.
4096
08f93a1a
TT
40972020-09-19 Tom Tromey <tom@tromey.com>
4098
4099 * elfread.c (elf_locate_sections): Change parameters.
4100 (elf_symfile_read): Use foreach.
4101
03cd72b8
TT
41022020-09-19 Tom Tromey <tom@tromey.com>
4103
4104 * cli/cli-dump.c (struct callback_data): Remove.
4105 (restore_one_section): Rename from restore_section_callback.
4106 Change parameters.
4107 (restore_binary_file): Change parameters.
4108 (restore_command): Use foreach.
4109
f4f2b85f
TT
41102020-09-19 Tom Tromey <tom@tromey.com>
4111
4112 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4113 (gcore_copy_callback): Likewise.
4114 (gcore_memory_sections): Use foreach.
4115
b35c1d1c
TT
41162020-09-19 Tom Tromey <tom@tromey.com>
4117
4118 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4119 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4120 parameters.
4121 (generic_elf_osabi_sniffer): Use foreach.
4122 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4123 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4124
5bb6e9dd
TT
41252020-09-19 Tom Tromey <tom@tromey.com>
4126
4127 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4128 (dwarf2_get_dwz_file): Use foreach.
4129 (dwarf2_locate_dwo_sections): Change parameters.
4130 (open_and_init_dwo_file): Use foreach.
4131 (dwarf2_locate_common_dwp_sections): Change parameters.
4132 (open_and_init_dwp_file): Use foreach.
4133
ad7277da
TT
41342020-09-19 Tom Tromey <tom@tromey.com>
4135
4136 * symfile.h: (find_lowest_section): Don't declare.
4137 * symfile.c (find_lowest_section): Now static. Change
4138 parameters.
4139 (struct place_section_arg): Remove.
4140 (place_section): Change parameters.
4141 (addr_info_make_relative): Use foreach.
4142 (symfile_dummy_outputs): Remove.
4143 (default_symfile_relocate): Use foreach.
4144
cb814f2e
TT
41452020-09-19 Tom Tromey <tom@tromey.com>
4146
4147 * objfiles.c (add_to_objfile_sections): Rename from
4148 add_to_objfile_sections_full.
4149 (add_to_objfile_sections): Remove.
4150 (build_objfile_section_table): Use foreach.
4151
3cabfd26
TT
41522020-09-19 Tom Tromey <tom@tromey.com>
4153
4154 * stap-probe.c (get_stap_base_address_1): Remove.
4155 (get_stap_base_address): Use foreach.
4156
1ce51eb5
TT
41572020-09-19 Tom Tromey <tom@tromey.com>
4158
4159 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4160 parameters.
4161 (gdb_bfd_close_or_warn): Use foreach.
4162
a190fabb
TT
41632020-09-19 Tom Tromey <tom@tromey.com>
4164
4165 * corelow.c (add_to_thread_list): Change parameters.
4166 (core_target_open): Use foreach.
4167
cafb0d81
TT
41682020-09-19 Tom Tromey <tom@tromey.com>
4169
4170 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4171 existing function.
4172
c8d5abea
AB
41732020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4174
4175 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4176 for arrays.
4177
6d816919
AB
41782020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4179
4180 * eval.c: Remove 'f-lang.h' include.
4181 (value_f90_subarray): Moved to f-lang.c.
4182 (eval_call): Renamed to...
4183 (evaluate_subexp_do_call): ...this, is no longer static, header
4184 comment moved into header file.
4185 (evaluate_funcall): Update call to eval_call.
4186 (skip_undetermined_arglist): Moved to f-lang.c.
4187 (fortran_value_subarray): Likewise.
4188 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4189 moved to evaluate_subexp_f.
4190 (calc_f77_array_dims): Moved to f-lang.c
4191 * expprint.c (print_subexp_funcall): New function.
4192 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4193 moved to print_subexp_f, OP_FUNCALL uses new function.
4194 (dump_subexp_body_funcall): New function.
4195 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4196 moved to dump_subexp_f, OP_FUNCALL uses new function.
4197 * expression.h (evaluate_subexp_do_call): Declare.
4198 * f-lang.c (value_f90_subarray): Moved from eval.c.
4199 (skip_undetermined_arglist): Likewise.
4200 (calc_f77_array_dims): Likewise.
4201 (fortran_value_subarray): Likewise.
4202 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4203 (operator_length_f): Likewise.
4204 (print_subexp_f): Likewise.
4205 (dump_subexp_body_f): Likewise.
4206 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4207 declaration of this operation to here.
4208 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4209 support moved to operator_length_f.
4210 * parser-defs.h (dump_subexp_body_funcall): Declare.
4211 (print_subexp_funcall): Declare.
4212 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4213 fortran-operator.def.
4214
8c37706a
AB
42152020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4216
4217 * eval.c (fortran_value_subarray): New function, content is taken
4218 from...
4219 (evaluate_subexp_standard): ...here, in two places. Now arrays
4220 and strings both call the new function.
4221 (calc_f77_array_dims): Add header comment, handle strings.
4222
14f9473c
VC
42232020-09-18 Victor Collod <vcollod@nvidia.com>
4224
4225 PR gdb/26635
4226 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4227 (i386_analyze_prologue): Call i386_skip_endbr.
4228
b60cea74
TT
42292020-09-18 Tom Tromey <tromey@adacore.com>
4230
4231 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4232 (windows_nat_target::wait): Update.
4233 * target/wait.h (enum target_wait_flag): New. Use
4234 DEF_ENUM_FLAGS_TYPE.
4235 * target/target.h (target_wait): Change type of options.
4236 * target.h (target_options_to_string, default_target_wait):
4237 Update.
4238 (struct target_ops) <wait>: Change type of options.
4239 * target.c (target_wait, default_target_wait, do_option): Change
4240 type of "options".
4241 (target_options_to_string): Likewise.
4242 * target-delegates.c: Rebuild.
4243 * target-debug.h (target_debug_print_target_wait_flags): Rename
4244 from target_debug_print_options.
4245 * sol-thread.c (class sol_thread_target) <wait>: Update.
4246 (sol_thread_target::wait): Update.
4247 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4248 (rs6000_nat_target::wait): Update.
4249 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4250 Update.
4251 (remote_target::wait_ns, remote_target::wait_as): Change type of
4252 "options".
4253 (remote_target::wait): Update.
4254 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4255 (gdbsim_target::wait): Update.
4256 * record-full.c (class record_full_base_target) <wait>: Update.
4257 (record_full_wait_1): Change type of "options".
4258 (record_full_base_target::wait): Update.
4259 * record-btrace.c (class record_btrace_target) <wait>: Update.
4260 (record_btrace_target::wait): Update.
4261 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4262 Update.
4263 (ravenscar_thread_target::wait): Update.
4264 * procfs.c (class procfs_target) <wait>: Update.
4265 (procfs_target::wait): Update.
4266 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4267 * obsd-nat.c (obsd_nat_target::wait): Update.
4268 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4269 (nto_procfs_target::wait): Update.
4270 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4271 * nbsd-nat.c (nbsd_wait): Change type of "options".
4272 (nbsd_nat_target::wait): Update.
4273 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4274 (thread_db_target::wait): Update.
4275 * linux-nat.h (class linux_nat_target) <wait>: Update.
4276 * linux-nat.c (linux_nat_target::wait): Update.
4277 (linux_nat_wait_1): Update.
4278 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4279 "options".
4280 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4281 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4282 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4283 (go32_nat_target::wait): Update.
4284 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4285 * gnu-nat.c (gnu_nat_target::wait): Update.
4286 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4287 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4288 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4289 * darwin-nat.c (darwin_nat_target::wait): Update.
4290 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4291 (bsd_uthread_target::wait): Update.
4292 * aix-thread.c (class aix_thread_target) <wait>: Update.
4293 (aix_thread_target::wait): Update.
4294
0295dde6
AB
42952020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4296
4297 * compile/compile-object-run.c (create_copied_type_recursive): New
4298 function.
4299 (compile_object_run): Use new function.
4300
d3483b43
JT
43012020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4302
4303 * NEWS: Mention x86_64 Cygwin core file support.
4304
e7d612ad
JT
43052020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4306
4307 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4308 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4309
aff9d387
JT
43102020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4311
62a5151b
JT
4312 * windows-tdep.h: Add prototypes.
4313 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4314 (i386_windows_core_pid_to_str): Move and rename ...
4315 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4316 (windows_core_pid_to_str): ... and here.
4317 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4318
43192020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4320 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4321 (amd64_windows_init_abi_common): ... and register.
4322
7d155da3
JT
43232020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4324
4325 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4326 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4327
e8ef12b9
PA
43282020-09-18 Pedro Alves <pedro@palves.net>
4329
4330 PR gdb/26631
4331 * thread.c (thread_find_command): Switch inferior before calling
4332 target methods.
4333
c1e1314d
TT
43342020-09-17 Tom Tromey <tromey@adacore.com>
4335
4336 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4337 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4338 (tdesc_arch_data_up): New typedef.
4339 (tdesc_use_registers, tdesc_data_alloc): Update.
4340 (tdesc_data_cleanup): Don't declare.
4341 * target-descriptions.c (tdesc_data_alloc): Return a
4342 tdesc_arch_data_up.
4343 (tdesc_arch_data_deleter::operator()): Rename from
4344 tdesc_data_cleanup. Change argument type.
4345 (tdesc_use_registers): Change early_data to an rvalue reference.
4346 (tdesc_use_registers): Don't use delete.
4347 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4348 * s390-tdep.c (s390_gdbarch_init): Update.
4349 * rx-tdep.c (rx_gdbarch_init): Update.
4350 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4351 * riscv-tdep.c (riscv_gdbarch_init): Update.
4352 * or1k-tdep.c (or1k_gdbarch_init): Update.
4353 * nios2-tdep.c (nios2_gdbarch_init): Update.
4354 * nds32-tdep.c (nds32_gdbarch_init): Update.
4355 * mips-tdep.c (mips_gdbarch_init): Update.
4356 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4357 * m68k-tdep.c (m68k_gdbarch_init): Update.
4358 * i386-tdep.c (i386_gdbarch_init): Update.
4359 * arm-tdep.c (arm_gdbarch_init): Update.
4360 * arc-tdep.c (arc_tdesc_init): Update.
4361 (arc_gdbarch_init): Update.
4362 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4363
0363df3d
HD
43642020-09-17 Hannes Domani <ssbssa@yahoo.de>
4365
4366 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4367 for WOW64 processes.
4368
280a9412
TT
43692020-09-17 Tom Tromey <tom@tromey.com>
4370
4371 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4372
6108fd18
TT
43732020-09-17 Tom Tromey <tom@tromey.com>
4374
4375 * value.c (preserve_values): Update.
4376 * python/py-type.c (save_objfile_types): Update.
4377 * guile/scm-type.c (save_objfile_types): Update.
4378 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4379 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4380 * compile/compile-object-run.c (compile_object_run): Update.
4381
fa9b1164
TT
43822020-09-17 Tom Tromey <tom@tromey.com>
4383
4384 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4385 Remove.
4386 <m_table>: Now htab_up.
4387 * typeprint.c (typedef_hash_table::recursively_update)
4388 (typedef_hash_table::add_template_parameters)
4389 (typedef_hash_table::typedef_hash_table): Update.
4390 (typedef_hash_table::~typedef_hash_table): Remove.
4391 (typedef_hash_table::typedef_hash_table)
4392 (typedef_hash_table::find_global_typedef)
4393 (typedef_hash_table::find_typedef): Update.
4394
eb53f105
TT
43952020-09-17 Tom Tromey <tom@tromey.com>
4396
4397 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4398
7a8a5d47
TT
43992020-09-17 Tom Tromey <tom@tromey.com>
4400
4401 * linespec.c (class decode_compound_collector)
4402 <~decode_compound_collector>: Remove.
4403 <m_unique_syms>: Now htab_up.
4404 (decode_compound_collector::operator ()): Update.
4405 (class symtab_collector) <~symtab_collector>: Remove.
4406 <m_symtab_table>: Now htab_up.
4407 (symtab_collector::operator ()): Update.
4408
99032cfc
TT
44092020-09-17 Tom Tromey <tom@tromey.com>
4410
4411 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4412 (filename_seen_cache::clear): Update.
4413 (~filename_seen_cache): Remove.
4414 (filename_seen_cache::seen): Update.
4415 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4416 htab_up.
4417 <~filename_seen_cache>: Remove.
4418 <traverse>: Update.
4419
32580f6d
TT
44202020-09-17 Tom Tromey <tom@tromey.com>
4421
4422 * completer.c (completion_tracker::discard_completions)
4423 (completion_tracker::~completion_tracker)
4424 (completion_tracker::maybe_add_completion)
4425 (completion_tracker::remove_completion)
4426 (completion_tracker::recompute_lowest_common_denominator)
4427 (completion_tracker::build_completion_result): Update.
4428 * completer.h (class completion_tracker) <have_completions>:
4429 Update.
4430 <m_entries_hash>: Now htab_up.
4431
c1fb9836
TT
44322020-09-17 Tom Tromey <tom@tromey.com>
4433
4434 * breakpoint.c (ambiguous_names_p): Use htab_up.
4435
88f07206
TT
44362020-09-17 Tom Tromey <tom@tromey.com>
4437
4438 * auto-load.c (struct auto_load_pspace_info)
4439 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4440 <loaded_script_files, loaded_script_texts>: Change type to
4441 htab_up.
4442 (~auto_load_pspace_info) Remove.
4443 (init_loaded_scripts_info, maybe_add_script_file)
4444 (maybe_add_script_text, auto_load_info_scripts): Update.
4445
9519b2ee
TT
44462020-09-17 Tom Tromey <tromey@adacore.com>
4447
4448 * c-exp.y (name_obstack): Now static.
4449
d2cd4113
CC
44502020-09-17 Chungyi Chi <demonic@csie.io>
4451
4452 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4453
b650a282
SM
44542020-09-16 Simon Marchi <simon.marchi@efficios.com>
4455
4456 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4457 (add_solib_catchpoint): Likewise.
4458 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4459 to bool.
4460 (add_solib_catchpoint): Change int parameter/variable to bool.
4461 (catch_load_or_unload): Likewise.
4462 (init_catchpoint): Likewise.
4463 (create_fork_vfork_event_catchpoint): Likewise.
4464 (catch_fork_command_1): Likewise.
4465 (catch_exec_command_1): Likewise.
4466
4d0bcfcf
SM
44672020-09-16 Simon Marchi <simon.marchi@efficios.com>
4468
4469 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4470 Change instance_flags to m_instance_flags.
4471
fe830662
TT
44722020-09-16 Tom Tromey <tromey@adacore.com>
4473
4474 PR gdb/26598:
4475 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4476
fe5ddfc3
JB
44772020-09-16 John Baldwin <jhb@FreeBSD.org>
4478
4479 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4480 PL_FLAG_EXEC.
4481 (fbsd_nat_target::insert_exec_catchpoint)
4482 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4483 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4484 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4485
e911c666
JB
44862020-09-16 John Baldwin <jhb@FreeBSD.org>
4487
4488 * configure.ac: Remove check for kinfo_getvmmap().
4489 * configure, config.in: Regenerate.
4490 * fbsd-nat.c (fbsd_read_mapping): Remove
4491 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4492 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4493 kinfo_get_vmmap() are always present.
4494
1f17d372
JB
44952020-09-16 John Baldwin <jhb@FreeBSD.org>
4496
4497 * fbsd-nat.c: Always include support for
4498 TARGET_OBJECT_SIGNAL_INFO.
4499
bcb1da7f
JB
45002020-09-16 John Baldwin <jhb@FreeBSD.org>
4501
4502 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4503 sysctl and remove procfs fallback.
4504
5515f729
JB
45052020-09-16 John Baldwin <jhb@FreeBSD.org>
4506
4507 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4508 * fbsd-nat.h: Likewise.
4509
da1df1db
TBA
45102020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4511
4512 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4513 argument.
4514
0e25e767
AB
45152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4516
4517 * ada-lang.c (ada_language_data): Delete.
4518 (ada_language): Remove references to ada_language_data.
4519 * c-lang.c (c_language_data): Delete.
4520 (c_language): Remove references to c_language_data.
4521 (cplus_language_data): Delete.
4522 (cplus_language): Remove references to cplus_language_data.
4523 (asm_language_data): Delete.
4524 (asm_language): Remove references to asm_language_data.
4525 (minimal_language_data): Delete.
4526 (minimal_language): Remove references to minimal_language_data.
4527 * d-lang.c (d_language_data): Delete.
4528 (d_language): Remove references to d_language_data.
4529 * f-lang.c (f_language_data): Delete.
4530 (f_language): Remove references to f_language_data.
4531 * go-lang.c (go_language_data): Delete.
4532 (go_language): Remove references to go_language_data.
4533 * language.c (unknown_language_data): Delete.
4534 (unknown_language): Remove references to unknown_language_data.
4535 (auto_language_data): Delete.
4536 (auto_language): Remove references to auto_language_data.
4537 * language.h (language_data): Delete struct.
4538 (language_defn): No longer inherit from language_data.
4539 * m2-lang.c (m2_language_data): Delete.
4540 (m2_language): Remove references to m2_language_data.
4541 * objc-lang.c (objc_language_data): Delete.
4542 (objc_language): Remove references to objc_language_data.
4543 * opencl-lang.c (opencl_language_data): Delete.
4544 (opencl_language): Remove references to opencl_language_data.
4545 * p-lang.c (pascal_language_data): Delete.
4546 (pascal_language): Remove references to pascal_language_data.
4547 * rust-lang.c (rust_language_data): Delete.
4548 (rust_language): Remove references to rust_language_data.
4549
b7c6e27d
AB
45502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4551
4552 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4553 initializer.
4554 (ada_language::opcode_print_table): New member function.
4555 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4556 (c_language::opcode_print_table): New member function.
4557 (cplus_language_data): Remove la_op_print_tab initializer.
4558 (cplus_language::opcode_print_table): New member function.
4559 (asm_language_data): Remove la_op_print_tab initializer.
4560 (asm_language::opcode_print_table): New member function.
4561 (minimal_language_data): Remove la_op_print_tab initializer.
4562 (minimal_language::opcode_print_table): New member function.
4563 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4564 (d_language::opcode_print_table): New member function.
4565 * expprint.c (print_subexp_standard): Update call to
4566 opcode_print_table.
4567 (op_string): Likewise.
4568 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4569 (f_language::opcode_print_table): New member function.
4570 * go-lang.c (go_language_data): Remove la_op_print_tab
4571 initializer.
4572 (go_language::opcode_print_table): New member function.
4573 * language.c (unknown_language_data): Remove la_op_print_tab
4574 initializer.
4575 (unknown_language::opcode_print_table): New member function.
4576 (auto_language_data): Remove la_op_print_tab initializer.
4577 (auto_language::opcode_print_table): New member function.
4578 * language.h (language_data): Remove la_op_print_tab field.
4579 (language_defn::opcode_print_table): Declare new member function.
4580 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4581 initializer.
4582 (m2_language::opcode_print_table): New member function.
4583 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4584 initializer.
4585 (objc_language::opcode_print_table): New member function.
4586 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4587 initializer.
4588 (opencl_language::opcode_print_table): New member function.
4589 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4590 initializer.
4591 (pascal_language::opcode_print_table): New member function.
4592 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4593 initializer.
4594 (rust_language::opcode_print_table): New member function.
4595
5aba6ebe
AB
45962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4597
4598 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4599 (ada_language::expression_ops): New member function.
4600 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4601 (c_language::expression_ops): New member function.
4602 (cplus_language_data): Remove la_exp_desc initializer.
4603 (cplus_language::expression_ops): New member function.
4604 (asm_language_data): Remove la_exp_desc initializer.
4605 (asm_language::expression_ops): New member function.
4606 (minimal_language_data): Remove la_exp_desc initializer.
4607 (minimal_language::expression_ops): New member function.
4608 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4609 (d_language::expression_ops): New member function.
4610 * eval.c (evaluate_subexp): Update call to expression_ops.
4611 * expprint.c (print_subexp): Likewise.
4612 (op_name): Likewise.
4613 (dump_subexp_body): Likewise.
4614 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4615 (f_language::expression_ops): New member function.
4616 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4617 (go_language::expression_ops): New member function.
4618 * language.c (language_defn::expression_ops): New function.
4619 (unknown_language_data): Remove la_exp_desc initializer.
4620 (auto_language_data): Likewise.
4621 * language.h (language_data): Remove la_exp_desc field.
4622 (language_defn::expression_ops): Declare new member function.
4623 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4624 (m2_language::expression_ops): New member function.
4625 * objc-lang.c (objc_language_data): Remove la_exp_desc
4626 initializer.
4627 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4628 initializer.
4629 (opencl_language::expression_ops): New member function.
4630 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4631 * parse.c (operator_length): Update call to expression_ops.
4632 (exp_iterate): Likewise.
4633 * rust-lang.c (rust_language_data): Remove la_exp_desc
4634 initializer.
4635 (ruse_language::expression_ops): New member function.
4636
b63a3f3f
AB
46372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4638
4639 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4640 initializer.
4641 (ada_language::varobj_ops): New member function.
4642 * c-lang.c (c_language_data): Remove la_varobj_ops
4643 initializer.
4644 (cplus_language_data): Likewise.
4645 (cplus_language::varobj_ops): New member function.
4646 (asm_language_data): Remove la_varobj_ops initializer.
4647 (minimal_language_data): Likewise.
4648 * d-lang.c (d_language_data): Likewise.
4649 * f-lang.c (f_language_data): Likewise.
4650 * go-lang.c (go_language_data): Likewise.
4651 * language.c (language_defn::varobj_ops): New function.
4652 (unknown_language_data): Remove la_varobj_ops
4653 initializer.
4654 (auto_language_data): Likewise.
4655 * language.h (language_data): Remove la_varobj_ops field.
4656 (language_defn::varobj_ops): Declare new member function.
4657 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4658 * objc-lang.c (objc_language_data): Likewise.
4659 * opencl-lang.c (opencl_language_data): Likewise.
4660 * p-lang.c (pascal_language_data): Likewise.
4661 * rust-lang.c (rust_language_data): Likewise.
4662 * varobj.c (varobj_create): Update call to varobj_ops.
4663 * varobj.h (default_varobj_ops): Delete define.
4664
1ac14a04
AB
46652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4666
4667 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4668 initializer.
4669 * c-lang.c (c_language_data): Likewise.
4670 (c_language::macro_expansion): New member function.
4671 (cplus_language_data): Likewise.
4672 (cplus_language::macro_expansion): New member function.
4673 (asm_language_data): Likewise.
4674 (asm_language::macro_expansion): New member function.
4675 (minimal_language_data): Likewise.
4676 (minimal_language::macro_expansion): New member function.
4677 * d-lang.c (d_language_data): Remove la_macro_expansion
4678 initializer.
4679 * f-lang.c (f_language_data): Likewise.
4680 * go-lang.c (go_language_data): Likewise.
4681 * language.c (unknown_language_data): Likewise.
4682 (auto_language_data): Likewise.
4683 * language.h (language_data): Remove la_macro_expansion field.
4684 (language_defn::macro_expansion): New member function.
4685 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4686 initializer.
4687 * objc-lang.c (objc_language_data): Likewise.
4688 (objc_language::macro_expansion): New member function.
4689 * opencl-lang.c (opencl_language_data): Likewise.
4690 (opencl_language::macro_expansion): New member function.
4691 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4692 initializer.
4693 * rust-lang.c (rust_language_data): Likewise.
4694 * symtab.c (default_collect_symbol_completion_matches_break_on):
4695 Update call to macro_expansion.
4696
3a3440fb
AB
46972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4698
4699 * ada-lang.c (ada_language_data): Remove la_array_ordering
4700 initializer.
4701 * c-lang.c (c_language_data): Likewise.
4702 (cplus_language_data): Likewise.
4703 (asm_language_data): Likewise.
4704 (minimal_language_data): Likewise.
4705 * d-lang.c (d_language_data): Likewise.
4706 * dwarf2/read.c (read_array_order): Update for call to
4707 array_ordering.
4708 * f-lang.c (f_language_data): Remove la_array_ordering
4709 initializer.
4710 (f_language::array_ordering): New member function.
4711 * go-lang.c (go_language_data): Remove la_array_ordering
4712 initializer.
4713 * language.c (unknown_language_data): Likewise.
4714 (auto_language_data): Likewise.
4715 * language.h (language_data): Delete la_array_ordering field.
4716 (language_defn::array_ordering): New member function.
4717 * m2-lang.c (m2_language_data): Remove la_array_ordering
4718 initializer.
4719 * objc-lang.c (objc_language_data): Likewise.
4720 * opencl-lang.c (opencl_language_data): Likewise.
4721 * p-lang.c (pascal_language_data): Likewise.
4722 * rust-lang.c (rust_language_data): Likewise.
4723
0d201fa4
AB
47242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4725
4726 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4727 initializer.
4728 * c-lang.c (c_language_data): Likewise.
4729 (cplus_language_data): Likewise.
4730 (asm_language_data): Likewise.
4731 (minimal_language_data): Likewise.
4732 * d-lang.c (d_language_data): Likewise.
4733 * f-lang.c (f_language_data): Likewise.
4734 (f_language::case_sensitivity): New member function.
4735 * go-lang.c (go_language_data): Remove la_case_sensitivity
4736 initializer.
4737 * language.c (enum case_mode): Moved here from language.h.
4738 (case_mode): Make static.
4739 (show_case_command): Update for case_sensitivity being a method.
4740 (set_case_command): Likewise.
4741 (set_range_case): Likewise.
4742 (unknown_language_data): Remove la_case_sensitivity initializer.
4743 (auto_language_data): Likewise.
4744 * language.h (case_mode): Delete, move enum declaration to
4745 language.c.
4746 (language_data): Delete la_case_sensitivity field.
4747 (language_defn::case_sensitivity): New member function.
4748 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4749 initializer.
4750 * objc-lang.c (objc_language_data): Likewise.
4751 * opencl-lang.c (opencl_language_data): Likewise.
4752 * p-lang.c (pascal_language_data): Likewise.
4753 * rust-lang.c (rust_language_data): Likewise.
4754
efdf6a73
AB
47552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4756
4757 * ada-lang.c (ada_language_data): Remove la_range_check
4758 initializer.
4759 * c-lang.c (c_language_data): Likewise.
4760 (cplus_language_data): Likewise.
4761 (asm_language_data): Likewise.
4762 (minimal_language_data): Likewise.
4763 * d-lang.c (d_language_data): Likewise.
4764 * f-lang.c (f_language_data): Likewise.
4765 (f_language::range_checking_on_by_default): New member function.
4766 * go-lang.c (go_language_data): Remove la_range_check initializer.
4767 * language.c (enum range_mode): Moved here from language.h.
4768 (range_mode): Made static.
4769 (show_range_command): Update to use
4770 range_checking_on_by_default.
4771 (set_range_command): Likewise.
4772 (set_range_case): Likewise.
4773 (unknown_language_data): Remove la_range_check initializer.
4774 (auto_language_data): Likewise.
4775 * language.h (range_mode): Delete. Enum definition moved to
4776 language.c.
4777 (language_data): Remove la_range_check field.
4778 (language_defn::range_checking_on_by_default): New member
4779 function.
4780 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4781 (m2_language::range_checking_on_by_default): New member function.
4782 * objc-lang.c (objc_language_data): Remove la_range_check
4783 initializer.
4784 * opencl-lang.c (opencl_language_data): Likewise.
4785 * p-lang.c (pascal_language_data): Likewise.
4786 (pascal_language::range_checking_on_by_default): New member
4787 function.
4788 * rust-lang.c (rust_language_data): Remove la_range_check
4789 initializer.
4790 (rust_language::range_checking_on_by_default): New member
4791 function.
4792
bf92aec5
AB
47932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4794
4795 * dwarf2/read.c (dwarf2_physname): Remove special case for
4796 language_go.
4797 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4798 member function.
4799
d3355e4d
AB
48002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4801
4802 * ada-lang.c (ada_language_data): Remove
4803 la_store_sym_names_in_linkage_form_p initializer.
4804 (ada_language::store_sym_names_in_linkage_form_p): New member
4805 function.
4806 * c-lang.c (c_language_data): Remove
4807 la_store_sym_names_in_linkage_form_p initializer.
4808 (c_language::store_sym_names_in_linkage_form_p): New member
4809 function.
4810 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4811 initializer.
4812 (asm_language_data): Likewise.
4813 (asm_language::store_sym_names_in_linkage_form_p): New member
4814 function.
4815 (minimal_language_data): Remove
4816 la_store_sym_names_in_linkage_form_p initializer.
4817 (minimal_language::store_sym_names_in_linkage_form_p): New member
4818 function.
4819 * d-lang.c (d_language_data): Remove
4820 la_store_sym_names_in_linkage_form_p initializer.
4821 * dwarf2/read.c (dwarf2_physname): Update call to
4822 store_sym_names_in_linkage_form_p.
4823 * f-lang.c (f_language_data): Remove
4824 la_store_sym_names_in_linkage_form_p initializer.
4825 * go-lang.c (go_language_data): Remove
4826 la_store_sym_names_in_linkage_form_p initializer.
4827 * language.c (unknown_language_data): Remove
4828 la_store_sym_names_in_linkage_form_p initializer.
4829 (unknown_language::store_sym_names_in_linkage_form_p): New member
4830 function.
4831 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4832 initializer.
4833 (auto_language::store_sym_names_in_linkage_form_p): New member
4834 function.
4835 * language.h (language_data): Remove
4836 la_store_sym_names_in_linkage_form_p member variable.
4837 (language_defn::store_sym_names_in_linkage_form_p): New member
4838 function.
4839 * m2-lang.c (m2_language_data): Remove
4840 la_store_sym_names_in_linkage_form_p initializer.
4841 * objc-lang.c (objc_language_data): Likewise.
4842 * opencl-lang.c (opencl_language_data): Likewise.
4843 * p-lang.c (pascal_language_data): Likewise.
4844 * rust-lang.c (rust_language_data): Likewise.
4845
22c12a6c
AB
48462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4847
4848 * ada-lang.c (ada_language_data): Remove string_lower_bound
4849 initializer.
4850 * c-lang.c (c_language_data): Likewise.
4851 (cplus_language_data): Likewise.
4852 (asm_language_data): Likewise.
4853 (minimal_language_data): Likewise.
4854 * d-lang.c (d_language_data): Likewise.
4855 * f-lang.c (f_language_data): Likewise.
4856 * go-lang.c (go_language_data): Likewise.
4857 * language.c (unknown_language_data): Likewise.
4858 (auto_language_data): Likewise.
4859 * language.h (language_data): Remove string_lower_bound field.
4860 (language_defn::string_lower_bound): New member function.
4861 * m2-lang.c (m2_language_data): Remove string_lower_bound
4862 initializer.
4863 (m2_language::string_lower_bound): New member function.
4864 * objc-lang.c (objc_language_data): Remove string_lower_bound
4865 initializer.
4866 * opencl-lang.c (opencl_language_data): Likewise.
4867 * p-lang.c (pascal_language_data): Likewise.
4868 * rust-lang.c (rust_language_data): Likewise.
4869 * valops.c (value_cstring): Update call to string_lower_bound.
4870 (value_string): Likewise.
4871 * value.c (allocate_repeated_value): Likewise.
4872
1c236ddd
AB
48732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4874
4875 * valops.c (value_repeat): Fix incorrect argument name in comment.
4876
67bd3fd5
AB
48772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4878
4879 * ada-lang.c (ada_language_data): Remove c_style_arrays
4880 initializer.
4881 (ada_language::c_style_arrays_p): New member fuction.
4882 * c-lang.c (c_language_data): Remove c_style_arrays
4883 initializer.
4884 (cplus_language_data): Likewise.
4885 (asm_language_data): Likewise.
4886 (minimal_language_data): Likewise.
4887 * d-lang.c (d_language_data): Likewise.
4888 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4889 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4890 (f_language::c_style_arrays_p): New member function.
4891 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4892 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4893 * language.c (unknown_language_data): Remove c_style_arrays
4894 initializer.
4895 (auto_language_data): Likewise.
4896 * language.h (language_data): Remove c_style_arrays field.
4897 (language_defn::c_style_arrays_p): New member function.
4898 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4899 (m2_language::c_style_arrays_p): New member function.
4900 * objc-lang.c (objc_language_data): Remove c_style_arrays
4901 initializer.
4902 * opencl-lang.c (opencl_language_data): Likewise.
4903 * p-lang.c (pascal_language_data): Likewise.
4904 * rust-lang.c (rust_language_data): Likewise.
4905 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4906 and update local variable to a bool.
4907 * valops.c (value_cast): Update call to c_style_arrays_p.
4908 (value_array): Likewise.
4909 * value.c (coerce_array): Likewise.
4910
85967615
AB
49112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4912
4913 * ada-lang.c (ada_language_data): Remove la_language initializer.
4914 * c-lang.c (c_language_data): Likewise.
4915 (cplus_language_data): Likewise.
4916 (asm_language_data): Likewise.
4917 (minimal_language_data): Likewise.
4918 * d-lang.c (d_language_data): Likewise.
4919 * f-lang.c (f_language_data): Likewise.
4920 * go-lang.c (go_language_data): Likewise.
4921 * language.c (unknown_language_data): Likewise.
4922 (auto_language_data): Likewise.
4923 * language.h (language_data): Remove la_language field.
4924 (language_defn::language_defn): Initialise la_language field.
4925 (language_defn::la_language): New member variable.
4926 * m2-lang.c (m2_language_data): Remove la_language field.
4927 * objc-lang.c (objc_language_data): Likewise.
4928 * opencl-lang.c (opencl_language_data): Likewise.
4929 * p-lang.c (pascal_language_data): Likewise.
4930 * rust-lang.c (rust_language_data): Likewise.
4931
e171d6f1
AB
49322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4933
4934 * ada-lang.c (ada_extensions): Delete, moved into
4935 ada_language::filename_extensions.
4936 (ada_language_data): Remove la_filename_extensions initializer.
4937 (ada_language::filename_extensions): New member function.
4938 * c-lang.c (c_extensions): Delete, moved into
4939 c_language::filename_extensions.
4940 (c_language_data): Remove la_filename_extensions initializer.
4941 (c_language::filename_extensions): New member function.
4942 (cplus_extensions): Delete, moved into
4943 cplus_language::filename_extensions.
4944 (cplus_language_data): Remove la_filename_extensions initializer.
4945 (cplus_language::filename_extensions): New member function.
4946 (asm_extensions): Delete, moved into
4947 asm_language::filename_extensions.
4948 (asm_language_data): Remove la_filename_extensions initializer.
4949 (asm_language::filename_extensions): New member function.
4950 (minimal_language_data): Remove la_filename_extensions
4951 initializer.
4952 * d-lang.c (d_extensions): Delete, moved into
4953 d_language::filename_extensions.
4954 (d_language_data): Remove la_filename_extensions initializer.
4955 (d_language::filename_extensions): New member function.
4956 * f-lang.c (f_extensions): Delete, moved into
4957 f_language::filename_extensions.
4958 (f_language_data): Remove la_filename_extensions initializer.
4959 (f_language::filename_extensions): New member function.
4960 * go-lang.c (go_language_data): Remove la_filename_extensions
4961 initializer.
4962 * language.c (add_set_language_command): Update now that
4963 filename_extensions returns a vector.
4964 (unknown_language_data): Remove la_filename_extensions
4965 initializer.
4966 (auto_language_data): Likewise.
4967 * language.h (language_data): Remove la_filename_extensions field.
4968 (language_defn::filename_extensions): New member function.
4969 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4970 initializer.
4971 * objc-lang.c (objc_extensions): Delete, moved into
4972 objc_language::filename_extensions.
4973 (objc_language_data): Remove la_filename_extensions initializer.
4974 (objc_language::filename_extensions): New member function.
4975 * opencl-lang.c (opencl_language_data): Remove
4976 la_filename_extensions initializer.
4977 * p-lang.c (pascal_extensions): Delete, moved into
4978 pascal_language::filename_extensions.
4979 (pascal_language_data): Remove la_filename_extensions initializer.
4980 (pascal_language::filename_extensions): New member function.
4981 * rust-lang.c (rust_extensions): Delete, moved into
4982 rust_language::filename_extensions.
4983 (rust_language_data): Remove la_filename_extensions initializer.
4984 (rust_language::filename_extensions): New member function.
4985 * symfile.c (add_filename_language): Add new assert.
4986
6f7664a9
AB
49872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4988
4989 * ada-lang.c (ada_language_data): Remove la_name and
4990 la_natural_name initializers.
4991 (ada_language::name): New member function.
4992 (ada_language::natural_name): New member function.
4993 * c-lang.c (c_language_data): Remove la_name and
4994 la_natural_name initializers.
4995 (c_language::name): New member function.
4996 (c_language::natural_name): New member function.
4997 (cplus_language_data): Remove la_name and
4998 la_natural_name initializers.
4999 (cplus_language::name): New member function.
5000 (cplus_language::natural_name): New member function.
5001 (asm_language_data): Remove la_name and
5002 la_natural_name initializers.
5003 (asm_language::name): New member function.
5004 (asm_language::natural_name): New member function.
5005 (minimal_language_data): Remove la_name and
5006 la_natural_name initializers.
5007 (minimal_language::name): New member function.
5008 (minimal_language::natural_name): New member function.
5009 * compile/compile.c (compile_to_object): Update call to
5010 lanugage_defn::name.
5011 * d-lang.c (d_language_data): Remove la_name and
5012 la_natural_name initializers.
5013 (d_language::name): New member function.
5014 (d_language::natural_name): New member function.
5015 * expprint.c (print_subexp_standard): Update call to
5016 language_defn::name.
5017 (dump_raw_expression): Likewise
5018 (dump_prefix_expression): Likewise.
5019 * f-lang.c (f_language_data): Remove la_name and
5020 la_natural_name initializers.
5021 (f_language::name): New member function.
5022 (f_language::natural_name): New member function.
5023 * go-lang.c (go_language_data): Remove la_name and
5024 la_natural_name initializers.
5025 (go_language::name): New member function.
5026 (go_language::natural_name): New member function.
5027 * language.c (show_language_command): Update call to
5028 language_defn::name.
5029 (set_language_command): Likewise.
5030 (language_enum): Likewise.
5031 (language_str): Likewise.
5032 (add_set_language_command): Likewise, use
5033 language_defn::natural_name in the doc string.
5034 (unknown_language_data): Remove la_name and
5035 la_natural_name initializers.
5036 (unknown_language::name): New member function.
5037 (unknown_language::natural_name): New member function.
5038 (auto_language_data): Remove la_name and
5039 la_natural_name initializers.
5040 (auto_language::name): New member function.
5041 (auto_language::natural_name): New member function.
5042 (language_lookup_primitive_type_as_symbol): Update call to
5043 language_defn::name.
5044 * language.h (language_data): Remove la_name and la_natural_name
5045 member variables.
5046 (language_defn::name): New member function.
5047 (language_defn::natural_name): New member function.
5048 * m2-lang.c (m2_language_data): Remove la_name and
5049 la_natural_name initializers.
5050 (m2_language::name): New member function.
5051 (m2_language::natural_name): New member function.
5052 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5053 language_defn::natural_name.
5054 * objc-lang.c (objc_language_data): Remove la_name and
5055 la_natural_name initializers.
5056 (objc_language::name): New member function.
5057 (objc_language::natural_name): New member function.
5058 * opencl-lang.c (opencl_language_data): Remove la_name and
5059 la_natural_name initializers.
5060 (opencl_language::name): New member function.
5061 (opencl_language::natural_name): New member function.
5062 * p-lang.c (pascal_language_data): Remove la_name and
5063 la_natural_name initializers.
5064 (pascal_language::name): New member function.
5065 (pascal_language::natural_name): New member function.
5066 * rust-lang.c (rust_language_data): Remove la_name and
5067 la_natural_name initializers.
5068 (rust_language::name): New member function.
5069 (rust_language::natural_name): New member function.
5070 * symtab.c (lookup_language_this): Update call to
5071 language_defn::name.
5072
5bae7c4e
AB
50732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5074
5075 * ada-lang.c (ada_language_data): Remove la_name_of_this
5076 initializer.
5077 * ax-gdb.c (gen_expr): Update call to name_of_this.
5078 * c-exp.y (classify_name): Likewise.
5079 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5080 (cplus_language_data): Likewise.
5081 (cplus_language::name_of_this): New member function.
5082 (asm_language_data): Remove la_name_of_this initializer.
5083 (minimal_language_data): Likewise.
5084 * d-lang.c (d_language_data): Likewise.
5085 (d_language::name_of_this): New member function.
5086 * expprint.c (print_subexp_standard): Update call to name_of_this.
5087 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5088 * go-lang.c (go_language_data): Likewise.
5089 * language.c (unknown_language_data): Likewise.
5090 (unknown_language::name_of_this): New member function.
5091 (auto_language_data): Remove la_name_of_this initializer.
5092 (auto_language::name_of_this): New member function.
5093 * language.h (language_data): Delete la_name_of_this member
5094 variable.
5095 (language_defn::name_of_this): New member function.
5096 * m2-lang.c (m2_language_data): Remove la_name_of_this
5097 initializer.
5098 * objc-lang.c (objc_language_data): Likewise.
5099 (objc_language::name_of_this): New member function.
5100 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5101 initializer.
5102 * p-lang.c (pascal_language_data): Likewise.
5103 (pascal_language::name_of_this): New member function.
5104 * rust-lang.c (rust_language_data): Remove la_name_of_this
5105 initializer.
5106 * symtab.c (lookup_language_this): Update call to name_of_this.
5107 (lookup_symbol_aux): Likewise.
5108 * valops.c (value_of_this): Likewise.
5109
22e3f3ed
AB
51102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5111
5112 * ada-lang.c (ada_language_data): Remove
5113 la_struct_too_deep_ellipsis initializer.
5114 (ada_language::struct_too_deep_ellipsis): New member function.
5115 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5116 initializer.
5117 (cplus_language_data): Likewise.
5118 (asm_language_data): Likewise.
5119 (minimal_language_data): Likewise.
5120 * cp-valprint.c (cp_print_value): Update call to
5121 struct_too_deep_ellipsis.
5122 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5123 initializer.
5124 * f-lang.c (f_language_data): Likewise.
5125 (f_language::struct_too_deep_ellipsis): New member function.
5126 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5127 initializer.
5128 * language.c (unknown_language_data): Likewise.
5129 (auto_language_data): Likewise.
5130 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5131 member variable.
5132 (language_defn::struct_too_deep_ellipsis): New member function.
5133 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5134 initializer.Q
5135 * objc-lang.c (objc_language_data): Likewise.
5136 * opencl-lang.c (opencl_language_data): Likewise.
5137 * p-lang.c (pascal_language_data): Likewise.
5138 * rust-lang.c (rust_language_data): Likewise.
5139 * valprint.c (val_print_check_max_depth): Update call to
5140 struct_too_deep_ellipsis.
5141
ed29e1c7
FW
51422020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5143
5144 * MAINTAINERS (Write After Approval): Add myself.
5145
12d8f940
TT
51462020-09-15 Tom Tromey <tom@tromey.com>
5147
5148 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5149 Remove.
5150
6b5a7bc7
TT
51512020-09-15 Tom Tromey <tom@tromey.com>
5152
5153 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5154 and TYPE_CODE_METHODPTR cases.
5155 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5156 (c_value_print_inner): Update.
5157 * valprint.c (generic_value_print_memberptr): New function, from
5158 c_value_print_memberptr.
5159 (generic_value_print): Use it. Call cplus_print_method_ptr.
5160
47f0e2ff
TT
51612020-09-15 Tom Tromey <tromey@adacore.com>
5162
5163 * python/python-internal.h (PyInt_FromLong): Remove define.
5164 * python/py-value.c (convert_value_from_python): Use
5165 gdb_py_object_from_longest.
5166 * python/py-type.c (typy_get_code): Use
5167 gdb_py_object_from_longest.
5168 * python/py-symtab.c (salpy_get_line): Use
5169 gdb_py_object_from_longest.
5170 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5171 gdb_py_object_from_longest.
5172 * python/py-record.c (recpy_gap_reason_code): Use
5173 gdb_py_object_from_longest.
5174 * python/py-record-btrace.c (recpy_bt_insn_size)
5175 (recpy_bt_func_level, btpy_list_count): Use
5176 gdb_py_object_from_longest.
5177 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5178 gdb_py_object_from_longest. Fix error handling.
5179 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5180 gdb_py_object_from_longest.
5181 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5182 gdb_py_object_from_longest.
5183 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5184 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5185 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5186
512116ce
TT
51872020-09-15 Tom Tromey <tromey@adacore.com>
5188
5189 * python/python.c (gdbpy_parameter_value): Use
5190 gdb_py_object_from_ulongest.
5191
4ab1029c
TT
51922020-09-15 Tom Tromey <tromey@adacore.com>
5193
5194 * python/py-infevents.c (create_register_changed_event_object):
5195 Use gdb_py_object_from_longest.
5196 * python/py-exitedevent.c (create_exited_event_object): Use
5197 gdb_py_object_from_longest.
5198
062534d4
TT
51992020-09-15 Tom Tromey <tromey@adacore.com>
5200
5201 * python/python.c (gdbpy_parameter_value): Use
5202 gdb_py_object_from_longest.
5203 * python/py-type.c (convert_field, typy_range): Use
5204 gdb_py_object_from_longest.
5205 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5206 gdb_py_object_from_longest.
5207 * python/py-lazy-string.c (stpy_get_length): Use
5208 gdb_py_object_from_longest.
5209 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5210 gdb_py_object_from_longest.
5211 * python/py-infevents.c (create_memory_changed_event_object): Use
5212 gdb_py_object_from_longest.
5213 * python/py-inferior.c (infpy_get_num): Use
5214 gdb_py_object_from_longest.
5215 (infpy_get_pid): Likewise.
5216
d1cab987
TT
52172020-09-15 Tom Tromey <tromey@adacore.com>
5218
5219 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5220 defines.
5221 * python/py-value.c (valpy_long): Use
5222 gdb_py_object_from_ulongest.
5223 * python/py-symtab.c (salpy_get_pc): Use
5224 gdb_py_object_from_ulongest.
5225 (salpy_get_last): Likewise.
5226 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5227 gdb_py_object_from_ulongest.
5228 * python/py-lazy-string.c (stpy_get_address): Use
5229 gdb_py_object_from_ulongest.
5230 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5231 * python/py-arch.c (archpy_disassemble): Use
5232 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5233 error handling.
5234
4bde49dc
TT
52352020-09-15 Tom Tromey <tromey@adacore.com>
5236
5237 * python/python-internal.h (gdb_py_long_from_longest): Remove
5238 defines.
5239 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5240 * python/py-type.c (convert_field, typy_get_sizeof): Use
5241 gdb_py_object_from_longest.
5242 * python/py-record-btrace.c (btpy_list_index): Use
5243 gdb_py_object_from_longest.
5244
37431074
TT
52452020-09-15 Tom Tromey <tromey@adacore.com>
5246
5247 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5248 * python/py-record.c (recpy_element_number): Use
5249 gdb_py_object_from_longest.
5250 (recpy_gap_number): Likewise.
5251
cbe25684
TT
52522020-09-15 Tom Tromey <tromey@adacore.com>
5253
5254 * top.c (ui::ui): Update.
5255 (highest_ui_num): Remove.
5256 * top.h (struct ui) <num>: Remove.
5257
db92ac45
TT
52582020-09-15 Tom Tromey <tromey@adacore.com>
5259
5260 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5261 * ui-style.c (ansi_regex_text): Now array.
5262 * rust-exp.y (number_regex_text): Now array.
5263 * linespec.c (linespec_quote_characters): Now array.
5264 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5265 Now arrays.
5266
d2b31b67
SM
52672020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5268
5269 * debuginfod-support.c (debuginfod_client_deleter): New.
5270 (debuginfod_client_up): New.
5271 (debuginfod_init): Return debuginfod_client_up.
5272 (debuginfod_source_query): Adjust.
5273 (debuginfod_debuginfo_query): Adjust.
5274
3246bd8e
SM
52752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5276
5277 * debuginfod-support.c (debuginfod_source_query): Use
5278 make_unique_xstrdup.
5279
10242f36
SM
52802020-09-14 Simon Marchi <simon.marchi@efficios.com>
5281
5282 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5283 with `type::instance_flags`.
5284
e1044e6a
MM
52852020-09-14 Michael Mullin <masmullin@gmail.com>
5286
5287 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5288 Remove baton parameter.
5289
04902b09
PA
52902020-09-14 Pedro Alves <pedro@palves.net>
5291
5292 * Makefile.in (SELFTESTS_SRCS): Add
5293 unittests/enum-flags-selftests.c.
5294 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5295 btrace_function_flags instead of enum btrace_function_flag.
5296 * compile/compile-c-types.c (convert_qualified): Use
5297 enum_flags::raw.
5298 * compile/compile-cplus-symbols.c (convert_one_symbol)
5299 (convert_symbol_bmsym):
5300 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5301 (compile_cplus_convert_struct_or_union_methods)
5302 (compile_cplus_instance::convert_qualified_base):
5303 * go-exp.y (parse_string_or_char): Add cast to int.
5304 * unittests/enum-flags-selftests.c: New file.
5305 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5306 type to btrace_thread_flags from btrace_thread_flag.
5307 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5308 local's type to btrace_thread_flags from btrace_thread_flag. Add
5309 cast in DEBUG call.
5310
69896a2c
PA
53112020-09-14 Pedro Alves <pedro@palves.net>
5312
5313 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5314 * gdbtypes.c (address_space_name_to_int): Rename to ...
5315 (address_space_name_to_type_instance_flags): ... this.
5316 (address_space_int_to_name): Rename to ...
5317 (address_space_type_instance_flags_to_name): ... this.
5318 * gdbtypes.h (address_space_name_to_int): Rename to ...
5319 (address_space_name_to_type_instance_flags): ... this.
5320 (address_space_int_to_name): Rename to ...
5321 (address_space_type_instance_flags_to_name): ... this.
5322 * type-stack.c (type_stack::insert): Adjust to rename.
5323 * type-stack.h (type_stack::insert): Likewise.
5324
314ad88d
PA
53252020-09-14 Pedro Alves <pedro@palves.net>
5326 Andrew Burgess <andrew.burgess@embecosm.com>
5327
5328 * avr-tdep.c (avr_address_class_type_flags): Return
5329 type_instance_flags.
5330 (avr_address_class_type_flags_to_name): Take a
5331 type_instance_flags.
5332 (avr_address_class_name_to_type_flags): Return bool and take a
5333 type_instance_flags.
5334 * d-lang.c (build_d_types): Use type::set_instance_flags.
5335 * ft32-tdep.c (ft32_address_class_type_flags): Return
5336 type_instance_flags.
5337 (ft32_address_class_type_flags_to_name): Take a
5338 type_instance_flags.
5339 (ft32_address_class_name_to_type_flags): Return bool and take a
5340 type_instance_flags.
5341 (ft32_gdbarch_init): Use type::set_instance_flags.
5342 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5343 * gdbarch.h, gdbarch.c: Regenerate.
5344 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5345 (address_class_name_to_type_flags): Use type_instance_flags and
5346 bool.
5347 * gdbtypes.c (address_space_name_to_int)
5348 (address_space_int_to_name, make_qualified_type): Use
5349 type_instance_flags.
5350 (make_qualified_type): Use type_instance_flags and
5351 type::set_instance_flags.
5352 (make_type_with_address_space, make_cv_type, make_vector_type)
5353 (check_typedef): Use type_instance_flags.
5354 (recursive_dump_type): Cast type_instance_flags to unsigned for
5355 printing.
5356 (copy_type_recursive): Use type::set_instance_flags.
5357 (gdbtypes_post_init): Use type::set_instance_flags.
5358 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5359 <m_instance_flags>: ... this.
5360 <instance_flags, set_instance_flags>: New methods.
5361 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5362 (SET_TYPE_INSTANCE_FLAGS): New.
5363 (address_space_name_to_int, address_space_int_to_name)
5364 (make_type_with_address_space): Pass flags using
5365 type_instance_flags instead of int.
5366 * stabsread.c (cleanup_undefined_types_noname): Use
5367 type::set_instance_flags.
5368 * s390-tdep.c (s390_address_class_type_flags): Return
5369 type_instance_flags.
5370 (s390_address_class_type_flags_to_name): Take a
5371 type_instance_flags.
5372 (s390_address_class_name_to_type_flags): Return bool and take a
5373 type_instance_flags.
5374 * type-stack.c (type_stack::follow_types): Use
5375 type_instance_flags.
5376 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5377
27087b7f
TT
53782020-09-14 Tom Tromey <tromey@adacore.com>
5379
5380 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5381 * x86-tdep.c (x86_is_thunk_register_name)
5382 (x86_in_indirect_branch_thunk): Update.
5383 * sparc64-tdep.c (sparc64_fpu_register_names)
5384 (sparc64_cp0_register_names, sparc64_register_names)
5385 (sparc64_pseudo_register_names): Now const.
5386 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5387 cp0_registers_num>: Now const.
5388 * sparc-tdep.c (sparc_core_register_names)
5389 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5390 (sparc32_pseudo_register_names): Now const.
5391 (validate_tdesc_registers): Update.
5392 * rust-lang.c (rust_extensions): Now const.
5393 * p-lang.c (p_extensions): Now const.
5394 * objc-lang.c (objc_extensions): Now const.
5395 * nto-tdep.c (nto_thread_state_str): Now const.
5396 * moxie-tdep.c (moxie_register_names): Now const.
5397 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5398 Now const.
5399 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5400 (mips_linux_reg_names): Now const.
5401 (mips_gdbarch_init): Update.
5402 * microblaze-tdep.c (microblaze_register_names): Now const.
5403 * m68k-tdep.c (m68k_register_names): Now const.
5404 * m32r-tdep.c (m32r_register_names): Now const.
5405 * ia64-tdep.c (ia64_register_names): Now const.
5406 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5407 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5408 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5409 ymm_avx512_register_names, pkeys_register_names>: Now const.
5410 * i386-tdep.c (i386_register_names, i386_zmm_names)
5411 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5412 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5413 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5414 * f-lang.c (f_extensions): Now const.
5415 * d-lang.c (d_extensions): Now const.
5416 * csky-tdep.c (csky_register_names): Now const.
5417 * charset.c (default_charset_names, charset_enum): Now const.
5418 (_initialize_charset): Update.
5419 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5420 const.
5421 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5422 (bsd_uthread_solib_loaded): Update.
5423 (bsd_uthread_state): Now const.
5424 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5425 (amd64_ymm_avx512_names, amd64_ymmh_names)
5426 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5427 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5428 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5429 (amd64_dword_names): Now const.
5430 * agent.c (can_use_agent_enum): Now const.
5431 * ada-tasks.c (task_states, long_task_states): Now const.
5432 * ada-lang.c (known_runtime_file_name_patterns)
5433 (known_auxiliary_function_name_patterns, attribute_names)
5434 (standard_exc, ada_extensions): Now const.
5435
89806626
SM
54362020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5437
5438 * bcache.h (struct bcache) <bcache>: Remove constructor.
5439 <m_hash_function, m_compare_function>: Remove.
5440 <~bcache>: Make virtual.
5441 <compare>: Remove static method, introduce virtual method.
5442 <default_hash>: Remove.
5443 <hash>: New virtual method.
5444 * bcache.c (bcache::expand_hash_table): Update.
5445 (bcache::insert): Update.
5446 (bcache::hash): New.
5447 (bcache::compare): Update comment and parameter names.
5448 * gdbtypes.c (types_deeply_equal): Update.
5449 * psymtab.h (struct psymbol_bcache): New struct.
5450 (class psymtab_storage) <psymtab_storage>: Make default.
5451 <psymbol_cache>: Change type to psymbol_bcache.
5452 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5453 (psymbol_hash): Change to...
5454 (psymbol_bcache::hash): ... this.
5455 (psymbol_compare): Change to...
5456 (psymbol_bcache::compare): ... this.
5457
677c92fe
SM
54582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5459
5460 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5461 checking for initial lwp.
5462
3eba3a01
TT
54632020-09-14 Tom Tromey <tromey@adacore.com>
5464
5465 * m68k-tdep.c (m68k_extract_return_value): Use
5466 pointer_result_regnum.
5467 (m68k_store_return_value): Likewise.
5468 (m68k_reg_struct_return_p): Handle vectors and arrays.
5469 (m68k_return_value): Handle arrays.
5470 (m68k_svr4_return_value): Fix single-element aggregate handling.
5471 Handle long double. Adjust for embedded ABI.
5472 (m68k_svr4_init_abi): Set pointer_result_regnum.
5473 (m68k_embedded_init_abi): New function.
5474 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5475 (m68k_osabi_sniffer): New function.
5476 (_initialize_m68k_tdep): Register osabi sniffer.
5477 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5478 member.
5479
33f4dd48
SM
54802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5481
5482 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5483 with gdb::unique_xmalloc_ptr<char>.
5484
8400a90d
SM
54852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5486
5487 * xml-support.h (xml_fetch_another): Change type to be a
5488 function_view.
5489 (xml_process_xincludes): Remove baton parameter.
5490 (xml_fetch_content_from_file): Change baton parameter to
5491 dirname.
5492 * xml-support.c (struct xinclude_parsing_data)
5493 <xinclude_parsing_data>: Remove baton parameter.
5494 <fetcher_baton>: Remove.
5495 (xinclude_start_include): Adjust.
5496 (xml_process_xincludes): Adjust.
5497 (xml_fetch_content_from_file): Replace baton parameter with
5498 dirname.
5499 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5500 (xml_init_syscalls_info): Use a lambda.
5501 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5502 (file_read_description_xml): Use a lambda.
5503 (fetch_available_features_from_target): Change baton parameter
5504 to target_ops.
5505 (target_read_description_xml): Use a lambda.
5506 (target_fetch_description_xml): Use a lambda.
5507 (string_read_description_xml): Update.
5508
04f5bab2
SM
55092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5510
5511 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5512 uses with type::endianity_is_not_default.
5513
db558e34
SM
55142020-09-14 Simon Marchi <simon.marchi@efficios.com>
5515
5516 * gdbtypes.h (struct type) <endianity_is_not_default,
5517 set_endianity_is_not_default>: New methods.
5518 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5519 type::endianity_is_not_default, change all write call sites to
5520 use type::set_endianity_is_not_default.
5521
22c4c60c
SM
55222020-09-14 Simon Marchi <simon.marchi@efficios.com>
5523
5524 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5525 uses with type::is_fixed_instance.
5526
9cdd0d12
SM
55272020-09-14 Simon Marchi <simon.marchi@efficios.com>
5528
5529 * gdbtypes.h (struct type) <is_fixed_instance,
5530 set_is_fixed_instance>: New methods.
5531 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5532 write call sites to use type::set_is_fixed_instance.
5533
0becda7a
SM
55342020-09-14 Simon Marchi <simon.marchi@efficios.com>
5535
5536 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5537 uses with type::is_gnu_ifunc.
5538
03cc7249
SM
55392020-09-14 Simon Marchi <simon.marchi@efficios.com>
5540
5541 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5542 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5543 use type::set_is_gnu_ifunc.
5544
3f46044c
SM
55452020-09-14 Simon Marchi <simon.marchi@efficios.com>
5546
5547 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5548 uses with type::stub_is_supported.
5549
9baccff6
SM
55502020-09-14 Simon Marchi <simon.marchi@efficios.com>
5551
5552 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5553 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5554 use type::set_stub_is_supported.
5555
bd63c870
SM
55562020-09-14 Simon Marchi <simon.marchi@efficios.com>
5557
5558 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5559 uses with type::is_vector.
5560
2062087b
SM
55612020-09-14 Simon Marchi <simon.marchi@efficios.com>
5562
5563 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5564 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5565 use type::set_is_vector.
5566
a409645d
SM
55672020-09-14 Simon Marchi <simon.marchi@efficios.com>
5568
5569 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5570 uses with type::has_varargs.
5571
1d6286ed
SM
55722020-09-14 Simon Marchi <simon.marchi@efficios.com>
5573
5574 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5575 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5576 use type::set_has_varargs.
5577
7f9f399b
SM
55782020-09-14 Simon Marchi <simon.marchi@efficios.com>
5579
5580 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5581 uses with type::is_prototyped.
5582
27e69b7a
SM
55832020-09-14 Simon Marchi <simon.marchi@efficios.com>
5584
5585 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5586 New methods.
5587 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5588 call sites to use type::set_is_prototyped.
5589
d2183968
SM
55902020-09-14 Simon Marchi <simon.marchi@efficios.com>
5591
5592 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5593 uses with type::target_is_stub.
5594
8f53807e
SM
55952020-09-14 Simon Marchi <simon.marchi@efficios.com>
5596
5597 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5598 New methods.
5599 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5600 sites to use type::set_target_is_stub.
5601
e46d3488
SM
56022020-09-14 Simon Marchi <simon.marchi@efficios.com>
5603
5604 * gdbtypes.h (TYPE_STUB): Remove, replace all
5605 uses with type::is_stub.
5606
b4b73759
SM
56072020-09-14 Simon Marchi <simon.marchi@efficios.com>
5608
5609 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5610 (TYPE_STUB): Use type::is_stub, change all write call sites to
5611 use type::set_is_stub.
5612
20ce4123
SM
56132020-09-14 Simon Marchi <simon.marchi@efficios.com>
5614
5615 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5616 type::has_no_signedness.
5617
15152a54
SM
56182020-09-14 Simon Marchi <simon.marchi@efficios.com>
5619
5620 * gdbtypes.h (struct type) <has_no_signedness,
5621 set_has_no_signedness>: New methods.
5622 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5623 call sites to use type::set_has_no_signedness.
5624
c6d940a9
SM
56252020-09-14 Simon Marchi <simon.marchi@efficios.com>
5626
5627 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5628 type::is_unsigned.
5629
653223d3
SM
56302020-09-14 Simon Marchi <simon.marchi@efficios.com>
5631
5632 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5633 methods.
5634 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5635 sites to use type::set_is_unsigned.
5636
55ea94da 56372020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5638 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5639
e851246a
SM
5640 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5641 pointer and stack frame offset when unwinding.
55ea94da 5642
6791b117
PA
56432020-09-13 Pedro Alves <pedro@palves.net>
5644
5645 * NEWS: Document "-break-insert --qualified".
5646 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5647
77f2120b
PA
56482020-09-13 Pedro Alves <pedro@palves.net>
5649
5650 * linespec.c (classify_mtype, compare_msyms): Delete.
5651 (search_minsyms_for_name): Remove classification logic. Instead
5652 filter out trampoline symbols if we also found an external
5653 function of the same name.
5654
ed6a896c
JB
56552020-09-13 Joel Brobecker <brobecker@adacore.com>
5656
5657 * NEWS: Create a new section for the next release branch.
5658 Rename the section of the current branch, now that it has
5659 been cut.
5660
32aea73e
JB
56612020-09-13 Joel Brobecker <brobecker@adacore.com>
5662
5663 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5664 * version.in: Bump version to 11.0.50.DATE-git.
5665
8087c3fa
JB
56662020-09-12 Joel Brobecker <brobecker@adacore.com>
5667
5668 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5669
2a67f09d
FW
56702020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5671 Felix Willgerodt <Felix.Willgerodt@intel.com>
5672
5673 * gdbarch.sh: Added bfloat16 type.
5674 * gdbarch.c: Regenerated.
5675 * gdbarch.h: Regenerated.
5676 * gdbtypes.c (floatformats_bfloat16): New struct.
5677 (gdbtypes_post_init): Add builtin_bfloat16.
5678 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5679 (floatformats_bfloat16): New struct.
5680 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5681 (i386_ymm_type): Add field "v16_bfloat16"
5682 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5683 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5684 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5685 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5686 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5687 * features/i386/64bit-avx512.c: Regenerated.
5688 * features/i386/64bit-sse.xml: Add bfloat16 type.
5689 * features/i386/64bit-sse.c: Regenerated.
5690
1347d111
FW
56912020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5692
5693 * i386-tdep.c (i386_zmm_type): Fix field names.
5694 (i386_ymm_type): Fix field names.
5695
7a4e8e7d
TBA
56962020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5697
5698 * breakpoint.c: Fix typo in the help message of the
5699 "set breakpoint condition-evaluation" command.
5700
cf4ac4be
KR
57012020-09-10 Kamil Rytarowski <n54@gmx.com>
5702
5703 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5704 * (nbsd_nat_target::pid_to_exec_file)
5705 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5706 (nbsd_nat_target::post_startup_inferior)
5707 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5708 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5709 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5710 * (nbsd_thread_lister): Remove.
5711
f404573e
KR
57122020-09-10 Kamil Rytarowski <n54@gmx.com>
5713
5714 * fork-inferior.c (startup_inferior): Avoid double free.
5715
1ccb2c17
KR
57162020-09-10 Kamil Rytarowski <n54@gmx.com>
5717
5718 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5719 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5720
feedfcc7
KR
57212020-09-10 Kamil Rytarowski <n54@gmx.com>
5722
5723 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5724 * netbsd-nat.c: Include <sys/ptrace.h>.
5725 * (netbsd_nat::enable_proc_events): Add.
5726
c489f8c6
KR
57272020-09-10 Kamil Rytarowski <n54@gmx.com>
5728
5729 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5730 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5731 (netbsd_nat::for_each_thread): Add.
5732 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5733 "gdbsupport/common-debug.h".
5734 * (netbsd_nat::netbsd_thread_lister)
5735 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5736 (netbsd_nat::for_each_thread): Add.
5737
330662f6
KR
57382020-09-10 Kamil Rytarowski <n54@gmx.com>
5739
5740 * netbsd-nat.h: Include <unistd.h>.
5741 * (netbsd_nat::pid_to_exec_file): Add.
5742 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5743 * (netbsd_nat::pid_to_exec_file) Add.
5744
70b67307
KR
57452020-09-10 Kamil Rytarowski <n54@gmx.com>
5746
5747 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5748
99cf6da6
KR
57492020-09-10 Kamil Rytarowski <n54@gmx.com>
5750
5751 * netbsd-nat.h: New file.
5752 * netbsd-nat.c: Likewise.
5753
1b788fb6
TT
57542020-09-09 Tom Tromey <tromey@adacore.com>
5755
5756 * ada-lang.c (remove_extra_symbols): Do not increment when
5757 removing an element
5758
03b0a45f
TT
57592020-09-08 Tom Tromey <tromey@adacore.com>
5760
5761 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5762
3cae4447
TT
57632020-09-08 Tom Tromey <tromey@adacore.com>
5764
5765 PR win32/25302:
5766 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5767 (gdb_bfd_init_data): New function.
5768 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5769
7f08fd51
TBA
57702020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5771
5772 * infrun.c (fetch_inferior_event): Use
5773 `switch_to_target_no_thread` to switch the target.
5774
3e6ff933
TT
57752020-09-06 Tom Tromey <tom@tromey.com>
5776
5777 * symfile.h (dwarf2_free_objfile): Don't declare.
5778
e56798df
AKS
57792020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5780
5781 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5782 to match 16 byte real/complex type generated by Flang compiler.
5783
8f5c6526
TV
57842020-09-03 Tom de Vries <tdevries@suse.de>
5785
5786 PR breakpoint/26546
5787 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5788 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5789
c5065df0
SM
57902020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5791
5792 * maint.c (index_digits): New function.
5793 (struct maint_print_section_data): Remove.
5794 (print_bfd_section_info): Remove print_data parameter, add arg
5795 and index_digits.
5796 (print_objfile_section_info): Likewise.
5797 (print_bfd_section_info_maybe_relocated): Likewise (plus
5798 objfile).
5799 (maintenance_info_sections): Adjust calls.
5800
02c6f3f1
TT
58012020-09-02 Tom Tromey <tromey@adacore.com>
5802
5803 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5804 for null pointers.
5805 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5806
ef5e5b0b
SM
58072020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5808
5809 * bcache.h (struct bcache) <insert>: Change type of `added` to
5810 pointer to bool.
5811 * bcache.c (bcache::insert): Likewise.
5812 * gdbtypes.c (check_types_worklist): Adjust.
5813 * psymtab.c (add_psymbol_to_bcache): Adjust.
5814
973695d6
KB
58152020-08-31 Kevin Buettner <kevinb@redhat.com>
5816
5817 * corelow.c (unordered_set): Include.
5818 (class core_target): Add field 'm_core_unavailable_mappings'.
5819 (core_target::build_file_mappings): Print only one warning
5820 per inaccessible file. Add unavailable/broken mappings
5821 to m_core_unavailable_mappings.
5822 (core_target::xfer_partial): Call...
5823 (core_target::xfer_memory_via_mappings): New method.
5824
264fc0e2
SM
58252020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5826
5827 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5828 type to bool.
5829
2de01bdb
SM
58302020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5831
5832 * dwarf2/read.c (struct field_info): Fix indentation.
5833
f3bd50f1
SM
58342020-08-31 Simon Marchi <simon.marchi@efficios.com>
5835
5836 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5837 ordering in comment.
5838 * frame.c (frame_id_eq): Fix indentation.
5839
22b9b4b0
SL
58402020-08-31 Scott Linder <scott@scottlinder.com>
5841 Simon Marchi <simon.marchi@efficios.com>
5842
5843 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5844 inline frame ids in outer frame.
5845
84154d16
SM
58462020-08-31 Simon Marchi <simon.marchi@efficios.com>
5847
5848 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5849 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5850 (outer_frame_id): Use FID_STACK_OUTER instead of
5851 FID_STACK_INVALID.
5852 (frame_id_p): Don't check for outer_frame_id.
5853
8efaf6b3
SM
58542020-08-31 Simon Marchi <simon.marchi@efficios.com>
5855
5856 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5857 regnum/frame in value. Call allocate_value_lazy.
5858 * frame.c (frame_unwind_register_value): Use
5859 val_print_not_saved.
5860
fe1fe7ea
SM
58612020-08-31 Simon Marchi <simon.marchi@efficios.com>
5862
5863 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5864
f7c7700d
PA
58652020-08-29 Pedro Alves <pedro@palves.net>
5866
5867 * progspace.c (print_program_space): Use all_inferiors. Switch to
5868 the inferior before calling target_pid_to_str.
5869
e0814aae
TT
58702020-08-28 Tom Tromey <tom@tromey.com>
5871
5872 * xcoffread.c (xcoff_end_psymtab): Update comment.
5873 * dbxread.c (dbx_end_psymtab): Update comment.
5874
626d2320
TV
58752020-08-28 Tom de Vries <tdevries@suse.de>
5876
5877 PR breakpoint/26544
5878 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5879 event_location.
5880 (create_breakpoint): Same.
5881 (base_breakpoint_decode_location): Same.
5882 (bkpt_create_sals_from_location): Same.
5883 (bkpt_decode_location): Same.
5884 (bkpt_probe_create_sals_from_location): Same.
5885 (bkpt_probe_decode_location): Same.
5886 (tracepoint_create_sals_from_location): Same.
5887 (tracepoint_decode_location): Same.
5888 (tracepoint_probe_decode_location): Same.
5889 (strace_marker_create_sals_from_location): Same.
5890 (strace_marker_decode_location): Same.
5891 (create_sals_from_location_default): Same.
5892 (decode_location_default): Same.
5893 * breakpoint.h (struct breakpoint_ops): Same.
5894 (create_breakpoint): Same.
5895 * linespec.h (decode_line_full): Same.
5896 * linespec.c (decode_line_full): Same. Throw error if
5897 result.size () == 0.
5898
df631783
PA
58992020-08-27 Pedro Alves <pedro@palves.net>
5900
5901 PR gdb/26524
5902 * breakpoint.c (until_break_fsm) <location_breakpoint,
5903 caller_breakpoint>: Delete fields.
5904 <breakpoints>: New field.
5905 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5906 two individual breakpoints.
5907 (until_break_fsm::should_stop): Loop over breakpoints in the
5908 breakpoint vector.
5909 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5910 vector.
5911 (until_break_command): Handle location expanding into multiple
5912 sals.
5913
b2b38aa4
PA
59142020-08-27 Pedro Alves <pedro@palves.net>
5915
5916 PR gdb/26523
5917 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5918 bp_until breakpoints user-specified locations. Update intro
5919 comment.
5920
b886559f
SM
59212020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5922
5923 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5924 gdb_bfd_sections): New.
5925 * maint.c (print_bfd_section_info): Change param type to
5926 maint_print_section_data.
5927 (print_objfile_section_info): Likewise.
5928 (print_bfd_section_info_maybe_relocated): Likewise.
5929 (maintenance_info_sections): Use gdb_bfd_sections.
5930
4c6e63bf
SV
59312020-08-25 Shahab Vahedi <shahab@synopsys.com>
5932
5933 * MAINTAINERS: Add ARC target and maintainer.
5934
8d7f0635
AK
59352020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5936
5937 * configure.tgt: ARC support for GNU/Linux.
5938 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5939 * arc-linux-tdep.c: New file.
5940 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5941 * arc-tdep.c (arc_write_pc): Use it.
5942
fdd8731b
SV
59432020-08-25 Shahab Vahedi <shahab@synopsys.com>
5944
5945 * arc-tdep.c (arc_check_for_hardware_loop): New.
5946 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5947
22459524
SV
59482020-08-25 Shahab Vahedi <shahab@synopsys.com>
5949
5950 * arc-tdep.h: Include "gdbarch.h".
5951
995d3a19
SV
59522020-08-25 Shahab Vahedi <shahab@synopsys.com>
5953
5954 * arch/arc.h
5955 (arc_gdbarch_features): New class to stir the selection of target XML.
5956 (arc_create_target_description): Use FEATURES to choose XML target.
5957 (arc_lookup_target_description): Use arc_create_target_description
5958 to create _new_ target descriptions or return the already created
5959 ones if the FEATURES is the same.
5960 * arch/arc.c: Implementation of prototypes described above.
5961 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5962 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5963 * arc-tdep.c (*_feature_name): Make feature names consistent.
5964 (arc_register_feature): A new struct to hold information about
5965 registers of a particular target/feature.
5966 (arc_check_tdesc_feature): Check if XML provides registers in
5967 compliance with ARC_REGISTER_FEATURE structs.
5968 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5969 (determine_*_reg_feature_set): Which feature name to look for.
5970 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5971 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5972 to expected ISA enums to be used in arc_gdbarch_features structs.
5973 * features/Makefile (FEATURE_XMLFILES): Add new files.
5974 * gdb/features/arc/v1-aux.c: New file.
5975 * gdb/features/arc/v1-aux.xml: Likewise.
5976 * gdb/features/arc/v1-core.c: Likewise.
5977 * gdb/features/arc/v1-core.xml: Likewise.
5978 * gdb/features/arc/v2-aux.c: Likewise.
5979 * gdb/features/arc/v2-aux.xml: Likewise.
5980 * gdb/features/arc/v2-core.c: Likewise.
5981 * gdb/features/arc/v2-core.xml: Likewise.
5982 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5983
3945d2d7
GM
59842020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5985 Andrew Burgess <andrew.burgess@embecosm.com>
5986
5987 PR m2/26372
fc5d6901 5988 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5989 an assert. Remove single element array indexing pattern as the
5990 MULTI_SUBSCRIPT support will handle this case too.
5991
2677f2d3
SM
59922020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5993
5994 * value.h (valprint_check_validity): Move declaration from
5995 here...
5996 * valprint.h (valprint_check_validity): ... to here.
5997
c426fddb
SM
59982020-08-24 Simon Marchi <simon.marchi@efficios.com>
5999
6000 * debug.h: New file.
6001 * debug.c (debug_prefixed_vprintf): New function.
6002 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6003 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6004
1eb8556f
SM
60052020-08-24 Simon Marchi <simon.marchi@efficios.com>
6006
6007 * infrun.h (infrun_debug_printf_1): New function declaration.
6008 (infrun_debug_printf): New macro.
6009 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6010 throughout.
6011 (infrun_debug_printf): New function.
6012 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6013 (handle_jit_event): Likewise.
6014
b8fff44e
MW
60152020-08-21 Mark Wielaard <mark@klomp.org>
6016
6017 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6018
d19c3068
SM
60192020-08-22 Simon Marchi <simon.marchi@efficios.com>
6020
6021 * frame.c (enum class frame_id_status): New.
6022 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6023 (fprintf_frame): Update.
6024 (compute_frame_id): Set frame id status to "computing" on entry.
6025 Set it back to "not_computed" on failure and to "computed" on
6026 success.
6027 (get_frame_id): Assert the frame id is not being computed.
6028 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6029 (create_new_frame): Likewise.
6030 (frame_cleanup_after_sniffer): Update assert.
6031
b70e516e
SM
60322020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6033
6034 * regcache.c (pid_ptid_regcache_map): New type.
6035 (target_ptid_regcache_map): Remove.
6036 (target_pid_ptid_regcache_map): New type.
6037 (regcaches): Change type to target_pid_ptid_regcache_map.
6038 (get_thread_arch_aspace_regcache): Update.
6039 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6040 case.
6041 (regcaches_size): Update.
6042 (regcache_count): Update.
6043 (registers_changed_ptid_target_pid_test): New.
6044 (_initialize_regcache): Register new test.
6045
cdd9148a
SM
60462020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6047
6048 * regcache.c (regcache_count): New.
6049 (struct regcache_test_data): New.
6050 (regcache_test_data_up): New.
6051 (populate_regcaches_for_test): New.
6052 (regcaches_test): Remove.
6053 (get_thread_arch_aspace_regcache_test): New.
6054 (registers_changed_ptid_all_test): New.
6055 (registers_changed_ptid_target_test): New.
6056 (registers_changed_ptid_target_ptid_test): New.
6057 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6058 (_initialize_regcache): Register new tests.
6059
dd125343
SM
60602020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6061
6062 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6063 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6064 gdbarch and aspace parameter. Use current inferior's aspace.
6065 Validate regcache's arch value.
6066 (regcaches_test): Update.
6067
3ee93972
SM
60682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6069
6070 * regcache.c (regcaches_test): Call registers_changed.
6071
33bf4c5c
TBA
60722020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6073
6074 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6075
c2fd7fae
AKS
60762020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6077
6078 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6079 to find the end of prologue for flang compiled binaries.
6080 * arm-tdep.c (arm_skip_prologue): Likewise.
6081 * i386-tdep.c (i386_skip_prologue): Likewise.
6082 * producer.c (producer_is_llvm): New function.
6083 (producer_parsing_tests): Added new tests for clang/flang.
6084 * producer.h (producer_is_llvm): New declaration.
6085
9327494e
SM
60862020-08-18 Simon Marchi <simon.marchi@efficios.com>
6087
6088 * linux-nat.c (linux_nat_debug_printf): New function.
6089 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6090
d138725a
AM
60912020-08-18 Aaron Merey <amerey@redhat.com>
6092
6093 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6094 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6095 (CLIBS): Add DEBUGINFOD_LIBS.
6096
f9b11e6b
ST
60972020-08-17 Sergei Trofimovich <siarheit@google.com>
6098
6099 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6100 'gdbarch_num_regs'.
6101
3ae7ab99
TT
61022020-08-17 Tom Tromey <tromey@adacore.com>
6103
6104 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6105 ada_get_decoded_value returns NULL.
6106
b017825f
TT
61072020-08-17 Tom Tromey <tromey@adacore.com>
6108
6109 * python/py-inferior.c (infpy_search_memory): Use
6110 gdb_py_object_from_ulongest.
6111 * python/py-infevents.c (create_inferior_call_event_object)
6112 (create_memory_changed_event_object): Use
6113 gdb_py_object_from_ulongest.
6114 * python/py-linetable.c (ltpy_entry_get_pc): Use
6115 gdb_py_object_from_ulongest.
6116
7635cf79
SM
61172020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6118
6119 * loc.c (class symbol_needs_eval_context): Fix indentation.
6120
f54be24b
SM
61212020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6122
6123 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6124 bool.
6125
53d5a2a5
TV
61262020-08-17 Tom de Vries <tdevries@suse.de>
6127
6128 PR gdb/26393
6129 * gdbtypes.c (dump_dynamic_prop): New function.
6130 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6131
547ce8f0
TV
61322020-08-15 Tom de Vries <tdevries@suse.de>
6133
6134 PR backtrace/26390
6135 * stack.c (print_frame_args): Temporarily set the selected
6136 frame to FRAME while printing the frame's arguments.
6137
6ea815e7
PFC
61382020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6139
6140 PR breakpoints/26385
6141 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6142 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6143
6e562fa3
PFC
61442020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6145
6146 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6147 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6148 and >= to check return value instead of == -1 and != -1.
6149
d369b608
SM
61502020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6151
6152 * utils.h (class gdb_argv) <as_array_view>: New method.
6153 * utils.c (gdb_argv_as_array_view_test): New.
6154 (_initialize_utils): Register selftest.
6155 * maint.c (maintenance_selftest): Use the new method.
6156
b31488a3
KR
61572020-08-13 Kamil Rytarowski <n54@gmx.com>
6158
6159 * target.h (supports_dumpcore, dumpcore): New
6160 function declarations.
6161 * target.c (supports_dumpcore, dumpcore): New
6162 functions.
6163 * target-delegates.c: Rebuild.
6164 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6165 and target_dumpcore ().
6166
002a3166
AM
61672020-08-13 Aaron Merey <amerey@redhat.com>
6168
6169 * debuginfod-support.c: Replace global variables with user_data.
6170
ece5bc8a
SM
61712020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6172
6173 * maint.c (maintenance_selftest): Split args and pass array_view
6174 to run_tests.
6175
6d8a0a5e
LM
61762020-08-12 Luis Machado <luis.machado@linaro.org>
6177
6178 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6179 type's length.
6180 Use %s and pulongest to print the length.
6181
7cf663a9
PA
61822020-08-12 Pedro Alves <palves@redhat.com>
6183
6184 * NEWS: Move "Multi-target debugging support" item to the
6185 "Changes since GDB 9" section.
6186
27c7b875
PA
61872020-08-12 Pedro Alves <palves@redhat.com>
6188
6189 PR gdb/26336
6190 * progspace.c (program_space::remove_objfile): Invalidate the
6191 frame cache.
6192
1796a2a1
TV
61932020-08-11 Tom de Vries <tdevries@suse.de>
6194
6195 * MAINTAINERS: Mark ms1 as deleted.
6196
f8e3fe0d
LM
61972020-08-10 Luis Machado <luis.machado@linaro.org>
6198
6199 PR gdb/26310
6200
6201 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6202 act accordingly.
6203 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6204 movz/str/stur/stp skipping behavior.
6205
cc308722
LM
62062020-08-10 Luis Machado <luis.machado@linaro.org>
6207
6208 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6209 struct user_sve_header instead of struct sve_context.
6210
041d9819
SM
62112020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6212
6213 * read.h (dwarf2_fetch_die_loc_sect_off,
6214 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6215 `void *` parameter with function_view.
6216 * read.c (dwarf2_fetch_die_loc_sect_off,
6217 dwarf2_fetch_die_loc_cu_off): Likewise.
6218 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6219 (per_cu_dwarf_call): Adjust.
6220 (get_frame_address_in_block_wrapper): Remove.
6221 (indirect_synthetic_pointer): Adjust.
6222 (get_ax_pc): Remove.
6223 (dwarf2_compile_expr_to_ax): Adjust.
6224
38f8aa06
TV
62252020-08-08 Tom de Vries <tdevries@suse.de>
6226
6227 PR build/26344
6228 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6229 constructor.
6230 * regcache.c (get_thread_arch_aspace_regcache): Same.
6231
a52b3ae2
TT
62322020-08-07 Tom Tromey <tromey@adacore.com>
6233
6234 * ravenscar-thread.c
6235 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6236 New method.
6237 (ravenscar_thread_target::wait): Check
6238 runtime_initialized.
6239 (ravenscar_thread_target::prepare_to_store)
6240 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6241 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6242 (ravenscar_thread_target::stopped_by_watchpoint)
6243 (ravenscar_thread_target::stopped_data_address)
6244 (ravenscar_thread_target::core_of_thread): Use
6245 scoped_restore_current_thread and
6246 set_base_thread_from_ravenscar_task.
6247
0e29517d
TT
62482020-08-07 Tom Tromey <tromey@adacore.com>
6249
6250 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6251
592f9bd7
TT
62522020-08-07 Tom Tromey <tromey@adacore.com>
6253
6254 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6255 update_inferior_ptid before update_thread_list.
6256 (temporarily_change_regcache_ptid): New class.
6257 (ravenscar_thread_target::fetch_registers)
6258 (ravenscar_thread_target::store_registers)
6259 (ravenscar_thread_target::prepare_to_store): Use base thread when
6260 forwarding operation.
6261
39e2018a
TT
62622020-08-07 Tom Tromey <tromey@adacore.com>
6263
6264 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6265 "is_pid" case.
6266
2080266b
TT
62672020-08-07 Tom Tromey <tromey@adacore.com>
6268
6269 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6270 New methods.
6271 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6272 first.
6273 (ravenscar_thread_target::add_thread): Rename from
6274 ravenscar_add_thread.
6275 (ravenscar_thread_target::update_thread_list): Use a lambda.
6276 (ravenscar_thread_target::xfer_partial): New method.
6277
78c02f21
TT
62782020-08-07 Tom Tromey <tromey@adacore.com>
6279
6280 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6281 gdb::function_view.
6282 (iterate_over_live_ada_tasks): Change type of argument.
6283 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6284 of argument.
6285
d5d833af
TT
62862020-08-07 Tom Tromey <tromey@adacore.com>
6287
6288 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6289 Remove.
6290 (ravenscar_thread_target::extra_thread_info): Remove.
6291 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6292 defer to target beneath for non-Ravenscar threads.
6293
a8ac85bb
TT
62942020-08-07 Tom Tromey <tromey@adacore.com>
6295
6296 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6297 get_base_thread_from_ravenscar_task>: Now methods.
6298 <m_cpu_map>: New member.
6299 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6300 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6301 (ravenscar_thread_target::task_is_currently_active): Update.
6302 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6303 Now a method.
6304 (ravenscar_thread_target::add_active_thread): Put initial thread
6305 into the m_cpu_map.
6306
550ab58d
TT
63072020-08-07 Tom Tromey <tromey@adacore.com>
6308
6309 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6310 event_ptid.
6311
e9546579
TT
63122020-08-07 Tom Tromey <tromey@adacore.com>
6313
6314 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6315 runtime_initialized.
6316
3d4470e5
TT
63172020-08-07 Tom Tromey <tromey@adacore.com>
6318
6319 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6320 add_active_thread.
6321 (ravenscar_thread_target::add_active_thread): Now public.
6322 (ravenscar_inferior_created): Call add_active_thread after pushing
6323 the target.
6324
888bdb2b
SM
63252020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6326
6327 * regcache.c (ptid_regcache_map): New type.
6328 (target_ptid_regcache_map): New type.
6329 (regcaches): Change type to target_ptid_regcache_map.
6330 (get_thread_arch_aspace_regcache): Update to regcaches' new
6331 type.
6332 (regcache_thread_ptid_changed): Likewise.
6333 (registers_changed_ptid): Likewise.
6334 (regcaches_size): Likewise.
6335 (regcaches_test): Update.
6336 (regcache_thread_ptid_changed): Update.
6337 * regcache.h (regcache_up): New type.
6338 * gdbsupport/ptid.h (hash_ptid): New struct.
6339
b161a60d
SM
63402020-08-07 Simon Marchi <simon.marchi@efficios.com>
6341
6342 * observable.h (thread_ptid_changed): Add parameter
6343 `process_stratum_target *`.
6344 * infrun.c (infrun_thread_ptid_changed): Add parameter
6345 `process_stratum_target *` and use it.
6346 (selftests): New namespace.
6347 (infrun_thread_ptid_changed): New function.
6348 (_initialize_infrun): Register selftest.
6349 * regcache.c (regcache_thread_ptid_changed): Add parameter
6350 `process_stratum_target *` and use it.
6351 (regcache_thread_ptid_changed): New function.
6352 (_initialize_regcache): Register selftest.
6353 * thread.c (thread_change_ptid): Pass target to
6354 thread_ptid_changed observable.
6355
d2854d8d
CT
63562020-08-06 Caroline Tice <cmtice@google.com>
6357
fe4c3d43
SM
6358 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6359 (struct dwp_sections): Update field comments. Add loclists and
6360 rnglists fields.
6361 (struct virtual_v2_dwo_sections): Rename struct to
6362 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6363 size & offset fields for loclists and rnglists.
6364 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6365 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6366 skipping dummy type units.
6367 (create_dwp_hash_table): Update the large comment above the function to
6368 discuss Version 5 DWP files as well, with references. Update all the
6369 version checks in the function to check for version 5 as well. Add new
6370 section at the end to create dwp hash table for version 5.
6371 (create_dwp_v2_section): Rename function to
6372 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6373 Add V5 to error message text.
6374 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6375 into calls to create_dwp_v2_or_v5_section.
6376 (create_dwo_unit_in_dwp_v5): New function.
6377 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6378 check for version2; add else clause to handle version 5.
6379 (open_and_init_dwo_file): Add code to check dwarf version & only call
6380 create_debug_types_hash_table (with sections.types) if version is not 5;
6381 else call create_debug_type_hash_table, with sections.info.
6382 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6383 version 5.
6384 (dwarf2_locate_v5_dwp_sections): New function.
6385 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6386 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6387
159ed7d9
SM
63882020-08-06 Simon Marchi <simon.marchi@efficios.com>
6389
6390 * regcache.h (class regcache): Remove friend
6391 registers_changed_ptid.
6392 <regcache_thread_ptid_changed>: Remove.
6393 <regcaches>: Remove.
6394 * regcache.c (regcache::regcaches): Rename to...
6395 (regcaches): ... this. Make static.
6396 (get_thread_arch_aspace_regcache): Update.
6397 (regcache::regcache_thread_ptid_changed): Rename to...
6398 (regcache_thread_ptid_changed): ... this. Update.
6399 (class regcache_access): Remove.
6400 (regcaches_test): Update.
6401 (_initialize_regcache): Update.
6402 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6403 <forward_list>.
6404
174981ae
SM
64052020-08-06 Simon Marchi <simon.marchi@efficios.com>
6406
6407 * regcache.h (class regcache) <current_regcache>: Rename to...
6408 <regcaches>: ... this. Move doc here.
6409 * regcache.c (regcache::current_regcache) Rename to...
6410 (regcache::regcaches): ... this. Move doc to header.
6411 (get_thread_arch_aspace_regcache): Update.
6412 (regcache::regcache_thread_ptid_changed): Update.
6413 (registers_changed_ptid): Update.
6414 (class regcache_access) <current_regcache_size>: Rename to...
6415 <regcaches_size>: ... this.
6416 (current_regcache_test): Rename to...
6417 (regcaches_test): ... this.
6418 (_initialize_regcache): Update.
6419
ed908db6
VC
64202020-08-06 Victor Collod <vcollod@nvidia.com>
6421
6422 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6423
b5582ab7
KB
64242020-08-05 Kevin Buettner <kevinb@redhat.com>
6425
6426 * corelow.c (core_target::build_file_mappings): Don't output
6427 null pathname in warning.
6428
ea946b86
SM
64292020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6430
6431 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6432 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6433 gdb.dwarf2/dw2-single-line-discriminators.exp,
6434 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6435
57d02173
TT
64362020-08-05 Tom Tromey <tromey@adacore.com>
6437
6438 PR rust/26197:
6439 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6440 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6441 Fix off-by-one and type size errors in ordinary case.
6442
5555c86d
TV
64432020-08-05 Tom de Vries <tdevries@suse.de>
6444
6445 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6446 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6447
97916bfe
SM
64482020-08-04 Simon Marchi <simon.marchi@efficios.com>
6449
6450 * frame.h (frame_id_p): Return bool.
6451 (frame_id_artificial_p): Return bool.
6452 (frame_id_eq): Return bool.
6453 (has_stack_frames): Return bool.
6454 (get_selected_frame): Fix typo in comment.
6455 (get_frame_pc_if_available): Return bool.
6456 (get_frame_address_in_block_if_available): Return bool.
6457 (get_frame_func_if_available): Return bool.
6458 (read_frame_register_unsigned): Return bool.
6459 (get_frame_register_bytes): Return bool.
6460 (safe_frame_unwind_memory): Return bool.
6461 (deprecated_frame_register_read): Return bool.
6462 (frame_unwinder_is): Return bool.
6463 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6464 bool.
6465 <this_id::p>: Likewise.
6466 <prev_p>: Likewise.
6467 (frame_stash_add): Return bool.
6468 (get_frame_id): Use bool.
6469 (frame_id_build_special) Use bool.
6470 (frame_id_build_unavailable_stack): Use bool.
6471 (frame_id_build): Use bool.
6472 (frame_id_p): Return bool, use true/false instead of 1/0.
6473 (frame_id_artificial_p): Likewise.
6474 (frame_id_eq): Likewise.
6475 (frame_id_inner): Likewise.
6476 (get_frame_func_if_available): Likewise.
6477 (read_frame_register_unsigned): Likewise.
6478 (deprecated_frame_register_read): Likewise.
6479 (get_frame_register_bytes): Likewise.
6480 (has_stack_frames): Likewise.
6481 (inside_main_func): Likewise.
6482 (inside_entry_func): Likewise.
6483 (get_frame_pc_if_available): Likewise.
6484 (get_frame_address_in_block_if_available): Likewise.
6485 (frame_unwinder_is): Likewise.
6486 (safe_frame_unwind_memory): Likewise.
6487 (frame_unwind_arch): Likewise.
6488
fedfee88
SM
64892020-08-04 Simon Marchi <simon.marchi@efficios.com>
6490
6491 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6492 type to cached_copy_status.
6493 (fprintf_frame): Adjust.
6494 (get_frame_func_if_available): Adjust.
6495 (frame_cleanup_after_sniffer): Adjust.
6496
6cfa9b59
MW
64972020-08-04 Mark Wielaard <mark@klomp.org>
6498
6499 * MAINTAINERS (Write After Approval): Update email address.
6500
66d6346b
SM
65012020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6502
6503 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6504 dynamic_prop::const_val.
6505
8a6d5e35
SM
65062020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6507
6508 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6509 dynamic_prop::kind.
6510
51d6067d
SM
65112020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6512
6513 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6514
b26e2ae7
JM
65152020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6516
6517 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6518
39791af2
JM
65192020-08-04 Weimin Pan <weimin.pan@oracle.com>
6520 Jose E. Marchesi <jose.marchesi@oracle.com>
6521
6522 * configure.tgt: Add entry for bpf-*-*.
6523 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6524 (ALLDEPFILES): Add bpf-tdep.c.
6525 * bpf-tdep.c: New file.
6526 * MAINTAINERS: Add bpf target and maintainer.
6527 * NEWS: Mention the support for the new target.
6528
521894aa
TV
65292020-08-04 Tom de Vries <tdevries@suse.de>
6530
6531 PR symtab/23270
6532 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6533 Error.
6534
5d6356e9
JB
65352020-08-03 John Baldwin <jhb@FreeBSD.org>
6536
6537 * syscalls/freebsd.xml: Regenerate.
6538
0cf82b81
JB
65392020-08-03 John Baldwin <jhb@FreeBSD.org>
6540
6541 * syscalls/update-freebsd.sh: Fix usage and year range.
6542
8f34b746
TV
65432020-08-03 Tom de Vries <tdevries@suse.de>
6544
6545 PR symtab/26333
6546 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6547 DW_LNE_lo_user/DW_LNE_hi_user range.
6548
5e500d33
SM
65492020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6550
6551 PR ada/26318
6552 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6553 kind.
6554
78319c15
TBA
65552020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6556
6557 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6558
4c55e970
TBA
65592020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6560
6561 * breakpoint.c (set_breakpoint_condition): Update the condition
6562 expressions after checking that the input condition string parses
6563 successfully and does not contain junk at the end.
6564
1e620590
TBA
65652020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6566
6567 * breakpoint.c (set_breakpoint_condition): Update the
6568 condition string after parsing the new condition successfully.
6569
c8693053
RO
65702020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6571
6572 * proc-api.c (_STRUCTURED_PROC): Don't define.
6573 * proc-events.c: Likewise.
6574 * proc-flags.c: Likewise.
6575 * proc-why.c: Likewise.
6576 * procfs.c: Likewise.
6577
6578 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6579 * configure, config.in: Regenerate.
6580
5a99adb8
TV
65812020-07-30 Tom de Vries <tdevries@suse.de>
6582
6583 PR build/26320
6584 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6585 m_red/m_green/m_blue in a union.
6586
8ba83e91
TV
65872020-07-29 Tom de Vries <tdevries@suse.de>
6588
6589 PR tdep/26280
6590 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6591
f75a0693
AB
65922020-07-28 Tom Tromey <tromey@adacore.com>
6593
6594 PR symtab/26270:
6595 * symtab.h (find_pc_partial_function_sym): Declare.
6596 * cli/cli-cmds.c (disassemble_command): Use
6597 find_pc_partial_function_sym. Check asm_demangle.
6598 * blockframe.c (cache_pc_function_sym): New global.
6599 (cache_pc_function_name): Remove.
6600 (clear_pc_function_cache): Update.
6601 (find_pc_partial_function_sym): New function, from
6602 find_pc_partial_function.
6603 (find_pc_partial_function): Rewrite using
6604 find_pc_partial_function_sym.
6605
16f3242c
TT
66062020-07-28 Tom Tromey <tromey@adacore.com>
6607
6608 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6609 help. Add usage.
6610
4888741a
TT
66112020-07-28 Tom Tromey <tromey@adacore.com>
6612
6613 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6614 <DW_OP_GNU_variable_value>: Cast to address type.
6615
4d46f402
KR
66162020-07-28 Kamil Rytarowski <n54@gmx.com>
6617
6618 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6619 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6620 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6621 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6622 (nbsd_get_siginfo_type): New.
6623 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6624 (_initialize_nbsd_tdep): New.
6625
d70f978b
L
66262020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6627
6628 PR binutils/26301
6629 * configure: Regenerated.
6630
377170fa
L
66312020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6632
6633 PR binutils/26301
6634 * configure: Regenerated.
6635
43d5901d
AB
66362020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6637
6638 * python/py-frame.c: Remove 'user-regs.h' include.
6639 (frapy_read_register): Rewrite to make use of
6640 gdbpy_parse_register_id.
6641 * python/py-registers.c (gdbpy_parse_register_id): New function,
6642 moved here from python/py-unwind.c. Updated the return type, and
6643 also accepts register descriptor objects.
6644 * python/py-unwind.c: Remove 'user-regs.h' include.
6645 (pyuw_parse_register_id): Moved to python/py-registers.c.
6646 (unwind_infopy_add_saved_register): Update to use
6647 gdbpy_parse_register_id.
6648 (pending_framepy_read_register): Likewise.
6649 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6650
14fa8fb3
AB
66512020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6652
6653 * python/py-registers.c: Add 'user-regs.h' include.
6654 (register_descriptor_iter_find): New function.
6655 (register_descriptor_iterator_object_methods): New static global
6656 methods array.
6657 (register_descriptor_iterator_object_type): Add pointer to methods
6658 array.
6659
ddce1758
JB
66602020-07-27 John Baldwin <jhb@FreeBSD.org>
6661
6662 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6663 for all architectures on FreeBSD 11.3 and later.
6664
a4089f52
TT
66652020-07-27 Tom Tromey <tromey@adacore.com>
6666
6667 * gcore.h (load_corefile): Don't declare.
6668
95420d30
TV
66692020-07-27 Tom de Vries <tdevries@suse.de>
6670
6671 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6672 * config.in: Regenerate.
6673 * configure: Regenerate.
6674
05a6b8c2
EZ
66752020-07-26 Eli Zaretskii <eliz@gnu.org>
6676
6677 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6678 ws2tcpip.h. When checking whether socklen_t type is defined, use
6679 ws2tcpip.h if it is available and sys/socket.h isn't.
6680 * configure: Regenerate.
6681 * config.in: Regenerate.
6682
e79eb02f
AB
66832020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6684
6685 PR fortran/23051
6686 PR fortran/26139
6687 * valops.c (value_ind): Pass address to
6688 readjust_indirect_value_type.
6689 * value.c (readjust_indirect_value_type): Make parameter
6690 non-const, and add extra address parameter. Resolve original type
6691 before using it.
6692 * value.h (readjust_indirect_value_type): Update function
6693 signature and comment.
6694
876518dd
TV
66952020-07-25 Tom de Vries <tdevries@suse.de>
6696
6697 PR symtab/26243
6698 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6699 entries.
6700
f6720b1c
AM
67012020-07-24 Aaron Merey <amerey@redhat.com>
6702
6703 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6704 * configure: Rebuild.
6705
513487e1
KB
67062020-07-23 Kevin Buettner <kevinb@redhat.com>
6707
6708 PR corefiles/26294
6709 * corelow.c (_initialize_corelow): Add period to help text
6710 for "maintenance print core-file-backed-mappings".
6711
e7bc9db8
PA
67122020-07-23 Pedro Alves <pedro@palves.net>
6713
6714 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6715 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6716 meanwhile.
6717 * frame.c (frame_cache_generation, get_frame_cache_generation):
6718 New.
6719 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6720 (get_prev_frame_if_no_cycle): On exception, don't touch
6721 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6722 * frame.h (get_frame_cache_generation): Declare.
6723
90fcc466
TV
67242020-07-23 Tom de Vries <tdevries@suse.de>
6725
6726 PR tui/26282
6727 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6728 New default constructor.
6729
78344df7
AB
67302020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6731
6732 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6733 exclude non-statement entries.
6734
b089853a
KB
67352020-07-22 Kevin Buettner <kevinb@redhat.com>
6736
6737 * NEWS (New commands): Mention new command
6738 "maintenance print core-file-backed-mappings".
6739
09c2f5d4
KB
67402020-07-22 Kevin Buettner <kevinb@redhat.com>
6741
6742 * corelow.c (gdbcmd.h): Include.
6743 (core_target::info_proc_mappings): New method.
6744 (get_current_core_target): New function.
6745 (maintenance_print_core_file_backed_mappings): New function.
6746 (_initialize_corelow): Add core-file-backed-mappings to
6747 "maint print" commands.
6748
9c5ec5c2 67492020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6750
9c5ec5c2
KB
6751 * linux-tdep.c (dump_note_entry_p): New function.
6752 (linux_dump_mapping_p_ftype): New typedef.
6753 (linux_find_memory_regions_full): Add new parameter,
6754 should_dump_mapping_p.
6755 (linux_find_memory_regions): Adjust call to
6756 linux_find_memory_regions_full.
6757 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6758 call to linux_find_memory_regions_full.
6759
db082f59
KB
67602020-07-22 Kevin Buettner <kevinb@redhat.com>
6761
6762 * corelow.c (solist.h, unordered_map): Include.
6763 (class core_target): Add field m_core_file_mappings and
6764 method build_file_mappings.
6765 (core_target::core_target): Call build_file_mappings.
6766 (core_target::~core_target): Free memory associated with
6767 m_core_file_mappings.
6768 (core_target::build_file_mappings): New method.
6769 (core_target::xfer_partial): Use m_core_file_mappings
6770 for memory transfers.
6771 * linux-tdep.c (linux_read_core_file_mappings): New
6772 function.
6773 (linux_core_info_proc_mappings): Rewrite to use
6774 linux_read_core_file_mappings.
6775 (linux_init_abi): Register linux_read_core_file_mappings.
6776
7e183d27
KB
67772020-07-22 Kevin Buettner <kevinb@redhat.com>
6778
6779 * arch-utils.c (default_read_core_file_mappings): New function.
6780 * arch-utils.c (default_read_core_file_mappings): Declare.
6781 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6782 * gdbarch.h, gdbarch.c: Regenerate.
6783
2735d421
KB
67842020-07-22 Kevin Buettner <kevinb@redhat.com>
6785
6786 PR corefiles/25631
6787 * corelow.c (core_target:xfer_partial): Revise
6788 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6789 case after first checking the stratum beneath the core
6790 target.
6791 (has_all_memory): Return true.
6792 * target.c (raw_memory_xfer_partial): Revise comment
6793 regarding use of has_all_memory.
6794
e56cb451
KB
67952020-07-22 Kevin Buettner <kevinb@redhat.com>
6796
6797 * exec.h (section_table_xfer_memory): Revise declaration,
6798 replacing section name parameter with an optional callback
6799 predicate.
6800 * exec.c (section_table_xfer_memory): Likewise.
6801 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6802 of section_table_xfer_memory.
6803
32fa152e
TT
68042020-07-22 Tom Tromey <tromey@adacore.com>
6805
6806 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6807 lookup_symbol_search_name.
6808
a67a1c41
AB
68092020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6810
6811 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6812 redundant local variable.
6813 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6814 reference, not pointer, update code accordingly.
6815
a7b4ff4f
SM
68162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6817 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6818
6819 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6820 * jit.c (jit_breakpoint_re_set_internal): Use the
6821 `skip_jit_symbol_lookup` field.
6822
2340e834
SM
68232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6824 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6825
6826 * jit.c (jit_read_descriptor): Define the descriptor address once,
6827 use twice.
6828 (jit_breakpoint_deleted): Move the declaration of the loop variable
6829 `iter` into the loop header.
6830 (jit_breakpoint_re_set_internal): Move the declaration of the local
6831 variable `objf_data` to the first point of definition.
6832 (jit_event_handler): Move the declaration of local variables
6833 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6834 Rename `objf` to `jited`.
6835
c1072906
SM
68362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6837
6838 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6839 Remove.
6840 * jit.c (get_jiter_objfile_data): Update.
6841
c8474dc3
TBA
68422020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6843 Simon Marchi <simon.marchi@polymtl.ca>
6844
6845 * jit.c (struct jit_program_space_data): Remove.
6846 (jit_program_space_key): Remove.
6847 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6848 stuff.
6849 (get_jit_program_space_data): Remove.
6850 (jit_breakpoint_deleted): Iterate on all of the program space's
6851 objfiles.
6852 (jit_inferior_init): Likewise.
6853 (jit_breakpoint_re_set_internal): Likewise. Also change return
6854 type to void.
6855 (jit_breakpoint_re_set): Pass current_program_space to
6856 jit_breakpoint_re_set_internal.
6857
77208eb7
SM
68582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6859
6860 * jit.h (struct jiter_objfile_data) <cached_code_address,
6861 jit_breakpoint>: Move to here from ...
6862 * jit.c (jit_program_space_data): ... here.
6863 (jiter_objfile_data::~jiter_objfile_data): Update.
6864 (jit_breakpoint_deleted): Update.
6865 (jit_breakpoint_re_set_internal): Update.
6866
8c1c720f
SM
68672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6868
6869 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6870 checks.
6871 (jit_read_descriptor): Remove NULL check.
6872 (jit_event_handler): Add an assertion.
6873
0e74a041
SM
68742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6875
6876 * jit.h (struct jit_objfile_data): Split into...
6877 (struct jiter_objfile_data): ... this ...
6878 (struct jited_objfile_data): ... and this.
6879 * objfiles.h (struct objfile) <jit_data>: Remove.
6880 <jiter_data, jited_data>: New fields.
6881 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6882 (jiter_objfile_data::~jiter_objfile_data): ... this.
6883 (get_jit_objfile_data): Rename to ...
6884 (get_jiter_objfile_data): ... this.
6885 (add_objfile_entry): Update.
6886 (jit_read_descriptor): Use get_jiter_objfile_data.
6887 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6888 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6889 (jit_inferior_exit_hook): Use objfile's jited_data field.
6890
238b5c9f
SM
68912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6892
6893 * jit.h: Forward-declare `struct minimal_symbol`.
6894 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6895 constructor, destructor, and an objfile* field.
6896 * jit.c (jit_objfile_data): Remove.
6897 (struct jit_objfile_data): Migrate from here to jit.h.
6898 (jit_objfile_data::~jit_objfile_data): New destructor
6899 implementation with code moved from free_objfile_data.
6900 (free_objfile_data): Delete.
6901 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6902 (jit_find_objf_with_entry_addr): Ditto.
6903 (jit_inferior_exit_hook): Ditto.
6904 (_initialize_jit): Remove the call to
6905 register_objfile_data_with_cleanup.
6906 * objfiles.h (struct objfile) <jit_data>: New field.
6907
fe053b9e
TBA
69082020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6909
6910 * jit.h: Forward-declare `struct objfile`.
6911 (jit_event_handler): Add a second parameter, the JITer objfile.
6912 * jit.c (jit_read_descriptor): Change the signature to take the
6913 JITer objfile as an argument instead of the jit_program_space_data.
6914 (jit_inferior_init): Update the call to jit_read_descriptor.
6915 (jit_event_handler): Use the new JITer objfile argument when calling
6916 jit_read_descriptor.
6917 * breakpoint.c (handle_jit_event): Update the call to
6918 jit_event_handler to pass the JITer objfile.
6919
4cec0c66
JB
69202020-07-21 John Baldwin <jhb@FreeBSD.org>
6921
6922 * gdbarch.c: Regenerate.
6923 * gdbarch.h: Regenerate.
6924 * gdbarch.sh (handle_segmentation_fault): Remove method.
6925 * infrun.c (handle_segmentation_fault): Remove.
6926 (print_signal_received_reason): Remove call to
6927 handle_segmentation_fault.
6928
0e42f66a
JB
69292020-07-21 John Baldwin <jhb@FreeBSD.org>
6930
6931 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6932 Rename to sparc64_linux_report_signal_info and add siggnal
6933 argument.
6934 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6935 instead of sparc64_linux_handle_segmentation_fault.
6936
77bdfeb2
JB
69372020-07-21 John Baldwin <jhb@FreeBSD.org>
6938
6939 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6940 i386_linux_report_signal_info instead of
6941 i386_linux_handle_segmentation_fault.
6942 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6943 to i386_linux_report_signal_info and add siggnal argument.
6944 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6945 of i386_linux_handle_segmentation_fault.
6946 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6947 to i386_linux_report_signal_info and add siggnal argument.
6948
ad97bfc5
JB
69492020-07-21 John Baldwin <jhb@FreeBSD.org>
6950
6951 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6952 hook if present.
6953
272bb05c
JB
69542020-07-21 John Baldwin <jhb@FreeBSD.org>
6955
6956 * gdbarch.c: Regenerate.
6957 * gdbarch.h: Regenerate.
6958 * gdbarch.sh (report_signal_info): New method.
6959 * infrun.c (print_signal_received_reason): Invoke gdbarch
6960 report_signal_info hook if present.
6961
baf8791e
AB
69622020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6963
6964 * python/py-registers.c : Add 'unordered_map' include.
6965 (gdbpy_new_reggroup): Renamed to...
6966 (gdbpy_get_reggroup): ...this. Update to only create register
6967 group descriptors when needed.
6968 (gdbpy_reggroup_iter_next): Update.
6969
f7306dac
AB
69702020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6971
6972 * python/py-registers.c (gdbpy_register_object_data): New static
6973 global.
6974 (gdbpy_register_object_data_init): New function.
6975 (gdbpy_new_register_descriptor): Renamed to...
6976 (gdbpy_get_register_descriptor): ...this, and update to reuse
6977 existing register descriptors where possible.
6978 (gdbpy_register_descriptor_iter_next): Update.
6979 (gdbpy_initialize_registers): Register new gdbarch data.
6980
05c309a8
SM
69812020-07-21 Simon Marchi <simon.marchi@efficios.com>
6982
6983 * linux-nat.c (stopped_pids): Make static.
6984
d1fd641e
SM
69852020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6986
6987 PR ada/26235
6988 * gdbtypes.c (ada_discrete_type_low_bound,
6989 ada_discrete_type_high_bound): Handle undefined bounds.
6990
1de14d77
KR
69912020-07-21 Kamil Rytarowski <n54@gmx.com>
6992
6993 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6994 declaration.
6995 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6996 function.
6997
ed810cc7
JB
69982020-07-20 John Baldwin <jhb@FreeBSD.org>
6999
7000 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7001 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7002 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7003 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7004 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7005 method.
7006
ae5369e7
LC
70072020-07-20 Ludovic Courtès <ludo@gnu.org>
7008
7009 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7010 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7011 which are deprecated in Guile 3.0.
7012 * configure.ac (try_guile_versions): Add "guile-3.0".
7013 * configure (try_guile_versions): Regenerate.
7014 * NEWS: Update entry.
7015
68cf161c
LC
70162020-07-20 Ludovic Courtès <ludo@gnu.org>
7017 Doug Evans <dje@google.com>
7018
7019 PR gdb/21104
7020 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7021 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7022 USING_GUILE_BEFORE_2_2.
7023 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7024 Change type to 'scm_t_port_type *'.
7025 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7026 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7027 parameter and honor it. Update callers.
7028 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7029 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7030 functions.
7031 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7032 USING_GUILE_BEFORE_2_2.
7033 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7034 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7035 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7036 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7037 and 'SCM_PORT_TYPE'.
7038 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7039 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7040 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7041 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7042 [!USING_GUILE_BEFORE_2_2]: New functions.
7043 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7044 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7045 'gdbscm_memory_port_read'.
7046 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7047 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7048 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7049 function.
7050 (ioscm_init_memory_port): Remove.
7051 (ioscm_init_memory_port_stream): New function
7052 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7053 function.
7054 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7055 Return scm_from_uint (0).
7056 (gdbscm_set_memory_port_read_buffer_size_x)
7057 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7058 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7059 Return scm_from_uint (0).
7060 (gdbscm_set_memory_port_write_buffer_size_x)
7061 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7062 * configure.ac (try_guile_versions): Add "guile-2.2".
7063 * configure: Regenerate.
7064 * NEWS: Add entry.
7065
aee91db3
TT
70662020-07-18 Tom Tromey <tom@tromey.com>
7067
7068 * linux-nat.c (linux_multi_process): Remove.
7069 (linux_nat_target::supports_multi_process): Return true.
7070
0e267416
AB
70712020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7072
7073 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7074 (riscv_lookup_target_description): Return pointer out of
7075 unique_ptr.
7076 * target-descriptions.c (allocate_target_description): Add
7077 comment.
7078 (target_desc_deleter::operator()): Likewise.
7079 * target-descriptions.h (struct target_desc_deleter): Moved to
7080 gdbsupport/tdesc.h.
7081 (target_desc_up): Likewise.
7082
f80c8ec4
TT
70832020-07-17 Tom Tromey <tromey@adacore.com>
7084
7085 * linux-nat.c (linux_nat_target::supports_non_stop)
7086 (linux_nat_target::always_non_stop_p): Use "true".
7087 (linux_nat_target::supports_disable_randomization): Use "true" and
7088 "false".
7089
d0ce17d8
CT
70902020-07-16 Caroline Tice <cmtice@google.com>
7091
7092 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7093 (RNGLIST_HEADER_SIZE64): New constant definition.
7094 (struct dwop_section_names): Add rnglists_dwo.
7095 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7096 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7097 (struct dwo_sections): Add rnglists field.
7098 (read_attribut_reprocess): Add tag parameter.
7099 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7100 (cu_debug_rnglists_section): New function (decl & definition).
7101 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7102 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7103 die whose range is being checked; get rnglist section from
7104 cu_debug_rnglists_section, to get from either objfile or dwo file as
7105 appropriate. Add cases for DW_RLE_base_addressx,
7106 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7107 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7108 test inside if-condition and updating complaint message.
7109 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7110 dwarf2_rnglists_process.
7111 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7112 dwarf2_ranges_process.
7113 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7114 need_ranges_base and update comment appropriately. Also pass die tag
7115 to dwarf2_ranges_read.
7116 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7117 need_ranges_base and update comment appropriately. Also pass die tag
7118 to dwarf2_ranges_process.
7119 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7120 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7121 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7122 need_ranges_base and update comment appropriately. Also pass die tag
7123 to read_attribute_reprocess and dwarf2_ranges_read.
7124 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7125 and update function comment appropriately.
7126 (read_loclist_index): Call read_loclists_rnglists_header instead of
7127 read_loclist_header.
7128 (read_rnglist_index): New function.
7129 (read_attribute_reprocess): Add tag parameter. Add code for
7130 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7131 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7132
3dcc261c
AB
71332020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7134
7135 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7136 being resolved.
7137
ccb9eba6
AB
71382020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7139
7140 * arch-utils.c (show_architecture): Update formatting of messages.
7141
cf88be68
SM
71422020-07-12 Simon Marchi <simon.marchi@efficios.com>
7143
7144 * gdbtypes.h (struct type) <bounds>: Handle array and string
7145 types.
7146 * ada-lang.c (assign_aggregate): Use type::bounds on
7147 array/string type.
7148 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7149 * c-varobj.c (c_number_of_children): Likewise.
7150 (c_describe_child): Likewise.
7151 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7152 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7153 (f_type_print_base): Likewise.
7154 * f-valprint.c (f77_array_offset_tbl): Likewise.
7155 (f77_get_upperbound): Likewise.
7156 (f77_print_array_1): Likewise.
7157 * guile/scm-type.c (gdbscm_type_range): Likewise.
7158 * m2-typeprint.c (m2_array): Likewise.
7159 (m2_is_long_set_of_type): Likewise.
7160 * m2-valprint.c (get_long_set_bounds): Likewise.
7161 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7162 * python/py-type.c (typy_range): Likewise.
7163 * rust-lang.c (rust_internal_print_type): Likewise.
7164 * type-stack.c (type_stack::follow_types): Likewise.
7165 * valarith.c (value_subscripted_rvalue): Likewise.
7166 * valops.c (value_cast): Likewise.
7167
509971ae
SM
71682020-07-12 Simon Marchi <simon.marchi@efficios.com>
7169
7170 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7171 callers to use the equivalent accessor methods.
7172
107406b7
SM
71732020-07-12 Simon Marchi <simon.marchi@efficios.com>
7174
7175 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7176 (struct type) <bit_stride>: New method.
7177 (TYPE_BIT_STRIDE): Remove.
7178 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7179
bb789949
SM
71802020-07-12 Simon Marchi <simon.marchi@efficios.com>
7181
7182 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7183 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7184 callers to use the equivalent accessor methods instead.
7185
39498edb
SM
71862020-07-12 Simon Marchi <simon.marchi@efficios.com>
7187
7188 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7189 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7190 callers to use the equivalent accessor methods instead.
7191
3b606f38
SM
71922020-07-12 Simon Marchi <simon.marchi@efficios.com>
7193
7194 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7195 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7196 to use dynamic_prop::kind.
7197
064d9cb9
SM
71982020-07-12 Simon Marchi <simon.marchi@efficios.com>
7199
7200 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7201 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7202 to get the bound property's kind and check against
7203 PROP_UNDEFINED.
7204
5537ddd0
SM
72052020-07-12 Simon Marchi <simon.marchi@efficios.com>
7206
7207 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7208 all callers to use type::range_bounds followed by
7209 dynamic_prop::{low,high}.
7210
8c2e4e06
SM
72112020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7212
7213 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7214 const_val, set_const_val, baton, set_locexpr, set_loclist,
7215 set_addr_offset, variant_parts, set_variant_parts,
7216 original_type, set_original_type>: New methods.
7217 <kind>: Rename to...
7218 <m_kind>: ... this. Update all users to use the new methods
7219 instead.
7220 <data>: Rename to...
7221 <m_data>: ... this. Update all users to use the new methods
7222 instead.
7223
7c6f2712
SM
72242020-07-12 Simon Marchi <simon.marchi@efficios.com>
7225
7226 * gdbtypes.c (get_discrete_bounds): Return failure if
7227 the range type's bounds are not both defined and constant
7228 values.
7229 (get_array_bounds): Update comment. Remove undefined bound check.
7230
599088e3
SM
72312020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7232
7233 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7234 the type::bounds method directly.
7235
c4dfcb36
SM
72362020-07-12 Simon Marchi <simon.marchi@efficios.com>
7237
7238 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7239 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7240 are used to set the range type's bounds to use set_bounds.
7241
0a278aa7
PW
72422020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7243
7244 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7245
cce20f10
PA
72462020-07-10 Pedro Alves <pedro@palves.net>
7247
7248 * gdbthread.h (inferior_ref): Define.
7249 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7250 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7251 * thread.c
7252 (scoped_restore_current_thread::restore):
7253 Adjust to gdb::ref_ptr.
7254 (scoped_restore_current_thread::~scoped_restore_current_thread):
7255 Remove manual decref handling.
7256 (scoped_restore_current_thread::scoped_restore_current_thread):
7257 Adjust to use
7258 inferior_ref::new_reference/thread_info_ref::new_reference.
7259 Incref the thread before calling get_frame_id instead of after.
7260 Let TARGET_CLOSE_ERROR propagate.
7261
6d7aa592
PA
72622020-07-10 Pedro Alves <pedro@palves.net>
7263
7264 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7265 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7266 NOT_AVAILABLE_ERROR.
7267 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7268 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7269
b3e3a4c1
SM
72702020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7271 Pedro Alves <pedro@palves.net>
7272
7273 PR gdb/26199
7274 * infrun.c (threads_are_resumed_pending_p): Delete.
7275 (do_target_wait): Remove threads_are_executing and
7276 threads_are_resumed_pending_p checks from the inferior_matches
7277 lambda. Update comments.
7278
d6cc5d98
PA
72792020-07-10 Pedro Alves <pedro@palves.net>
7280
7281 PR gdb/26199
7282 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7283 executing threads.
7284
7d3badc6
PA
72852020-07-10 Pedro Alves <pedro@palves.net>
7286
7287 PR gdb/26199
7288 * infrun.c (handle_no_resumed): Handle multiple targets.
7289
42bd97a6
PA
72902020-07-10 Pedro Alves <pedro@palves.net>
7291
7292 PR gdb/26199
7293 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7294 target_is_async_p.
7295
43667cc6
PA
72962020-07-10 Pedro Alves <pedro@palves.net>
7297
7298 PR gdb/26199
7299 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7300 threads, not all threads.
7301
96118d11
PA
73022020-07-10 Pedro Alves <pedro@palves.net>
7303
7304 PR gdb/26199
7305 * remote.c (remote_target::open_1): Pass remote target pointer as
7306 data to create_async_event_handler.
7307 (remote_async_inferior_event_handler): Mark async event handler
7308 before returning if the remote target still has either pending
7309 events or unacknowledged notifications.
7310
54904d81
JB
73112020-07-10 John Baldwin <jhb@FreeBSD.org>
7312
7313 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7314 declaration.
7315 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7316 function.
7317
f37e5866
JB
73182020-07-09 John Baldwin <jhb@FreeBSD.org>
7319
7320 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7321 inferior_ptid.
7322
fc238d4a
JB
73232020-07-09 John Baldwin <jhb@FreeBSD.org>
7324
7325 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7326 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7327 AT_FREEBSD_PS_STRINGS.
7328
6e2469ff
HD
73292020-07-08 Hannes Domani <ssbssa@yahoo.de>
7330
7331 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7332 of debugfile path on Windows.
7333
d1076c41
JB
73342020-07-08 John Baldwin <jhb@FreeBSD.org>
7335
7336 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7337 argument to 'data'.
7338
15f3b077
TT
73392020-07-08 Tom Tromey <tromey@adacore.com>
7340
7341 * ada-lang.c (ada_exception_message_1): Use read_memory.
7342
9fc501fd
AB
73432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7344
7345 PR python/22748
7346 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7347 special handling for inline frames.
7348 * findvar.c (value_of_register_lazy): Skip inline frames when
7349 creating lazy register values.
7350 * frame.c (frame_id_computed_p): Delete definition.
7351 * frame.h (frame_id_computed_p): Delete declaration.
7352
64cb3757
AB
73532020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7354
7355 * NEWS: Mention additions to Python API.
7356 * python/py-arch.c (archpy_register_groups): New function.
7357 (arch_object_methods): Add 'register_groups' method.
7358 * python/py-registers.c (reggroup_iterator_object): New struct.
7359 (reggroup_object): New struct.
7360 (gdbpy_new_reggroup): New function.
7361 (gdbpy_reggroup_to_string): New function.
7362 (gdbpy_reggroup_name): New function.
7363 (gdbpy_reggroup_iter): New function.
7364 (gdbpy_reggroup_iter_next): New function.
7365 (gdbpy_new_reggroup_iterator): New function
7366 (gdbpy_initialize_registers): Register new types.
7367 (reggroup_iterator_object_type): Define new Python type.
7368 (gdbpy_reggroup_getset): New static global.
7369 (reggroup_object_type): Define new Python type.
7370 * python/python-internal.h
7371
0f767f94
AB
73722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7373
7374 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7375 * python/py-arch.c (archpy_registers): New function.
7376 (arch_object_methods): Add 'registers' method.
7377 * python/py-registers.c: New file.
7378 * python/python-internal.h
7379 (gdbpy_new_register_descriptor_iterator): Declare.
7380 (gdbpy_initialize_registers): Declare.
7381 * python/python.c (do_start_initialization): Call
7382 gdbpy_initialize_registers.
7383 * NEWS: Mention additions to the Python API.
7384
87dbc774
AB
73852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7386
7387 * NEWS: Mention new Python API method.
7388 * python/py-unwind.c (pending_framepy_architecture): New function.
7389 (pending_frame_object_methods): Add architecture method.
7390
3bc98c0c
AB
73912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7392
7393 * gdbarch.c: Regenerate.
7394 * gdbarch.h: Regenerate.
7395 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7396 (gdbarch_data): Use internal_error for the case where
7397 deprecated_set_gdbarch_data was originally needed.
7398 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7399 and use passed in obstack.
7400 (libunwind_frame_set_descr): Should no longer get back NULL from
7401 gdbarch_data.
7402 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7403 type.
7404 * user-regs.c (user_regs_init): Update parameters, and use passed
7405 in obstack.
7406 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7407 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7408
d8cc8af6
TV
74092020-07-06 Tom de Vries <tdevries@suse.de>
7410
7411 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7412 End-Of-Sequence in lte_is_less_than.
7413 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7414 "gdb: Don't reorder line table entries too much when sorting".
7415
947f7597
TV
74162020-07-06 Tom de Vries <tdevries@suse.de>
7417
7418 PR tui/26205
7419 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7420
1e7c1b22
TV
74212020-07-05 Tom de Vries <tdevries@suse.de>
7422
7423 PR build/26187
7424 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7425 std::uncaught_exceptions instead of deprecated
7426 std::uncaught_exception.
7427
a36158ec
SM
74282020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7429
7430 * macroexp.h (macro_stringify): Return
7431 gdb::unique_xmalloc_ptr<char>.
7432 * macroexp.c (macro_stringify): Likewise.
7433 * macrotab.c (fixup_definition): Update.
7434
14d960c8
SM
74352020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7436
7437 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7438 (lex_one_token): Update.
7439 * macroexp.c (struct macro_buffer) <release>: Return
7440 gdb::unique_xmalloc_ptr<char>.
7441 (macro_stringify): Update.
7442 (macro_expand): Update.
7443 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7444 * macroexp.h (macro_expand_next): Likewise.
7445
211d5b1c
SM
74462020-07-02 Simon Marchi <simon.marchi@efficios.com>
7447
7448 * macroexp.h (macro_lookup_ftype): Remove.
7449 (macro_expand, macro_expand_once, macro_expand_next): Remove
7450 lookup function parameters, add scope parameter.
7451 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7452 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7453 * macroscope.h (standard_macro_lookup): Change parameter type
7454 to macro_scope.
7455 * macroscope.c (standard_macro_lookup): Likewise.
7456 * c-exp.y (lex_one_token): Update.
7457 * macrocmd.c (macro_expand_command): Likewise.
7458 (macro_expand_once_command): Likewise.
7459
b1a35af2
SM
74602020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7461
7462 * inf-loop.c (inferior_event_handler): Remove client_data param.
7463 * inf-loop.h (inferior_event_handler): Likewise.
7464 * infcmd.c (step_1): Adjust.
7465 * infrun.c (proceed): Adjust.
7466 (fetch_inferior_event): Remove client_data param.
7467 (infrun_async_inferior_event_handler): Adjust.
7468 * infrun.h (fetch_inferior_event): Remove `void *` param.
7469 * linux-nat.c (handle_target_event): Adjust.
7470 * record-btrace.c (record_btrace_handle_async_inferior_event):
7471 Adjust.
7472 * record-full.c (record_full_async_inferior_event_handler):
7473 Adjust.
7474 * remote.c (remote_async_inferior_event_handler): Adjust.
7475
1cdf9e33
TT
74762020-07-01 Tom Tromey <tom@tromey.com>
7477
7478 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7479 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7480
32c1e210
TT
74812020-07-01 Tom Tromey <tom@tromey.com>
7482
7483 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7484 tui_gen_win_info.
7485 (tui_win_info::make_window): Merge with
7486 tui_gen_win_info::make_window.
7487 (tui_win_info::make_visible): Move from tui_gen_win_info.
7488 * tui/tui-win.c (tui_win_info::max_width): Move from
7489 tui_gen_win_info.
7490 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7491 type.
7492 <window_factory>: Likewise.
7493 * tui/tui-layout.c (tui_win_info::resize): Move from
7494 tui_gen_win_info.
7495 (make_standard_window): Change return type.
7496 (get_locator_window, tui_get_window_by_name): Likewise.
7497 (tui_layout_window::apply): Remove a cast.
7498 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7499 (struct tui_win_info): Merge with tui_gen_win_info.
7500 (struct tui_gen_win_info): Remove.
7501
a30cb6da
TT
75022020-07-01 Tom Tromey <tom@tromey.com>
7503
7504 * tui/tui-stack.h (struct tui_locator_window): Derive from
7505 tui_win_info.
7506 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7507 <can_box>: New method.
7508
1eb2161f
TT
75092020-07-01 Tom Tromey <tom@tromey.com>
7510
7511 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7512
7134f2eb
TT
75132020-07-01 Tom Tromey <tom@tromey.com>
7514
7515 * tui/tui-regs.c (tui_data_window::display_registers_from)
7516 (tui_data_window::display_registers_from)
7517 (tui_data_window::first_data_item_displayed)
7518 (tui_data_window::delete_data_content_windows): Update.
7519 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7520 Remove.
7521 (tui_data_window::check_register_values): Update.
7522 (tui_data_item_window::rerender): Add parameters. Update.
7523 (tui_data_item_window::refresh_window): Remove.
7524 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7525 virtual.
7526 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7527 tui_gen_win_info.
7528 <refresh_window, max_height, min_height>: Remove.
7529 <rerender>: Add parameters.
7530 <x, y, visible>: New members.
7531 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7532 <m_item_width>: New member.
7533
22b7b041
TT
75342020-07-01 Tom Tromey <tom@tromey.com>
7535
7536 * tui/tui-regs.c (tui_data_window::show_register_group)
7537 (tui_data_window::check_register_values): Update.
7538 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7539 from item_no.
7540
c9753adb
TT
75412020-07-01 Tom Tromey <tom@tromey.com>
7542
7543 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7544 useless "if".
7545
9ab26b4a
TT
75462020-07-01 Tom Tromey <tom@tromey.com>
7547
7548 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7549 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7550
e555083f
TT
75512020-07-01 Tom Tromey <tom@tromey.com>
7552
7553 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7554 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7555 (struct tui_line_or_address): Move from tui-data.h.
7556 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7557 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7558 (tui_cmd_window, tui_source_window_base, tui_source_window)
7559 (tui_disasm_window): Don't declare.
7560 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7561 to tui-winsource.h.
7562 (SINGLE_KEY): Move to tui-stack.c.
7563
7a02bab7
TT
75642020-07-01 Tom Tromey <tom@tromey.com>
7565
7566 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7567 std::string.
7568 * tui/tui-regs.c (class tab_expansion_file): New.
7569 (tab_expansion_file::write): New method.
7570 (tui_register_format): Change return type. Use
7571 tab_expansion_file.
7572 (tui_get_register, tui_data_window::display_registers_from)
7573 (tui_data_item_window::rerender): Update.
7574 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7575 * tui/tui-io.c (tui_expand_tabs): Remove.
7576
ea68593b
TT
75772020-07-01 Tom Tromey <tom@tromey.com>
7578
7579 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7580
a8caed5d
FS
75812020-07-01 Fangrui Song <maskray@google.com>
7582
7583 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7584
9cdf9820
AKS
75852020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7586
7587 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7588 forms for DW_AT_associated and DW_AT_allocated attributes,
7589 which is already checked in function attr_to_dynamic_prop.
7590
a1520ad8
TT
75912020-06-30 Tom Tromey <tromey@adacore.com>
7592
7593 * dwarf2/read.c (quirk_rust_enum): Correctly call
7594 alloc_rust_variant for default-less enum.
7595
5ac58899
TT
75962020-06-30 Tom Tromey <tromey@adacore.com>
7597
7598 PR build/26183:
7599 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7600 gdb::to_string.
7601
19b187a9
SM
76022020-06-29 Simon Marchi <simon.marchi@efficios.com>
7603
7604 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7605 * gdbarch.h: Re-generate.
7606
cd4c4c07
TT
76072020-06-28 Tom Tromey <tom@tromey.com>
7608
7609 * command.h (cmd_types): Remove.
7610 (cmd_type): Don't declare.
7611 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7612 typedef.
7613 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7614 * cli/cli-decode.c (cmd_type): Remove.
7615
05779d57
PA
76162020-06-27 Pedro Alves <palves@redhat.com>
7617
7618 * fork-child.c (prefork_hook): Adjust.
7619 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7620 Delete.
7621 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7622 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7623 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7624 Remove declarations.
7625 (struct inferior) <set_tty, tty>: New methods.
7626 (struct inferior) <terminal>: Rename to ...
7627 (struct inferior) <m_terminal>: ... this and make private.
7628 * main.c (captured_main_1): Adjust.
7629 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7630 (mi_cmd_inferior_tty_show): Adjust.
7631 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7632 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7633
1776e3e5
NA
76342020-06-26 Nick Alcock <nick.alcock@oracle.com>
7635
7636 * configure.ac: Add --enable-libctf: handle --disable-static
7637 properly.
7638 * acinclude.m4: sinclude ../config/enable.m4.
7639 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7640 (LIBCTF): Substitute in.
7641 (CTF_DEPS): New, likewise.
7642 (CLIBS): libctf needs symbols from libbfd: move earlier.
7643 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7644 flags.
7645 * ctfread.c: Surround in ENABLE_LIBCTF.
7646 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7647 * configure: Regenerate.
7648 * config.in: Likewise.
7649
58373b80
SM
76502020-06-25 Simon Marchi <simon.marchi@efficios.com>
7651
7652 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7653
277474ee
SM
76542020-06-25 Simon Marchi <simon.marchi@efficios.com>
7655
7656 * inferior.h (struct inferior) <terminal>: Change type to
7657 gdb::unique_xmalloc_ptr<char>.
7658 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7659 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7660 field, adjust to unique pointer.
7661 (get_inferior_io_terminal): Adjust to unique pointer.
7662
6d74da72
AB
76632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7664
7665 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7666 registers, not just the known core set of registers.
7667
2e52d038
AB
76682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7669
7670 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7671 fflags, frm, and fcsr registers.
7672 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7673 restore groups.
7674 (riscv_tdesc_unknown_reg): New function.
7675 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7676 tdesc_use_registers.
7677 * riscv-tdep.h (struct gdbarch_tdep): Add
7678 unknown_csrs_first_regnum, unknown_csrs_count,
7679 duplicate_fflags_regnum, duplicate_frm_regnum, and
7680 duplicate_fcsr_regnum fields.
7681
be64fd07
AB
76822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7683
7684 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7685 callback, use the callback (when not null) to help number unknown
7686 registers.
7687 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7688 (tdesc_use_registers): Add extra parameter to declaration.
7689
3b9fce96
AB
76902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7691
7692 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7693 in the file.
7694 (class riscv_pending_register_alias): Likewise.
7695 (riscv_register_feature::register_info): Change 'required_p' field
7696 to 'required', and change its type. Add 'check' member function.
7697 (riscv_register_feature::register_info::check): Define new member
7698 function.
7699 (riscv_xreg_feature): Change initialisation of 'required' field.
7700 (riscv_freg_feature): Likewise.
7701 (riscv_virtual_feature): Likewise.
7702 (riscv_csr_feature): Likewise.
7703 (riscv_check_tdesc_feature): Take extra parameter, the csr
7704 tdesc_feature, rewrite the function to use the new
7705 riscv_register_feature::register_info::check function.
7706 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7707
865bad26
AB
77082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7709
7710 * features/Makefile: Remove all references to the deleted files
7711 below.
7712 * features/riscv/32bit-csr.c: Deleted.
7713 * features/riscv/32bit-csr.xml: Deleted.
7714 * features/riscv/64bit-csr.c: Deleted.
7715 * features/riscv/64bit-csr.xml: Deleted.
7716 * features/riscv/rebuild-csr-xml.sh: Deleted.
7717
ed69cbc8
AB
77182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7719
7720 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7721 whitespace error for declaration of names member variable.
7722 (struct riscv_register_feature): Add new prefer_first_name member
7723 variable, and fix whitespace error in declaration of registers.
7724 (riscv_xreg_feature): Initialize prefer_first_name field.
7725 (riscv_freg_feature): Likewise.
7726 (riscv_virtual_feature): Likewise.
7727 (riscv_csr_feature): Likewise.
7728 (riscv_register_name): Expand on comments. Remove register name
7729 modifications for CSR and virtual registers.
7730
4445e8f5
AB
77312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7732
7733 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7734 errors.
7735
767a879e
AB
77362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7737
7738 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7739 riscv-opc.h.
7740 (class riscv_pending_register_alias): New class.
7741 (riscv_check_tdesc_feature): Take vector of pending aliases and
7742 populate it as appropriate.
7743 (riscv_setup_register_aliases): Delete.
7744 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7745 to riscv_check_tdesc_feature in all cases. Use the vector to
7746 create the register aliases.
7747
bb6e55f3
RO
77482020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7749
7750 * sol2-tdep.c (sol2_static_transform_name): Remove.
7751 (sol2_init_abi): Don't register it.
7752 * gdbarch.sh (static_transform_name): Remove.
7753 * gdbarch.c, gdbarch.h: Regenerate.
7754
7755 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7756 gdbarch_static_transform_name.
7757 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7758 * stabsread.c (define_symbol) <'X'>: Remove.
7759 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7760 handling.
7761 <'V'>: Likewise.
7762 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7763 <'S'>: Remove call to gdbarch_static_transform_name.
7764
c6d36836
RO
77652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7766
7767 * procfs.c (procfs_pre_trace): New function.
7768 (procfs_target::create_inferior): Pass it to fork_inferior.
7769
a7e6196b
RO
77702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7771
7772 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7773 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7774 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7775 sol2-tdep.o, sparc-sol2-tdep.o.
7776 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7777 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7778 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7779 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7780
d412e696
RO
77812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7782
7783 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7784 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7785 Call sol2_init_abi.
7786 Remove calls to set_gdbarch_skip_solib_resolver,
7787 set_gdbarch_core_pid_to_str.
7788 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7789 (i386_sol2_static_transform_name): Remove.
7790 (i386_sol2_init_abi): Call sol2_init_abi.
7791 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7792 set_gdbarch_static_transform_name,
7793 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7794 Use sol2_sigtramp_p.
7795 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7796 (sol2_sigtramp_p): New function.
7797 (sol2_static_transform_name): New function.
7798 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7799 (sol2_init_abi): New function.
7800 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7801 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7802 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7803 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7804 (sparc_sol2_static_transform_name): Remove.
7805 (sparc32_sol2_init_abi): Call sol2_init_abi.
7806 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7807 set_gdbarch_static_transform_name,
7808 set_gdbarch_skip_solib_resolver,
7809 set_gdbarch_core_pid_to_str.
7810 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7811 (sparc_sol2_static_transform_name): Remove
7812 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7813 call sol2_sigtramp_p.
7814 (sparc64_sol2_init_abi): Call sol2_init_abi.
7815 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7816 set_gdbarch_static_transform_name,
7817 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7818
a8654e7d
PW
78192020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7820
7821 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7822 * exec.c (validate_exec_file): If from_tty, set both
7823 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7824 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7825 and from_tty, unconditionally ask a confirmation.
7826
caa7fd04
AB
78272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7828
7829 * target-descriptions.c (tdesc_architecture_name): Protect against
7830 NULL pointer dereference.
7831 (maint_print_xml_tdesc_cmd): New function.
7832 (_initialize_target_descriptions): Register new 'maint print
7833 xml-tdesc' command and give it the filename completer.
7834 * NEWS: Mention new 'maint print xml-tdesc' command.
7835
fbf42f4e
AB
78362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7837
7838 * target-descriptions.c (class tdesc_compatible_info): New class.
7839 (struct target_desc): Change type of compatible vector.
7840 (tdesc_compatible_p): Update for change in type of
7841 target_desc::compatible.
7842 (tdesc_compatible_info_list): New function.
7843 (tdesc_compatible_info_arch_name): New function.
7844 (tdesc_add_compatible): Update for change in type of
7845 target_desc::compatible.
7846 (print_c_tdesc::visit_pre): Likewise.
7847
20821f4e
AB
78482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7849
7850 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7851 whitespace to underscore.
7852 (maint_print_c_tdesc_cmd): Use fake filename for target
7853 descriptions that came from the target.
7854 (_initialize_target_descriptions): Add filename command completion
7855 for 'maint print c-tdesc'.
7856
1fb5ee62
SM
78572020-06-23 Simon Marchi <simon.marchi@efficios.com>
7858
7859 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7860 lines.
7861
fc3ecb3e
SM
78622020-06-23 Simon Marchi <simon.marchi@efficios.com>
7863
7864 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7865 lines.
7866 (dwarf2_find_location_expression): Likewise.
7867 (call_site_parameter_matches): Likewise.
7868 (dwarf2_compile_expr_to_ax): Likewise.
7869 (disassemble_dwarf_expression): Likewise.
7870 (loclist_describe_location): Likewise.
7871
236ef034
PA
78722020-06-23 Pedro Alves <palves@redhat.com>
7873
7874 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7875 progspace-and-thread.h. Include scoped-mock-context.h instead.
7876 (register_to_value_test): Use scoped_mock_context.
7877 * regcache.c: Include "scoped-mock-context.h".
7878 (cooked_read_test): Don't error out if a target is already pushed.
7879 Use scoped_mock_context. Adjust.
7880 * scoped-mock-context.h: New file.
7881
39e7ecca
AB
78822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7883
7884 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7885 initializer.
7886 (ada_language::is_string_type_p): New member function.
7887 * c-lang.c (c_language_data): Delete la_is_string_type_p
7888 initializer.
7889 (cplus_language_data): Likewise.
7890 (asm_language_data): Likewise.
7891 (minimal_language_data): Likewise.
7892 * d-lang.c (d_language_data): Likewise.
7893 * f-lang.c (f_is_string_type_p): Delete function, implementation
7894 moved to f_language::is_string_type_p.
7895 (f_language_data): Delete la_is_string_type_p initializer.
7896 (f_language::is_string_type_p): New member function,
7897 implementation from f_is_string_type_p.
7898 * go-lang.c (go_is_string_type_p): Delete function, implementation
7899 moved to go_language::is_string_type_p.
7900 (go_language_data): Delete la_is_string_type_p initializer.
7901 (go_language::is_string_type_p): New member function,
7902 implementation from go_is_string_type_p.
7903 * language.c (language_defn::is_string_type_p): Define new member
7904 function.
7905 (default_is_string_type_p): Make static, add comment copied from
7906 header file.
7907 (unknown_language_data): Delete la_is_string_type_p initializer.
7908 (unknown_language::is_string_type_p): New member function.
7909 (auto_language_data): Delete la_is_string_type_p initializer.
7910 (auto_language::is_string_type_p): New member function.
7911 * language.h (language_data): Delete la_is_string_type_p field.
7912 (language_defn::is_string_type_p): Declare new function.
7913 (default_is_string_type_p): Delete desclaration, move comment to
7914 definition.
7915 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7916 moved to m2_language::is_string_type_p.
7917 (m2_language_data): Delete la_is_string_type_p initializer.
7918 (m2_language::is_string_type_p): New member function,
7919 implementation from m2_is_string_type_p.
7920 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7921 initializer.
7922 * opencl-lang.c (opencl_language_data): Likewise.
7923 * p-lang.c (pascal_is_string_type_p): Delete function,
7924 implementation moved to pascal_language::is_string_type_p.
7925 (pascal_language_data): Delete la_is_string_type_p initializer.
7926 (pascal_language::is_string_type_p): New member function,
7927 implementation from pascal_is_string_type_p.
7928 * rust-lang.c (rust_is_string_type_p): Delete function,
7929 implementation moved to rust_language::is_string_type_p.
7930 (rust_language_data): Delete la_is_string_type_p initializer.
7931 (rust_language::is_string_type_p): New member function,
7932 implementation from rust_is_string_type_p.
7933 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7934 is_string_type_p.
7935
4ffc13fb
AB
79362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7937
7938 * ada-lang.c (ada_language_data): Delete la_print_typedef
7939 initializer.
7940 (ada_language::print_typedef): New member function.
7941 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7942 (cplus_language_data): Likewise.
7943 (asm_language_data): Likewise.
7944 (minimal_language_data): Likewise.
7945 * d-lang.c (d_language_data): Likewise.
7946 * f-lang.c (f_language_data): Likewise.
7947 (f_language::print_typedef): New member function.
7948 * go-lang.c (go_language_data): Delete la_print_typedef
7949 initializer.
7950 * language.c (language_defn::print_typedef): Define member
7951 function.
7952 (unknown_language_data): Delete la_print_typedef initializer.
7953 (unknown_language::print_typedef): New member function.
7954 (auto_language_data): Delete la_print_typedef initializer.
7955 (auto_language::print_typedef): New member function.
7956 * language.h (language_data): Delete la_print_typedef field.
7957 (language_defn::print_typedef): Declare new member function.
7958 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7959 (default_print_typedef): Delete declaration.
7960 * m2-lang.c (m2_language_data): Delete la_print_typedef
7961 initializer.
7962 (m2_language::print_typedef): New member function.
7963 * objc-lang.c (objc_language_data): Delete la_print_typedef
7964 initializer.
7965 * opencl-lang.c (opencl_language_data): Likewise.
7966 * p-lang.c (pascal_language_data): Likewise.
7967 (pascal_language::print_typedef): New member function.
7968 * rust-lang.c (rust_print_typedef): Delete function,
7969 implementation moved to rust_language::print_typedef.
7970 (rust_language): Delete la_print_typedef initializer.
7971 (rust_language::print_typedef): New member function,
7972 implementation from rust_print_typedef.
7973 * typeprint.c (default_print_typedef): Delete.
7974
d711ee67
AB
79752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7976
7977 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7978 (ada_language::printstr): New member function.
7979 * c-lang.c (c_language_data): Delete la_printstr initializer.
7980 (cplus_language_data): Likewise.
7981 (asm_language_data): Likewise.
7982 (minimal_language_data): Likewise.
7983 * d-lang.c (d_language_data): Likewise.
7984 * f-lang.c (f_printstr): Rename to f_language::printstr.
7985 (f_language_data): Delete la_printstr initializer.
7986 (f_language::printstr): New member function, implementation from
7987 f_printstr.
7988 * go-lang.c (go_language_data): Delete la_printstr initializer.
7989 * language.c (language_defn::printstr): Define new member
7990 function.
7991 (unk_lang_printstr): Delete.
7992 (unknown_language_data): Delete la_printstr initializer.
7993 (unknown_language::printstr): New member function.
7994 (auto_language_data): Delete la_printstr initializer.
7995 (auto_language::printstr): New member function.
7996 * language.h (language_data): Delete la_printstr field.
7997 (language_defn::printstr): Declare new member function.
7998 (LA_PRINT_STRING): Update call to printstr.
7999 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8000 (m2_language_data): Delete la_printstr initializer.
8001 (m2_language::printstr): New member function, implementation from
8002 m2_printstr.
8003 * objc-lang.c (objc_language_data): Delete la_printstr
8004 initializer.
8005 * opencl-lang.c (opencl_language_data): Likewise.
8006 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8007 (pascal_language_data): Delete la_printstr initializer.
8008 (pascal_language::printstr): New member function, implementation
8009 from pascal_printstr.
8010 * p-lang.h (pascal_printstr): Delete declaration.
8011 * rust-lang.c (rust_printstr): Update header comment.
8012 (rust_language_data): Delete la_printstr initializer.
8013 (rust_language::printstr): New member function.
8014
52b50f2c
AB
80152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8016
8017 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8018 (ada_language::printchar): New member function.
8019 * c-lang.c (c_language_data): Delete la_printchar initializer.
8020 (cplus_language_data): Likewise.
8021 (asm_language_data): Likewise.
8022 (minimal_language_data): Likewise.
8023 * d-lang.c (d_language_data): Likewise.
8024 * f-lang.c (f_printchar): Rename to f_language::printchar.
8025 (f_language_data): Delete la_printchar initializer.
8026 (f_language::printchar): New member function, implementation from
8027 f_printchar.
8028 * go-lang.c (go_language_data): Delete la_printchar initializer.
8029 * language.c (unk_lang_printchar): Delete.
8030 (language_defn::printchar): Define new member function.
8031 (unknown_language_data): Delete la_printchar initializer.
8032 (unknown_language::printchar): New member function.
8033 (auto_language_data): Delete la_printchar initializer.
8034 (auto_language::printchar): New member function.
8035 * language.h (language_data): Delete la_printchar field.
8036 (language_defn::printchar): Declare new member function.
8037 (LA_PRINT_CHAR): Update call to printchar.
8038 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8039 (m2_language::printchar): New member function.
8040 * objc-lang.c (objc_language_data): Delete la_printchar
8041 initializer.
8042 * opencl-lang.c (opencl_language_data): Likewise.
8043 * p-lang.c (pascal_language_data): Delete la_printchar
8044 initializer.
8045 (pascal_language::printchar): New member function.
8046 * rust-lang.c (rust_printchar): Rename to
8047 rust_language::printchar.
8048 (rust_language_data): Delete la_printchar initializer.
8049 (rust_language::printchar): New member function, implementation
8050 from rust_printchar.
8051
ec8cec5b
AB
80522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8053
8054 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8055 (ada_language_data): Delete la_emitchar initializer.
8056 (ada_language::emitchar): New member function, implementation from
8057 emit_char.
8058 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8059 (cplus_language_data): Likewise.
8060 (asm_language_data): Likewise.
8061 (minimal_language_data): Likewise.
8062 * d-lang.c (d_language_data): Likewise.
8063 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8064 (f_language_data): Delete la_emitchar initializer.
8065 (f_language::emitchar): New member function, implementation from
8066 f_emit_char.
8067 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8068 * language.c (unk_lang_emit_char): Delete.
8069 (language_defn::emitchar): New member function definition.
8070 (unknown_language_data): Delete la_emitchar initializer.
8071 (unknown_language::emitchar): New member function.
8072 (auto_language_data): Delete la_emitchar initializer.
8073 (auto_language::emitchar): New member function.
8074 * language.h (language_data): Delete la_emitchar field.
8075 (language_defn::emitchar): New member field declaration.
8076 (LA_EMIT_CHAR): Update call to emitchar.
8077 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8078 (m2_language_data): Delete la_emitchar initializer.
8079 (m2_language::emitchar): New member function, implementation from
8080 m2_emit_char.
8081 * objc-lang.c (objc_language_data): Delete la_emitchar
8082 initializer.
8083 * opencl-lang.c (opencl_language_data): Likewise.
8084 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8085 (pascal_language_data): Delete la_emitchar initializer.
8086 (pascal_language::emitchar): New member function, implementation
8087 from pascal_emit_char.
8088 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8089 (rust_language_data): Delete la_emitchar initializer.
8090 (rust_language::emitchar): New member function, implementation
8091 from rust_emitchar.
8092
1bf9c363
AB
80932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8094
8095 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8096 (ada_language_data): Delete la_post_parser initializer.
8097 (ada_language::post_parser): New member function.
8098 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8099 (cplus_language_data): Likewise.
8100 (asm_language_data): Likewise.
8101 (minimal_language_data): Likewise.
8102 * d-lang.c (d_language_data): Likewise.
8103 * f-lang.c (f_language_data): Likewise.
8104 * go-lang.c (go_language_data): Likewise.
8105 * language.c (unknown_language_data): Likewise.
8106 (auto_language_data): Likewise.
8107 * language.h (language_data): Delete la_post_parser field.
8108 (language_defn::post_parser): New member function.
8109 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8110 * objc-lang.c (objc_language_data): Likewise.
8111 * opencl-lang.c (opencl_language_data): Likewise.
8112 * p-lang.c (pascal_language_data): Likewise.
8113 * parse.c (parse_exp_in_context): Update call to post_parser.
8114 (null_post_parser): Delete definition.
8115 * parser-defs.h (null_post_parser): Delete declaration.
8116 * rust-lang.c (rust_language_data): Delete la_post_parser
8117 initializer.
8118
87afa652
AB
81192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8120
8121 * ada-lang.c (parse): Rename to ada_language::parser.
8122 (ada_language_data): Delete la_parser initializer.
8123 (ada_language::parser): New member function, implementation from
8124 parse.
8125 * c-lang.c (c_language_data): Delete la_parser initializer.
8126 (cplus_language_data): Likewise.
8127 (asm_language_data): Likewise.
8128 (minimal_language_data): Likewise.
8129 * d-lang.c (d_language_data): Likewise.
8130 (d_language::parser): New member function.
8131 * f-lang.c (f_language_data): Delete la_parser initializer.
8132 (f_language::parser): New member function.
8133 * go-lang.c (go_language_data): Delete la_parser initializer.
8134 (go_language::parser): New member function.
8135 * language.c (unk_lang_parser): Delete.
8136 (language_defn::parser): Define new member function.
8137 (unknown_language_data): Delete la_parser initializer.
8138 (unknown_language::parser): New member function.
8139 (auto_language_data): Delete la_parser initializer.
8140 (auto_language::parser): New member function.
8141 * language.h (language_data): Delete la_parser field.
8142 (language_defn::parser): Declare new member function.
8143 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8144 (m2_language::parser): New member function.
8145 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8146 * opencl-lang.c (opencl_language_data): Likewise.
8147 * p-lang.c (pascal_language_data): Likewise.
8148 (pascal_language::parser): New member function.
8149 * parse.c (parse_exp_in_context): Update call to parser.
8150 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8151 (rust_language::parser): New member function.
8152
37825800
AB
81532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8154
8155 * top.c (print_gdb_configuration): Print --with-python-libdir
8156 configuration value.
8157
5b860c93
PW
81582020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8159
8160 * NEWS: Mention change to the alias command.
8161
cf00cd6f
PW
81622020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8163
8164 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8165 (alias_command_completer)
8166 (make_alias_options_def_group): New functions.
8167 (alias_opts, alias_option_defs): New struct and array.
8168 (alias_usage_error): Update usage.
8169 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8170 Use option framework.
8171 (_initialize_cli_cmds): Update alias command help.
8172 Update aliases command help.
8173 (show_user):
8174 Add NULL for new default_args lookup_cmd argument.
8175 (valid_command_p): Rename to validate_aliased_command.
8176 Add NULL for new default_args lookup_cmd argument. Verify that the
8177 aliased_command has no default args.
8178 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8179 (lookup_cmd_1, lookup_cmd): New argument default_args.
8180 (add_alias_cmd):
8181 Add NULL for new default_args lookup_cmd argument.
8182 (print_help_for_command): Show default args under the layout
8183 alias some_alias = some_aliased_cmd some_alias_default_arg.
8184 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8185 xfree default_args in destructor.
8186 * cli/cli-script.c (process_next_line, do_define_command):
8187 Add NULL for new default_args lookup_cmd argument.
8188 * command.h: Declare new default_args argument in lookup_cmd
8189 and lookup_cmd_1.
8190 * completer.c (complete_line_internal_1):
8191 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8192 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8193 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8194 Likewise.
8195 * infcmd.c (_initialize_infcmd): Likewise.
8196 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8197 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8198 * python/py-param.c (add_setshow_generic): Likewise.
8199 * remote.c (_initialize_remote): Likewise.
8200 * top.c (execute_command): Prepend default_args if command has some.
8201 (set_verbose):
8202 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8203 * tracepoint.c (validate_actionline, encode_actions_1):
8204 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8205
bd920864
TBA
82062020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8207
8208 * jit.c (jit_read_descriptor): Use bool as the return type.
8209 (jit_breakpoint_re_set_internal): Use bool as the return type.
8210 Invert the return value logic; return true if the jit breakpoint
8211 has been successfully initialized.
8212 (jit_inferior_init): Update the call to
8213 jit_breakpoint_re_set_internal.
8214
f8098322
PA
82152020-06-22 Pedro Alves <palves@redhat.com>
8216
8217 PR gdb/25939
8218 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8219 Use the current inferior instead. Don't return
8220 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8221 wait again.
8222 * sol-thread.c (sol_thread_target::wait): Don't reference
8223 inferior_ptid.
8224 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8225 (sol_update_thread_list_callback): Use the current inferior's pid
8226 instead of inferior_ptid.
8227
196535a6
RO
82282020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8229
8230 * procfs.c: Cleanup many comments.
8231
8232 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8233 (AFTER_WATCHFLAG): Replace by value.
8234
8235 (MAIN_PROC_NAME_FORMAT): Inline ...
8236 (create_procinfo): ... here.
8237
8238 (procfs_debug_inferior): Remove SYS_exec handling.
8239 (syscall_is_exec): Likewise.
8240 (procfs_set_exec_trap): Likewise.
8241
8242 (syscall_is_lwp_exit): Inline in callers.
8243 (syscall_is_exit): Likewise.
8244 (syscall_is_exec): Likewise.
8245 (syscall_is_lwp_create): Likewise.
8246
8247 (invalidate_cache): Remove #if 0 code.
8248
8249 (make_signal_thread_runnable): Remove.
8250 (procfs_target::resume): Remove #if 0 code.
8251
cf6f3e86
RO
82522020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8253
8254 PR gdb/25939
8255 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8256 call ...
8257 (procfs_target::create_inferior): ... here.
8258
48e9cc84
PW
82592020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8260
8261 * exec.c (validate_exec_file): Ensure the build-id is up to
8262 date by calling reopen_exec_file (that checks file timestamp
8263 to decide to re-read the file).
8264
3922b302
PA
82652020-06-18 Pedro Alves <palves@redhat.com>
8266
8267 PR gdb/25412
8268 * gdbthread.h (delete_thread, delete_thread_silent)
8269 (find_thread_ptid): Update comments.
8270 * thread.c (current_thread_): New global.
8271 (is_current_thread): Move higher, and reimplement.
8272 (inferior_thread): Reimplement.
8273 (set_thread_exited): Use bool. Add assertions.
8274 (add_thread_silent): Simplify thread-reuse handling by always
8275 calling delete_thread.
8276 (delete_thread): Remove intro comment.
8277 (find_thread_ptid): Skip exited threads.
8278 (switch_to_thread_no_regs): Write to current_thread_.
8279 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8280 INFERIOR_PTID. Clear current_thread_.
8281
6dbdab44
PA
82822020-06-18 Pedro Alves <palves@redhat.com>
8283
8284 * aix-thread.c (pd_update): Use switch_to_thread.
8285
2da4b788
PA
82862020-06-18 Pedro Alves <palves@redhat.com>
8287
8288 * ravenscar-thread.c (ravenscar_thread_target): Update.
8289 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8290 (ravenscar_thread_target::add_active_thread): ... this. Don't
8291 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8292 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8293
50838d1b
PA
82942020-06-18 Pedro Alves <palves@redhat.com>
8295
8296 * nat/windows-nat.c (current_windows_thread): Remove.
8297 * nat/windows-nat.h (current_windows_thread): Remove.
8298 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8299 Adjust.
8300 (display_selectors): Adjust to fetch the current
8301 windows_thread_info based on inferior_ptid.
8302 (fake_create_process): No longer write to current_windows_thread.
8303 (windows_nat_target::get_windows_debug_event):
8304 Don't set inferior_ptid or current_windows_thread.
8305 (windows_nat_target::wait): Adjust to not rely on
8306 current_windows_thread.
8307 (do_initial_windows_stuff): Now a method of windows_nat_target.
8308 Switch to the last_ptid thread.
8309 (windows_nat_target::attach): Adjust.
8310 (windows_nat_target::detach): Use switch_to_no_thread instead of
8311 writing to inferior_ptid directly.
8312 (windows_nat_target::create_inferior): Adjust.
8313
31ce04e9
PA
83142020-06-18 Pedro Alves <palves@redhat.com>
8315
8316 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8317
1ee1a363
PA
83182020-06-18 Pedro Alves <palves@redhat.com>
8319
8320 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8321 after creating it, instead of writing to inferior_ptid. Don't
8322 write to inferior_ptid.
8323
6d350754
PA
83242020-06-18 Pedro Alves <palves@redhat.com>
8325
8326 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8327
5d971d48
PA
83282020-06-18 Pedro Alves <palves@redhat.com>
8329
8330 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8331 it, instead of writing to inferior_ptid.
8332
86e57d1b
PA
83332020-06-18 Pedro Alves <palves@redhat.com>
8334
8335 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8336 to inferior_ptid.
8337
f2e1c129
PA
83382020-06-18 Pedro Alves <palves@redhat.com>
8339
8340 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8341 instead of writing to inferior_ptid directly.
8342
60db1b85
PA
83432020-06-18 Pedro Alves <palves@redhat.com>
8344
8345 * corelow.c (core_target::close): Use switch_to_no_thread instead
8346 of writing to inferior_ptid directly.
8347 (add_to_thread_list, core_target_open): Use switch_to_thread
8348 instead of writing to inferior_ptid directly.
8349
fe7d6a8d
PA
83502020-06-18 Pedro Alves <palves@redhat.com>
8351
8352 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8353 inferior_ptid.
8354 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8355 inferior_ptid.
8356 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8357 inferior_ptid directly.
8358 (darwin_nat_target::init_thread_list): Switch to thread, instead
8359 of writing to inferior_ptid.
8360 (darwin_nat_target::attach): Don't write to inferior_ptid.
8361 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8362
975f8708
PA
83632020-06-18 Pedro Alves <palves@redhat.com>
8364
8365 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8366 thread.
8367 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8368 Instead use switch_to_thread.
8369 (gnu_nat_target::detach): Use switch_to_no_thread
8370 instead of writing to inferior_ptid directly. Used passed-in
8371 inferior instead of looking up the inferior by pid.
8372
1a204730
PA
83732020-06-18 Pedro Alves <palves@redhat.com>
8374
8375 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8376 inferior_ptid.
8377
ebe84f23
PA
83782020-06-18 Pedro Alves <palves@redhat.com>
8379
8380 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8381 inferior_ptid.
8382 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8383 thread.
8384 (nto_procfs_target::detach): Avoid referencing
8385 inferior_ptid. Use switch_to_no_thread instead of writing to
8386 inferior_ptid directly.
8387 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8388 instead of writing to inferior_ptid directly.
8389 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8390 to thread.
8391
191f02e5
PA
83922020-06-18 Pedro Alves <palves@redhat.com>
8393
8394 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8395 after creating it, instead of writing to inferior_ptid.
8396 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8397 to inferior_ptid directly.
8398 (gdbsim_target::wait): Don't write to inferior_ptid.
8399
0ac55310
PA
84002020-06-18 Pedro Alves <palves@redhat.com>
8401
8402 * remote.c (remote_target::remote_notice_new_inferior): Use
8403 switch_to_thread instead of writing to inferior_ptid directly.
8404 (remote_target::add_current_inferior_and_thread): Use
8405 switch_to_no_thread instead of writing to inferior_ptid directly.
8406 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8407 and switch_to_thread instead of using set_current_inferior or
8408 writing to inferior_ptid directly.
8409
5233f39b
PA
84102020-06-18 Pedro Alves <palves@redhat.com>
8411
8412 * tracectf.c (ctf_target_open): Switch to added thread instead of
8413 writing to inferior_ptid directly.
8414 (ctf_target::close): Use switch_to_no_thread instead of writing to
8415 inferior_ptid directly.
8416
087e161b
PA
84172020-06-18 Pedro Alves <palves@redhat.com>
8418
8419 * tracefile-tfile.c (tfile_target_open): Don't write to
8420 inferior_ptid directly, instead switch to added thread.
8421 (tfile_target::close): Use switch_to_no_thread instead of writing
8422 to inferior_ptid directly.
8423
7fb43e53
PA
84242020-06-18 Pedro Alves <palves@redhat.com>
8425
8426 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8427 (procfs_target::detach): Use switch_to_no_thread
8428 instead of writing to inferior_ptid directly.
8429 (do_attach): Change return type to void. Switch to the added
8430 thread.
8431 (procfs_target::create_inferior): Switch to the added thread.
8432 (procfs_do_thread_registers): Don't write to inferior_ptid.
8433
18493a00
PA
84342020-06-18 Pedro Alves <palves@redhat.com>
8435
8436 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8437 of writing to inferior_ptid.
8438 (scoped_restore_exited_inferior): Delete.
8439 (handle_vfork_child_exec_or_exit): Simplify using
8440 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8441 instead of writing to inferior_ptid.
8442 (THREAD_STOPPED_BY): Delete.
8443 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8444 (thread_stopped_by_hw_breakpoint): Delete.
8445 (save_waitstatus): Use
8446 scoped_restore_current_thread+switch_to_thread, and call
8447 target_stopped_by_watchpoint instead of
8448 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8449 instead of thread_stopped_by_sw_breakpoint, and
8450 target_stopped_by_hw_breakpoint instead of
8451 thread_stopped_by_hw_breakpoint.
8452 (handle_inferior_event)
8453 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8454 inferior_ptid directly, nor
8455 set_current_inferior/set_current_program_space. Use
8456 switch_to_thread / switch_to_inferior_no_thread instead.
8457
a0776b13
PA
84582020-06-18 Pedro Alves <palves@redhat.com>
8459
8460 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8461 instead of writing to inferior_ptid.
8462
6155c136
PA
84632020-06-18 Pedro Alves <palves@redhat.com>
8464
8465 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8466 added thread.
8467 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8468 to the added thread.
8469 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8470 instead of writing to inferior_ptid.
8471
c5316fc6
PA
84722020-06-18 Pedro Alves <palves@redhat.com>
8473
8474 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8475 (register_to_value_test): Mock a program_space too. Heap-allocate
8476 the address space. Don't write to inferior_ptid. Use
8477 switch_to_thread instead.
8478
8df01799
PA
84792020-06-18 Pedro Alves <palves@redhat.com>
8480
8481 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8482 Delete.
8483 (find_signalled_thread()): New, factored out from
8484 linux_make_corefile_notes and adjusted to handle exited threads.
8485 (linux_make_corefile_notes): Adjust to use the new
8486 find_signalled_thread.
8487
41792d68
PA
84882020-06-18 Pedro Alves <palves@redhat.com>
8489
8490 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8491 of saving/restoring inferior_ptid.
8492
612f258a
TT
84932020-06-17 Tom Tromey <tom@tromey.com>
8494
8495 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8496 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8497 declare.
8498 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8499
efb763a5
SM
85002020-06-15 Simon Marchi <simon.marchi@efficios.com>
8501
8502 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8503 of partial symtabs.
8504
2951f6c0
SM
85052020-06-17 Simon Marchi <simon.marchi@efficios.com>
8506
8507 * regformats/reg-arm.dat: Remove.
8508 * regformats/reg-bfin.dat: Remove.
8509 * regformats/reg-cris.dat: Remove.
8510 * regformats/reg-crisv32.dat: Remove.
8511 * regformats/reg-m32r.dat: Remove.
8512 * regformats/reg-tilegx.dat: Remove.
8513 * regformats/reg-tilegx32.dat: Remove.
8514
7d458ea5
SM
85152020-06-17 Simon Marchi <simon.marchi@efficios.com>
8516
8517 * features/Makefile (WHICH): Remove arm files.
8518 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8519 * regformats/arm/arm-with-neon.dat: Remove.
8520 * regformats/arm/arm-with-vfpv2.dat: Remove.
8521 * regformats/arm/arm-with-vfpv3.dat: Remove.
8522
3af96c0d
SM
85232020-06-17 Simon Marchi <simon.marchi@efficios.com>
8524
8525 * features/Makefile (XMLTOC): Remove rx.xml.
8526
b25e22fd
PA
85272020-06-17 Pedro Alves <palves@redhat.com>
8528
8529 * gdbthread.h (thread_control_state) <trap_expected> Update
8530 comments.
8531
a78a19b1
AB
85322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8533
8534 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8535 ada_language::lookup_symbol_nonlocal.
8536 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8537 (ada_language::lookup_symbol_nonlocal): New member function,
8538 implementation from ada_lookup_symbol_nonlocal.
8539 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8540 initializer.
8541 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8542 initializer.
8543 (cplus_language::lookup_symbol_nonlocal): New member function.
8544 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8545 (minimal_language_data) Likewise.
8546 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8547 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8548 initializer.
8549 (d_language::lookup_symbol_nonlocal): New member function.
8550 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8551 initializer.
8552 (f_language::lookup_symbol_nonlocal): New member function.
8553 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8554 initializer.
8555 * language.c (unknown_language_data): Likewise.
8556 (auto_language_data): Likewise.
8557 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8558 field.
8559 (language_defn::lookup_symbol_nonlocal): New member function.
8560 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8561 initializer.
8562 * objc-lang.c (objc_language_data): Likewise.
8563 * opencl-lang.c (opencl_language_data): Likewise.
8564 * p-lang.c (pascal_language_data): Likewise.
8565 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8566 rust_language::lookup_symbol_nonlocal.
8567 (rust_language_data): Delete la_lookup_symbol_nonlocal
8568 initializer.
8569 (rust_language::lookup_symbol_nonlocal): New member function,
8570 implementation from rust_lookup_symbol_nonlocal.
8571 * symtab.c (lookup_symbol_aux): Update call to
8572 lookup_symbol_nonlocal.
8573 (basic_lookup_symbol_nonlocal): Rename to...
8574 (language_defn::lookup_symbol_nonlocal): ...this, and update
8575 header comment. Remove language_defn parameter, and replace with
8576 uses of `this'.
8577 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8578
ebe2334e
AB
85792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8580
8581 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8582 initializer.
8583 (ada_language::value_print_inner): New member function.
8584 * c-lang.c (c_language_data): Delete la_value_print_inner
8585 initializer.
8586 (cplus_language_data): Likewise.
8587 (asm_language_data): Likewise.
8588 (minimal_language_data): Likewise.
8589 * d-lang.c (d_language_data): Likewise.
8590 (d_language::value_print_inner): New member function.
8591 * f-lang.c (f_language_data): Delete la_value_print_inner
8592 initializer.
8593 (f_language::value_print_inner): New member function.
8594 * f-lang.h (f_value_print_innner): Rename to...
8595 (f_value_print_inner): ...this (note spelling of 'inner').
8596 * f-valprint.c (f_value_print_innner): Rename to...
8597 (f_value_print_inner): ...this (note spelling of 'inner').
8598 * go-lang.c (go_language_data): Delete la_value_print_inner
8599 initializer.
8600 (go_language::value_print_inner): New member function.
8601 * language.c (language_defn::value_print_inner): Define new member
8602 function.
8603 (unk_lang_value_print_inner): Delete.
8604 (unknown_language_data): Delete la_value_print_inner initializer.
8605 (unknown_language::value_print_inner): New member function.
8606 (auto_language_data): Delete la_value_print_inner initializer.
8607 (auto_language::value_print_inner): New member function.
8608 * language.h (language_data): Delete la_value_print_inner field.
8609 (language_defn::value_print_inner): Delcare new member function.
8610 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8611 initializer.
8612 (m2_language::value_print_inner): New member function.
8613 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8614 initializer.
8615 * opencl-lang.c (opencl_language_data): Likewise.
8616 * p-lang.c (pascal_language_data): Likewise.
8617 (pascal_language::value_print_inner): New member function.
8618 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8619 initializer.
8620 (rust_language::value_print_inner): New member function.
8621 * valprint.c (do_val_print): Update call to value_print_inner.
8622
a1d1fa3e
AB
86232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8624
8625 * ada-lang.c (ada_language_data): Delete la_value_print
8626 initializer.
8627 (ada_language::value_print): New member function.
8628 * c-lang.c (c_language_data): Delete la_value_print initializer.
8629 (cplus_language_data): Likewise.
8630 (asm_language_data): Likewise.
8631 (minimal_language_data): Likewise.
8632 * d-lang.c (d_language_data): Likewise.
8633 * f-lang.c (f_language_data): Likewise.
8634 * go-lang.c (go_language_data): Likewise.
8635 * language.c (unk_lang_value_print): Delete.
8636 (language_defn::value_print): Define new member function.
8637 (unknown_language_data): Delete la_value_print initializer.
8638 (unknown_language::value_print): New member function.
8639 (auto_language_data): Delete la_value_print initializer.
8640 (auto_language::value_print): New member function.
8641 * language.h (language_data): Delete la_value_print field.
8642 (language_defn::value_print): Declare new member function.
8643 (LA_VALUE_PRINT): Update call to value_print.
8644 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8645 * objc-lang.c (objc_language_data): Likewise.
8646 * opencl-lang.c (opencl_language_data): Likewise.
8647 * p-lang.c (pascal_language_data): Likewise.
8648 (pascal_language::value_print): New member function.
8649 * rust-lang.c (rust_language_data): Delete la_value_print
8650 initializer.
8651
f16a9f57
AB
86522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8653
8654 * ada-lang.c (ada_watch_location_expression): Rename to
8655 ada_language::watch_location_expression.
8656 (ada_language_data): Delete la_watch_location_expression
8657 initializer.
8658 (ada_language::watch_location_expression): New member function,
8659 implementation from ada_watch_location_expression.
8660 * breakpoint.c (watch_command_1): Update call to
8661 watch_location_expression.
8662 * c-lang.c (c_watch_location_expression): Rename to
8663 language_defn::watch_location_expression.
8664 (c_language_data): Delete la_watch_location_expression
8665 initializer.
8666 (cplus_language_data): Likewise.
8667 (asm_language_data): Likewise.
8668 (minimal_language_data): Likewise.
8669 * c-lang.h (c_watch_location_expression): Delete declaration.
8670 * d-lang.c (d_language_data): Delete la_watch_location_expression
8671 initializer.
8672 * f-lang.c (f_language_data): Likewise.
8673 * go-lang.c (go_language_data): Likewise.
8674 * language.c (language_defn::watch_location_expression): Member
8675 function implementation from c_watch_location_expression.
8676 (unknown_language_data): Delete la_watch_location_expression
8677 initializer.
8678 (auto_language_data): Likewise.
8679 * language.h (language_data): Delete la_watch_location_expression
8680 field.
8681 (language_defn::watch_location_expression): Declare new member
8682 function.
8683 * m2-lang.c (m2_language_data): Delete
8684 la_watch_location_expression initializer.
8685 * objc-lang.c (objc_language_data): Likewise.
8686 * opencl-lang.c (opencl_language_data): Likewise.
8687 * p-lang.c (pascal_language_data): Likewise.
8688 * rust-lang.c (rust_watch_location_expression): Rename to
8689 rust_language::watch_location_expression.
8690 (rust_language_data): Delete la_watch_location_expression
8691 initializer.
8692 (rust_language::watch_location_expression): New member function,
8693 implementation from rust_watch_location_expression.
8694
7e56227d
AB
86952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8696
8697 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8698 ada_language::collect_symbol_completion_matches.
8699 (ada_language_data): Delete la_collect_symbol_completion_matches
8700 initializer.
8701 (ada_language::collect_symbol_completion_matches): New member
8702 function, implementation from
8703 ada_collect_symbol_completion_matches.
8704 * c-lang.c (c_language_data): Delete
8705 la_collect_symbol_completion_matches initializer.
8706 (cplus_language_data): Likewise.
8707 (asm_language_data): Likewise.
8708 (minimal_language_data): Likewise.
8709 * d-lang.c (d_language_data): Likewise.
8710 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8711 f_language::collect_symbol_completion_matches.
8712 (f_language_data): Delete la_collect_symbol_completion_matches
8713 initializer.
8714 (f_language::collect_symbol_completion_matches) New member
8715 function, implementation from f_collect_symbol_completion_matches.
8716 * go-lang.c (go_language_data): Delete
8717 la_collect_symbol_completion_matches initializer.
8718 * language.c (unknown_language_data): Likewise.
8719 (auto_language_data): Likewise.
8720 * language.h (language_data): Delete
8721 la_collect_symbol_completion_matches field.
8722 (language_defn::collect_symbol_completion_matches): New member
8723 function.
8724 * m2-lang.c (m2_language_data): Delete
8725 la_collect_symbol_completion_matches initializer.
8726 * objc-lang.c (objc_language_data): Likewise.
8727 * opencl-lang.c (opencl_language_data): Likewise.
8728 * p-lang.c (pascal_language_data): Likewise.
8729 * rust-lang.c (rust_language_data): Likewise.
8730 * symtab.c (default_collect_symbol_completion_matches): Delete.
8731 (collect_symbol_completion_matches): Update call to
8732 collect_symbol_completion_matches.
8733 (collect_symbol_completion_matches_type): Likewise.
8734 * symtab.h (default_collect_symbol_completion_matches): Delete
8735 declaration.
8736
53fc67f8
AB
87372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8738
8739 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8740 (ada_language_data): Delete la_word_break_characters initializer.
8741 (ada_language::word_break_characters): New member function.
8742 * c-lang.c (c_language_data): Delete la_word_break_characters
8743 initializer.
8744 (cplus_language_data): Likewise.
8745 (asm_language_data): Likewise.
8746 (minimal_language_data): Likewise.
8747 * completer.c: Update global comment.
8748 (advance_to_expression_complete_word_point): Update call to
8749 word_break_characters.
8750 (complete_files_symbols): Likewise.
8751 (complete_line_internal_1): Likewise.
8752 (default_completer_handle_brkchars): Likewise.
8753 (skip_quoted_chars): Likewise.
8754 * d-lang.c (d_language_data): Delete la_word_break_characters
8755 initializer.
8756 * f-lang.c (f_word_break_characters): Delete.
8757 (f_language_data): Delete la_word_break_characters initializer.
8758 (f_language::word_break_characters): New member function.
8759 * go-lang.c (go_language_data): Delete la_word_break_characters
8760 initializer.
8761 * language.c (unknown_language_data): Likewise.
8762 (auto_language_data): Likewise.
8763 * language.h (default_word_break_characters): Move declaration to
8764 earlier in the file.
8765 (language_data): Delete la_word_break_characters field.
8766 (language_defn::word_break_characters): New member function.
8767 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8768 initializer.
8769 * objc-lang.c (objc_language_data): Likewise.
8770 * opencl-lang.c (opencl_language_data): Likewise.
8771 * p-lang.c (pascal_language_data): Likewise.
8772 * rust-lang.c (rust_language_data): Likewise.
8773
c9debfb9
AB
87742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8775
8776 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8777 (ada_language_data): Delete la_get_symbol_name_matcher
8778 initializer.
8779 (language_defn::get_symbol_name_matcher_inner): New member
8780 function.
8781 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8782 initializer.
8783 (cplus_language_data): Likewise.
8784 (cplus_language::get_symbol_name_matcher_inner): New member
8785 function.
8786 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8787 (minimal_language_data): Likewise.
8788 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8789 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8790 initializer.
8791 * dictionary.c (iter_match_first_hashed): Update call to
8792 get_symbol_name_matcher.
8793 (iter_match_next_hashed): Likewise.
8794 (iter_match_next_linear): Likewise.
8795 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8796 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8797 initializer.
8798 (f_language::get_symbol_name_matcher_inner): New member function.
8799 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8800 initializer.
8801 * language.c (default_symbol_name_matcher): Update header comment,
8802 make static.
8803 (language_defn::get_symbol_name_matcher): New definition.
8804 (language_defn::get_symbol_name_matcher_inner): Likewise.
8805 (get_symbol_name_matcher): Delete.
8806 (unknown_language_data): Delete la_get_symbol_name_matcher
8807 initializer.
8808 (auto_language_data): Likewise.
8809 * language.h (language_data): Delete la_get_symbol_name_matcher
8810 field.
8811 (language_defn::get_symbol_name_matcher): New member function.
8812 (language_defn::get_symbol_name_matcher_inner): Likewise.
8813 (default_symbol_name_matcher): Delete declaration.
8814 * linespec.c (find_methods): Update call to
8815 get_symbol_name_matcher.
8816 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8817 initializer.
8818 * minsyms.c (lookup_minimal_symbol): Update call to
8819 get_symbol_name_matcher.
8820 (iterate_over_minimal_symbols): Likewise.
8821 * objc-lang.c (objc_language_data): Delete
8822 la_get_symbol_name_matcher initializer.
8823 * opencl-lang.c (opencl_language_data): Likewise.
8824 * p-lang.c (pascal_language_data): Likewise.
8825 * psymtab.c (psymbol_name_matches): Update call to
8826 get_symbol_name_matcher.
8827 * rust-lang.c (rust_language_data): Delete
8828 la_get_symbol_name_matcher initializer.
8829 * symtab.c (symbol_matches_search_name): Update call to
8830 get_symbol_name_matcher.
8831 (compare_symbol_name): Likewise.
8832
9a49ad8c
AB
88332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8834
8835 * ada-lang.c (ada_language_data): Delete la_compute_program
8836 initializer.
8837 * c-lang.c (c_language_data): Likewise.
8838 (c_language::compute_program): New member function.
8839 (cplus_language_data): Delete la_compute_program initializer.
8840 (cplus_language::compute_program): New member function.
8841 (asm_language_data): Delete la_compute_program initializer.
8842 (minimal_language_data): Likewise.
8843 * c-lang.h (c_compute_program): Update comment.
8844 (cplus_compute_program): Likewise.
8845 * compile/compile-c-support.c (c_compute_program): Likewise.
8846 (cplus_compute_program): Likewise.
8847 * compile/compile.c (compile_to_object): Update call to
8848 la_compute_program.
8849 * d-lang.c (d_language_data): Delete la_compute_program
8850 initializer.
8851 * f-lang.c (f_language_data): Likewise.
8852 * go-lang.c (go_language_data): Likewise.
8853 * language.c (unknown_language_data): Likewise.
8854 (auto_language_data): Likewise.
8855 * language.h (language_data): Delete la_compute_program field.
8856 (language_defn::compute_program): New member function.
8857 * m2-lang.c (m2_language_data): Delete la_compute_program
8858 initializer.
8859 * objc-lang.c (objc_language_data): Likewise.
8860 * opencl-lang.c (opencl_language_data): Likewise.
8861 * p-lang.c (pascal_language_data): Likewise.
8862 * rust-lang.c (rust_language_data): Likewise.
8863
eff93b4d
AB
88642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8865
8866 * ada-lang.c (ada_language_data) Delete
8867 la_class_name_from_physname initializer.
8868 * c-lang.c (c_language_data): Likewise.
8869 (cplus_language_data): Likewise.
8870 (cplus_language::class_name_from_physname): New member function.
8871 (asm_language_data): Delete la_class_name_from_physname
8872 initializer.
8873 (minimal_language_data): Likewise.
8874 * d-lang.c (d_language_data): Likewise.
8875 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8876 method on language_defn class.
8877 (guess_full_die_structure_name): Likewise.
8878 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8879 initializer.
8880 * go-lang.c (go_language_data): Likewise.
8881 * language.c (language_class_name_from_physname): Delete.
8882 (unk_lang_class_name): Delete.
8883 (unknown_language_data): Delete la_class_name_from_physname
8884 initializer.
8885 (auto_language_data): Likewise.
8886 * language.h (language_data): Delete la_class_name_from_physname
8887 field.
8888 (language_defn::class_name_from_physname): New function.
8889 (language_class_name_from_physname): Delete declaration.
8890 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8891 initializer.
8892 * objc-lang.c (objc_language_data): Likewise.
8893 * opencl-lang.c (opencl_language_data): Likewise.
8894 * p-lang.c (pascal_language_data): Likewise.
8895 * rust-lang.c (rust_language_data): Likewise.
8896
de543742
TT
88972020-06-16 Tom Tromey <tom@tromey.com>
8898
8899 * tui/tui-data.h (STATUS_NAME): New macro.
8900 * tui/tui-layout.c (tui_remove_some_windows)
8901 (initialize_known_windows, tui_register_window)
8902 (tui_layout_split::remove_windows, initialize_layouts)
8903 (tui_new_layout_command): Don't use hard-coded window names.
8904
a350efd4
TT
89052020-06-16 Tom Tromey <tom@tromey.com>
8906
8907 PR tui/25348:
8908 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8909 tui_initialize_readline. Only run once. Call rl_initialize.
8910 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8911 tui_initialize_readline.
8912 * tui/tui-io.c (tui_setup_io): Call
8913 tui_ensure_readline_initialized.
8914 * tui/tui-interp.c (tui_interp::init): Update.
8915
39ec0490
TT
89162020-06-16 Tom Tromey <tom@tromey.com>
8917
8918 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8919 Also preserve the status window.
8920
d2d1ea20
TT
89212020-06-16 Tom Tromey <tom@tromey.com>
8922
8923 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8924 where m_window==nullptr.
8925
66920317
TT
89262020-06-15 Tom Tromey <tromey@adacore.com>
8927
8928 * windows-nat.c (windows_nat::handle_output_debug_string):
8929 Update.
8930 (windows_nat::handle_ms_vc_exception): Update.
8931 * target.h (target_read_string): Change API.
8932 * target.c (target_read_string): Change API.
8933 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8934 Update.
8935 * solib-frv.c (frv_current_sos): Update.
8936 * solib-dsbt.c (dsbt_current_sos): Update.
8937 * solib-darwin.c (darwin_current_sos): Update.
8938 * linux-thread-db.c (inferior_has_bug): Update.
8939 * expprint.c (print_subexp_standard): Update.
8940 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8941 (ada_exception_message_1): Update.
8942
a5d871dd
TT
89432020-06-15 Tom Tromey <tromey@adacore.com>
8944
8945 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8946
670e35fa
TT
89472020-06-15 Tom Tromey <tromey@adacore.com>
8948
8949 * valprint.c (read_string): Update comment.
8950 * target.c (MIN): Remove.
8951 (target_read_string): Rewrite.
8952
f5272a3b
TT
89532020-06-15 Tom Tromey <tromey@adacore.com>
8954
8955 * corefile.c (read_memory_string): Remove.
8956 * ada-valprint.c (ada_value_print_ptr): Update.
8957 * ada-lang.h (ada_tag_name): Change return type.
8958 * ada-lang.c (type_from_tag): Update.
8959 (ada_tag_name_from_tsd): Change return type. Use
8960 target_read_string.
8961 (ada_tag_name): Likewise.
8962 * gdbcore.h (read_memory_string): Don't declare.
8963
2c074f49
HD
89642020-06-14 Hannes Domani <ssbssa@yahoo.de>
8965
8966 * symtab.c (rbreak_command): Ignore Windows drive colon.
8967
6a17d503
SM
89682020-06-12 Simon Marchi <simon.marchi@efficios.com>
8969
8970 * NEWS: Mention removed GDBserver host support.
8971
453c733f
NC
89722020-06-12 Nelson Chu <nelson.chu@sifive.com>
8973
8974 * features/riscv/rebuild-csr-xml.sh: Updated.
8975
2b4e6a3f
TT
89762020-06-11 Tom Tromey <tom@tromey.com>
8977
8978 PR gdb/18318:
8979 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8980
4412332f
JG
89812020-06-09 Jonny Grant <jg@jguk.org>
89822020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8983
8984 * main.c (captured_main_1): Don't print new line after help.
8985 (print_gdb_help): add mailing list and IRC channel information
8986 to --help. Add new lines between items in the footer. Remove
8987 quotes around bug url.
8988
2f33032a
KS
89892020-06-11 Keith Seitz <keiths@redhat.com>
8990
8991 PR gdb/21356
8992 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8993 Resolve typedefs for type length calculations.
8994
7ab96794
TV
89952020-06-10 Tom de Vries <tdevries@suse.de>
8996
8997 PR ada/24713
8998 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8999 (write_psymbols): Enable .gdb_index for ada.
9000 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9001 ada.
9002
e5f3ece2
TV
90032020-06-10 Tom de Vries <tdevries@suse.de>
9004
9005 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9006 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9007 namei" instead of "const char *name" argument.
9008 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9009 dw2_symtab_iter_init.
9010
940da03e
SM
90112020-06-08 Simon Marchi <simon.marchi@efficios.com>
9012
9013 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9014 to use type::field and field::type instead.
9015
b6cdac4b
SM
90162020-06-08 Simon Marchi <simon.marchi@efficios.com>
9017
9018 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9019 to use field::type instead.
9020
5d14b6e5
SM
90212020-06-08 Simon Marchi <simon.marchi@efficios.com>
9022
9023 * gdbtypes.h (struct field) <type, set_type>: New methods.
9024 Rename `type` field to...
9025 <m_type>: ... this. Change references throughout to use type or
9026 set_type methods.
9027 (FIELD_TYPE): Use field::type. Change call sites that modify
9028 the field's type to use field::set_type instead.
9029
3d967001
SM
90302020-06-08 Simon Marchi <simon.marchi@efficios.com>
9031
9032 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9033 to use type::index_type instead.
9034
262abc0d
SM
90352020-06-08 Simon Marchi <simon.marchi@efficios.com>
9036
9037 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9038 methods.
9039 (TYPE_INDEX_TYPE): Use type::index_type.
9040 * gdbtypes.c (create_array_type_with_stride): Likewise.
9041
82836c92
TT
90422020-06-07 Tom Tromey <tom@tromey.com>
9043
9044 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9045 parameter.
9046 (generic_value_print): Update.
9047
940dace9
AB
90482020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9049
9050 Revert commit 982a38f60b0.
9051 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9052
982a38f6
AB
90532020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9054
9055 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9056 avoid use after free.
9057
82f06518
TV
90582020-06-05 Tom de Vries <tdevries@suse.de>
9059
9060 * NEWS: Fix typos.
9061
f8c41851
SM
90622020-06-04 Simon Marchi <simon.marchi@efficios.com>
9063
9064 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9065 the per_bfd object.
9066 (dwarf2_read_debug_names): Likewise.
9067 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9068 object when re-using a per_bfd object with an index.
9069
f9b5d5ea
TV
90702020-06-03 Tom de Vries <tdevries@suse.de>
9071
9072 PR symtab/26046
9073 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9074 children for C++.
9075 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9076 DW_TAG_subprogram.
9077
f6eee2d0
AB
90782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9079
9080 * ada-lang.c (ada_language_data): Delete skip_trampoline
9081 initializer.
9082 * c-lang.c (c_language_data): Likewise.
9083 (cplus_language_data): Likewise.
9084 (cplus_language::skip_trampoline): New member function.
9085 (asm_language_data): Delete skip_trampoline initializer.
9086 (minimal_language_data): Likewise.
9087 * d-lang.c (d_language_data): Likewise.
9088 * f-lang.c (f_language_data): Likewise.
9089 * go-lang.c (go_language_data): Likewise.
9090 * language.c (unk_lang_trampoline): Delete function.
9091 (skip_language_trampoline): Update.
9092 (unknown_language_data): Delete skip_trampoline initializer.
9093 (auto_language_data): Likewise.
9094 * language.h (language_data): Delete skip_trampoline field.
9095 (language_defn::skip_trampoline): New function.
9096 * m2-lang.c (m2_language_data): Delete skip_trampoline
9097 initializer.
9098 * objc-lang.c (objc_skip_trampoline): Delete function, move
9099 implementation to objc_language::skip_trampoline.
9100 (objc_language_data): Delete skip_trampoline initializer.
9101 (objc_language::skip_trampoline): New member function with
9102 implementation from objc_skip_trampoline.
9103 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9104 initializer.
9105 * p-lang.c (pascal_language_data): Likewise.
9106 * rust-lang.c (rust_language_data): Likewise.
9107
0a50df5d
AB
91082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9109
9110 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9111 (ada_language::demangle): New member function.
9112 * c-lang.c (c_language_data): Delete la_demangle initializer.
9113 (cplus_language_data): Delete la_demangle initializer.
9114 (cplus_language::demangle): New member function.
9115 (asm_language_data): Delete la_demangle initializer.
9116 (minimal_language_data): Delete la_demangle initializer.
9117 * d-lang.c (d_language_data): Delete la_demangle initializer.
9118 (d_language::demangle): New member function.
9119 * f-lang.c (f_language_data): Delete la_demangle initializer.
9120 (f_language::demangle): New member function.
9121 * go-lang.c (go_language_data): Delete la_demangle initializer.
9122 (go_language::demangle): New member function.
9123 * language.c (language_demangle): Update.
9124 (unk_lang_demangle): Delete.
9125 (unknown_language_data): Delete la_demangle initializer.
9126 (unknown_language::demangle): New member function.
9127 (auto_language_data): Delete la_demangle initializer.
9128 (auto_language::demangle): New member function.
9129 * language.h (language_data): Delete la_demangle field.
9130 (language_defn::demangle): New function.
9131 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9132 * objc-lang.c (objc_language_data): Delete la_demangle
9133 initializer.
9134 (objc_language::demangle): New member function.
9135 * opencl-lang.c (opencl_language_data): Delete la_demangle
9136 initializer.
9137 * p-lang.c (pascal_language_data): Likewise.
9138 * rust-lang.c (rust_language_data): Likewise.
9139 (rust_language::demangle): New member function.
9140
fbfb0a46
AB
91412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9142
9143 * ada-lang.c (ada_language_data): Delete la_print_type
9144 initializer.
9145 (ada_language::print_type): New member function.
9146 * c-lang.c (c_language_data): Delete la_print_type initializer.
9147 (c_language::print_type): New member function.
9148 (cplus_language_data): Delete la_print_type initializer.
9149 (cplus_language::print_type): New member function.
9150 (asm_language_data): Delete la_print_type initializer.
9151 (asm_language::print_type): New member function.
9152 (minimal_language_data): Delete la_print_type initializer.
9153 (minimal_language::print_type): New member function.
9154 * d-lang.c (d_language_data): Delete la_print_type initializer.
9155 (d_language::print_type): New member function.
9156 * f-lang.c (f_language_data): Delete la_print_type initializer.
9157 (f_language::print_type): New member function.
9158 * go-lang.c (go_language_data): Delete la_print_type initializer.
9159 (go_language::print_type): New member function.
9160 * language.c (unk_lang_print_type): Delete.
9161 (unknown_language_data): Delete la_print_type initializer.
9162 (unknown_language::print_type): New member function.
9163 (auto_language_data): Delete la_print_type initializer.
9164 (auto_language::print_type): New member function.
9165 * language.h (language_data): Delete la_print_type field.
9166 (language_defn::print_type): New function.
9167 (LA_PRINT_TYPE): Update.
9168 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9169 (m2_language::print_type): New member function.
9170 * objc-lang.c (objc_language_data): Delete la_print_type
9171 initializer.
9172 (objc_language::print_type): New member function.
9173 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9174 to opencl_language::print_type.
9175 (opencl_language_data): Delete la_print_type initializer.
9176 (opencl_language::print_type): New member function, implementation
9177 from opencl_print_type.
9178 * p-lang.c (pascal_language_data): Delete la_print_type
9179 initializer.
9180 (pascal_language::print_type): New member function.
9181 * rust-lang.c (rust_print_type): Delete, implementation moved to
9182 rust_language::print_type.
9183 (rust_language_data): Delete la_print_type initializer.
9184 (rust_language::print_type): New member function, implementation
9185 from rust_print_type.
9186
6f827019
AB
91872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9188
9189 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9190 implementation moves to...
9191 (ada_language::sniff_from_mangled_name): ...here. Update return
9192 type.
9193 (ada_language_data): Delete la_sniff_from_mangled_name
9194 initializer.
9195 * c-lang.c (c_language_data): Likewise.
9196 (cplus_language_data): Likewise.
9197 (cplus_language::sniff_from_mangled_name): New member function,
9198 implementation taken from gdb_sniff_from_mangled_name.
9199 (asm_language_data): Delete la_sniff_from_mangled_name
9200 initializer.
9201 (minimal_language_data): Likewise.
9202 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9203 implementation moves to cplus_language::sniff_from_mangled_name.
9204 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9205 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9206 moves to...
9207 (d_language::sniff_from_mangled_name): ...here.
9208 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9209 * f-lang.c (f_language_data): Likewise.
9210 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9211 moves to...
9212 (go_language::sniff_from_mangled_name): ...here.
9213 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9214 * language.c (language_sniff_from_mangled_name): Delete.
9215 (unknown_language_data): Delete la_sniff_from_mangled_name
9216 initializer.
9217 (auto_language_data): Likewise.
9218 * language.h (language_data): Delete la_sniff_from_mangled_name
9219 field.
9220 (language_defn::sniff_from_mangled_name): New function.
9221 (language_sniff_from_mangled_name): Delete declaration.
9222 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9223 field.
9224 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9225 implementation moves to...
9226 (objc_language::sniff_from_mangled_name): ...here.
9227 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9228 * opencl-lang.c (opencl_language_data): Likewise.
9229 * p-lang.c (pascal_language_data): Likewise.
9230 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9231 implementation moves to...
9232 (rust_language::sniff_from_mangled_name): ...here.
9233 (rust_language_data): Delete la_sniff_from_mangled_name
9234 initializer.
9235 * symtab.c (symbol_find_demangled_name): Call
9236 sniff_from_mangled_name member function.
9237
fb8006fd
AB
92382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9239
9240 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9241 initializer.
9242 * c-lang.c (c_language_data): Likewise.
9243 (cplus_language_data): Likewise.
9244 (cplus_language::search_name_hash): New member function.
9245 (asm_language_data): Delete la_search_name_hash initializer.
9246 (minimal_language_data): Likewise.
9247 * d-lang.c (d_language_data): Likewise.
9248 * dictionary.c (default_search_name_hash): Rename to...
9249 (language_defn::search_name_hash): ...this.
9250 * f-lang.c (f_language_data): Likewise.
9251 (f_language::search_name_hash): New member function.
9252 * go-lang.c (go_language_data): Delete la_search_name_hash
9253 initializer.
9254 * language.c (unknown_language_data): Likewise.
9255 (auto_language_data): Likewise.
9256 * language.h (struct language_data): Delete la_search_name_hash
9257 field.
9258 (language_defn::search_name_hash): Declare new member function.
9259 (default_search_name_hash): Delete declaration.
9260 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9261 initializer.
9262 * objc-lang.c (objc_language_data): Likewise.
9263 * opencl-lang.c (opencl_language_data): Likewise.
9264 * p-lang.c (pascal_language_data): Likewise.
9265 * rust-lang.c (rust_language_data): Likewise.
9266 * symtab.c (search_name_hash): Update call.
9267
8e25bafe
AB
92682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9269
9270 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9271 initializer.
9272 * c-lang.c (class compile_instance): Declare.
9273 (c_language_data): Delete la_get_compile_instance initializer.
9274 (c_language::get_compile_instance): New member function.
9275 (cplus_language_data): Delete la_get_compile_instance initializer.
9276 (cplus_language::get_compile_instance): New member function.
9277 (asm_language_data): Delete la_get_compile_instance initializer.
9278 (minimal_language_data): Likewise.
9279 * c-lang.h (c_get_compile_context): Update comment.
9280 (cplus_get_compile_context): Update comment.
9281 * compile/compile.c (compile_to_object): Update calls, don't rely
9282 on function pointer being NULL.
9283 * d-lang.c (d_language_data): Delete la_get_compile_instance
9284 initializer.
9285 * f-lang.c (f_language_data): Likewise.
9286 * go-lang.c (go_language_data): Likewise.
9287 * language.c (unknown_language_data): Likewise.
9288 (auto_language_data): Likewise.
9289 * language.h (language_data): Delete la_get_compile_instance field.
9290 (language_defn::get_compile_instance): New member function.
9291 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9292 initializer.
9293 * objc-lang.c (objc_language_data): Likewise.
9294 * opencl-lang.c (opencl_language_data): Likewise.
9295 * p-lang.c (pascal_language_data): Likewise.
9296 * rust-lang.c (rust_language_data): Likewise.
9297
4009ee92
AB
92982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9299
9300 * ada-lang.c (ada_add_all_symbols): Update comment.
9301 (ada_iterate_over_symbols): Delete, move implementation to...
9302 (ada_language::iterate_over_symbols): ...here, a new member
9303 function, rewrite to use range based for loop.
9304 (ada_language_data): Delete la_iterate_over_symbols initializer.
9305 * c-lang.c (c_language_data): Likewise.
9306 (cplus_language_data): Likewise.
9307 (asm_language_data): Likewise.
9308 (minimal_language_data): Likewise.
9309 * d-lang.c (d_language_data): Likewise.
9310 * f-lang.c (f_language_data): Likewise.
9311 * go-lang.c (go_language_data): Likewise.
9312 * language.c (unknown_language_data): Likewise.
9313 (auto_language_data): Likewise.
9314 * language.h (language_data): Delete la_iterate_over_symbols field.
9315 (language_defn::iterate_over_symbols): New member function.
9316 (LA_ITERATE_OVER_SYMBOLS): Update.
9317 * linespec.c (iterate_over_all_matching_symtabs): Update.
9318 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9319 initializer.
9320 * objc-lang.c (objc_language_data): Likewise.
9321 * opencl-lang.c (opencl_language_data): Likewise.
9322 * p-lang.c (pascal_language_data): Likewise.
9323 * rust-lang.c (rust_language_data): Likewise.
9324
54f4ca46
AB
93252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9326
9327 * ada-lang.c (ada_language_data): Delete
9328 la_lookup_transparent_type initializer.
9329 * c-lang.c (c_language_data): Likewise.
9330 (cplus_language_data): Likewise.
9331 (cplus_language::lookup_transparent_type): New member function.
9332 (asm_language_data): Delete la_lookup_transparent_type
9333 initializer.
9334 (minimal_language_data): Likewise.
9335 * d-lang.c (d_language_data): Likewise.
9336 * f-lang.c (f_language_data): Likewise.
9337 * go-lang.c (go_language_data): Likewise.
9338 * language.c (unknown_language_data): Likewise.
9339 (auto_language_data): Likewise.
9340 * language.h (struct language_data): Delete
9341 la_lookup_transparent_type field.
9342 (language_defn::lookup_transparent_type): New member function.
9343 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9344 initializer.
9345 * objc-lang.c (objc_language_data): Likewise.
9346 * opencl-lang.c (opencl_language_data): Likewise.
9347 * p-lang.c (pascal_language_data): Likewise.
9348 * rust-lang.c (rust_language_data): Likewise.
9349 * symtab.c (symbol_matches_domain): Update call.
9350
1fb314aa
AB
93512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9352
9353 * ada-lang.c (ada_language_arch_info): Delete function, move
9354 implementation to...
9355 (ada_language::language_arch_info): ...here, a new member
9356 function.
9357 (ada_language_data): Delete la_language_arch_info.
9358 * c-lang.c (c_language_data): Likewise.
9359 (c_language::language_arch_info): New member function.
9360 (cplus_language_arch_info): Delete function, move
9361 implementation to...
9362 (cplus_language::language_arch_info): ...here, a new member
9363 function.
9364 (cplus_language_data): Delete la_language_arch_info.
9365 (asm_language_data): Likewise.
9366 (asm_language::language_arch_info): New member function.
9367 (minimal_language_data): Delete la_language_arch_info.
9368 (minimal_language::language_arch_info): New member function.
9369 * d-lang.c (d_language_arch_info): Delete function, move
9370 implementation to...
9371 (d_language::language_arch_info): ...here, a new member
9372 function.
9373 (d_language_data): Delete la_language_arch_info.
9374 * f-lang.c (f_language_arch_info): Delete function, move
9375 implementation to...
9376 (f_language::language_arch_info): ...here, a new member
9377 function.
9378 (f_language_data): Delete la_language_arch_info.
9379 * go-lang.c (go_language_arch_info): Delete function, move
9380 implementation to...
9381 (go_language::language_arch_info): ...here, a new member
9382 function.
9383 (go_language_data): Delete la_language_arch_info.
9384 * language.c (unknown_language_data): Likewise.
9385 (unknown_language::language_arch_info): New member function.
9386 (auto_language_data): Delete la_language_arch_info.
9387 (auto_language::language_arch_info): New member function.
9388 (language_gdbarch_post_init): Update call to
9389 la_language_arch_info.
9390 * language.h (language_data): Delete la_language_arch_info
9391 function pointer.
9392 (language_defn::language_arch_info): New function.
9393 * m2-lang.c (m2_language_arch_info): Delete function, move
9394 implementation to...
9395 (m2_language::language_arch_info): ...here, a new member
9396 function.
9397 (m2_language_data): Delete la_language_arch_info.
9398 * objc-lang.c (objc_language_arch_info): Delete function, move
9399 implementation to...
9400 (objc_language::language_arch_info): ...here, a new member
9401 function.
9402 (objc_language_data): Delete la_language_arch_info.
9403 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9404 implementation to...
9405 (opencl_language::language_arch_info): ...here, a new member
9406 function.
9407 (opencl_language_data): Delete la_language_arch_info.
9408 * p-lang.c (pascal_language_arch_info): Delete function, move
9409 implementation to...
9410 (pascal_language::language_arch_info): ...here, a new member
9411 function.
9412 (pascal_language_data): Delete la_language_arch_info.
9413 * rust-lang.c (rust_language_arch_info): Delete function, move
9414 implementation to...
9415 (rust_language::language_arch_info): ...here, a new member
9416 function.
9417 (rust_language_data): Delete la_language_arch_info.
9418
48448202
AB
94192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9420
9421 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9422 initializer.
9423 * c-lang.c (c_language_data): Likewise.
9424 (cplus_language_data): Likewise.
9425 (cplus_language::pass_by_reference_info): New method.
9426 (asm_language_data): Delete la_pass_by_reference initializer.
9427 (minimal_language_data): Likewise.
9428 * cp-abi.c (cp_pass_by_reference): Remove use of
9429 default_pass_by_reference.
9430 * d-lang.c (d_language_data): Likewise.
9431 * f-lang.c (f_language_data): Likewise.
9432 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9433 default_pass_by_reference.
9434 * go-lang.c (go_language_data): Likewise.
9435 * language.c (language_pass_by_reference): Update.
9436 (default_pass_by_reference): Delete.
9437 (unknown_language_data): Delete la_pass_by_reference
9438 initializer.
9439 (auto_language_data): Likewise.
9440 * language.h (struct language_data): Delete la_pass_by_reference
9441 field.
9442 (language_defn::pass_by_reference_info): New member function.
9443 (default_pass_by_reference): Delete declaration.
9444 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9445 initializer.
9446 * objc-lang.c (objc_language_data): Likewise.
9447 * opencl-lang.c (opencl_language_data): Likewise.
9448 * p-lang.c (pascal_language_data): Likewise.
9449 * rust-lang.c (rust_language_data): Likewise.
9450
15e5fd35
AB
94512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9452
9453 * ada-lang.c (ada_read_var_value): Delete function, move
9454 implementation to...
9455 (ada_language::read_var_value): ...here.
9456 (ada_language_data): Delete la_read_var_value initializer.
9457 * c-lang.c (c_language_data): Likewise.
9458 (cplus_language_data): Likewise.
9459 (minimal_language_data): Likewise.
9460 * d-lang.c (d_language_data): Likewise.
9461 * f-lang.c (f_language_data): Likewise.
9462 * findvar.c (default_read_var_value): Rename to...
9463 (language_defn::read_var_value): ...this.
9464 * findvar.c (read_var_value): Update header comment, and change to
9465 call member function instead of function pointer.
9466 * go-lang.c (go_language_data): Likewise.
9467 * language.c (unknown_language_data): Delete la_read_var_value
9468 initializer.
9469 (auto_language_data): Likewise.
9470 * language.h (struct language_data): Delete la_read_var_value
9471 field.
9472 (language_defn::read_var_value): New member function.
9473 (default_read_var_value): Delete declaration.
9474 * m2-lang.c (m2_language_data): Delete la_read_var_value
9475 initializer.
9476 * objc-lang.c (objc_language_data): Likewise.
9477 * opencl-lang.c (opencl_language_data): Likewise.
9478 * p-lang.c (pascal_language_data): Likewise.
9479 * rust-lang.c (rust_language_data): Likewise.
9480 * value.h (default_read_var_value): Delete declaration.
9481
5bd40f2a
AB
94822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9483
9484 * ada-lang.c (ada_print_array_index): Delete function, move
9485 implementation to...
9486 (ada_language::print_array_index): ...here.
9487 (ada_language_data): Delete la_print_array_index initializer.
9488 * c-lang.c (c_language_data): Likewise.
9489 (cplus_language_data): Likewise.
9490 (minimal_language_data): Likewise.
9491 * d-lang.c (d_language_data): Likewise.
9492 * f-lang.c (f_language_data): Likewise.
9493 * go-lang.c (go_language_data): Likewise.
9494 * language.c (default_print_array_index): Delete function, move
9495 implementation to...
9496 (language_defn::print_array_index): ...here.
9497 (unknown_language_data): Delete la_print_array_index initializer.
9498 (auto_language_data): Likewise.
9499 * language.h (struct language_data): Delete la_print_array_index
9500 field.
9501 (language_defn::print_array_index): New member function.
9502 (LA_PRINT_ARRAY_INDEX): Update.
9503 (default_print_array_index): Delete declaration.
9504 * m2-lang.c (m2_language_data): Delete la_print_array_index
9505 initializer.
9506 * objc-lang.c (objc_language_data): Likewise.
9507 * opencl-lang.c (opencl_language_data): Likewise.
9508 * p-lang.c (pascal_language_data): Likewise.
9509 * rust-lang.c (rust_language_data): Likewise.
9510
0874fd07
AB
95112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9512
9513 * gdb/ada-lang.c (ada_language_defn): Convert to...
9514 (ada_language_data): ...this.
9515 (class ada_language): New class.
9516 (ada_language_defn): New static global.
9517 * gdb/c-lang.c (c_language_defn): Convert to...
9518 (c_language_data): ...this.
9519 (class c_language): New class.
9520 (c_language_defn): New static global.
9521 (cplus_language_defn): Convert to...
9522 (cplus_language_data): ...this.
9523 (class cplus_language): New class.
9524 (cplus_language_defn): New static global.
9525 (asm_language_defn): Convert to...
9526 (asm_language_data): ...this.
9527 (class asm_language): New class.
9528 (asm_language_defn): New static global.
9529 (minimal_language_defn): Convert to...
9530 (minimal_language_data): ...this.
9531 (class minimal_language): New class.
9532 (minimal_language_defn): New static global.
9533 * gdb/d-lang.c (d_language_defn): Convert to...
9534 (d_language_data): ...this.
9535 (class d_language): New class.
9536 (d_language_defn): New static global.
9537 * gdb/f-lang.c (f_language_defn): Convert to...
9538 (f_language_data): ...this.
9539 (class f_language): New class.
9540 (f_language_defn): New static global.
9541 * gdb/go-lang.c (go_language_defn): Convert to...
9542 (go_language_data): ...this.
9543 (class go_language): New class.
9544 (go_language_defn): New static global.
9545 * gdb/language.c (unknown_language_defn): Remove declaration.
9546 (current_language): Initialize to nullptr, real initialization is
9547 moved to _initialize_language.
9548 (languages): Delete global.
9549 (language_defn::languages): Define.
9550 (set_language_command): Use language_defn::languages.
9551 (set_language): Likewise.
9552 (range_error): Likewise.
9553 (language_enum): Likewise.
9554 (language_def): Likewise.
9555 (add_set_language_command): Use language_def::languages for the
9556 language list, and language_def to lookup language pointers.
9557 (skip_language_trampoline): Use language_defn::languages.
9558 (unknown_language_defn): Convert to...
9559 (unknown_language_data): ...this.
9560 (class unknown_language): New class.
9561 (unknown_language_defn): New static global.
9562 (auto_language_defn): Convert to...
9563 (auto_language_data): ...this.
9564 (class auto_language): New class.
9565 (auto_language_defn): New static global.
9566 (language_gdbarch_post_init): Use language_defn::languages.
9567 (_initialize_language): Initialize current_language.
9568 * gdb/language.h (struct language_defn): Rename to...
9569 (struct language_data): ...this.
9570 (struct language_defn): New.
9571 (auto_language_defn): Delete.
9572 (unknown_language_defn): Delete.
9573 (minimal_language_defn): Delete.
9574 (ada_language_defn): Delete.
9575 (asm_language_defn): Delete.
9576 (c_language_defn): Delete.
9577 (cplus_language_defn): Delete.
9578 (d_language_defn): Delete.
9579 (f_language_defn): Delete.
9580 (go_language_defn): Delete.
9581 (m2_language_defn): Delete.
9582 (objc_language_defn): Delete.
9583 (opencl_language_defn): Delete.
9584 (pascal_language_defn): Delete.
9585 (rust_language_defn): Delete.
9586 * gdb/m2-lang.c (m2_language_defn): Convert to...
9587 (m2_language_data): ...this.
9588 (class m2_language): New class.
9589 (m2_language_defn): New static global.
9590 * gdb/objc-lang.c (objc_language_defn): Convert to...
9591 (objc_language_data): ...this.
9592 (class objc_language): New class.
9593 (objc_language_defn): New static global.
9594 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9595 (opencl_language_data): ...this.
9596 (class opencl_language): New class.
9597 (opencl_language_defn): New static global.
9598 * gdb/p-lang.c (pascal_language_defn): Convert to...
9599 (pascal_language_data): ...this.
9600 (class pascal_language): New class.
9601 (pascal_language_defn): New static global.
9602 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9603 language pointer, update comment format.
9604 * gdb/rust-lang.c (rust_language_defn): Convert to...
9605 (rust_language_data): ...this.
9606 (class rust_language): New class.
9607 (rust_language_defn): New static global.
9608
1313c56e
AB
96092020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9610
9611 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9612 member variable.
9613 <m_stmt_at_address>: New member variable.
9614 (lnp_state_machine::record_line): Don't record some lines, update
9615 tracking of is_stmt at the same address.
9616 (lnp_state_machine::lnp_state_machine): Initialise new member
9617 variables.
9618
b7ed9f3d
ST
96192020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9620
9621 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9622 "-include gnu-nat-mig.h".
9623 * gnu-nat-mig.h: New file.
9624 * gnu-nat.c: Include "gnu-nat-mig.h".
9625 (exc_server, msg_reply_server, notify_server,
9626 process_reply_server): Remove declarations.
9627
14a8ad62
ST
96282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9629
9630 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9631 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9632 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9633 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9634 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9635 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9636 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9637 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9638 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9639 to gnu_nat_target class.
9640 * gnu-nat.c: Likewise.
9641 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9642 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9643 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9644 object.
9645 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9646 instead of `gnu_target'.
9647
0af5e106
ST
96482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9649
9650 * i386-gnu-tdep.c: Include "gdbcore.h"
9651 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9652 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9653 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9654 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9655 i386_gnu_sigcontext_addr): New functions
9656 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9657 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9658 tdep.
9659
078f2fc9
ST
96602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9661
9662 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9663 before fork_inferior call. Avoid calling it if target_is_pushed returns
9664 true.
9665
53dff92c
ST
96662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9667
9668 * gnu-nat.h (gnu_target): New variable declaration.
9669 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9670 gnu_target.
9671 * gnu-nat.c (gnu_target): New variable.
9672 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9673 add_thread_silent, and add_thread calls.
9674 (gnu_nat_target::create_inferior): Pass gnu_target to
9675 add_thread_silent, thread_change_ptid call.
9676 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9677 call.
9678
5a8b8627
ST
96792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9680
9681 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9682 (gnu_nat_target::find_memory_regions): Remove unused
9683 `old_address' variable.
9684
366f550a
ST
96852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9686
9687 * gnu-nat.c: Include "gdbarch.h".
9688
f14871bf
ST
96892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9690
9691 * reply_mig_hack.awk (Error return): Cast function through
9692 void *, to bypass compiler function call check.
9693
c6887cfb
ST
96942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9695
9696 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9697 $(srcdir)/reply_mig_hack.awk.
9698
6930bffe
ST
96992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9700
9701 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9702
112c22ed
JG
97032020-05-30 Jonny Grant <jg@jguk.org>
9704
9705 * configure.ac (ACX_BUGURL): change bug URL to https.
9706
f68f85b5
PA
97072020-05-30 Pedro Alves <palves@redhat.com>
9708
9709 * cp-support.c (replace_typedefs_template): New.
9710 (replace_typedefs_qualified_name): Handle
9711 DEMANGLE_COMPONENT_TEMPLATE.
9712
976ca316
SM
97132020-05-29 Simon Marchi <simon.marchi@efficios.com>
9714
9715 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9716 dwarf2/index-cache.h, dwarf2/index-write.c,
9717 dwarf2/index-write.h, dwarf2/line-header.c,
9718 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9719 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9720 variables and fields from `dwarf2_per_objfile` to just
9721 `per_objfile` throughout.
9722
989ade05
SM
97232020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9724
9725 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9726 <push_dwarf_reg_entry_value>: Add comment.
9727
c47bae85
KB
97282020-05-28 Kevin Buettner <kevinb@redhat.com>
9729 Keith Seitz <keiths@redhat.com>
9730
9731 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9732 instead of PyEval_ReleaseLock.
9733 (class gdbpy_gil): Move to earlier in file.
9734 (finalize_python): Set gdb_python_initialized.
9735 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9736 when not initialized.
9737
44486dcf
SM
97382020-05-28 Simon Marchi <simon.marchi@efficios.com>
9739
9740 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9741 <push_dwarf_reg_entry_value>: Remove assert. Override
9742 per_objfile with caller_per_objfile.
9743
f030440d
TV
97442020-05-28 Tom de Vries <tdevries@suse.de>
9745
9746 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9747 PR gold/15646 workaround to symbol kind "type".
9748
f0fbb768
TT
97492020-05-27 Tom Tromey <tromey@adacore.com>
9750
9751 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9752
af0b2a3e
TT
97532020-05-27 Tom Tromey <tromey@adacore.com>
9754
9755 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9756 Use htab_find_with_hash.
9757 <add_abbrev>: Remove "abbrev_number" parameter.
9758 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9759 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9760 (hash_abbrev): Add comment.
9761 (abbrev_table::lookup_abbrev): Move to header file.
9762 (abbrev_table::read): Update.
9763
7d00ffec
TT
97642020-05-27 Tom Tromey <tromey@adacore.com>
9765
9766 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9767 method.
9768 <canonical_name>: New member.
9769 <raw_name>: Rename from "name".
9770 (partial_die_info): Initialize canonical_name.
9771 (scan_partial_symbols): Check raw_name.
9772 (partial_die_parent_scope, partial_die_full_name)
9773 (add_partial_symbol, add_partial_subprogram)
9774 (add_partial_enumeration, load_partial_dies): Use "name" method.
9775 (partial_die_info::name): New method.
9776 (partial_die_info::read, guess_partial_die_structure_name)
9777 (partial_die_info::fixup): Update.
9778
697bba18
TT
97792020-05-27 Tom Tromey <tromey@adacore.com>
9780
9781 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9782 <get_ref_die_offset>: Inline.
9783 <get_ref_die_offset_complaint>: New method.
9784 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9785 (attribute::get_ref_die_offset_complaint): Rename from
9786 get_ref_die_offset. Just issue complaint.
9787
c17ace43
HD
97882020-05-27 Hannes Domani <ssbssa@yahoo.de>
9789
9790 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9791
96445f0b
HD
97922020-05-27 Hannes Domani <ssbssa@yahoo.de>
9793
9794 * exec.c (exec_file_attach): Use errno value of first openp failure.
9795
ac637ec3
HD
97962020-05-27 Hannes Domani <ssbssa@yahoo.de>
9797
9798 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9799 Don't close thread handle.
9800
17ee85fc
TT
98012020-05-27 Tom Tromey <tom@tromey.com>
9802 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9805 shared_ptr.
9806 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9807 member.
9808 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9809 dwarf2_per_bfd_objfile_data_key>: New globals.
9810 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9811 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9812 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9813 shared.
9814 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9815 short-circuit when sharing.
9816 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9817 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9818
39b16f87
SM
98192020-05-27 Simon Marchi <simon.marchi@efficios.com>
9820
9821 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9822 to...
9823 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9824 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9825
fcf23d5b
SM
98262020-05-27 Simon Marchi <simon.marchi@efficios.com>
9827
9828 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9829 build_name_components, find_name_components_bounds>:
9830 Add per_objfile parameter.
9831 (struct mapped_index) <symbol_name_at>: Likewise.
9832 (struct mapped_debug_names): Remove constructor.
9833 <dwarf2_per_objfile>: Remove field.
9834 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9835 (mapped_index_base::find_name_components_bounds,
9836 mapped_index_base::build_name_components,
9837 dw2_expand_symtabs_matching_symbol): Likewise.
9838 (class mock_mapped_index) <symbol_name_at>: Likewise.
9839 (check_match): Likewise.
9840 (check_find_bounds_finds): Likewise.
9841 (test_mapped_index_find_name_component_bounds): Update.
9842 (CHECK_MATCH): Update.
9843 (dw2_expand_symtabs_matching): Update.
9844 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9845 per_objfile parameter.
9846 <find_vec_in_debug_names>: Likewise.
9847 <m_per_objfile>: New field.
9848 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9849 parameter.
9850 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9851 (dw2_debug_names_iterator::next): Update.
9852 (dw2_debug_names_lookup_symbol): Update.
9853 (dw2_debug_names_expand_symtabs_for_function): Update.
9854 (dw2_debug_names_map_matching_symbols): Update.
9855 (dw2_debug_names_expand_symtabs_matching): Update.
9856 (dwarf2_read_debug_names): Update.
9857
7188ed02
SM
98582020-05-27 Simon Marchi <simon.marchi@efficios.com>
9859
9860 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9861 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9862 move to dwarf2_per_objfile.
9863 <read_in_chain>: Remove.
9864 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9865 remove_all_cus, age_comp_units>: New methods.
9866 <m_dwarf2_cus>: New member.
9867 (struct dwarf2_per_cu_data) <cu>: Remove.
9868 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9869 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9870 moved to methods of dwarf2_per_objfile.
9871 (dwarf2_clear_marks): Remove.
9872 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9873 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9874 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9875 (dwarf2_per_objfile::remove_all_cus): New.
9876 (class free_cached_comp_units) <~free_cached_comp_units>:
9877 Update.
9878 (load_cu): Update.
9879 (dw2_do_instantiate_symtab): Adjust.
9880 (fill_in_sig_entry_from_dwo_entry): Adjust.
9881 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9882 (cutu_reader::cutu_reader): Likewise.
9883 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9884 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9885 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9886 and dwarf2_per_objfile::age_comp_units.
9887 (load_partial_comp_unit): Update.
9888 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9889 (process_queue): Likewise.
9890 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9891 backlink.
9892 (dwarf2_read_addr_index): Likewise.
9893 (follow_die_offset): Likewise.
9894 (dwarf2_fetch_die_loc_sect_off): Likewise.
9895 (dwarf2_fetch_constant_bytes): Likewise.
9896 (dwarf2_fetch_die_type_sect_off): Likewise.
9897 (follow_die_sig_1): Likewise.
9898 (load_full_type_unit): Likewise.
9899 (read_signatured_type): Likewise.
9900 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9901 (dwarf2_cu::~dwarf2_cu): Remove.
9902 (dwarf2_per_objfile::get_cu): New.
9903 (dwarf2_per_objfile::set_cu): New.
9904 (age_cached_comp_units): Rename to...
9905 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9906 to std::unordered_map.
9907 (free_one_cached_comp_unit): Rename to...
9908 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9909 to std::unordered_map.
9910 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9911 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9912 a dwarf2_per_objfile in data.
9913 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9914 (dwarf2_clear_marks): Remove.
9915
2e671100
SM
99162020-05-27 Simon Marchi <simon.marchi@efficios.com>
9917
9918 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9919 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9920 (init_tu_and_read_dwo_dies): Likewise.
9921 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9922 (cutu_reader::cutu_reader): Likewise.
9923 (load_partial_comp_unit): Likewise.
9924 (process_psymtab_comp_unit): Update.
9925 (build_type_psymtabs_1): Update.
9926 (process_skeletonless_type_unit): Update.
9927 (load_full_comp_unit): Update.
9928 (find_partial_die): Update.
9929 (dwarf2_read_addr_index): Update.
9930 (read_signatured_type): Update.
9931
2e6a9f79
SM
99322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9933
9934 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9935 m_header_read_in>: New fields.
9936 <get_header>: New method.
9937 * dwarf2/read.c (per_cu_header_read_in): Remove.
9938 (dwarf2_per_cu_data::get_header): New.
9939 (dwarf2_per_cu_data::addr_size): Update.
9940 (dwarf2_per_cu_data::offset_size): Update.
9941 (dwarf2_per_cu_data::ref_addr_size): Update.
9942
1b555f17
SM
99432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9944
9945 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9946 (dw2_do_instantiate_symtab): Update.
9947 (queue_and_load_all_dwo_tus): Change parameter from
9948 dwarf2_per_cu_data to dwarf2_cu.
9949 (dwarf2_fetch_die_loc_sect_off): Update.
9950 (dwarf2_fetch_constant_bytes): Update.
9951 (dwarf2_fetch_die_type_sect_off): Update.
9952
8fc0b21d
SM
99532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9954
9955 * dwarf2/read.c (process_full_comp_unit,
9956 process_full_type_unit): Remove per_cu, per_objfile paramters.
9957 Add dwarf2_cu parameter.
9958 (process_queue): Update.
9959
168c9250
SM
99602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9961
9962 * dwarf2/read.c (create_cu_from_index_list): Replace
9963 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9964 (create_cus_from_index_list): Likewise.
9965 (create_cus_from_index): Likewise.
9966 (create_signatured_type_table_from_index): Likewise.
9967 (create_cus_from_debug_names_list): Likewise.
9968 (create_cus_from_debug_names): Likewise.
9969 (dwarf2_read_gdb_index): Update.
9970 (dwarf2_read_debug_names): Update.
9971
e286671b
TT
99722020-05-27 Tom Tromey <tom@tromey.com>
9973 Simon Marchi <simon.marchi@efficios.com>
9974
9975 * dwarf2/read.h (struct dwarf2_per_objfile)
9976 <get_type_for_signatured_type, set_type_for_signatured_type>:
9977 New methods.
9978 <m_type_map>: New member.
9979 (struct signatured_type) <type>: Remove.
9980 * dwarf2/read.c
9981 (dwarf2_per_objfile::get_type_for_signatured_type,
9982 dwarf2_per_objfile::set_type_for_signatured_type): New.
9983 (get_signatured_type): Use new methods.
9984
8adb8487
TT
99852020-05-27 Tom Tromey <tom@tromey.com>
9986 Simon Marchi <simon.marchi@efficios.com>
9987
9988 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9989 (struct dwarf2_per_objfile) <type_units>: New member.
9990 <get_type_unit_group_unshareable>: New method.
9991 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9992 num_symtabs, symtabs>: Remove; move to
9993 type_unit_group_unshareable.
9994 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9995 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9996 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9997
127bbf4b
SM
99982020-05-27 Simon Marchi <simon.marchi@efficios.com>
9999
10000 * dwarf2/read.h (struct dwarf2_per_cu_data):
10001 <dwarf2_per_objfile>: Remove.
10002 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10003 dwarf2_per_objfile.
10004 (create_signatured_type_table_from_index): Likewise.
10005 (create_signatured_type_table_from_debug_names): Likewise.
10006 (create_debug_type_hash_table): Likewise.
10007 (fill_in_sig_entry_from_dwo_entry): Likewise.
10008 (create_type_unit_group): Likewise.
10009 (read_comp_units_from_section): Likewise.
10010 (create_cus_hash_table): Likewise.
10011
f6e649dd
SM
100122020-05-27 Simon Marchi <simon.marchi@efficios.com>
10013
10014 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10015 dwarf2_per_cu_data::dwarf2_per_objfile.
10016 (compute_compunit_symtab_includes): Likewise.
10017 (dwarf2_cu::start_symtab): Likewise.
10018
aa66c379
SM
100192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10020
10021 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10022 parameter.
10023 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10024 (read_namespace_alias): Update.
10025 (lookup_die_type): Update.
10026 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10027 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10028 Update.
10029 (disassemble_dwarf_expression): Update.
10030
120ce1b5
SM
100312020-05-27 Simon Marchi <simon.marchi@efficios.com>
10032
10033 * dwarf2/read.h (struct dwarf2_queue_item): Add
10034 dwarf2_per_objfile parameter, assign new parameter.
10035 <per_objfile>: New field.
10036 * dwarf2/read.c (free_one_cached_comp_unit): Add
10037 dwarf2_per_objfile parameter.
10038 (queue_comp_unit): Likewise.
10039 (dw2_do_instantiate_symtab): Update.
10040 (process_psymtab_comp_unit): Update.
10041 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10042 (process_imported_unit_die): Update.
10043 (queue_and_load_dwo_tu): Update.
10044 (follow_die_offset): Update.
10045 (follow_die_sig_1): Update.
10046
9f47c707
SM
100472020-05-27 Simon Marchi <simon.marchi@efficios.com>
10048
10049 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10050 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10051 (read_call_site_scope): Assign per_objfile.
10052 (dwarf2_per_cu_data::objfile): Remove.
10053 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10054 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10055 dwarf2_per_objfile parameter.
10056 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10057 dwarf2_per_objfile parameter.
10058 (dwarf_expr_reg_to_entry_parameter): Add output
10059 dwarf2_per_objfile parameter.
10060 (locexpr_get_frame_base): Update.
10061 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10062 <push_dwarf_reg_entry_value>: Update.
10063 <call_site_to_target_addr>: Update.
10064 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10065 parameter.
10066 (value_of_dwarf_reg_entry): Update.
10067 (rw_pieced_value): Update.
10068 (indirect_synthetic_pointer): Update.
10069 (dwarf2_evaluate_property): Update.
10070 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10071 parameter.
10072 (locexpr_read_variable): Update.
10073 (locexpr_get_symbol_read_needs): Update.
10074 (loclist_read_variable): Update.
10075
14095eb3
SM
100762020-05-27 Simon Marchi <simon.marchi@efficios.com>
10077
10078 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10079 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10080 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10081 parameter.
10082 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10083 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10084 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10085 parameter.
10086 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10087 sect_variable_value): Add dwarf2_per_objfile parameter.
10088 (class dwarf_evaluate_loc_desc) <dwarf_call,
10089 dwarf_variable_value>: Update.
10090 (fetch_const_value_from_synthetic_pointer): Add
10091 dwarf2_per_objfile parameter.
10092 (fetch_const_value_from_synthetic_pointer): Update.
10093 (coerced_pieced_ref): Update.
10094 (class symbol_needs_eval_context) <dwarf_call,
10095 dwarf_variable_value>: Update.
10096 (dwarf2_compile_expr_to_ax): Update.
10097
3c3cd3d4
SM
100982020-05-27 Simon Marchi <simon.marchi@efficios.com>
10099
10100 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10101 parameter.
10102 (dwarf2_evaluate_loc_desc_full): Update.
10103
82ca3f51
SM
101042020-05-27 Simon Marchi <simon.marchi@efficios.com>
10105
10106 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10107 parameter.
10108 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10109 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10110 dwarf2_per_objfile parameter.
10111 (decode_debug_loc_dwo_addresses): Likewise.
10112 (dwarf2_find_location_expression): Update.
10113 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10114 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10115 parameter.
10116 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10117 parameter.
10118 (locexpr_describe_location_1): Likewise.
10119 (locexpr_describe_location): Update.
10120
4b167ea1
SM
101212020-05-27 Simon Marchi <simon.marchi@efficios.com>
10122
10123 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10124 Remove.
10125 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10126 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10127 (dwarf2_compile_property_to_c): Update.
10128 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10129 use text offset from objfile.
10130 (locexpr_tracepoint_var_ref): Update.
10131 (locexpr_generate_c_location): Update.
10132 (loclist_describe_location): Update.
10133 (loclist_tracepoint_var_ref): Update.
10134 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10135 dwarf2_per_objfile parameter.
10136 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10137 use text offset from objfile.
10138 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10139
89b07335
SM
101402020-05-27 Simon Marchi <simon.marchi@efficios.com>
10141
10142 * dwarf2/expr.h (struct dwarf_expr_context)
10143 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10144 <offset>: Remove.
10145 <per_objfile>: New member.
10146 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10147 dwarf2_per_objfile parameter. Don't set offset, set
10148 per_objfile.
10149 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10150 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10151 a dwarf2_per_objfile object instead of an offset.
10152 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10153 constructor.
10154 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10155 to dwarf2_expr_executor constructor. Don't set offset.
10156 (dwarf2_fetch_cfa_info): Update.
10157 (struct dwarf2_frame_cache) <text_offset>: Remove.
10158 <per_objfile>: New field.
10159 (dwarf2_frame_cache): Update.
10160 (dwarf2_frame_prev_register): Update.
10161 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10162 <dwarf_evaluate_loc_desc>: Add constructor.
10163 (dwarf2_evaluate_loc_desc_full): Update.
10164 (dwarf2_locexpr_baton_eval): Update.
10165 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10166 Add constructor.
10167 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10168
293e7e51
SM
101692020-05-27 Simon Marchi <simon.marchi@efficios.com>
10170
10171 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10172 addr_sized_int_type>: Move to dwarf2_cu.
10173 <int_type>: Move to dwarf2_per_objfile.
10174 (struct dwarf2_per_objfile) <int_type>: Move here.
10175 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10176 addr_sized_int_type>: Move here.
10177 (read_func_scope): Update.
10178 (read_array_type): Update.
10179 (read_tag_string_type): Update.
10180 (attr_to_dynamic_prop): Update.
10181 (dwarf2_per_cu_data::int_type): Rename to...
10182 (dwarf2_per_objfile::int_type): ... this.
10183 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10184 (dwarf2_cu::addr_sized_int_type): ... this.
10185 (read_subrange_type): Update.
10186 (dwarf2_per_cu_data::addr_type): Rename to...
10187 (dwarf2_cu::addr_type): ... this.
10188 (set_die_type): Update.
10189
64874a40
SM
101902020-05-27 Simon Marchi <simon.marchi@efficios.com>
10191
10192 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10193 data through per_cu->cu.
10194
4ab09049
SM
101952020-05-27 Simon Marchi <simon.marchi@efficios.com>
10196
10197 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10198 dwarf2_per_cu_data parameter fo dwarf2_cu.
10199 (lookup_dwo_type_unit): Likewise.
10200 (read_cutu_die_from_dwo): Likewise.
10201 (lookup_dwo_unit): Likewise.
10202 (open_and_init_dwo_file): Likewise.
10203 (lookup_dwo_cutu): Likewise.
10204 (lookup_dwo_comp_unit): Likewise.
10205 (lookup_dwo_type_unit): Likewise.
10206 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10207 (cutu_reader::cutu_reader): Update.
10208
47b14e86
SM
102092020-05-27 Simon Marchi <simon.marchi@efficios.com>
10210
10211 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10212 parameter.
10213 (process_full_type_unit): Likewise.
10214 (process_queue): Update.
10215
43182c09
SM
102162020-05-27 Simon Marchi <simon.marchi@efficios.com>
10217
10218 * dwarf2/read.c (recursively_compute_inclusions): Add
10219 dwarf2_per_objfile parameter.
10220 (compute_compunit_symtab_includes): Likewise.
10221 (process_cu_includes): Update.
10222
7aa104c4
SM
102232020-05-27 Simon Marchi <simon.marchi@efficios.com>
10224
10225 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10226 parameter.
10227 (create_type_unit_group): Update.
10228 (process_psymtab_comp_unit_reader): Update.
10229 (build_type_psymtabs_reader): Update.
10230
e3beb21d
SM
102312020-05-27 Simon Marchi <simon.marchi@efficios.com>
10232
10233 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10234 object through m_this_cu->cu.
10235
d460f660
SM
102362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10237
10238 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10239 the info parameter.
10240 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10241
ab432490
SM
102422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10243
10244 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10245 per_objfile parameter.
10246 (load_full_type_unit): Add per_objfile parameter.
10247 (read_signatured_type): Likewise.
10248 (load_full_comp_unit): Likewise.
10249 (load_cu): Likewise.
10250 (dw2_do_instantiate_symtab): Likewise.
10251 (dw2_get_file_names): Likewise.
10252 (dw2_map_symtabs_matching_filename): Update.
10253 (dw_expand_symtabs_matching_file_matcher): Update.
10254 (dw2_map_symbol_filenames): Update.
10255 (process_psymtab_comp_unit): Add per_objfile parameter.
10256 (build_type_psymtabs_1): Update.
10257 (process_skeletonless_type_unit): Update.
10258 (dwarf2_build_psymtabs_hard): Update.
10259 (load_partial_comp_unit): Add per_objfile parameter.
10260 (scan_partial_symbols): Update.
10261 (load_full_comp_unit): Add per_objfile parameter.
10262 (process_imported_unit_die): Update.
10263 (create_cus_hash_table): Update.
10264 (find_partial_die): Update.
10265 (dwarf2_read_addr_index): Update.
10266 (follow_die_offset): Update.
10267 (dwarf2_fetch_die_loc_sect_off): Update.
10268 (dwarf2_fetch_constant_bytes): Update.
10269 (dwarf2_fetch_die_type_sect_off): Update.
10270 (follow_die_sig_1): Update.
10271 (load_full_type_unit): Add per_objfile parameter.
10272 (read_signatured_type): Likewise.
10273
313bad1b
SM
102742020-05-27 Simon Marchi <simon.marchi@efficios.com>
10275
10276 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10277 of objfile_name.
10278
c3699833
SM
102792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10280
10281 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10282 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10283 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10284 field.
10285 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10286 (create_cus_from_index): Update.
10287 (dwarf2_read_gdb_index): Update.
10288 (create_cus_from_debug_names): Update.
10289 (dwarf2_read_debug_names): Update.
10290 (get_abbrev_section_for_cu): Update.
10291 (create_all_comp_units): Update.
10292 (read_attribute_value): Update.
10293 (get_debug_line_section): Update.
10294 * dwarf2/index-cache.c (index_cache::store): Update.
10295 * dwarf2/index-write.c (save_gdb_index_command): Update.
10296 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10297
1859c670
SM
102982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10299
10300 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10301 member.
10302 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10303 dwarf2_per_cu_data::per_bfd.
10304 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10305 (create_type_unit_group): Likewise.
10306 (queue_comp_unit): Remove reference to
10307 per_cu->dwarf2_per_objfile.
10308 (maybe_queue_comp_unit): Likewise.
10309 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10310 (create_cus_hash_table): Assign new field.
10311
5e22e966
SM
103122020-05-27 Simon Marchi <simon.marchi@efficios.com>
10313
10314 * dwarf2/read.c: Replace
10315 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10316 dwarf2_cu->per_objfile throughout.
10317
97a1449a
SM
103182020-05-27 Simon Marchi <simon.marchi@efficios.com>
10319
10320 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10321 parameter, don't use per_cu->dwarf2_per_objfile.
10322 (dw2_instantiate_symtab): Likewise.
10323 (dw2_find_last_source_symtab): Update.
10324 (dw2_map_expand_apply): Update.
10325 (dw2_lookup_symbol): Update.
10326 (dw2_expand_symtabs_for_function): Update.
10327 (dw2_expand_all_symtabs): Update.
10328 (dw2_expand_symtabs_with_fullname): Update.
10329 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10330 don't use per_cu->dwarf2_per_objfile.
10331 (dw2_expand_marked_cus): Update.
10332 (dw2_find_pc_sect_compunit_symtab): Update.
10333 (dw2_debug_names_lookup_symbol): Update.
10334 (dw2_debug_names_expand_symtabs_for_function): Update.
10335 (dw2_debug_names_map_matching_symbols): Update.
10336 (dwarf2_psymtab::expand_psymtab): Update.
10337
9e021579
SM
103382020-05-27 Simon Marchi <simon.marchi@efficios.com>
10339
10340 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10341 <per_objfile>: New member.
10342 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10343 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10344 call to dwarf2_cu.
10345 (cutu_reader::cutu_reader): Update.
10346 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10347
ae090bdb
SM
103482020-05-27 Simon Marchi <simon.marchi@efficios.com>
10349
10350 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10351 struct dwarf2_per_objfile.
10352 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10353 dwarf2_per_bfd.
10354 * dwarf2/read.c (set_die_type): Update.
10355 (get_die_type_at_offset): Update.
10356
af758d11
SM
103572020-05-27 Tom Tromey <tom@tromey.com>
10358 Simon Marchi <simon.marchi@efficios.com>
10359
10360 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10361 method.
10362 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10363 get_symtab, set_symtab>: New methods.
10364 <m_symtabs>: New field.
10365 (struct dwarf2_psymtab): Derive from partial_symtab.
10366 <readin_p, get_compunit_symtab>: Declare methods.
10367 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10368 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10369 New methods.
10370 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10371 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10372 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10373 (dw2_symtab_iter_next, dw2_print_stats)
10374 (dw2_expand_symtabs_with_fullname)
10375 (dw2_expand_symtabs_matching_one)
10376 (dw_expand_symtabs_matching_file_matcher)
10377 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10378 (dw2_debug_names_iterator::next)
10379 (dw2_debug_names_map_matching_symbols)
10380 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10381 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10382 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10383 New methods.
10384 (get_compunit_symtab, process_full_comp_unit)
10385 (process_full_type_unit): Update.
10386 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10387
5989a64e
SM
103882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10389
10390 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10391 then introduce a new dwarf2_per_objfile type.
10392 <read_line_string>: Move to the new dwarf2_per_objfile type.
10393 <objfile>: Likewise.
10394 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10395 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10396 dwarf2_per_objfile->per_bfd.
10397 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10398 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10399 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10400 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10401 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10402 (dwarf2_per_objfile::locate_sections): Rename to...
10403 (dwarf2_per_bfd::locate_sections): ... this.
10404 (dwarf2_per_objfile::get_cutu): Rename to...
10405 (dwarf2_per_bfd::get_cutu): ... this.
10406 (dwarf2_per_objfile::get_cu): Rename to...
10407 (dwarf2_per_bfd::get_cu): ... this.
10408 (dwarf2_per_objfile::get_tu): Rename to...
10409 (dwarf2_per_bfd::get_tu): ... this.
10410 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10411 (dwarf2_per_bfd::allocate_per_cu): ... this.
10412 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10413 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10414 (get_gdb_index_contents_ftype): Change parameter from
10415 dwarf2_per_objfile to dwarf2_per_bfd.
10416 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10417 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10418
a50264ba
TT
104192020-05-27 Tom Tromey <tom@tromey.com>
10420 Simon Marchi <simon.marchi@efficios.com>
10421
10422 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10423 (allocate_piece_closure): Set "per_objfile" member.
10424 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10425 (locexpr_describe_location, loclist_describe_location): Use new
10426 member.
10427 * dwarf2/read.c (read_call_site_scope)
10428 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10429 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10430 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10431 handle_data_member_location): Set per_objfile member.
10432 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10433 member.
10434 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10435
d3473f0c
TT
104362020-05-27 Tom Tromey <tom@tromey.com>
10437
10438 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10439 allocate_signatured_type>: Declare new methods.
10440 <m_num_psymtabs>: New member.
10441 (struct dwarf2_per_cu_data) <index>: New member.
10442 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10443 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10444 (create_cu_from_index_list): Use allocate_per_cu.
10445 (create_signatured_type_table_from_index)
10446 (create_signatured_type_table_from_debug_names)
10447 (create_debug_type_hash_table, add_type_unit)
10448 (read_comp_units_from_section): Use allocate_signatured_type.
10449
5717c425
TT
104502020-05-27 Tom Tromey <tom@tromey.com>
10451
10452 * psymtab.c (partial_map_expand_apply)
10453 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10454 (psym_lookup_global_symbol_language)
10455 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10456 (psym_print_stats, psym_expand_symtabs_for_function)
10457 (psym_map_symbol_filenames, psym_map_matching_symbols)
10458 (psym_expand_symtabs_matching)
10459 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10460 (maintenance_check_psymtabs): Update.
10461 * psympriv.h (struct partial_symtab) <readin_p,
10462 get_compunit_symtab>: Add objfile parameter.
10463 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10464 Likewise.
10465 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10466 get_compunit_symtab>: Likewise.
10467 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10468
45940949
TT
104692020-05-27 Tom Tromey <tom@tromey.com>
10470
10471 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10472 member.
10473 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10474 (create_cu_from_index_list)
10475 (create_signatured_type_table_from_index)
10476 (create_signatured_type_table_from_debug_names)
10477 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10478 (dwarf2_create_include_psymtab)
10479 (create_debug_type_hash_table, add_type_unit)
10480 (create_type_unit_group, read_comp_units_from_section)
10481 (dwarf2_compute_name, create_cus_hash_table)
10482 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10483 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10484 obstack.
10485 (dw2_get_real_path): Likewise. Change argument to
10486 dwarf2_per_objfile.
10487
f8c6d152
LM
104882020-05-27 Luis Machado <luis.machado@linaro.org>
10489
10490 PR tdep/26000
10491 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10492 for ldrd (immediate).
10493
e98d2e6d
PW
104942020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10495
10496 * command.h: Add comment giving the name of class_tui.
10497 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10498 create the fake command for the help for class_tui.
10499
53a47a3e
TT
105002020-05-26 Tom Tromey <tromey@adacore.com>
10501
10502 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10503 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10504 (val_atr): New function.
10505 (value_val_atr): Use it.
10506 * ada-valprint.c (print_optional_low_bound): Change low bound
10507 handling for enums.
10508 (val_print_packed_array_elements): Don't call discrete_position.
10509 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10510 discrete_position for enum types.
10511 * language.c (default_print_array_index): Change type.
10512 * language.h (struct language_defn) <la_print_array_index>: Add
10513 index_type parameter, change type of index_value.
10514 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10515 (default_print_array_index): Update.
10516 * valprint.c (maybe_print_array_index): Don't call
10517 value_from_longest. Update.
10518 (value_print_array_elements): Don't call discrete_position.
10519
0bc2354b
TT
105202020-05-26 Tom Tromey <tromey@adacore.com>
10521
10522 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10523 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10524
1218a4bf
CDA
105252020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10526
10527 PR gdb/13519
10528 * avr-tdep.c (avr_integer_to_address): Return data or code
10529 address accordingly to the second 'type' argument of the
10530 function.
10531
92651b1d
MW
105322020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10533
10534 * infcmd.c, inferior.h: (construct_inferior_arguments):
10535 Moved function from here to gdbsupport/common-inferior.{h,cc}
10536
0a4f5f8c
TT
105372020-05-23 Tom Tromey <tom@tromey.com>
10538
10539 Revert commit eca1f90c:
10540 * NEWS: Remove entry for completion styling.
10541 * completer.c (_rl_completion_prefix_display_length): Move
10542 declaration later.
10543 (gdb_fnprint): Revert.
10544 (gdb_display_match_list_1): Likewise.
10545 * cli/cli-style.c (completion_prefix_style)
10546 (completion_difference_style, completion_suffix_style): Remove.
10547 (_initialize_cli_style): Revert.
10548 * cli/cli-style.h (completion_prefix_style)
10549 (completion_difference_style, completion_suffix_style): Don't
10550 declare.
10551
e08bd6c5
PA
105522020-05-24 Pedro Alves <palves@redhat.com>
10553
10554 * symtab.c (completion_list_add_name): Return boolean indication
10555 of whether the symbol matched.
10556 (completion_list_add_symbol): Don't try to remove C++ aliases if
10557 the symbol didn't match in the first place.
10558 * symtab.h (completion_list_add_name): Return bool.
10559
ceacbf6e
SM
105602020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10561
10562 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10563 type::field.
10564
26f16254
JB
105652020-05-23 Joel Brobecker <brobecker@adacore.com>
10566
10567 GDB 9.2 released.
10568
eca1f90c
TT
105692020-05-23 Tom Tromey <tom@tromey.com>
10570
10571 * NEWS: Add entry for completion styling.
10572 * completer.c (_rl_completion_prefix_display_length): Move
10573 declaration earlier.
10574 (gdb_fnprint): Use completion_style.
10575 (gdb_display_match_list_1): Likewise.
10576 * cli/cli-style.c (completion_prefix_style)
10577 (completion_difference_style, completion_suffix_style): New
10578 globals.
10579 (_initialize_cli_style): Register new globals.
10580 * cli/cli-style.h (completion_prefix_style)
10581 (completion_difference_style, completion_suffix_style): Declare.
10582
51e2cfa2
PA
105832020-05-23 Pedro Alves <palves@redhat.com>
10584
10585 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10586 (parse_escape): Use ISDIGIT instead of isdigit.
10587 (puts_debug): Use gdb_isprint instead of isprint.
10588 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10589 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10590 ISSPACE instead of isspace.
10591 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10592 instead of isspace.
10593 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10594 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10595 instead of isxdigit and ISDIGIT instead of isdigit.
10596
80fc5e77
SM
105972020-05-22 Simon Marchi <simon.marchi@efficios.com>
10598
10599 * gdbtypes.h (struct type) <field>: New method.
10600 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10601 or type::field.
10602
3cabb6b0
SM
106032020-05-22 Simon Marchi <simon.marchi@efficios.com>
10604
10605 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10606 (TYPE_FIELDS): Use type::fields. Change all call sites that
10607 modify the propery to use type::set_fields instead.
10608
1f704f76
SM
106092020-05-22 Simon Marchi <simon.marchi@efficios.com>
10610
10611 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10612 type::num_fields instead.
10613
5e33d5f4
SM
106142020-05-22 Simon Marchi <simon.marchi@efficios.com>
10615
10616 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10617 methods.
10618 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10619 that modify the number of fields to use type::set_num_fields
10620 instead.
10621
9392ebb3
TT
106222020-05-22 Tom Tromey <tromey@adacore.com>
10623
10624 * compile/compile-object-load.h (munmap_list_free): Don't
10625 declare.
10626
7c13f4e8
AB
106272020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10628
10629 * annotate.c (annotate_source_line): Update return type, add call
10630 to update current symtab and line.
10631 * annotate.h (annotate_source_line): Update return type, and
10632 extend header comment.
10633 * source.c (info_line_command): Check annotation_level before
10634 calling annotate_source_line.
10635 * stack.c (print_frame_info): If calling annotate_source_line
10636 returns true, then don't print any other source line information.
10637
aa370940
SM
106382020-05-21 Simon Marchi <simon.marchi@efficios.com>
10639
10640 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10641
84d53fa9
SM
106422020-05-21 Simon Marchi <simon.marchi@efficios.com>
10643
10644 * coffread.c (patch_type): Remove NULL check before xfree.
10645 * corefile.c (set_gnutarget): Likewise.
10646 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10647 * exec.c (build_section_table): Likewise.
10648 * remote.c (remote_target::pass_signals): Likewise.
10649 * utils.c (n_spaces): Likewise.
10650 * cli/cli-script.c (document_command): Likewise.
10651 * i386-windows-tdep.c (core_process_module_section): Likewise.
10652 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10653
9d428aae
SM
106542020-05-20 Simon Marchi <simon.marchi@efficios.com>
10655
10656 * symfile.c (reread_symbols): Clear objfile's section_offsets
10657 vector and section indices, re-compute them by calling
10658 sym_offsets.
10659
250106a7
TT
106602020-05-20 Tom Tromey <tromey@adacore.com>
10661
10662 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10663 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10664
9a0bacfb
TV
106652020-05-20 Tom de Vries <tdevries@suse.de>
10666
10667 PR symtab/25833
10668 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10669
7b958a48
AM
106702020-05-20 Alan Modra <amodra@gmail.com>
10671
10672 PR 25993
10673 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10674 bfd_set_filename.
10675 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10676 passed to bfd_set_filename.
10677 * symfile-mem.c (add_vsyscall_page): Likewise for string
10678 passed to symbol_file_add_from_memory.
10679 (symbol_file_add_from_memory): Make name param a const char* and
10680 don't strdup.
10681
c7e97679
AM
106822020-05-20 Alan Modra <amodra@gmail.com>
10683
10684 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10685 rather than accessing bfd->filename directly.
10686 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10687 and use bfd_section_name.
10688 * dwarf2/frame.c (decode_frame_entry): Likewise.
10689 * exec.c (exec_set_section_address): Likewise.
10690 * solib-aix.c (solib_aix_bfd_open): Likewise.
10691 * stap-probe.c (get_stap_base_address): Likewise.
10692 * symfile.c (reread_symbols): Likewise.
10693
563c591b
TT
106942020-05-19 Tom Tromey <tromey@adacore.com>
10695
10696 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10697
f408d82c
SM
106982020-05-19 Simon Marchi <simon.marchi@efficios.com>
10699
10700 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10701
98c59b52
PA
107022020-05-19 Pedro Alves <palves@redhat.com>
10703
10704 * NEWS (set exec-file-mismatch): Adjust entry.
10705 * exec.c: Include "build-id.h".
10706 (validate_exec_file): Try to match build IDs instead of filenames.
10707 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10708 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10709 and pass down 'warn_if_slow'.
10710 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10711 gdb_bfd_open_closure to pass it down.
10712 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10713
4111f652
PA
107142020-05-19 Pedro Alves <palves@redhat.com>
10715
10716 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10717 * target.c (target_fileio_open_1): Rename to target_fileio_open
10718 and make extern. Use bool.
10719 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10720 (target_fileio_read_alloc_1): Adjust.
10721 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10722 (target_fileio_open_warn_if_slow): Delete declaration.
10723
ad80db5b
PA
107242020-05-19 Pedro Alves <palves@redhat.com>
10725
10726 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10727 Adjust all callers.
10728
1d6ce4d3
YS
107292020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10730
10731 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10732 whether disp is negative.
10733
9005fbbb
SM
107342020-05-19 Simon Marchi <simon.marchi@efficios.com>
10735
10736 * symfile.h (struct symfile_segment_data)
10737 <~symfile_segment_data>: Remove.
10738 <segment_info>: Change to std::vector.
10739 * symfile.c (default_symfile_segments): Update.
10740 * elfread.c (elf_symfile_segments): Update.
10741
68b888ff
SM
107422020-05-19 Simon Marchi <simon.marchi@efficios.com>
10743
10744 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10745 <segments>: New.
10746 <segment_bases, segment_sizes>: Remove.
10747 * symfile.c (default_symfile_segments): Update.
10748 * elfread.c (elf_symfile_segments): Update.
10749 * remote.c (remote_target::get_offsets): Update.
10750 * solib-target.c (solib_target_relocate_section_addresses):
10751 Update.
10752
62982abd
SM
107532020-05-19 Simon Marchi <simon.marchi@efficios.com>
10754
10755 * symfile.h (struct symfile_segment_data): Initialize fields.
10756 <~symfile_segment_data>: Add.
10757 (symfile_segment_data_up): New.
10758 (struct sym_fns) <sym_segments>: Return a
10759 symfile_segment_data_up.
10760 (default_symfile_segments): Return a symfile_segment_data_up.
10761 (free_symfile_segment_data): Remove.
10762 (get_symfile_segment_data): Return a symfile_segment_data_up.
10763 * symfile.c (default_symfile_segments): Likewise.
10764 (get_symfile_segment_data): Likewise.
10765 (free_symfile_segment_data): Remove.
10766 (symfile_find_segment_sections): Update.
10767 * elfread.c (elf_symfile_segments): Return a
10768 symfile_segment_data_up.
10769 * remote.c (remote_target::get_offsets): Update.
10770 * solib-target.c (solib_target_relocate_section_addresses):
10771 Update.
10772 * symfile-debug.c (debug_sym_segments): Return a
10773 symfile_segment_data_up.
10774
7f204339
RO
107752020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10776
e52a0f1b
RO
10777 PR build/25981
10778 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10779 Hardcode register numbers.
10780
7f204339
RO
10781 PR build/25981
10782 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10783 procfs_find_LDT_entry): Remove.
10784 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10785 procfs_find_LDT_entry): Remove.
10786 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10787 Remove.
10788
7f32a4d5
PA
107892020-05-17 Pedro Alves <palves@redhat.com>
10790 Andrew Burgess <andrew.burgess@embecosm.com>
10791 Keno Fischer <keno@juliacomputing.com>
10792
10793 PR gdb/25741
10794 * breakpoint.c (build_target_condition_list): Update comments.
10795 (build_target_command_list): Update comments and skip matching
10796 locations.
10797 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10798 a separate function. Simplify "set breakpoint auto-hw off"
10799 handling.
10800 (insert_breakpoints): Update comment.
10801 (tracepoint_locations_match): New parameter. For breakpoints,
10802 compare location types too, if the caller wants to.
10803 (handle_automatic_hardware_breakpoints): New functions.
10804 (bp_location_is_less_than): Also sort by location type and
10805 hardware breakpoint length.
10806 (update_global_location_list): Handle "set breakpoint auto-hw on"
10807 here.
10808 (update_breakpoint_locations): Ask breakpoint_locations_match to
10809 ignore location types.
10810
7d93a1e0
SM
108112020-05-16 Simon Marchi <simon.marchi@efficios.com>
10812
10813 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10814 type::name instead.
10815
d0e39ea2
SM
108162020-05-16 Simon Marchi <simon.marchi@efficios.com>
10817
10818 * gdbtypes.h (struct type) <name, set_name>: New methods.
10819 (TYPE_CODE): Use type::name. Change all call sites used to set
10820 the name to use type::set_name instead.
10821
2dab0c7b
TT
108222020-05-16 Tom Tromey <tom@tromey.com>
10823
10824 * top.c (quit_force): Update.
10825 * infrun.c (handle_no_resumed): Update.
10826 * top.h (all_uis): New function.
10827 (ALL_UIS): Remove.
10828
59f7bd8d
SM
108292020-05-16 Simon Marchi <simon.marchi@efficios.com>
10830
10831 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10832
9bf058f0
PA
108332020-05-16 Pedro Alves <palves@redhat.com>
10834
10835 * ia64-linux-nat.c
10836 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10837 Declare method.
10838 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10839
8f86ae1a
SM
108402020-05-15 Simon Marchi <simon.marchi@efficios.com>
10841
10842 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10843 (sparc64_adi_info): Likewise.
10844
d6bc0792
TT
108452020-05-15 Tom Tromey <tom@tromey.com>
10846
10847 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10848 block_objfile.
10849 (lookup_objfile_from_block): Remove.
10850 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10851 (lookup_global_symbol): Use block_objfile.
10852 * symtab.h (lookup_objfile_from_block): Don't declare.
10853 * printcmd.c (clear_dangling_display_expressions): Use
10854 block_objfile.
10855 * parse.c (operator_check_standard): Use block_objfile.
10856
8c14c3a3
TT
108572020-05-15 Tom Tromey <tom@tromey.com>
10858
10859 * language.c (language_alloc_type_symbol): Set
10860 SYMBOL_SECTION.
10861 * symtab.c (initialize_objfile_symbol): Remove.
10862 (allocate_symbol): Remove.
10863 (allocate_template_symbol): Remove.
10864 * dwarf2/read.c (fixup_go_packaging): Use "new".
10865 (new_symbol): Use "new".
10866 (read_variable): Don't call initialize_objfile_symbol. Use
10867 "new".
10868 (read_func_scope): Use "new".
10869 * xcoffread.c (process_xcoff_symbol): Don't call
10870 initialize_objfile_symbol.
10871 (SYMBOL_DUP): Remove.
10872 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10873 "new".
10874 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10875 (allocate_template_symbol): Don't declare.
10876 (struct symbol): Add copy constructor. Change defaults.
10877 * jit.c (finalize_symtab): Use "new".
10878 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10879 Use "new".
10880 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10881 (common_block_end): Use "new".
10882 * mdebugread.c (parse_symbol): Use "new".
10883 (new_symbol): Likewise.
10884
5b4a1a8d
PW
108852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10886
10887 * NEWS: Mention changes to help and apropos.
10888
57b4f16e
PW
108892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10890
10891 * command.h (enum command_class): Improve comments, document
10892 that class_alias is for user-defined aliases, give the class
10893 name for each class, remove unused class_xdb.
10894 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10895 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10896 by a precise class.
10897 * infcmd.c (_initialize_infcmd): Likewise.
10898 * reverse.c (_initialize_reverse): Likewise.
10899 * stack.c (_initialize_stack): Likewise.
10900 * symfile.c (_initialize_symfile): Likewise.
10901 * tracepoint.c (_initialize_tracepoint): Likewise.
10902
7c05caf7
PW
109032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10904
10905 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10906 when their aliased command is traversed.
10907 (help_cmd): Add fput_command_names_styled call to
10908 output command name and aliases when command has an alias.
10909
3b3aaacb
PW
109102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10911
10912 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10913 * cli/cli-decode.c (help_cmd_list): Declare as static,
10914 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10915 a command together with the command.
10916 (fput_command_name_styled, fput_command_names_styled): New functions.
10917 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10918 fput_command_name_styled.
10919 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10920 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10921
7aa1b46f
PW
109222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10923
10924 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10925 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10926 * command.h (cmd_show_list): Likewise.
10927 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10928 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10929
89bcba74
PW
109302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10931
10932 * unittests/command-def-selftests.c (traverse_command_structure):
10933 Verify all commands of a list have the same prefix command and
10934 that only the top cmdlist commands have a null prefix.
10935
3f4d92eb
PW
109362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10937
10938 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10939 as prefix, not one of its aliases.
10940 (set_cmd_prefix): Remove.
10941 (do_add_cmd): Centralize the setting of the prefix of a command, when
10942 command is defined after its full chain of prefix commands.
10943 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10944 (add_setshow_cmd_full): Likewise.
10945 (update_prefix_field_of_prefixed_commands): New function.
10946 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10947 update_prefix_field_of_prefixed_commands.
10948 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10949 addresses of remote_set_cmdlist and remote_show_cmdlist given
10950 as argument, not the address of an argument.
10951 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10952 * gdb/remote.c (_initialize_remote): Likewise.
10953
0605465f
PW
109542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10955
10956 * cli/cli-cmds.c (alias_command): Check for an existing alias
10957 using lookup_cmd_composition, as valid_command_p is too strict
10958 and forbids aliases that are the prefix of an existing alias
10959 or command.
10960 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10961 command is properly recognised as a valid command.
10962
58e6ac70
PW
109632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10964
10965 * unittests/help-doc-selftests.c: Rename to
10966 unittests/command-def-selftests.c
10967 * unittests/command-def-selftests.c (help_doc_tests): Update some
10968 comments.
10969 (command_structure_tests, traverse_command_structure): New namespace
10970 and function.
10971 (command_structure_invariants_tests): New function.
10972 (_initialize_command_def_selftests) Renamed from
10973 _initialize_help_doc_selftests, register command_structure_invariants
10974 selftest.
10975
a7b9ceb8
PW
109762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10977
10978 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10979 an alias of 'show'.
10980
b2188a06
JB
109812020-05-15 Joel Brobecker <brobecker@adacore.com>
10982
10983 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10984 ada_is_fixed_point_type. Update all callers.
10985 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10986 all callers.
10987 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10988 Update all callers.
10989 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10990 print_fixed_point_type. Update all callers.
10991 * ada-valprint.c (ada_value_print_num): Replace call to
10992 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10993
a51951c2
KB
109942020-05-14 Kevin Buettner <kevinb@redhat.com>
10995
10996 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10997 processors.
10998 (cpu_supports_bts): Add CV_AMD case.
10999
29d6859f
LM
110002020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11001 Simon Marchi <simon.marchi@efficios.com>
11002
11003 * infrun.c (stop_all_threads): Collect multiple wait events at
11004 each pass.
11005
78134374
SM
110062020-05-14 Simon Marchi <simon.marchi@efficios.com>
11007
11008 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11009 type::code instead.
11010
67607e24
SM
110112020-05-14 Simon Marchi <simon.marchi@efficios.com>
11012
11013 * gdbtypes.h (struct type) <code, set_code>: New methods.
11014 (TYPE_CODE): Use type::code. Change all call sites used to set
11015 the code to use type::set_code instead.
11016
a05575d3
TBA
110172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11018 Tom de Vries <tdevries@suse.de>
11019 Pedro Alves <palves@redhat.com>
11020
11021 PR threads/25478
11022 * infrun.c (stop_all_threads): Do NOT ignore
11023 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11024 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11025 received.
11026 (handle_no_resumed): Remove code handling a live inferior with no
11027 threads.
11028 * remote.c (has_single_non_exited_thread): New.
11029 (remote_target::update_thread_list): Do not delete a thread if is
11030 the last thread of the process.
11031 * thread.c (thread_select): Call delete_exited_threads instead of
11032 prune_threads.
11033
6ad82919
TBA
110342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11035
11036 * infrun.c (stop_all_threads): Enable/disable thread events of all
11037 targets. Move a debug message denoting the end of the function
11038 into the SCOPED_EXIT block.
11039
d890404b
TBA
110402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11041
11042 * process-stratum-target.h: Include <set>.
11043 (all_non_exited_process_targets, switch_to_target_no_thread): New
11044 function declarations.
11045 * process-stratum-target.c (all_non_exited_process_targets)
11046 (switch_to_target_no_thread): New function implementations.
11047
293b3ebc
TBA
110482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11049
11050 * infrun.c (handle_inferior_event): Extract out a piece of code
11051 into...
11052 (mark_non_executing_threads): ...this new function.
11053
7ca9b62a
TBA
110542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11055
11056 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11057 use.
11058
fc75c28b
TBA
110592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11060
11061 * regcache.c (regcache_read_pc_protected): New function
11062 implementation that returns 0 if the PC cannot read via
11063 'regcache_read_pc'.
11064 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11065 instead of 'regcache_read_pc'.
11066 (keep_going_pass_signal): Ditto.
11067
a89febbd
TT
110682020-05-13 Tom Tromey <tromey@adacore.com>
11069
11070 * ada-lang.c (align_value): Remove.
11071 (ada_template_to_fixed_record_type_1): Use align_up.
11072
f7e23710
TBA
110732020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11074
11075 * async-event.c: Update the copyright year.
11076 * async-event.h: Update the copyright year.
11077
02ff80c2
SM
110782020-05-12 Simon Marchi <simon.marchi@efficios.com>
11079
11080 * objfiles.h (is_addr_in_objfile,
11081 shared_objfile_contains_address_p): Return bool.
11082 * objfile.c (is_addr_in_objfile,
11083 shared_objfile_contains_address_p): Return bool.
11084
4fd6c7e8
TT
110852020-05-11 Tom Tromey <tromey@adacore.com>
11086
11087 * cli/cli-cmds.c (info_command): Restore.
11088 (_initialize_cli_cmds): Use add_prefix_command for "info".
11089 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11090
5eb68a39
TT
110912020-05-11 Tom Tromey <tromey@adacore.com>
11092
11093 * ada-lang.c (ada_value_primitive_field): Now public.
11094 * ada-lang.h (ada_value_primitive_field): Declare.
11095 * ada-valprint.c (print_field_values): Use
11096 ada_value_primitive_field for wrapper fields.
11097
7666722f
TV
110982020-05-11 Tom de Vries <tdevries@suse.de>
11099
11100 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11101 MODULE_DOMAIN.
11102
3ee6bb11
TV
111032020-05-11 Tom de Vries <tdevries@suse.de>
11104
11105 PR symtab/25941
11106 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11107 with length 0, if not gdb-produced.
11108 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11109
43434996
TV
111102020-05-09 Tom de Vries <tdevries@suse.de>
11111
11112 PR gdb/25955
11113 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11114 calculation.
11115
2f78cffc
TT
111162020-05-09 Tom Tromey <tom@tromey.com>
11117
11118 * top.c (server_command): Now bool.
11119 * top.h (server_command): Now bool.
11120
4f7bc5ed
TT
111212020-05-08 Tom Tromey <tromey@adacore.com>
11122
11123 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11124 already being processed.
11125
8be4b118
TT
111262020-05-08 Tom Tromey <tom@tromey.com>
11127
11128 * printcmd.c (struct display) <next>: Remove.
11129 <display>: New constructor.
11130 <exp_string>: Now a std::string.
11131 <enabled_p>: Now a bool.
11132 (display_number): Move definition earlier.
11133 (displays): Rename from display_chain. Now a std::vector.
11134 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11135 (display_command): Update.
11136 (do_one_display, disable_display)
11137 (enable_disable_display_command, do_enable_disable_display):
11138 Update.
11139 (free_display): Remove.
11140 (clear_displays): Rewrite.
11141 (delete_display): Update.
11142 (map_display_numbers): Use function_view. Remove "data"
11143 parameter. Update.
11144 (do_delete_display): Remove.
11145 (undisplay_command): Update.
11146 (do_one_display, do_displays, disable_display)
11147 (info_display_command): Update.
11148 (do_enable_disable_display): Remove.
11149 (enable_disable_display_command)
11150 (clear_dangling_display_expressions): Update.
11151
94c93c35
TT
111522020-05-08 Tom Tromey <tom@tromey.com>
11153
11154 * symtab.c (set_symbol_cache_size)
11155 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11156 (maintenance_print_symbol_cache_statistics): Update.
11157 * symmisc.c (print_symbol_bcache_statistics)
11158 (print_objfile_statistics, maintenance_print_objfiles)
11159 (maintenance_info_symtabs, maintenance_check_symtabs)
11160 (maintenance_expand_symtabs, maintenance_info_line_tables):
11161 Update.
11162 * symfile-debug.c (set_debug_symfile): Update.
11163 * source.c (forget_cached_source_info): Update.
11164 * python/python.c (gdbpy_progspaces): Update.
11165 * psymtab.c (maintenance_info_psymtabs): Update.
11166 * probe.c (parse_probes): Update.
11167 * linespec.c (iterate_over_all_matching_symtabs)
11168 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11169 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11170 * exec.c (exec_target::close): Update.
11171 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11172 * breakpoint.c (print_one_breakpoint_location)
11173 (create_longjmp_master_breakpoint)
11174 (create_std_terminate_master_breakpoint): Update.
11175 * progspace.c (program_spaces): Now a std::vector.
11176 (maybe_new_address_space): Update.
11177 (add_program_space): Remove.
11178 (program_space::program_space): Update.
11179 (remove_program_space): Update.
11180 (number_of_program_spaces): Remove.
11181 (print_program_space, update_address_spaces): Update.
11182 * progspace.h (program_spaces): Change type.
11183 (ALL_PSPACES): Remove.
11184 (number_of_program_spaces): Don't declare.
11185 (struct program_space) <next>: Remove.
11186
a1fd1ac9
TT
111872020-05-08 Tom Tromey <tom@tromey.com>
11188
11189 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11190 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11191 (enable_break): Update.
11192 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11193 (frv_fdpic_find_canonical_descriptor): Update.
11194 (frv_fetch_objfile_link_map): Update.
11195 * progspace.c (program_space::free_all_objfiles): Update.
11196 (program_space::solibs): New method.
11197 * progspace.h (struct program_space) <solibs>: New method.
11198 * solist.h (master_so_list): Don't declare.
11199 (ALL_SO_LIBS): Remove.
11200 * solib.h (so_list_head): Remove.
11201 (update_solib_list): Update comment.
11202 * solib.c (master_so_list): Remove.
11203 (solib_used, update_solib_list, solib_add)
11204 (info_sharedlibrary_command, clear_solib)
11205 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11206
38eae084
TT
112072020-05-08 Tom Tromey <tom@tromey.com>
11208
11209 * extension.c (extension_languages): Now a std::array.
11210 (ALL_EXTENSION_LANGUAGES): Remove.
11211 (get_ext_lang_defn, get_ext_lang_of_file)
11212 (eval_ext_lang_from_control_command): Update.
11213 (finish_ext_lang_initialization)
11214 (auto_load_ext_lang_scripts_for_objfile)
11215 (ext_lang_type_printers::ext_lang_type_printers)
11216 (apply_ext_lang_type_printers)
11217 (ext_lang_type_printers::~ext_lang_type_printers)
11218 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11219 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11220 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11221 (get_matching_xmethod_workers, ext_lang_colorize)
11222 (ext_lang_before_prompt): Update.
11223 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11224
596dc4ad
TT
112252020-05-08 Tom Tromey <tom@tromey.com>
11226
11227 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11228 overload.
11229 <swap_string, m_string>: Remove.
11230 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11231 Update.
11232 * stabsread.c (define_symbol, read_type): Update.
11233 * linespec.c (find_linespec_symbols): Update.
11234 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11235 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11236 * dbxread.c (read_dbx_symtab): Update.
11237 * cp-support.h (cp_canonicalize_string_full)
11238 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11239 Return unique_xmalloc_ptr.
11240 * cp-support.c (inspect_type): Update.
11241 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11242 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11243 Likewise.
11244 * c-typeprint.c (print_name_maybe_canonical): Update.
11245 * break-catch-throw.c (check_status_exception_catchpoint):
11246 Update.
11247
bf4cb9be
TV
112482020-05-08 Tom de Vries <tdevries@suse.de>
11249
11250 * infrun.c (follow_fork): Copy current_line and current_symtab to
11251 child thread.
11252
a1b68f28
SM
112532020-05-07 Simon Marchi <simon.marchi@efficios.com>
11254
11255 * async-event.c (struct async_signal_handler, struct
11256 async_event_handler): Reformat, remove typedef.
11257
98d48915
SM
112582020-05-07 Simon Marchi <simon.marchi@efficios.com>
11259
11260 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11261 access thistype->main_type->dyn_prop_list directly.
11262
7aa91313
SM
112632020-05-07 Simon Marchi <simon.marchi@efficios.com>
11264
11265 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11266 (remove_dyn_prop): Remove. Update all users to use
11267 type::remove_dyn_prop.
11268 * gdbtypes.c (remove_dyn_prop): Rename to...
11269 (type::remove_dyn_prop): ... this.
11270
5c54719c
SM
112712020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11272
11273 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11274 (add_dyn_prop): Remove. Update all users to use
11275 type::add_dyn_prop.
11276 * gdbtypes.c (add_dyn_prop): Rename to...
11277 (type::add_dyn_prop): ... this.
11278
24e99c6c
SM
112792020-05-07 Simon Marchi <simon.marchi@efficios.com>
11280
11281 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11282 (get_dyn_prop): Remove. Update all users to use
11283 type::dyn_prop.
11284 * gdbtypes.c (get_dyn_prop): Rename to...
11285 (type::dyn_prop): ... this.
11286
0d4bf016
SM
112872020-05-06 Simon Marchi <simon.marchi@efficios.com>
11288
11289 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11290
ac4a4f1c
SM
112912020-05-06 Simon Marchi <simon.marchi@efficios.com>
11292
11293 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11294 instruction, skip it if it's there.
11295
a3bbacc1
SM
112962020-05-05 Simon Marchi <simon.marchi@efficios.com>
11297
11298 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11299
c3236f84
SM
113002020-05-04 Simon Marchi <simon.marchi@efficios.com>
11301
11302 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11303 * gdbtypes.c (recursive_dump_type): Remove use of
11304 TYPE_INCOMPLETE.
11305
3b6acaee
TT
113062020-05-03 Tom Tromey <tom@tromey.com>
11307
11308 * breakpoint.c (catch_command, tcatch_command): Remove.
11309 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11310 add_show_prefix_cmd.
11311 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11312 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11313 Remove.
11314 (add_internal_problem_command): Use add_basic_prefix_cmd,
11315 add_show_prefix_cmd.
11316 * mips-tdep.c (set_mipsfpu_command): Remove.
11317 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11318 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11319 (_initialize_index_cache): Use add_basic_prefix_cmd.
11320 * memattr.c (dummy_cmd): Remove.
11321 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11322 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11323 (_initialize_tui_win): Use add_basic_prefix_cmd,
11324 add_show_prefix_cmd.
11325 * cli/cli-logging.c (set_logging_command): Remove.
11326 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11327 add_show_prefix_cmd.
11328 (show_logging_command): Remove.
11329 * target.c (target_command): Remove.
11330 (add_target): Use add_basic_prefix_cmd.
11331
a51119cd
HD
113322020-05-02 Hannes Domani <ssbssa@yahoo.de>
11333
11334 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11335
652fc23a 113362020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11337
652fc23a
PW
11338 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11339 info_command.
11340
117539e6
KR
113412020-04-30 Kamil Rytarowski <n54@gmx.com>
11342
11343 * nbsd-nat.c (nbsd_enable_proc_events)
11344 (nbsd_nat_target::post_startup_inferior): Add.
11345 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11346 (nbsd_nat_target::update_thread_list): Rewrite.
11347 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11348 "PTRACE_LWP_CREATE".
11349 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11350
102e38eb 113512020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11352
102e38eb
PW
11353 * stack.c (_initialize_stack): Remove duplicated creation
11354 of "frame" command and "f" alias.
11355
ee9d1e5f
HD
113562020-04-30 Hannes Domani <ssbssa@yahoo.de>
11357
11358 PR gdb/18706
11359 * gdbtypes.c (check_typedef): Calculate size of array of
11360 stubbed type.
11361
627c7fb8
HD
113622020-04-30 Hannes Domani <ssbssa@yahoo.de>
11363
11364 PR gdb/15559
11365 * i386-tdep.c (i386_push_dummy_call): Call
11366 i386_thiscall_push_dummy_call.
11367 (i386_thiscall_push_dummy_call): New function.
11368 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11369 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11370 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11371
ffc2844e
SM
113722020-04-29 Simon Marchi <simon.marchi@efficios.com>
11373
11374 * gdbarch.sh (do_read): Add shellcheck disable directive for
11375 warning SC2162.
11376
1207375d
SM
113772020-04-29 Simon Marchi <simon.marchi@efficios.com>
11378
11379 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11380 "referenced but not assigned" warning.
11381
9fdb2916
SM
113822020-04-29 Simon Marchi <simon.marchi@efficios.com>
11383
11384 * gdbarch.sh: Remove code that sets fallbackdefault.
11385
759cea5e
SM
113862020-04-29 Simon Marchi <simon.marchi@efficios.com>
11387
11388 * gdbarch.sh: Use shell operators && and || instead of
11389 -a and -o.
11390
cb02ab24
SM
113912020-04-29 Simon Marchi <simon.marchi@efficios.com>
11392
11393 * gdbarch.sh: Use $(...) instead of `...`.
11394
a6fc5ffc
SM
113952020-04-29 Simon Marchi <simon.marchi@efficios.com>
11396
11397 * gdbarch.sh: Use double quotes around variables.
11398
8d113d13
SM
113992020-04-29 Simon Marchi <simon.marchi@efficios.com>
11400
11401 * gdbarch.sh: Use %s with printf, instead of variables in the
11402 format string.
11403
ed6acedd
TT
114042020-04-29 Tom Tromey <tromey@adacore.com>
11405
11406 PR ada/25875:
11407 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11408 type fields here.
11409 (read_enumeration_type): Call
11410 update_enumeration_type_from_children later. Update comments.
11411 (process_enumeration_scope): Don't create type fields.
11412
b68b1b58
KR
114132020-04-29 Kamil Rytarowski <n54@gmx.com>
11414
11415 * nbsd-tdep.c: Include "xml-syscall.h".
11416 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11417
f94b2e03
KR
114182020-04-29 Kamil Rytarowski <n54@gmx.com>
11419
11420 * nbsd-nat.c: Include "sys/wait.h".
11421 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11422 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11423 (nbsd_nat_target::remove_exec_catchpoint)
11424 (nbsd_nat_target::set_syscall_catchpoint): Add.
11425 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11426 (nbsd_nat_target::insert_exec_catchpoint)
11427 (nbsd_nat_target::remove_exec_catchpoint)
11428 (nbsd_nat_target::set_syscall_catchpoint): Add.
11429 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11430 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11431 `nbsd_get_syscall_number'.
11432
fc49bc72
TT
114332020-04-29 Tom Tromey <tom@tromey.com>
11434
11435 * stack.c (print_block_frame_labels): Remove.
11436
d642b692
HD
114372020-04-29 Hannes Domani <ssbssa@yahoo.de>
11438
11439 PR gdb/17320
11440 * ada-valprint.c (val_print_packed_array_elements): Move array
11441 end bracket to new line.
11442 (ada_val_print_string): Remove extra spaces before first array
11443 element.
11444 * c-valprint.c (c_value_print_array): Likewise.
11445 * m2-valprint.c (m2_print_array_contents): Likewise.
11446 (m2_value_print_inner): Likewise.
11447 * p-valprint.c (pascal_value_print_inner): Likewise.
11448 * valprint.c (generic_val_print_array): Likewise.
11449 (value_print_array_elements): Move first array element and array
11450 end bracket to new line.
11451
ea90f227
TV
114522020-04-29 Tom de Vries <tdevries@suse.de>
11453
11454 PR symtab/25889
11455 * linespec.c (find_method): Fix ix calculation.
11456
4498ef4f
KR
114572020-04-28 Kamil Rytarowski <n54@gmx.com>
11458
11459 * syscalls/update-netbsd.sh: New file.
11460 * syscalls/netbsd.xml: Regenerate.
11461 * data-directory/Makefile.in: Register `netbsd.xml' in
11462 `SYSCALLS_FILES'.
11463
a55e30b5
SM
114642020-04-28 Simon Marchi <simon.marchi@efficios.com>
11465
11466 * syscalls/update-freebsd.sh: Add double quotes.
11467
2b2fbab8
TT
114682020-04-28 Tom Tromey <tom@tromey.com>
11469
11470 * NEWS: Update.
11471 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11472 (cmdpy_init): Allow class_tui.
11473
a65189c9
TV
114742020-04-28 Mark Williams <mark@myosotissp.com>
11475
11476 PR gdb/24480
11477 * dwarf2read.c: Add missing assingments to list_in_scope when
11478 start_symtab was already called.
11479
1b95cdb7
SM
114802020-04-28 Simon Marchi <simon.marchi@efficios.com>
11481
11482 PR gdb/25881
11483 * dwarf2/read.c (offset_map_type): Use
11484 gdb:hash_enum<sect_offset> as hash function.
11485
15cd93d0
TV
114862020-04-28 Tom de Vries <tdevries@suse.de>
11487
11488 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11489 with DW_AT_signature.
11490
1eb39914
SM
114912020-04-27 Simon Marchi <simon.marchi@efficios.com>
11492
11493 * configure.ac: Remove check for fs_base/gs_base in
11494 user_regs_struct.
11495 * configure: Re-generate.
11496 * config.in: Re-generate.
11497 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11498 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11499 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11500
991a3e2e
LM
115012020-04-27 Luis Machado <luis.machado@linaro.org>
11502
11503 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11504 problematic inline frame unwinding situation.
11505 * frame.c (frame_id_computed_p): New function.
11506 * frame.h (frame_id_computed_p): New prototype.
11507
361ba0e8
TT
115082020-04-26 Tom Tromey <tom@tromey.com>
11509
11510 * command.h (enum command_class) <class_pseudo>: Remove.
11511
bc3609fd
PW
115122020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11513
11514 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11515 and whitespace.
11516
b9771db7
KR
115172020-04-25 Kamil Rytarowski <n54@gmx.com>
11518
ec16513e
SM
11519 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11520 `PT_GET_PROCESS_STATE' block.
b9771db7 11521
7151c1af
TT
115222020-04-24 Tom Tromey <tom@tromey.com>
11523
11524 * symtab.h (symbol_get_demangled_name): Don't declare.
11525 * symtab.c (symbol_get_demangled_name): Remove.
11526 (general_symbol_info::natural_name)
11527 (general_symbol_info::demangled_name): Update.
11528
906bb4c5
TT
115292020-04-24 Tom Tromey <tom@tromey.com>
11530
11531 PR rust/25025:
11532 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11533
bcfe6157
TT
115342020-04-24 Tom Tromey <tom@tromey.com>
11535
11536 PR symtab/12707:
11537 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11538 exists.
11539 (new_symbol): Likewise.
11540 * compile/compile-object-load.c (get_out_value_type): Use
11541 symbol_matches_search_name.
11542
f049a313
TT
115432020-04-24 Tom Tromey <tom@tromey.com>
11544
11545 * dwarf2/read.c (add_partial_symbol): Do not call
11546 compute_and_set_names.
11547
76e288d1
TT
115482020-04-24 Tom Tromey <tom@tromey.com>
11549
11550 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11551 overload.
11552
2467f4f6
TT
115532020-04-24 Tom Tromey <tom@tromey.com>
11554
11555 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11556 (add_psymbol_to_list): New overload. Make old overload call new
11557 one.
11558 * psympriv.h (add_psymbol_to_list): New overload.
11559
e61108c9
TT
115602020-04-24 Tom Tromey <tom@tromey.com>
11561
11562 * dwarf2/read.c (partial_die_info::read) <case
11563 DW_AT_linkage_name>: Use value_as_string.
11564 (dwarf2_string_attr): Use value_as_string.
11565 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11566 method.
11567 * dwarf2/attribute.c (attribute::value_as_string): New method.
11568
8c87a452
TT
115692020-04-24 Tom Tromey <tom@tromey.com>
11570
11571 * symtab.c (general_symbol_info::natural_name)
11572 (general_symbol_info::demangled_name): Check for language_rust.
11573
787de330
TT
115742020-04-24 Tom Tromey <tom@tromey.com>
11575
11576 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11577 (dwarf2_physname): ... from here.
11578 (partial_die_info::read): Add Rust "{" hack.
11579
ff985671
TT
115802020-04-24 Tom Tromey <tom@tromey.com>
11581
11582 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11583 method.
11584 (symbol_set_demangled_name): Don't declare.
11585 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11586 symbol_set_demangled_name.
11587 (general_symbol_info::set_language)
11588 (general_symbol_info::compute_and_set_names): Update.
11589 * minsyms.c (minimal_symbol_reader::install): Update.
11590 * dwarf2/read.c (new_symbol): Update.
11591
1acda803
TT
115922020-04-24 Tom Tromey <tromey@adacore.com>
11593
11594 PR python/23662:
11595 * python/py-type.c (convert_field): Handle
11596 FIELD_LOC_KIND_DWARF_BLOCK.
11597 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11598 (typy_get_dynamic): Nw function.
11599 (type_object_getset): Add "dynamic".
11600 * NEWS: Add entry.
11601
d656f129
TT
116022020-04-24 Tom Tromey <tromey@adacore.com>
11603
11604 * ada-typeprint.c (print_choices, print_variant_part)
11605 (print_record_field_types_dynamic): New functions.
11606 (print_record_field_types): Use print_record_field_types_dynamic.
11607
7d79de9a
TT
116082020-04-24 Tom Tromey <tromey@adacore.com>
11609
11610 * dwarf2/read.c (handle_data_member_location): New overload.
11611 (dwarf2_add_field): Use it.
11612 (decode_locdesc): Add "computed" parameter. Update comment.
11613 * gdbtypes.c (is_dynamic_type_internal): Also look for
11614 FIELD_LOC_KIND_DWARF_BLOCK.
11615 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11616 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11617 virtual base classes.
11618 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11619 FIELD_LOC_KIND_DWARF_BLOCK.
11620
f8e89861
TT
116212020-04-24 Tom Tromey <tromey@adacore.com>
11622
11623 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11624 * gdbtypes.c (is_dynamic_type_internal): Check
11625 TYPE_HAS_DYNAMIC_LENGTH.
11626 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11627 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11628 New macros.
11629 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11630 constant.
11631
9c6a1327
TT
116322020-04-24 Tom Tromey <tromey@adacore.com>
11633
11634 * dwarf2/read.c (struct variant_field): Rewrite.
11635 (struct variant_part_builder): New.
11636 (struct nextfield): Remove "variant" field. Add "offset".
11637 (struct field_info): Add "current_variant_part" and
11638 "variant_parts".
11639 (alloc_discriminant_info): Remove.
11640 (alloc_rust_variant): New function.
11641 (quirk_rust_enum): Update.
11642 (dwarf2_add_field): Set "offset" member. Don't handle
11643 DW_TAG_variant_part.
11644 (offset_map_type): New typedef.
11645 (convert_variant_range, create_one_variant)
11646 (create_one_variant_part, create_variant_parts)
11647 (add_variant_property): New functions.
11648 (dwarf2_attach_fields_to_type): Call add_variant_property.
11649 (read_structure_type): Don't handle DW_TAG_variant_part.
11650 (handle_variant_part, handle_variant): New functions.
11651 (handle_struct_member_die): Use them.
11652 (process_structure_scope): Don't handle variant parts.
11653 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11654 (struct discriminant_info): Remove.
11655 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11656 (struct main_type) <flag_discriminated_union>: Remove.
11657 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11658 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11659 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11660 Update.
11661 * valops.c (value_union_variant): Remove.
11662 * value.h (value_union_variant): Don't declare.
11663
b249d2c2
TT
116642020-04-24 Tom Tromey <tromey@adacore.com>
11665
11666 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11667 (ada_value_primitive_packed_val): Update.
11668 * ada-valprint.c (ada_value_print_1): Update.
11669 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11670 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11671 just an address. Use evaluate_for_locexpr_baton.
11672 (dwarf2_evaluate_property): Update.
11673 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11674 array_view.
11675 * findvar.c (default_read_var_value): Update.
11676 * gdbtypes.c (compute_variant_fields_inner)
11677 (resolve_dynamic_type_internal): Update.
11678 (resolve_dynamic_type): Change type of valaddr parameter.
11679 * gdbtypes.h (resolve_dynamic_type): Update.
11680 * valarith.c (value_subscripted_rvalue): Update.
11681 * value.c (value_from_contents_and_address): Update.
11682
61122aa9
TT
116832020-04-24 Tom Tromey <tromey@adacore.com>
11684
11685 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11686 "push_initial_value" parameter.
11687 (dwarf2_evaluate_property): Likewise.
11688 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11689
ef83a141
TT
116902020-04-24 Tom Tromey <tromey@adacore.com>
11691
11692 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11693 (variant::matches, compute_variant_fields_recurse)
11694 (compute_variant_fields_inner, compute_variant_fields): New
11695 functions.
11696 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11697 Use resolved_type after type is made.
11698 (operator==): Add new cases.
11699 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11700 (struct discriminant_range, struct variant, struct variant_part):
11701 New.
11702 (union dynamic_prop_data) <variant_parts, original_type>: New
11703 members.
11704 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11705 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11706 constants.
11707 * value.c (unpack_bits_as_long): Now public.
11708 * value.h (unpack_bits_as_long): Declare.
11709
675127ec
TT
117102020-04-24 Tom Tromey <tromey@adacore.com>
11711
11712 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11713 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11714
9852ceef
HD
117152020-04-24 Hannes Domani <ssbssa@yahoo.de>
11716
11717 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11718
7632c6ce
KR
117192020-04-24 Kamil Rytarowski <n54@gmx.com>
11720
11721 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11722 (remove_fork_catchpoint, post_startup_inferior)
11723 (post_attach): Move...
11724 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11725 (remove_fork_catchpoint, post_startup_inferior)
11726 (post_attach): ...here.
11727 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11728 (remove_fork_catchpoint, post_startup_inferior)
11729 (post_attach): Move...
11730 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11731 (remove_fork_catchpoint, post_startup_inferior)
11732 (post_attach): ...here.
11733
7be2bb4f
TT
117342020-04-24 Tom Tromey <tromey@adacore.com>
11735
11736 * nat/windows-nat.h (struct windows_thread_info)
11737 <pc_adjusted>: New member.
11738 * windows-nat.c (windows_fetch_one_register): Check
11739 pc_adjusted.
11740 (windows_nat_target::get_windows_debug_event)
11741 (windows_nat_target::wait): Set pc_adjusted.
11742
f80cb3b4
TV
117432020-04-24 Tom de Vries <tdevries@suse.de>
11744
11745 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11746 Run gdb-add-index inside temp dir.
11747
29514b87
TT
117482020-04-23 Tom Tromey <tromey@adacore.com>
11749
11750 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11751 in loop.
11752
5939967b
LM
117532020-04-23 Luis Machado <luis.machado@linaro.org>
11754
11755 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11756 get_frame_register instead of gdbarch_unwind_pc.
11757
70bc38f5
TV
117582020-04-23 Tom de Vries <tdevries@suse.de>
11759
11760 * symtab.c (lookup_global_symbol): Prefer def over decl.
11761
de82891c
TV
117622020-04-23 Tom de Vries <tdevries@suse.de>
11763
11764 PR symtab/25807
11765 * block.c (best_symbol, better_symbol): Promote to external.
11766 * block.h (best_symbol, better_symbol): Declare.
11767 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11768 decl.
11769
ecc6c606
TT
117702020-04-23 Tom Tromey <tromey@adacore.com>
11771
11772 PR ada/25837:
11773 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11774 "const char *", not a "const std::string &".
11775 <name_and_matcher::operator==>: Update.
11776 * unittests/lookup_name_info-selftests.c: Change type of
11777 "result".
11778
740480b8
TT
117792020-04-23 Tom Tromey <tom@tromey.com>
11780
11781 * inferior.h (iterate_over_inferiors): Don't declare.
11782 * inferior.c (iterate_over_inferiors): Remove.
11783 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11784 Remove.
11785 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11786 use iterate_over_inferiors.
11787 (darwin_resume_inferior_it)
11788 (struct resume_inferior_threads_param)
11789 (darwin_resume_inferior_threads_it): Remove.
11790 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11791
ae3ab1f0
TV
117922020-04-23 Tom de Vries <tdevries@suse.de>
11793
11794 * blockframe.c (find_pc_partial_function): Use
11795 find_pc_sect_compunit_symtab rather than
11796 objfile->sf->qf->find_pc_sect_compunit_symtab.
11797
317d2668
TV
117982020-04-22 Tom de Vries <tdevries@suse.de>
11799
11800 PR symtab/25764
11801 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11802 in psymtabs.
11803
eea9e357
TV
118042020-04-22 Tom de Vries <tdevries@suse.de>
11805
11806 PR symtab/25801
11807 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11808 symtabs.
11809
3d5afab3
TV
118102020-04-22 Tom de Vries <tdevries@suse.de>
11811
11812 PR symtab/25700
11813 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11814 CU if already created.
11815
d43b7a2d
TBA
118162020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11817
11818 * infrun.c (displaced_step_fixup): Switch to the event_thread
11819 before calling displaced_step_restore, not after.
11820
d89edf9b
MM
118212020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11822
11823 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11824 its inferior is not recorded by us.
11825 (record_btrace_target_open): Replace call to
11826 all_non_exited_threads () with call to current_inferior
11827 ()->non_exited_threads ().
11828 (record_btrace_target::stop_recording): Likewise.
11829 (record_btrace_target::close): Likewise.
11830 (record_btrace_target::wait): Likewise.
11831 (record_btrace_target::record_stop_replaying): Likewise.
11832
5897fd49
MM
118332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11834
11835 * btrace.c (btrace_enable): Throw an error on double enables and
11836 when enabling recording fails.
11837 (btrace_disable): Throw an error if the thread is not recorded.
11838
1a476b6d
MM
118392020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11840
11841 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11842 request if we do not have a thread_info.
11843
4778a5f8
TV
118442020-04-21 Tom de Vries <tdevries@suse.de>
11845
11846 PR gdb/25471
11847 * thread.c
11848 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11849 exception in get_frame_id.
11850
0fa7617d
TT
118512020-04-20 Tom Tromey <tromey@adacore.com>
11852
11853 * python/python.c (struct gdbpy_event): Mark move constructor as
11854 noexcept.
11855 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11856 constructor as noexcept.
11857 * completer.h (struct completion_result): Mark move constructor as
11858 noexcept.
11859 * completer.c (completion_result::completion_result): Use
11860 initialization style. Don't call reset_match_list.
11861
ad23bda0
MS
118622020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11863
11864 * MAINTAINERS (Write After Approval): Add myself.
11865
45e1f031
TT
118662020-04-18 Tom Tromey <tom@tromey.com>
11867
11868 * windows-tdep.c (init_w32_command_list)
11869 (w32_prefix_command_valid): Restore.
11870 (_initialize_windows_tdep): Call init_w32_command_list.
11871
08feed99
TT
118722020-04-18 Tom Tromey <tom@tromey.com>
11873
11874 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11875 * value.c (value_fn_field): Update.
11876 * valops.c (find_function_in_inferior)
11877 (value_allocate_space_in_inferior): Update.
11878 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11879 Update.
11880 * tui/tui-source.c (tui_source_window::set_contents): Update.
11881 * symtab.c (lookup_global_or_static_symbol)
11882 (find_function_start_sal_1, skip_prologue_sal)
11883 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11884 * symmisc.c (dump_msymbols, dump_symtab_1)
11885 (maintenance_print_one_line_table): Update.
11886 * symfile.c (init_entry_point_info, section_is_mapped)
11887 (list_overlays_command, simple_read_overlay_table)
11888 (simple_overlay_update_1): Update.
11889 * stap-probe.c (handle_stap_probe): Update.
11890 * stabsread.c (dbx_init_float_type, define_symbol)
11891 (read_one_struct_field, read_enum_type, read_range_type): Update.
11892 * source.c (info_line_command): Update.
11893 * python/python.c (gdbpy_source_objfile_script)
11894 (gdbpy_execute_objfile_script): Update.
11895 * python/py-type.c (save_objfile_types): Update.
11896 * python/py-objfile.c (py_free_objfile): Update.
11897 * python/py-inferior.c (python_new_objfile): Update.
11898 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11899 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11900 (maintenance_check_psymtabs): Update.
11901 * printcmd.c (info_address_command): Update.
11902 * objfiles.h (struct objfile) <arch>: New method, from
11903 get_objfile_arch.
11904 (get_objfile_arch): Don't declare.
11905 * objfiles.c (get_objfile_arch): Remove.
11906 (filter_overlapping_sections): Update.
11907 * minsyms.c (msymbol_is_function): Update.
11908 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11909 (output_nondebug_symbol): Update.
11910 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11911 (mdebug_expand_psymtab): Update.
11912 * machoread.c (macho_add_oso_symfile): Update.
11913 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11914 Update.
11915 * linux-fork.c (checkpoint_command): Update.
11916 * linespec.c (convert_linespec_to_sals): Update.
11917 * jit.c (finalize_symtab): Update.
11918 * infrun.c (insert_exception_resume_from_probe): Update.
11919 * ia64-tdep.c (ia64_find_unwind_table): Update.
11920 * hppa-tdep.c (internalize_unwinds): Update.
11921 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11922 Update.
11923 * gcore.c (call_target_sbrk): Update.
11924 * elfread.c (record_minimal_symbol, elf_symtab_read)
11925 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11926 (elf_gnu_ifunc_resolve_by_got): Update.
11927 * dwarf2/read.c (create_addrmap_from_index)
11928 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11929 (read_debug_names_from_section)
11930 (process_psymtab_comp_unit_reader, add_partial_symbol)
11931 (add_partial_subprogram, process_full_comp_unit)
11932 (read_file_scope, read_func_scope, read_lexical_block_scope)
11933 (read_call_site_scope, dwarf2_ranges_read)
11934 (dwarf2_record_block_ranges, dwarf2_add_field)
11935 (mark_common_block_symbol_computed, read_tag_pointer_type)
11936 (read_tag_string_type, dwarf2_init_float_type)
11937 (dwarf2_init_complex_target_type, read_base_type)
11938 (partial_die_info::read, partial_die_info::read)
11939 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11940 (dwarf2_fetch_die_loc_sect_off): Update.
11941 * dwarf2/loc.c (dwarf2_find_location_expression)
11942 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11943 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11944 (dwarf2_loc_desc_get_symbol_read_needs)
11945 (locexpr_describe_location_piece, locexpr_describe_location_1)
11946 (loclist_describe_location): Update.
11947 * dwarf2/index-write.c (write_debug_names): Update.
11948 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11949 * dtrace-probe.c (dtrace_process_dof): Update.
11950 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11951 (process_one_symbol): Update.
11952 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11953 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11954 (coff_read_enum_type): Update.
11955 * cli/cli-cmds.c (edit_command, list_command): Update.
11956 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11957 * breakpoint.c (create_overlay_event_breakpoint)
11958 (create_longjmp_master_breakpoint)
11959 (create_std_terminate_master_breakpoint)
11960 (create_exception_master_breakpoint, get_sal_arch): Update.
11961 * block.c (block_gdbarch): Update.
11962 * annotate.c (annotate_source_line): Update.
11963
0743fc83
TT
119642020-04-17 Tom Tromey <tromey@adacore.com>
11965
11966 * auto-load.c (show_auto_load_cmd): Remove.
11967 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11968 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11969 (maintenance_print_arc_command): Remove.
11970 * tui/tui-win.c (tui_command): Remove.
11971 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11972 * tui/tui-layout.c (tui_layout_command): Remove.
11973 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11974 * python/python.c (user_set_python, user_show_python): Remove.
11975 (_initialize_python): Use add_basic_prefix_cmd,
11976 add_show_prefix_cmd.
11977 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11978 (install_gdb_commands): Use add_basic_prefix_cmd,
11979 add_show_prefix_cmd.
11980 (info_guile_command): Remove.
11981 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11982 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11983 add_show_prefix_cmd.
11984 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11985 Remove do_set and do_show parameters.
11986 * cli/cli-style.c (set_style, show_style): Remove.
11987 (_initialize_cli_style): Use add_basic_prefix_cmd,
11988 add_show_prefix_cmd.
11989 (cli_style_option::add_setshow_commands): Remove do_set and
11990 do_show parameters.
11991 (cli_style_option::add_setshow_commands): Use
11992 add_basic_prefix_cmd, add_show_prefix_cmd.
11993 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11994 (set_style_name): Remove.
11995 * cli/cli-dump.c (dump_command, append_command): Remove.
11996 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11997 (tekhex_dump_command, binary_dump_command)
11998 (binary_append_command): Remove.
11999 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12000 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12001 (init_w32_command_list): Remove; move into ...
12002 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12003 * valprint.c (set_print, show_print, set_print_raw)
12004 (show_print_raw): Remove.
12005 (_initialize_valprint): Use add_basic_prefix_cmd,
12006 add_show_prefix_cmd.
12007 * typeprint.c (set_print_type, show_print_type): Remove.
12008 (_initialize_typeprint): Use add_basic_prefix_cmd,
12009 add_show_prefix_cmd.
12010 * record.c (set_record_command, show_record_command): Remove.
12011 (_initialize_record): Use add_basic_prefix_cmd,
12012 add_show_prefix_cmd.
12013 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12014 add_show_prefix_cmd.
12015 (info_command, show_command, set_debug, show_debug): Remove.
12016 * top.h (set_history, show_history): Don't declare.
12017 * top.c (set_history, show_history): Remove.
12018 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12019 (unset_tdesc_cmd): Remove.
12020 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12021 add_show_prefix_cmd.
12022 * symtab.c (info_module_command): Remove.
12023 (_initialize_symtab): Use add_basic_prefix_cmd.
12024 * symfile.c (overlay_command): Remove.
12025 (_initialize_symfile): Use add_basic_prefix_cmd.
12026 * sparc64-tdep.c (info_adi_command): Remove.
12027 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12028 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12029 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12030 add_show_prefix_cmd.
12031 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12032 (_initialize_serial): Use add_basic_prefix_cmd,
12033 add_show_prefix_cmd.
12034 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12035 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12036 add_show_prefix_cmd.
12037 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12038 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12039 add_show_prefix_cmd.
12040 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12041 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12042 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12043 add_show_prefix_cmd.
12044 * remote.c (remote_command, set_remote_cmd): Remove.
12045 (_initialize_remote): Use add_basic_prefix_cmd.
12046 * record-full.c (set_record_full_command)
12047 (show_record_full_command): Remove.
12048 (_initialize_record_full): Use add_basic_prefix_cmd,
12049 add_show_prefix_cmd.
12050 * record-btrace.c (cmd_set_record_btrace)
12051 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12052 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12053 (cmd_show_record_btrace_pt): Remove.
12054 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12055 add_show_prefix_cmd.
12056 * ravenscar-thread.c (set_ravenscar_command)
12057 (show_ravenscar_command): Remove.
12058 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12059 add_show_prefix_cmd.
12060 * mips-tdep.c (show_mips_command, set_mips_command)
12061 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12062 add_show_prefix_cmd.
12063 * maint.c (maintenance_command, maintenance_info_command)
12064 (maintenance_check_command, maintenance_print_command)
12065 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12066 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12067 add_show_prefix_cmd.
12068 (show_per_command_cmd): Remove.
12069 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12070 Remove.
12071 (maintenance_show_test_settings_cmd): Remove.
12072 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12073 add_show_prefix_cmd.
12074 * maint-test-options.c (maintenance_test_options_command):
12075 Remove.
12076 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12077 * macrocmd.c (macro_command): Remove
12078 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12079 * language.c (set_check, show_check): Remove.
12080 (_initialize_language): Use add_basic_prefix_cmd,
12081 add_show_prefix_cmd.
12082 * infcmd.c (unset_command): Remove.
12083 (_initialize_infcmd): Use add_basic_prefix_cmd.
12084 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12085 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12086 add_show_prefix_cmd.
12087 * go32-nat.c (go32_info_dos_command): Remove.
12088 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12089 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12090 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12091 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12092 (_initialize_frame): Use add_basic_prefix_cmd,
12093 add_show_prefix_cmd.
12094 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12095 (_initialize_dcache): Use add_basic_prefix_cmd,
12096 add_show_prefix_cmd.
12097 * cp-support.c (maint_cplus_command): Remove.
12098 (_initialize_cp_support): Use add_basic_prefix_cmd.
12099 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12100 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12101 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12102 add_basic_prefix_cmd, add_show_prefix_cmd.
12103 * breakpoint.c (save_command): Remove.
12104 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12105 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12106 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12107 add_show_prefix_cmd.
12108 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12109 (set_ada_command, show_ada_command): Remove.
12110 (_initialize_ada_language): Use add_basic_prefix_cmd,
12111 add_show_prefix_cmd.
12112 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12113
3557f442
KR
121142020-04-16 Kamil Rytarowski <n54@gmx.com>
12115
12116 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12117 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12118
16197208
SM
121192020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12120
12121 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12122 warning messages.
12123
00ac85d3
SM
121242020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12125
12126 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12127 import table is not at beginning of .idata section.
12128
381ce63f
PA
121292020-04-16 Pedro Alves <palves@redhat.com>
12130
12131 * inferior.c (delete_inferior): Use delete operator directly
12132 instead of delete_program_space.
12133 * progspace.c (add_program_space): New, factored out from
12134 program_space::program_space.
12135 (remove_program_space): New, factored out from
12136 delete_program_space.
12137 (program_space::program_space): Remove intro comment. Rewrite.
12138 (program_space::~program_space): Remove intro comment. Call
12139 remove_program_space.
12140 (delete_program_space): Delete.
12141 * progspace.h (program_space::program_space): Make explicit. Move
12142 intro comment here, adjusted.
12143 (program_space::~program_space): Move intro comment here,
12144 adjusted.
12145 (delete_program_space): Remove.
12146
a010605f
TT
121472020-04-16 Tom Tromey <tromey@adacore.com>
12148
12149 * windows-nat.c (windows_nat::handle_access_violation): New
12150 function.
12151 * nat/windows-nat.h (handle_access_violation): Declare.
12152 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12153 windows-nat.c. Call handle_access_violation.
12154
efba5c23
TV
121552020-04-16 Tom de Vries <tdevries@suse.de>
12156
12157 PR symtab/25791
12158 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12159 CUs without psymtab.
12160
97ed802d
KB
121612020-04-16 Kevin Buettner <kevinb@redhat.com>
12162
12163 * python/python.c (do_start_initialization): Don't call
12164 PyEval_InitThreads for Python 3.9 and beyond.
12165
c7d64809
KR
121662020-04-15 Kamil Rytarowski <n54@gmx.com>
12167
12168 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12169 thread functions.
12170 (obsd_nat_target::wait): Likewise.
12171
ce127a96
TT
121722020-04-15 Tom Tromey <tromey@adacore.com>
12173
12174 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12175 (DEBUG_EXCEPT): Use debug_printf.
12176
99f1bc6a
AB
121772020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12178
12179 * completer.c (class completion_tracker::completion_hash_entry)
12180 <hash_name>: New member function.
12181 (completion_tracker::discard_completions): New callback to hash a
12182 completion_hash_entry, pass this to htab_create_alloc.
12183
a0e9b532
JT
121842016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12185
12186 * windows-nat.c (windows_make_so): Warn rather than stopping with
12187 an error if realpath() fails.
12188
06ca5dd4
KR
121892020-04-14 Kamil Rytarowski <n54@gmx.com>
12190
12191 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12192 (nbsd_nat_target::info_proc): Add do_status.
12193
194d088f
TV
121942020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12195 Tom de Vries <tdevries@suse.de>
12196
12197 PR symtab/25718
12198 * psympriv.h (struct partial_symtab::read_symtab)
12199 (struct partial_symtab::expand_psymtab)
12200 (struct partial_symtab::read_dependencies): Update comments.
12201 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12202 read_symtab for includer.
12203 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12204 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12205 (struct dwarf2_include_psymtab::m_readin): Remove.
12206 (struct dwarf2_include_psymtab::includer): New member function.
12207 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12208
c1a66c06
TV
122092020-04-14 Tom de Vries <tdevries@suse.de>
12210
12211 PR symtab/25720
12212 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12213 with NULL symbol_matcher and lookup_name.
12214 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12215 and lookup_name.
12216 * dwarf2/read.c (dw2_expand_symtabs_matching)
12217 (dw2_debug_names_expand_symtabs_matching): Same.
12218 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12219 Make lookup_name a pointer. Update comment.
12220 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12221 lookup_name being a pointer.
12222 * symfile.c (expand_symtabs_matching): Same.
12223 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12224 * linespec.c (iterate_over_all_matching_symtabs): Same.
12225
400b5eca
TT
122262020-04-13 Tom Tromey <tom@tromey.com>
12227
12228 * run-on-main-thread.c: Update include.
12229 * unittests/main-thread-selftests.c: Update include.
12230 * tui/tui-win.c: Update include.
12231 * tui/tui-io.c: Update include.
12232 * tui/tui-interp.c: Update include.
12233 * tui/tui-hooks.c: Update include.
12234 * top.h: Update include.
12235 * top.c: Update include.
12236 * ser-base.c: Update include.
12237 * remote.c: Update include.
12238 * remote-notif.c: Update include.
12239 * remote-fileio.c: Update include.
12240 * record-full.c: Update include.
12241 * record-btrace.c: Update include.
12242 * python/python.c: Update include.
12243 * posix-hdep.c: Update include.
12244 * mingw-hdep.c: Update include.
12245 * mi/mi-main.c: Update include.
12246 * mi/mi-interp.c: Update include.
12247 * main.c: Update include.
12248 * linux-nat.c: Update include.
12249 * interps.c: Update include.
12250 * infrun.c: Update include.
12251 * inf-loop.c: Update include.
12252 * event-top.c: Update include.
12253 * event-loop.c: Move to ../gdbsupport/.
12254 * event-loop.h: Move to ../gdbsupport/.
12255 * async-event.h: Update include.
12256 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12257
93b54c8e
TT
122582020-04-13 Tom Tromey <tom@tromey.com>
12259
12260 * tui/tui-win.c: Include async-event.h.
12261 * remote.c: Include async-event.h.
12262 * remote-notif.c: Include async-event.h.
12263 * record-full.c: Include async-event.h.
12264 * record-btrace.c: Include async-event.h.
12265 * infrun.c: Include async-event.h.
12266 * event-top.c: Include async-event.h.
12267 * event-loop.h: Move some declarations to async-event.h.
12268 * event-loop.c: Don't include ser-event.h or top.h. Move some
12269 code to async-event.c.
12270 * async-event.h: New file.
12271 * async-event.c: New file.
12272 * Makefile.in (COMMON_SFILES): Add async-event.c.
12273 (HFILES_NO_SRCDIR): Add async-event.h.
12274
c1cd3163
TT
122752020-04-13 Tom Tromey <tom@tromey.com>
12276
12277 * utils.c (flush_streams): New function.
12278 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12279
29f2bf4f
TT
122802020-04-13 Tom Tromey <tom@tromey.com>
12281
12282 * event-loop.c (handle_file_event): Use warning, not
12283 printf_unfiltered.
12284
98029d02
TT
122852020-04-13 Tom Tromey <tom@tromey.com>
12286
12287 * event-loop.c: Include <chrono>.
12288
06cc9596
TT
122892020-04-13 Tom Tromey <tom@tromey.com>
12290
12291 * gdb_select.h: Move to ../gdbsupport/.
12292 * event-loop.c: Update include path.
12293 * top.c: Update include path.
12294 * ser-base.c: Update include path.
12295 * ui-file.c: Update include path.
12296 * ser-tcp.c: Update include path.
12297 * guile/scm-ports.c: Update include path.
12298 * posix-hdep.c: Update include path.
12299 * ser-unix.c: Update include path.
12300 * gdb_usleep.c: Update include path.
12301 * mingw-hdep.c: Update include path.
12302 * inflow.c: Update include path.
12303 * infrun.c: Update include path.
12304 * event-top.c: Update include path.
12305
8ae8e197
TT
123062020-04-13 Tom Tromey <tom@tromey.com>
12307
12308 * configure: Rebuild.
12309 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12310
58cf28e8
TT
123112020-04-13 Tom Tromey <tom@tromey.com>
12312
12313 * event-loop.h (start_event_loop): Don't declare.
12314 * event-loop.c (start_event_loop): Move...
12315 * main.c (start_event_loop): ...here. Now static.
12316
b7f999ae
SDJ
123172020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12318
12319 * MAINTAINERS: Update my email address.
12320
1085dfd4
KR
123212020-04-12 Kamil Rytarowski <n54@gmx.com>
12322
12323 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12324 IP_ALL.
12325
49d1d1f5
KR
123262020-04-12 Kamil Rytarowski <n54@gmx.com>
12327
12328 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12329 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12330
b4848d2a
KR
123312020-04-12 Kamil Rytarowski <n54@gmx.com>
12332
12333 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12334 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12335
51c133d5
KR
123362020-04-12 Kamil Rytarowski <n54@gmx.com>
12337
12338 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12339
54b8cbd0
KR
123402020-04-11 Kamil Rytarowski <n54@gmx.com>
12341
12342 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12343 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12344 (nbsd_nat_target::info_proc): New functions.
12345 * nbsd-nat.c (kinfo_get_vmmap): New function.
12346 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12347 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12348 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12349 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12350 functions.
12351 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12352 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12353 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12354 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12355 (KINFO_VME_FLAG_GROWS_DOWN): New.
12356
cf83625d
AS
123572020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12358
12359 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12360 bit shift.
12361
0c4311ab
TT
123622020-04-10 Tom Tromey <tromey@adacore.com>
12363
12364 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12365
3e65b3e9
TT
123662020-04-10 Tom Tromey <tromey@adacore.com>
12367
12368 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12369 separate debug files.
12370
13302e95
HD
123712020-04-10 Hannes Domani <ssbssa@yahoo.de>
12372
12373 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12374 Move to...
12375 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12376 ... here.
12377 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12378 Check for STATUS_WX86_BREAKPOINT.
12379 (windows_nat_target::wait): Same.
12380
bdfc1e8a
TV
123812020-04-10 Tom de Vries <tdevries@suse.de>
12382
12383 PR cli/25808
12384 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12385
f4460aec
SM
123862020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12387
12388 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12389 (Write After Approval): Remove Tom de Vries.
12390
a25198bb
BE
123912020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12392
12393 revert partially:
12394 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12395
aac66a4c
SM
12396 * buildsym.c (record_line): Fix undefined behavior and preserve
12397 lines at eof.
a25198bb 12398
206c98a6
KR
123992020-04-09 Kamil Rytarowski <n54@gmx.com>
12400
12401 * auxv.h (svr4_auxv_parse): New.
12402 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12403 and generic_auxv_parse.
12404 (svr4_auxv_parse): Add.
12405 * obsd-tdep.c: Include "auxv.h".
12406 (obsd_auxv_parse): Remove.
12407 (obsd_init_abi): Remove comment.
12408 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12409 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12410 * nbsd-tdep.c: Include "auxv.h".
12411 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12412
71fbdbaf
TT
124132020-04-08 Tom Tromey <tromey@adacore.com>
12414
12415 * nat/windows-nat.h (last_wait_event): Don't declare.
12416 (wait_for_debug_event): Update comment.
12417 * nat/windows-nat.c (last_wait_event): Now static.
12418
2c1d95e8
TT
124192020-04-08 Tom Tromey <tromey@adacore.com>
12420
12421 * windows-nat.c (wait_for_debug_event): Move to
12422 nat/windows-nat.c.
12423 * nat/windows-nat.h (wait_for_debug_event): Declare.
12424 * nat/windows-nat.c (wait_for_debug_event): Move from
12425 windows-nat.c. No longer static.
12426
d2977bc4
TT
124272020-04-08 Tom Tromey <tromey@adacore.com>
12428
12429 * windows-nat.c (get_windows_debug_event): Use
12430 fetch_pending_stop.
12431 * nat/windows-nat.h (fetch_pending_stop): Declare.
12432 * nat/windows-nat.c (fetch_pending_stop): New function.
12433
e758e19c
TT
124342020-04-08 Tom Tromey <tromey@adacore.com>
12435
12436 * windows-nat.c (windows_continue): Use matching_pending_stop and
12437 continue_last_debug_event.
12438 * nat/windows-nat.h (matching_pending_stop)
12439 (continue_last_debug_event): Declare.
12440 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12441 (matching_pending_stop, continue_last_debug_event): New
12442 functions.
12443
8d30e395
TT
124442020-04-08 Tom Tromey <tromey@adacore.com>
12445
12446 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12447 (handle_exception_result): Move to nat/windows-nat.h.
12448 (DEBUG_EXCEPTION_SIMPLE): Remove.
12449 (windows_nat::handle_ms_vc_exception): New function.
12450 (handle_exception): Move to nat/windows-nat.c.
12451 (get_windows_debug_event): Update.
12452 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12453 nat/windows-nat.c.
12454 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12455 (handle_exception_result): Move from windows-nat.c.
12456 (handle_exception): Declare.
12457 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12458 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12459 windows-nat.c.
12460
29de418d
TT
124612020-04-08 Tom Tromey <tromey@adacore.com>
12462
12463 * windows-nat.c (exception_count, event_count): Remove.
12464 (handle_exception, get_windows_debug_event)
12465 (do_initial_windows_stuff): Update.
12466
a816ba18
TT
124672020-04-08 Tom Tromey <tromey@adacore.com>
12468
12469 * windows-nat.c (windows_nat::handle_load_dll)
12470 (windows_nat::handle_unload_dll): Rename. No longer static.
12471 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12472 Declare.
12473
a00caa12
TT
124742020-04-08 Tom Tromey <tromey@adacore.com>
12475
12476 * complaints.h (stop_whining): Declare at top-level.
12477 (complaint): Don't declare stop_whining.
12478
d41b524f
TT
124792020-04-08 Tom Tromey <tromey@adacore.com>
12480
12481 * windows-nat.c (windows_nat::handle_output_debug_string):
12482 Rename. No longer static.
12483 * nat/windows-nat.h (handle_output_debug_string): Declare.
12484
3c76026d
TT
124852020-04-08 Tom Tromey <tromey@adacore.com>
12486
12487 * windows-nat.c (current_process_handle, current_process_id)
12488 (main_thread_id, last_sig, current_event, last_wait_event)
12489 (current_windows_thread, desired_stop_thread_id, pending_stops)
12490 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12491 (display_selectors, fake_create_process)
12492 (get_windows_debug_event): Update.
12493 * nat/windows-nat.h (current_process_handle, current_process_id)
12494 (main_thread_id, last_sig, current_event, last_wait_event)
12495 (current_windows_thread, desired_stop_thread_id, pending_stops)
12496 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12497 * nat/windows-nat.c (current_process_handle, current_process_id)
12498 (main_thread_id, last_sig, current_event, last_wait_event)
12499 (current_windows_thread, desired_stop_thread_id, pending_stops)
12500 (siginfo_er): New globals. Move from windows-nat.c.
12501
9d8679cc
TT
125022020-04-08 Tom Tromey <tromey@adacore.com>
12503
12504 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12505 (handle_load_dll): Update.
12506 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12507
28688adf
TT
125082020-04-08 Tom Tromey <tromey@adacore.com>
12509
12510 * windows-nat.c (enum thread_disposition_type): Move to
12511 nat/windows-nat.h.
12512 (windows_nat::thread_rec): Rename from thread_rec. No longer
12513 static.
12514 (windows_add_thread, windows_nat_target::fetch_registers)
12515 (windows_nat_target::store_registers, handle_exception)
12516 (windows_nat_target::resume, get_windows_debug_event)
12517 (windows_nat_target::get_tib_address)
12518 (windows_nat_target::thread_name)
12519 (windows_nat_target::thread_alive): Update.
12520 * nat/windows-nat.h (enum thread_disposition_type): Move from
12521 windows-nat.c.
12522 (thread_rec): Declare.
12523
4834dad0
TT
125242020-04-08 Tom Tromey <tromey@adacore.com>
12525
12526 * windows-nat.c: Add "using namespace".
12527 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12528 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12529
65bafd5b
TT
125302020-04-08 Tom Tromey <tromey@adacore.com>
12531
12532 * nat/windows-nat.h (struct windows_thread_info): Declare
12533 destructor.
12534 * nat/windows-nat.c (~windows_thread_info): New.
12535
0a4afda3
TT
125362020-04-08 Tom Tromey <tromey@adacore.com>
12537
12538 PR gdb/22992
12539 * windows-nat.c (current_event): Update comment.
12540 (last_wait_event, desired_stop_thread_id): New globals.
12541 (struct pending_stop): New.
12542 (pending_stops): New global.
12543 (windows_nat_target) <stopped_by_sw_breakpoint>
12544 <supports_stopped_by_sw_breakpoint>: New methods.
12545 (windows_fetch_one_register): Add assertions. Adjust PC.
12546 (windows_continue): Handle pending stops. Suspend other threads
12547 when stepping. Use last_wait_event
12548 (wait_for_debug_event): New function.
12549 (get_windows_debug_event): Use wait_for_debug_event. Handle
12550 pending stops. Queue spurious stops.
12551 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12552 (windows_nat_target::kill): Use wait_for_debug_event.
12553 * nat/windows-nat.h (struct windows_thread_info)
12554 <stopped_at_software_breakpoint>: New field.
12555 * nat/windows-nat.c (windows_thread_info::resume): Clear
12556 stopped_at_software_breakpoint.
12557
8e61ebec
TT
125582020-04-08 Tom Tromey <tromey@adacore.com>
12559
12560 * windows-nat.c (enum thread_disposition_type): New.
12561 (thread_rec): Replace "get_context" parameter with "disposition";
12562 change type.
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
98a03287
TT
125702020-04-08 Tom Tromey <tromey@adacore.com>
12571
12572 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12573 (windows_continue): Use windows_continue::resume.
12574 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12575 resume>: Declare new methods.
12576 * nat/windows-nat.c: New file.
12577 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12578
7c7411bc
TT
125792020-04-08 Tom Tromey <tromey@adacore.com>
12580
12581 * windows-nat.c (windows_add_thread, windows_delete_thread)
12582 (windows_nat_target::fetch_registers)
12583 (windows_nat_target::store_registers, fake_create_process)
12584 (windows_nat_target::resume, windows_nat_target::resume)
12585 (get_windows_debug_event, windows_nat_target::wait)
12586 (windows_nat_target::pid_to_str)
12587 (windows_nat_target::get_tib_address)
12588 (windows_nat_target::get_ada_task_ptid)
12589 (windows_nat_target::thread_name)
12590 (windows_nat_target::thread_alive): Use lwp, not tid.
12591
2950fdf7
TT
125922020-04-08 Tom Tromey <tromey@adacore.com>
12593
12594 * windows-nat.c (handle_exception)
12595 (windows_nat_target::thread_name): Update.
12596 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12597 <name>: Now unique_xmalloc_ptr.
12598
62fe396b
TT
125992020-04-08 Tom Tromey <tromey@adacore.com>
12600
12601 * windows-nat.c (thread_rec)
12602 (windows_nat_target::fetch_registers): Update.
12603 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12604 Update comment.
12605 <debug_registers_changed, reload_context>: Now bool.
12606
e9534bd2
TT
126072020-04-08 Tom Tromey <tromey@adacore.com>
12608
12609 * windows-nat.c (windows_add_thread): Use new.
12610 (windows_init_thread_list, windows_delete_thread): Use delete.
12611 (get_windows_debug_event): Update.
12612 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12613 destructor, and initializers.
12614
ae1f8880
TT
126152020-04-08 Tom Tromey <tromey@adacore.com>
12616
12617 * windows-nat.c (struct windows_thread_info): Remove.
12618 * nat/windows-nat.h: New file.
12619
55a1e039
TT
126202020-04-08 Tom Tromey <tromey@adacore.com>
12621
12622 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12623 (thread_rec, windows_add_thread, windows_delete_thread)
12624 (windows_continue): Update.
12625
93366324
TT
126262020-04-08 Tom Tromey <tromey@adacore.com>
12627
12628 * windows-nat.c (struct windows_thread_info): Remove typedef.
12629 (thread_head): Remove.
12630 (thread_list): New global.
12631 (thread_rec, windows_add_thread, windows_init_thread_list)
12632 (windows_delete_thread, windows_continue): Update.
12633
0f2265e2
SM
126342020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12635
12636 * windows-tdep.h (windows_init_abi): Add comment.
12637 (cygwin_init_abi): New declaration.
12638 * windows-tdep.c: Split signal enumeration in two, one for
12639 Windows and one for Cygwin.
12640 (windows_gdb_signal_to_target): Only deal with signal of the
12641 Windows OS ABI.
12642 (cygwin_gdb_signal_to_target): New function.
12643 (windows_init_abi): Rename to windows_init_abi_common, don't set
12644 gdb_signal_to_target gdbarch method. Add new new function with
12645 this name.
12646 (cygwin_init_abi): New function.
12647 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12648 comment. Don't call windows_init_abi.
12649 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12650 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12651 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12652 i386_windows_init_abi_common, don't call windows_init_abi. Add
12653 a new function of this name.
12654 (i386_cygwin_init_abi): New function.
12655 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12656 OS ABI Cygwin.
12657
3810f182
SM
126582020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12659
12660 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12661 parameter.c.
12662 (dwarf2_read_gdb_index): Update.
12663
063f8e80
KR
126642020-04-07 Kamil Rytarowski <n54@gmx.com>
12665
12666 * nbsd-tdep.c: Include "objfiles.h".
12667 (nbsd_skip_solib_resolver): New.
12668 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12669
85a9510c 126702020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12671
12672 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12673 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12674 with DW_LLE_base_addressx are being emitted in DWARFv5.
12675 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12676 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12677 unsigned integer.
12678
9fc3eaae 126792020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12680
12681 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12682 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12683 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12684 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12685 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12686 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12687 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12688
12689
41144253 126902020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12691
12692 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12693 (read_loclist_index): New function definition.
12694 (lookup_loclist_base): New function definition.
12695 (read_loclist_header): New function definition.
12696 (dwarf2_cu): Add loclist_base and loclist_header field.
12697 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12698 (read_full_die_1): Read the value of DW_AT_loclists_base.
12699 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12700 (read_attribute_value): Handle DW_FORM_loclistx.
12701 (skip_one_die): Handle DW_FORM_loclistx.
12702 (loclist_header): New structure declaration.
12703 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12704
9f4e76a4
SM
127052020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12706
12707 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12708 constructor. Remove `addr` parameter from other constructor and
12709 add `per_cu` parameter.
12710 * dwarf2/read.c (create_partial_symtab): Update.
12711
25c11aca
TV
127122020-04-07 Tom de Vries <tdevries@suse.de>
12713
12714 PR symtab/25796
12715 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12716 (partial_die_info::fixup): Inherit has_const_value.
12717
5707e24b
TV
127182020-04-07 Tom de Vries <tdevries@suse.de>
12719
12720 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12721 symbols without address.
12722
05f00e22
KR
127232020-04-06 Kamil Rytarowski <n54@gmx.com>
12724
12725 * nbsd-nat.h (struct thread_info): Add forward declaration.
12726 (nbsd_nat_target::thread_alive): Add.
12727 (nbsd_nat_target::thread_name): Likewise.
12728 (nbsd_nat_target::update_thread_list): Likewise.
12729 (update_thread_list::post_attach): Likewise.
12730 (post_attach::pid_to_str): Likewise.
12731 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12732 (nbsd_thread_lister): Add.
12733 (nbsd_nat_target::thread_alive): Likewise.
12734 (nbsd_nat_target::thread_name): Likewise.
12735 (nbsd_add_threads): Likewise.
12736 (update_thread_list::post_attach): Likewise.
12737 (nbsd_nat_target::update_thread_list): Likewise.
12738 (post_attach::pid_to_str): Likewise.
12739
6ee448cc
TT
127402020-04-06 Tom Tromey <tromey@adacore.com>
12741
12742 * ada-valprint.c (print_variant_part): Extract the variant field.
12743 (print_field_values): Use the field as the outer value when
12744 recursing.
12745
dea34e8c
TT
127462020-04-06 Tom Tromey <tromey@adacore.com>
12747
12748 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12749 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12750 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12751 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12752 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12753
93689ce9
TT
127542020-04-06 Tom Tromey <tromey@adacore.com>
12755
12756 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12757 TYPE_CODE_ERROR.
12758
79743962
KR
127592020-04-06 Kamil Rytarowski <n54@gmx.com>
12760
12761 * nbsd-tdep.c: Include "gdbarch.h".
12762 Define enum with NetBSD signal numbers.
12763 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12764 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12765 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12766 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12767 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12768 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12769 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12770 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12771 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12772 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12773 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12774 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12775
9e7c9a03
HD
127762020-04-03 Hannes Domani <ssbssa@yahoo.de>
12777
12778 PR gdb/25325
12779 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12780
d9e49b61
TT
127812020-04-03 Tom Tromey <tromey@adacore.com>
12782
12783 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12784 Read constant block.
12785
e0fc5c3f
SM
127862020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12787
12788 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12789 (gdb_bfd_get_full_section_contents): New declaration.
12790 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12791 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12792 gdb_bfd_get_full_section_contents.
12793
e2ff18a0
SM
127942020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12795
12796 * exec.c (build_section_table): Replace internal_error with
12797 gdb_assert.
12798 (section_table_xfer_memory_partial): Likewise.
12799 * mdebugread.c (parse_partial_symbols): Likewise.
12800 * psymtab.c (lookup_partial_symbol): Likewise.
12801 * utils.c (wrap_here): Likewise.
12802
0830d301
TT
128032020-04-02 Tom Tromey <tromey@adacore.com>
12804
12805 * f-lang.c (build_fortran_types): Use arch_type to initialize
12806 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12807
e7da7f8f
TT
128082020-04-02 Tom Tromey <tromey@adacore.com>
12809
12810 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12811 of attributes.
12812
c90d28ac
AB
128132020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12814 Bernd Edlinger <bernd.edlinger@hotmail.de>
12815 Tom Tromey <tromey@adacore.com>
12816
12817 * buildsym.c (buildsym_compunit::record_line): Remove
12818 deduplication code.
12819
1aa98955
TV
128202020-04-02 Tom de Vries <tdevries@suse.de>
12821
12822 PR ada/24671
12823 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12824
d3214198
TV
128252020-04-02 Tom de Vries <tdevries@suse.de>
12826
12827 * dwarf2/read.c (dwarf2_gdb_index_functions,
12828 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12829 NULL.
12830 * psymtab.c (psym_lookup_global_symbol_language): New function.
12831 (psym_functions): Init psym_lookup_global_symbol_language with
12832 psym_lookup_global_symbol_language.
12833 * symfile-debug.c (debug_sym_quick_functions): Init
12834 lookup_global_symbol_language with NULL.
12835 * symfile.c (set_initial_language): Remove fixme comment.
12836 * symfile.h (struct quick_symbol_functions): Add
12837 lookup_global_symbol_language.
12838 * symtab.c (find_quick_global_symbol_language): New function.
12839 (find_main_name): Use find_quick_global_symbol_language.
12840
2836752f
SM
128412020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12842
12843 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12844
64dc2d4b
BE
128452020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12846
12847 * buildsym.c (record_line): Fix undefined behavior and preserve
12848 lines at eof.
12849
bbe3dc41
BE
128502020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12851
12852 * buildsym.c (record_line): Fix the resizing condition.
12853
6b4a335b
TT
128542020-04-01 Tom Tromey <tom@tromey.com>
12855
12856 * value.h (value_literal_complex): Add comment.
12857 * valops.c (value_literal_complex): Refer to value.h.
12858
3638a098
TT
128592020-04-01 Tom Tromey <tom@tromey.com>
12860
12861 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12862 (scalar_type): New rule, from typebase.
12863 (typebase): Use scalar_type. Recognize complex types.
12864 (field_name): Handle FLOAT_KEYWORD.
12865 (ident_tokens): Add _Complex and __complex__.
12866
c34e8714
TT
128672020-04-01 Tom Tromey <tom@tromey.com>
12868
12869 PR exp/25299:
12870 * valarith.c (promotion_type, complex_binop): New functions.
12871 (scalar_binop): Handle complex numbers. Use promotion_type.
12872 (value_pos, value_neg, value_complement): Handle complex numbers.
12873
fa649bb7
TT
128742020-04-01 Tom Tromey <tom@tromey.com>
12875
12876 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12877 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12878 (parse_number): Handle complex numbers.
12879
981c08ce
TT
128802020-04-01 Tom Tromey <tom@tromey.com>
12881
12882 * c-valprint.c (c_decorations): Change complex suffix to "i".
12883
4c99290d
TT
128842020-04-01 Tom Tromey <tom@tromey.com>
12885
12886 * valprint.c (generic_value_print_complex): Use accessors.
12887 * value.h (value_real_part, value_imaginary_part): Declare.
12888 * valops.c (value_real_part, value_imaginary_part): New
12889 functions.
12890 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12891
5b930b45
TT
128922020-04-01 Tom Tromey <tom@tromey.com>
12893
12894 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12895 (read_range_type): Update.
12896 * mdebugread.c (basic_type): Update.
12897 * go-lang.c (build_go_types): Use init_complex_type.
12898 * gdbtypes.h (struct main_type) <complex_type>: New member.
12899 (init_complex_type): Update.
12900 (arch_complex_type): Don't declare.
12901 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12902 Make name if none given. Use alloc_type_copy. Look for cached
12903 complex type.
12904 (arch_complex_type): Remove.
12905 (gdbtypes_post_init): Use init_complex_type.
12906 * f-lang.c (build_fortran_types): Use init_complex_type.
12907 * dwarf2/read.c (read_base_type): Update.
12908 * d-lang.c (build_d_types): Use init_complex_type.
12909 * ctfread.c (read_base_type): Update.
12910
53cccef1
TBA
129112020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12912
12913 * infrun.c (stop_all_threads): Update assertion, plus when
12914 stopping threads, take into account that we might be trying
12915 to stop an all-stop target.
12916 (stop_waiting): Call 'stop_all_threads' if there exists a
12917 non-stop target.
12918
a0714d30
TBA
129192020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12920
12921 * target.h (exists_non_stop_target): New function declaration.
12922 * target.c (exists_non_stop_target): New function.
12923
60e22c1e
HD
129242020-04-01 Hannes Domani <ssbssa@yahoo.de>
12925
12926 PR gdb/24789
12927 * eval.c (is_integral_or_integral_reference): New function.
12928 (evaluate_subexp_standard): Allow integer references in
12929 pointer arithmetic.
12930
e139a727
TBA
129312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12932
12933 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12934 check for no ptid in the stop reply when the target is non-stop.
12935
e0802d59
TT
129362020-04-01 Tom Tromey <tromey@adacore.com>
12937
12938 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12939 "name" parameter to rvalue reference. Initialize m_name_holder.
12940 <lookup_name_info>: New overloads.
12941 <name>: Return gdb::string_view.
12942 <c_str>: New method.
12943 <make_ignore_params>: Update.
12944 <search_name_hash>: Update.
12945 <language_lookup_name>: Return const char *.
12946 <m_name>: Change type.
12947 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12948 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12949 (lookup_name_info::match_any): Update.
12950 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12951 Update.
12952 * minsyms.c (linkage_name_str): Update.
12953 * language.c (default_symbol_name_matcher): Update.
12954 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12955 Update.
12956 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12957 (ada_lookup_name_info::ada_lookup_name_info): Update.
12958 (literal_symbol_name_matcher): Update.
12959
8c072cb6
TT
129602020-04-01 Tom Tromey <tromey@adacore.com>
12961
12962 * psymtab.c (psymtab_search_name): Remove function.
12963 (psym_lookup_symbol): Create search name and lookup name here.
12964 (lookup_partial_symbol): Remove "name" parameter; add
12965 lookup_name.
12966 (psym_expand_symtabs_for_function): Update.
12967
6f29a534
TT
129682020-03-31 Joel Jones <joelkevinjones@gmail.com>
12969
12970 PR tui/25597:
12971 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12972
af62665e
TT
129732020-03-31 Tom Tromey <tromey@adacore.com>
12974
12975 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12976 memcpy.
12977
d1a89da5
NC
129782020-03-30 Nelson Chu <nelson.chu@sifive.com>
12979
12980 * features/riscv/32bit-csr.xml: Regenerated.
12981 * features/riscv/64bit-csr.xml: Regenerated.
12982
d8af9068
TT
129832020-03-30 Tom Tromey <tromey@adacore.com>
12984
12985 * ada-valprint.c (print_variant_part): Update.
12986 * ada-lang.h (ada_which_variant_applies): Update.
12987 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12988 outer_valaddr parameters; replace with "outer" value parameter.
12989 (to_fixed_variant_branch_type): Update.
12990
227c0bf4
PFC
129912020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12992
12993 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12994 <list>. Remove inclusion of observable.h.
12995 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12996 (struct arch_lwp_info): New struct.
12997 (class ppc_linux_dreg_interface): New class.
12998 (struct ppc_linux_process_info): New struct.
12999 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13000 <low_new_clone, low_forget_process, low_prepare_to_resume>
13001 <copy_thread_dreg_state, mark_thread_stale>
13002 <mark_debug_registers_changed, register_hw_breakpoint>
13003 <clear_hw_breakpoint, register_wp, clear_wp>
13004 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13005 <num_memory_accesses, get_trigger_type>
13006 <create_watchpoint_request, hwdebug_point_cmp>
13007 <init_arch_lwp_info, get_arch_lwp_info>
13008 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13009 methods.
13010 <struct ptid_hash>: New inner struct.
13011 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13012 members.
13013 (saved_dabr_value, hwdebug_info, max_slots_number)
13014 (struct hw_break_tuple, struct thread_points, ppc_threads)
13015 (have_ptrace_hwdebug_interface)
13016 (hwdebug_find_thread_points_by_tid)
13017 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13018 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13019 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13020 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13021 use m_dreg_interface.
13022 (hwdebug_point_cmp): Change to...
13023 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13024 reference arguments instead of pointers.
13025 (ppc_linux_nat_target::ranged_break_num_registers): Use
13026 m_dreg_interface.
13027 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13028 m_dreg_interface. Call register_hw_breakpoint.
13029 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13030 m_dreg_interface. Call clear_hw_breakpoint.
13031 (get_trigger_type): Change to...
13032 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13033 comment.
13034 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13035 use m_dreg_interface. Call register_hw_breakpoint.
13036 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13037 use m_dreg_interface. Call clear_hw_breakpoint.
13038 (can_use_watchpoint_cond_accel): Change to...
13039 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13040 method. Update comment, use m_dreg_interface and
13041 m_process_info.
13042 (calculate_dvc): Change to...
13043 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13044 m_dreg_interface.
13045 (num_memory_accesses): Change to...
13046 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13047 (check_condition): Change to...
13048 (ppc_linux_nat_target::check_condition): ...this method.
13049 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13050 comment, use m_dreg_interface.
13051 (create_watchpoint_request): Change to...
13052 (ppc_linux_nat_target::create_watchpoint_request): ...this
13053 method. Use m_dreg_interface.
13054 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13055 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13056 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13057 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13058 (ppc_linux_nat_target::low_forget_process)
13059 (ppc_linux_nat_target::low_new_fork)
13060 (ppc_linux_nat_target::low_new_clone)
13061 (ppc_linux_nat_target::low_delete_thread)
13062 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13063 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13064 only call mark_thread_stale.
13065 (ppc_linux_thread_exit): Remove.
13066 (ppc_linux_nat_target::stopped_data_address): Change to...
13067 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13068 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13069 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13070 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13071 comment. Call low_stopped_data_address.
13072 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13073 m_dreg_interface.
13074 (ppc_linux_nat_target::masked_watch_num_registers): Use
13075 m_dreg_interface.
13076 (ppc_linux_nat_target::copy_thread_dreg_state)
13077 (ppc_linux_nat_target::mark_thread_stale)
13078 (ppc_linux_nat_target::mark_debug_registers_changed)
13079 (ppc_linux_nat_target::register_hw_breakpoint)
13080 (ppc_linux_nat_target::clear_hw_breakpoint)
13081 (ppc_linux_nat_target::register_wp)
13082 (ppc_linux_nat_target::clear_wp)
13083 (ppc_linux_nat_target::init_arch_lwp_info)
13084 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13085 (_initialize_ppc_linux_nat): Remove observer callback.
13086
4db10d8f
PFC
130872020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13088
13089 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13090 (ppc_linux_nat_target::auxv_parse)
13091 (ppc_linux_nat_target::read_description)
13092 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13093 Move up.
13094
1310c1b0
PFC
130952020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13096
13097 * linux-nat.h (low_new_clone): New method.
13098 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13099
69b037c3
SM
131002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13101
13102 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13103 (dbx_expand_psymtab): ... this.
13104 (start_psymtab): Update.
13105 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13106 (mdebug_expand_psymtab): ... this.
13107 (parse_partial_symbols): Update.
13108 (new_psymtab): Update.
13109 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13110 (xcoff_expand_psymtab): ... this.
13111 (xcoff_start_psymtab): Update.
13112
48993951
SM
131132020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13114
13115 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13116 <expand_dependencies>: ... this.
13117 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13118 (partial_symtab::expand_dependencies): ... this.
13119 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13120 Update.
13121 (dwarf2_psymtab::expand_psymtab): Update.
13122 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13123 * mdebugread.c (psymtab_to_symtab_1): Update.
13124 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13125
3ad83046
SM
131262020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13127
13128 * psympriv.h (discard_psymtab): Remove.
13129 * dbxread.c (dbx_end_psymtab): Update.
13130 * xcoffread.c (xcoff_end_psymtab): Update.
13131
4d1b9ab6
TT
131322020-03-28 Tom Tromey <tom@tromey.com>
13133
13134 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13135 comment.
13136
f1749218
TT
131372020-03-28 Tom Tromey <tom@tromey.com>
13138
13139 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13140
ebea7626
HD
131412020-03-27 Hannes Domani <ssbssa@yahoo.de>
13142
13143 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13144
a879b4d5
JB
131452020-03-26 John Baldwin <jhb@FreeBSD.org>
13146
13147 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13148
0826b30a
TT
131492020-03-26 Tom Tromey <tom@tromey.com>
13150
13151 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13152 (mark_common_block_symbol_computed, read_tag_string_type)
13153 (attr_to_dynamic_prop, read_subrange_type): Update.
13154 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13155 to be methods on struct attribute.
13156 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13157 (read_call_site_scope, partial_die_info::read)
13158 (partial_die_info::read, lookup_die_type, follow_die_ref):
13159 Update.
13160 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13161 from dwarf2_get_ref_die_offset.
13162 (attribute::constant_value): New method, from
13163 dwarf2_get_attr_constant_value.
13164 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13165 Declare method.
13166 <constant_value>: New method.
13167
2b2558bf
TT
131682020-03-26 Tom Tromey <tom@tromey.com>
13169
13170 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13171 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13172 (dwarf_type_encoding_name): Move to stringify.c.
13173 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13174 * dwarf2/stringify.c: New file.
13175 * dwarf2/stringify.h: New file.
13176
eeb64781
TT
131772020-03-26 Tom Tromey <tom@tromey.com>
13178
13179 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13180 Rewrite.
13181
a39fdb41
TT
131822020-03-26 Tom Tromey <tom@tromey.com>
13183
13184 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13185 methods.
13186 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13187 (lookup_ranges_base): Likewise.
13188 (read_cutu_die_from_dwo, read_full_die_1): Update.
13189
436c571c
TT
131902020-03-26 Tom Tromey <tom@tromey.com>
13191
13192 * dwarf2/read.c (read_import_statement, read_file_scope)
13193 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13194 (read_lexical_block_scope, read_call_site_scope)
13195 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13196 (handle_struct_member_die, process_structure_scope)
13197 (update_enumeration_type_from_children)
13198 (process_enumeration_scope, read_array_type, read_common_block)
13199 (read_namespace, read_module, read_subroutine_type): Update.
13200 (sibling_die): Remove.
13201
052c8bb8
TT
132022020-03-26 Tom Tromey <tom@tromey.com>
13203
13204 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13205 (build_type_psymtabs_reader, read_structure_type)
13206 (read_enumeration_type, read_full_die_1): Update.
13207 (dwarf2_attr_no_follow): Move to die.h.
13208 * dwarf2/die.h (struct die_info) <attr>: New method.
13209
2b24b6e4
TT
132102020-03-26 Tom Tromey <tom@tromey.com>
13211
13212 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13213 <base_address>: Now an optional.
13214 (dwarf2_find_base_address, dwarf2_rnglists_process)
13215 (dwarf2_ranges_process, fill_in_loclist_baton)
13216 (dwarf2_symbol_mark_computed): Update.
13217
c2d50fd0
TT
132182020-03-26 Tom Tromey <tom@tromey.com>
13219
13220 * dwarf2/read.c (struct die_info): Move to die.h.
13221 * dwarf2/die.h: New file.
13222
0df7ad3a
TT
132232020-03-26 Tom Tromey <tom@tromey.com>
13224
13225 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13226 * dwarf2/read.c
13227 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13228 Move to line-header.c.
13229 (read_checked_initial_length_and_offset, read_formatted_entries):
13230 Likewise.
13231 (dwarf_decode_line_header): Split into two.
13232 * dwarf2/line-header.c
13233 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13234 Move from read.c.
13235 (read_checked_initial_length_and_offset, read_formatted_entries):
13236 Likewise.
13237 (dwarf_decode_line_header): New function, split from read.c.
13238
86c0bb4c
TT
132392020-03-26 Tom Tromey <tom@tromey.com>
13240
13241 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13242 Declare method.
13243 * dwarf2/read.c (read_attribute_value): Update.
13244 (dwarf2_per_objfile::read_line_string): Rename from
13245 read_indirect_line_string.
13246 (read_formatted_entries): Update.
13247
2ef46c2f
TT
132482020-03-26 Tom Tromey <tom@tromey.com>
13249
13250 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13251 variable.
13252
4f9c1eda
TT
132532020-03-26 Tom Tromey <tom@tromey.com>
13254
13255 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13256 const.
13257 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13258 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13259 parameter const.
13260
5a0e026f
TT
132612020-03-26 Tom Tromey <tom@tromey.com>
13262
13263 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13264 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13265 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13266 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13267
8844c11b
TT
132682020-03-26 Tom Tromey <tom@tromey.com>
13269
13270 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13271 file_names_size, file_full_name, file_file_name>: Use const.
13272 <file_name_at, file_names>: Add const overload.
13273 * dwarf2/line-header.c (line_header::file_file_name)
13274 (line_header::file_full_name): Update.
13275
c90ec28a
TT
132762020-03-26 Tom Tromey <tom@tromey.com>
13277
13278 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13279 (macro_start_file, consume_improper_spaces)
13280 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13281 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13282 (dwarf_decode_macros): Move to macro.c.
13283 * dwarf2/macro.c: New file.
13284 * dwarf2/macro.h: New file.
13285 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13286
4f44ae6c
TT
132872020-03-26 Tom Tromey <tom@tromey.com>
13288
13289 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13290 method.
13291 * dwarf2/section.c: New method. From
13292 read_indirect_string_at_offset_from.
13293 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13294 (read_indirect_string_at_offset_from): Move to section.c.
13295 (read_indirect_string_at_offset): Rewrite.
13296 (read_indirect_line_string_at_offset): Remove.
13297 (read_indirect_string, read_indirect_line_string)
13298 (dwarf_decode_macro_bytes): Update.
13299
a0194fa8
TT
133002020-03-26 Tom Tromey <tom@tromey.com>
13301
13302 * dwarf2/section.h (struct dwarf2_section_info)
13303 <overload_complaint>: Declare.
13304 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13305 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13306 Rename from dwarf2_section_buffer_overflow_complaint.
13307 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13308 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13309
3d27bbdb
TT
133102020-03-26 Tom Tromey <tom@tromey.com>
13311
13312 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13313 Declare.
13314 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13315 Move from read.c.
13316 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13317 to section.c.
13318
9eac9650
TT
133192020-03-26 Tom Tromey <tom@tromey.com>
13320
13321 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13322
bf80d710
TT
133232020-03-26 Tom Tromey <tom@tromey.com>
13324
13325 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13326 "builder".
13327 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13328 parameter.
13329 (dwarf_decode_macros): Update.
13330
0314b390
TT
133312020-03-26 Tom Tromey <tom@tromey.com>
13332
13333 * dwarf2/read.c (read_attribute_value): Update.
13334 (read_indirect_string_from_dwz): Move to dwz.c; change into
13335 method.
13336 (dwarf_decode_macro_bytes): Update.
13337 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13338 * dwarf2/dwz.c: New file.
13339 * Makefile.in (COMMON_SFILES): Add dwz.c.
13340
9fda78b6
TT
133412020-03-26 Tom Tromey <tom@tromey.com>
13342
13343 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13344 * dwarf2/read.c: Add include.
13345 * dwarf2/index-write.c: Add include.
13346 * dwarf2/index-cache.c: Add include.
13347 * dwarf2/dwz.h: New file.
13348
33aa3c10
TT
133492020-03-25 Tom Tromey <tom@tromey.com>
13350
13351 * compile/compile-object-load.c (get_out_value_type): Mention
13352 correct symbol name in error message.
13353
d503b685
HD
133542020-03-25 Hannes Domani <ssbssa@yahoo.de>
13355
13356 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13357
7b1eff95
TV
133582020-03-25 Tom de Vries <tdevries@suse.de>
13359
13360 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13361 * symmisc.c (dump_symtab_1): Print user and includes fields.
13362 (maintenance_info_symtabs): Same.
13363
dd895392
AB
133642020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13365
13366 PR gdb/25534
13367 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13368 (riscv_regcache_cooked_write): New function.
13369 (riscv_push_dummy_call): Use new function.
13370 (riscv_return_value): Likewise.
13371
5ab2fbf1
SM
133722020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13373
13374 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13375 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13376 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13377 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13378 * infrun.c (follow_fork): Likewise.
13379 (follow_fork_inferior): Likewise.
13380 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13381 * linux-nat.h (class linux_nat_target): Likewise.
13382 * remote.c (class remote_target) <follow_fork>: Likewise.
13383 (remote_target::follow_fork): Likewise.
13384 * target-delegates.c: Re-generate.
13385 * target.c (default_follow_fork): Likewise.
13386 (target_follow_fork): Likewise.
13387 * target.h (struct target_ops) <follow_fork>: Likewise.
13388 (target_follow_fork): Likewise.
13389
a64fafb5
TV
133902020-03-24 Tom de Vries <tdevries@suse.de>
13391
13392 * psymtab.c (maintenance_info_psymtabs): Print user field.
13393
fe26d3a3
TT
133942020-03-20 Tom Tromey <tromey@adacore.com>
13395
13396 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13397 const.
13398 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13399 const.
13400
c884cc46
SM
134012020-03-20 Simon Marchi <simon.marchi@efficios.com>
13402
13403 * ptrace.m4: Don't check for ptrace declaration.
13404 * config.in: Re-generate.
13405 * configure: Re-generate.
13406 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13407 not defined.
13408
1ff700c2
KR
134092020-03-20 Kamil Rytarowski <n54@gmx.com>
13410
13411 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13412 `PTRACE_TYPE_RET'.
13413 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13414 * sparc-nat.c (gdb_ptrace): Likewise.
13415 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13416
f7d4f0b1
TT
134172020-03-20 Tom Tromey <tromey@adacore.com>
13418
13419 * c-exp.y (lex_one_token): Fix assert.
13420
f67210ff
TT
134212020-03-20 Tom Tromey <tromey@adacore.com>
13422
13423 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13424 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13425 strncpy call.
13426
1773be9e
TT
134272020-03-20 Tom Tromey <tromey@adacore.com>
13428
13429 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13430
70304be9
TT
134312020-03-20 Tom Tromey <tromey@adacore.com>
13432
13433 * ada-valprint.c (print_variant_part): Remove parameters; switch
13434 to value-based API.
13435 (print_field_values): Likewise.
13436 (ada_val_print_struct_union): Likewise.
13437 (ada_value_print_1): Update.
13438
9faa006d
KR
134392020-03-20 Kamil Rytarowski <n54@gmx.com>
13440
13441 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13442 nbsd_nat_target instead of inf_ptrace_target.
13443 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13444 nbsd_nat_target.
13445
4a90f062
KR
134462020-03-20 Kamil Rytarowski <n54@gmx.com>
13447
13448 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13449 it to the ptrace call.
13450 * (store_registers): Likewise.
13451
134522020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13453
13454 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13455 it to the ptrace call.
13456 * (store_registers): Likewise.
13457
2d07da27
LM
134582020-03-19 Luis Machado <luis.machado@linaro.org>
13459
13460 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13461 valid, fetch vg value from ptrace.
13462
f09db380
KR
134632020-03-19 Kamil Rytarowski <n54@gmx.com>
13464 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13465 * inf-ptrace.c: Likewise.
13466 * (gdb_ptrace): Add.
13467 * (inf_ptrace_target::resume): Update.
13468 * (inf_ptrace_target::xfer_partial): Likewise.
13469 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13470 * (inf_ptrace_peek_poke): Update.
13471
fcc7376e
KR
134722020-03-19 Kamil Rytarowski <n54@gmx.com>
13473
13474 * x86-bsd-nat.c (gdb_ptrace): New.
13475 * (x86bsd_dr_set): Add new argument `ptid'.
13476 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13477 x86bsd_dr_set_addr): Update.
13478
cada5fc9
AB
134792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13480
13481 * remote.c (remote_target::process_stop_reply): Handle events for
13482 all threads differently.
13483
19a2740f
AB
134842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13485
13486 * completer.c (completion_tracker::remove_completion): Define new
13487 function.
13488 * completer.h (completion_tracker::remove_completion): Declare new
13489 function.
13490 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13491 when adding a C++ function symbol.
13492
724fd9ba
AB
134932020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13494
13495 * completer.c (completion_tracker::completion_hash_entry): Define
13496 new class.
13497 (advance_to_filename_complete_word_point): Call
13498 recompute_lowest_common_denominator.
13499 (completion_tracker::completion_tracker): Call discard_completions
13500 to setup the hash table.
13501 (completion_tracker::discard_completions): Allow for being called
13502 from the constructor, pass new equal function, and element deleter
13503 when constructing the hash table. Initialise new class member
13504 variables.
13505 (completion_tracker::maybe_add_completion): Remove use of
13506 m_entries_vec, and store more information into m_entries_hash.
13507 (completion_tracker::recompute_lcd_visitor): New function, most
13508 content taken from...
13509 (completion_tracker::recompute_lowest_common_denominator):
13510 ...here, this now just visits each item in the hash calling the
13511 above visitor.
13512 (completion_tracker::build_completion_result): Remove use of
13513 m_entries_vec, call recompute_lowest_common_denominator.
13514 * completer.h (completion_tracker::have_completions): Remove use
13515 of m_entries_vec.
13516 (completion_tracker::completion_hash_entry): Declare new class.
13517 (completion_tracker::recompute_lowest_common_denominator): Change
13518 function signature.
13519 (completion_tracker::recompute_lcd_visitor): Declare new function.
13520 (completion_tracker::m_entries_vec): Delete.
13521 (completion_tracker::m_entries_hash): Initialize to NULL.
13522 (completion_tracker::m_lowest_common_denominator_valid): New
13523 member variable.
13524 (completion_tracker::m_lowest_common_denominator_max_length): New
13525 member variable.
13526
5a82b8a1
KR
135272020-03-17 Kamil Rytarowski <n54@gmx.com>
13528
13529 * regformats/regdef.h: Put reg in gdb namespace.
13530
fb516a69
KR
135312020-03-17 Kamil Rytarowski <n54@gmx.com>
13532
13533 * i386-bsd-nat.c (gdb_ptrace): New.
13534 * (i386bsd_fetch_inferior_registers,
13535 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13536 * (i386bsd_fetch_inferior_registers,
13537 i386bsd_store_inferior_registers) Use gdb_ptrace.
13538
1c0aa1fb
KR
135392020-03-17 Kamil Rytarowski <n54@gmx.com>
13540
13541 * amd64-bsd-nat.c (gdb_ptrace): New.
13542 * (amd64bsd_fetch_inferior_registers,
13543 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13544 * (amd64bsd_fetch_inferior_registers,
13545 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13546
5ccd2fb7
KR
135472020-03-17 Kamil Rytarowski <n54@gmx.com>
13548
13549 * user-regs.c (user_reg::read): Rename to...
13550 (user_reg::xread): ...this.
13551 * (append_user_reg): Rename argument `read' to `xread'.
13552 * (user_reg_add_builtin): Likewise.
13553 * (user_reg_add): Likewise.
13554 * (value_of_user_reg): Likewise.
13555
2108a63a
KR
135562020-03-17 Kamil Rytarowski <n54@gmx.com>
13557
13558 * sparc-nat.c (gdb_ptrace): New.
13559 * sparc-nat.c (sparc_fetch_inferior_registers)
13560 (sparc_store_inferior_registers) Remove obsolete comment.
13561 * sparc-nat.c (sparc_fetch_inferior_registers)
13562 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13563 * sparc-nat.c (sparc_fetch_inferior_registers)
13564 (sparc_store_inferior_registers) Use gdb_ptrace.
13565
a225c9a8
KR
135662020-03-17 Kamil Rytarowski <n54@gmx.com>
13567
13568 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13569 it to the ptrace call.
13570 * sh-nbsd-nat.c (store_registers): Likewise.
13571
98097623
KR
135722020-03-17 Kamil Rytarowski <n54@gmx.com>
13573
13574 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13575 nbsd_nat_target instead of inf_ptrace_target.
13576 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13577 nbsd_nat_target.
13578
9e38d619
KR
135792020-03-17 Kamil Rytarowski <n54@gmx.com>
13580
13581 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13582
a2ecbe9f
KR
135832020-03-17 Kamil Rytarowski <n54@gmx.com>
13584
13585 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13586 <sys/sysctl.h>.
13587 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13588
58990295
TV
135892020-03-17 Tom de Vries <tdevries@suse.de>
13590
13591 PR gdb/23710
13592 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13593 fields.
13594 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13595 fields.
13596 (process_imported_unit_die): Skip import of c++ CUs.
13597
771dd3a8
TT
135982020-03-16 Tom Tromey <tom@tromey.com>
13599
13600 * p-valprint.c (pascal_object_print_value): Initialize
13601 base_value.
13602
817a7585
AK
136032020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13604 Shahab Vahedi <shahab@synopsys.com>
13605
13606 * Makefile.in: Add arch/arc.o
13607 * configure.tgt: Likewise.
13608 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13609 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13610 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13611 * arc-tdep.h (arc_read_description): Add proto type.
13612 * arch/arc.c: New file.
13613 * arch/arc.h: Likewise.
13614 * features/Makefile: Replace old target descriptions with new.
13615 * features/arc-arcompact.c: Remove.
13616 * features/arc-arcompact.xml: Likewise.
13617 * features/arc-v2.c: Likewise
13618 * features/arc-v2.xml: Likewise
13619 * features/arc/aux-arcompact.xml: New file.
13620 * features/arc/aux-v2.xml: Likewise.
13621 * features/arc/core-arcompact.xml: Likewise.
13622 * features/arc/core-v2.xml: Likewise.
13623 * features/arc/aux-arcompact.c: Generate.
13624 * features/arc/aux-v2.c: Likewise.
13625 * features/arc/core-arcompact.c: Likewise.
13626 * features/arc/core-v2.c: Likewise.
13627 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13628
67430cd0
TT
136292020-03-16 Tom Tromey <tromey@adacore.com>
13630
13631 PR gdb/25663:
13632 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13633 putting value into bcache.
13634
30efb6c7
SM
136352020-03-16 Simon Marchi <simon.marchi@efficios.com>
13636
13637 PR gdb/21500
13638 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13639 to...
13640 (amd64_windows_init_abi_common): ... this. Don't set size of
13641 long type.
13642 (amd64_windows_init_abi): New function.
13643 (amd64_cygwin_init_abi): New function.
13644 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13645 the Cygwin OS ABI.
13646 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13647 comment.
13648
8db52437
SM
136492020-03-16 Simon Marchi <simon.marchi@efficios.com>
13650
13651 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13652 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13653 (pe_import_directory_entry): New struct type.
13654 (is_linked_with_cygwin_dll): New function.
13655 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13656 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13657 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13658
5982a56a
SM
136592020-03-16 Simon Marchi <simon.marchi@efficios.com>
13660
13661 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13662 i386_cygwin_core_osabi_sniffer.
13663
7a1998df
SM
136642020-03-16 Simon Marchi <simon.marchi@efficios.com>
13665
13666 * i386-cygwin-tdep.c: Rename to...
13667 * i386-windows-tdep.c: ... this.
13668 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13669 i386-windows-tdep.c.
13670 * configure.tgt: Likewise.
13671
053205cc
SM
136722020-03-16 Simon Marchi <simon.marchi@efficios.com>
13673
13674 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13675 * osabi.c (gdb_osabi_names): Add "Windows".
13676 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13677 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13678 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13679 i386_cygwin_osabi_sniffer.
13680 (_initialize_i386_cygwin_tdep): Register OS ABI
13681 GDB_OSABI_WINDOWS for i386.
13682 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13683 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13684 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13685 for x86-64.
13686 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13687 when the target matches '*-*-mingw*'.
13688
fe4b2ee6
SM
136892020-03-16 Simon Marchi <simon.marchi@efficios.com>
13690
13691 * defs.h (enum gdb_osabi): Move to...
13692 * osabi.h (enum gdb_osabi): ... here.
13693 * gdbarch.sh: Include osabi.h in gdbarch.h.
13694 * gdbarch.h: Re-generate.
13695
cb9b645d
SM
136962020-03-16 Simon Marchi <simon.marchi@efficios.com>
13697
13698 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13699 function.
13700 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13701
3293bbaf
TT
137022020-03-14 Tom Tromey <tom@tromey.com>
13703
13704 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13705 for C++.
13706 (c_type_print_modifier): Likewise. Add "language" parameter.
13707 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13708 (c_type_print_base_1): Update.
13709 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13710 constants.
13711 * type-stack.c (type_stack::insert): Handle tp_atomic and
13712 tp_restrict.
13713 (type_stack::follow_type_instance_flags): Likewise.
13714 (type_stack::follow_types): Likewise. Merge type-following code.
13715 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13716 (space_identifier, cv_with_space_id)
13717 (const_or_volatile_or_space_identifier_noopt)
13718 (const_or_volatile_or_space_identifier): Remove.
13719 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13720 rules.
13721 (ptr_operator, typebase): Update.
13722 (enum token_flag) <FLAG_C>: New constant.
13723 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13724 "_Atomic".
13725 (lex_one_token): Handle FLAG_C.
13726
154151a6
KR
137272020-03-14 Kamil Rytarowski <n54@gmx.com>
13728
13729 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13730 it to the ptrace call.
13731 * m68k-bsd-nat.c (store_registers): Likewise.
13732
bc107784
KR
137332020-03-14 Kamil Rytarowski <n54@gmx.com>
13734
13735 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13736 gdb_byte *.
13737 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13738 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13739 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13740
01a80117
KR
137412020-03-14 Kamil Rytarowski <n54@gmx.com>
13742
13743 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13744 nbsd_nat_target instead of inf_ptrace_target.
13745 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13746 nbsd_nat_target.
13747
f90280ca
KR
137482020-03-14 Kamil Rytarowski <n54@gmx.com>
13749
13750 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13751 register_t.
13752
6def66f1
KR
137532020-03-14 Kamil Rytarowski <n54@gmx.com>
13754
13755 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13756 it to the ptrace call.
13757 * alpha-bsd-nat.c (store_registers): Likewise.
13758
66eaca97
KR
137592020-03-14 Kamil Rytarowski <n54@gmx.com>
13760
13761 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13762 includes.
13763 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13764 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13765 fill_fpregset): Likewise.
13766
4fed520b
KR
137672020-03-14 Kamil Rytarowski <n54@gmx.com>
13768
13769 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13770 nbsd_nat_target instead of inf_ptrace_target.
13771 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13772 nbsd_nat_target.
13773
2190cf06
KR
137742020-03-14 Kamil Rytarowski <n54@gmx.com>
13775
13776 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13777 register_t.
13778
75c56d3d
KR
137792020-03-14 Kamil Rytarowski <n54@gmx.com>
13780
13781 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13782 it to the ptrace call.
13783 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13784 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13785 * arm-nbsd-nat.c (store_register): Likewise.
13786 * arm-nbsd-nat.c (store_regs): Likewise.
13787 * arm-nbsd-nat.c (store_fp_register): Likewise.
13788 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13789
6018d381
KR
137902020-03-14 Kamil Rytarowski <n54@gmx.com>
13791
13792 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13793 nbsd_nat_target instead of inf_ptrace_target.
13794 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13795 nbsd_nat_target.
13796
013f99f0
KR
137972020-03-14 Kamil Rytarowski <n54@gmx.com>
13798
13799 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13800 it to the ptrace call.
13801 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13802
12753073
KR
138032020-03-14 Kamil Rytarowski <n54@gmx.com>
13804
6227b330
KR
13805 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13806 it to the ptrace call.
13807 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13808
138092020-03-14 Kamil Rytarowski <n54@gmx.com>
13810
13811 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13812 gdb_byte *.
12753073
KR
13813 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13814
d5be5fa4
KR
138152020-03-14 Kamil Rytarowski <n54@gmx.com>
13816
13817 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13818 instead of inf_ptrace_target.
13819 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13820 nbsd_nat_target.
13821
8110f842
KR
138222020-03-14 Kamil Rytarowski <n54@gmx.com>
13823
13824 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13825 register_t.
13826
52feded7
KR
138272020-03-14 Kamil Rytarowski <n54@gmx.com>
13828
13829 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13830 register_t.
13831
25567eee
KR
138322020-03-14 Kamil Rytarowski <n54@gmx.com>
13833
13834 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13835 register_t.
13836
426a9c18
TT
138372020-03-13 Tom Tromey <tom@tromey.com>
13838
13839 * value.h (val_print): Don't declare.
13840 * valprint.h (val_print_array_elements)
13841 (val_print_scalar_formatted, generic_val_print): Don't declare.
13842 * valprint.c (generic_val_print_array): Take a struct value.
13843 (generic_val_print_ptr, generic_val_print_memberptr)
13844 (generic_val_print_bool, generic_val_print_int)
13845 (generic_val_print_char, generic_val_print_complex)
13846 (generic_val_print): Remove.
13847 (generic_value_print): Update.
13848 (do_val_print): Remove unused parameters. Don't call
13849 la_val_print.
13850 (val_print): Remove.
13851 (common_val_print): Update. Don't call value_check_printable.
13852 (val_print_scalar_formatted, val_print_array_elements): Remove.
13853 * rust-lang.c (rust_val_print): Remove.
13854 (rust_language_defn): Update.
13855 * p-valprint.c (pascal_val_print): Remove.
13856 (pascal_value_print_inner): Update.
13857 (pascal_object_print_val_fields, pascal_object_print_val):
13858 Remove.
13859 (pascal_object_print_static_field): Update.
13860 * p-lang.h (pascal_val_print): Don't declare.
13861 * p-lang.c (pascal_language_defn): Update.
13862 * opencl-lang.c (opencl_language_defn): Update.
13863 * objc-lang.c (objc_language_defn): Update.
13864 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13865 * m2-lang.h (m2_val_print): Don't declare.
13866 * m2-lang.c (m2_language_defn): Update.
13867 * language.h (struct language_defn) <la_val_print>: Remove.
13868 * language.c (unk_lang_value_print_inner): Rename. Change
13869 argument types.
13870 (unknown_language_defn, auto_language_defn): Update.
13871 * go-valprint.c (go_val_print): Remove.
13872 * go-lang.h (go_val_print): Don't declare.
13873 * go-lang.c (go_language_defn): Update.
13874 * f-valprint.c (f_val_print): Remove.
13875 * f-lang.h (f_value_print): Don't declare.
13876 * f-lang.c (f_language_defn): Update.
13877 * d-valprint.c (d_val_print): Remove.
13878 * d-lang.h (d_value_print): Don't declare.
13879 * d-lang.c (d_language_defn): Update.
13880 * cp-valprint.c (cp_print_value_fields)
13881 (cp_print_value_fields_rtti, cp_print_value): Remove.
13882 (cp_print_static_field): Update.
13883 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13884 (c_val_print_struct, c_val_print_union, c_val_print_int)
13885 (c_val_print_memberptr, c_val_print): Remove.
13886 * c-lang.h (c_val_print_array, cp_print_value_fields)
13887 (cp_print_value_fields_rtti): Don't declare.
13888 * c-lang.c (c_language_defn, cplus_language_defn)
13889 (asm_language_defn, minimal_language_defn): Update.
13890 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13891 (ada_val_print_enum): Take a struct value.
13892 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13893 (ada_val_print): Remove.
13894 (ada_value_print_1): Update.
13895 (printable_val_type): Remove.
13896 * ada-lang.h (ada_val_print): Don't declare.
13897 * ada-lang.c (ada_language_defn): Update.
13898
42331a1e
TT
138992020-03-13 Tom Tromey <tom@tromey.com>
13900
13901 * valprint.c (do_val_print): Update.
13902 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13903 a struct value.
13904 (value_to_value_object_no_release): Declare.
13905 * python/py-value.c (value_to_value_object_no_release): New
13906 function.
13907 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13908 struct value.
13909 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13910 function.
13911 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13912 a struct value.
13913 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13914 Declare.
13915 (gdbscm_apply_val_pretty_printer): Take a struct value.
13916 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13917 value.
13918 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13919 value.
13920 * extension-priv.h (struct extension_language_ops)
13921 <apply_val_pretty_printer>: Take a struct value.
13922 * cp-valprint.c (cp_print_value): Create a struct value.
13923 (cp_print_value): Update.
13924
3a916a97
TT
139252020-03-13 Tom Tromey <tom@tromey.com>
13926
13927 * ada-valprint.c (print_field_values): Call common_val_print.
13928
b59eac37
TT
139292020-03-13 Tom Tromey <tom@tromey.com>
13930
13931 * ada-valprint.c (val_print_packed_array_elements): Remove
13932 bitoffset and val parameters. Call common_val_print.
13933 (ada_val_print_string): Remove offset, address, and original_value
13934 parameters.
13935 (ada_val_print_array): Update.
13936 (ada_value_print_array): New function.
13937 (ada_value_print_1): Call it.
13938
03371129
TT
139392020-03-13 Tom Tromey <tom@tromey.com>
13940
13941 * ada-valprint.c (ada_value_print): Use common_val_print.
13942
2e088f8b
TT
139432020-03-13 Tom Tromey <tom@tromey.com>
13944
13945 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13946
39ef85a8
TT
139472020-03-13 Tom Tromey <tom@tromey.com>
13948
13949 * ada-valprint.c (ada_value_print_num): New function.
13950 (ada_value_print_1): Use it.
13951
b9fa6e07
TT
139522020-03-13 Tom Tromey <tom@tromey.com>
13953
13954 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13955
416595d6
TT
139562020-03-13 Tom Tromey <tom@tromey.com>
13957
13958 * ada-valprint.c (ada_value_print_ptr): New function.
13959 (ada_value_print_1): Use it.
13960
5b5e15ec
TT
139612020-03-13 Tom Tromey <tom@tromey.com>
13962
13963 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13964 call common_val_print.
13965 (ada_val_print_1): Update.
13966 (ada_value_print_1): New function.
13967 (ada_value_print_inner): Rewrite.
13968
fbf54e75
TT
139692020-03-13 Tom Tromey <tom@tromey.com>
13970
13971 * cp-valprint.c (cp_print_value_fields): Update.
13972 (cp_print_value): New function.
13973
64b653ca
TT
139742020-03-13 Tom Tromey <tom@tromey.com>
13975
13976 * m2-valprint.c (m2_value_print_inner): Use
13977 cp_print_value_fields.
13978 * cp-valprint.c (cp_print_value_fields): New function.
13979 * c-valprint.c (c_value_print_struct): New function.
13980 (c_value_print_inner): Use c_value_print_struct.
13981 * c-lang.h (cp_print_value_fields): Declare.
13982
6999f067
TT
139832020-03-13 Tom Tromey <tom@tromey.com>
13984
13985 * c-valprint.c (c_value_print_array): New function.
13986 (c_value_print_inner): Use it.
13987
ce80b8bd
TT
139882020-03-13 Tom Tromey <tom@tromey.com>
13989
13990 * c-valprint.c (c_value_print_memberptr): New function.
13991 (c_value_print_inner): Use it.
13992
2faac269
TT
139932020-03-13 Tom Tromey <tom@tromey.com>
13994
13995 * c-valprint.c (c_value_print_int): New function.
13996 (c_value_print_inner): Use it.
13997
da3e2c29
TT
139982020-03-13 Tom Tromey <tom@tromey.com>
13999
14000 * c-valprint.c (c_value_print_ptr): New function.
14001 (c_value_print_inner): Use it.
14002
50836231
TT
140032020-03-13 Tom Tromey <tom@tromey.com>
14004
14005 * c-valprint.c (c_value_print_inner): Rewrite.
14006
4f412b6e
TT
140072020-03-13 Tom Tromey <tom@tromey.com>
14008
14009 * valprint.c (generic_value_print_complex): New function.
14010 (generic_value_print): Use it.
14011
f5354008
TT
140122020-03-13 Tom Tromey <tom@tromey.com>
14013
14014 * valprint.c (generic_val_print_float): Don't call
14015 val_print_scalar_formatted.
14016 (generic_val_print, generic_value_print): Update.
14017
3eec3b05
TT
140182020-03-13 Tom Tromey <tom@tromey.com>
14019
14020 * valprint.c (generic_value_print_char): New function
14021 (generic_value_print): Use it.
14022
fdddfccb
TT
140232020-03-13 Tom Tromey <tom@tromey.com>
14024
14025 * valprint.c (generic_value_print_int): New function.
14026 (generic_value_print): Use it.
14027
6dde7521
TT
140282020-03-13 Tom Tromey <tom@tromey.com>
14029
14030 * valprint.c (generic_value_print_bool): New function.
14031 (generic_value_print): Use it.
14032
4112d2e6
TT
140332020-03-13 Tom Tromey <tom@tromey.com>
14034
14035 * valprint.c (generic_val_print_func): Simplify.
14036 (generic_val_print, generic_value_print): Update.
14037
65786af6
TT
140382020-03-13 Tom Tromey <tom@tromey.com>
14039
14040 * valprint.c (generic_val_print_flags): Remove.
14041 (generic_val_print, generic_value_print): Update.
14042 (val_print_type_code_flags): Add original_value parameter.
14043
40f3ce18
TT
140442020-03-13 Tom Tromey <tom@tromey.com>
14045
14046 * valprint.c (generic_val_print): Update.
14047 (generic_value_print): Update.
14048 * valprint.c (generic_val_print_enum): Don't call
14049 val_print_scalar_formatted.
14050
2a5b130b
TT
140512020-03-13 Tom Tromey <tom@tromey.com>
14052
14053 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14054 * valprint.c (generic_value_print_ptr): New function.
14055
abc66ce9
TT
140562020-03-13 Tom Tromey <tom@tromey.com>
14057
14058 * valprint.c (generic_value_print): Rewrite.
14059
07a32858
TT
140602020-03-13 Tom Tromey <tom@tromey.com>
14061
14062 * p-valprint.c (pascal_object_print_value_fields)
14063 (pascal_object_print_value): New functions.
14064
64d64d3a
TT
140652020-03-13 Tom Tromey <tom@tromey.com>
14066
14067 * p-valprint.c (pascal_value_print_inner): Rewrite.
14068
6a95a1f5
TT
140692020-03-13 Tom Tromey <tom@tromey.com>
14070
14071 * f-valprint.c (f_value_print_innner): Rewrite.
14072
59fcdac6
TT
140732020-03-13 Tom Tromey <tom@tromey.com>
14074
14075 * m2-valprint.c (m2_print_unbounded_array): New overload.
14076 (m2_print_unbounded_array): Update.
14077 (m2_print_array_contents): Take a struct value.
14078 (m2_value_print_inner): Rewrite.
14079
d133c3e1
TT
140802020-03-13 Tom Tromey <tom@tromey.com>
14081
14082 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14083 (d_value_print_inner): New function.
14084 * d-lang.h (d_value_print_inner): Declare.
14085 * d-lang.c (d_language_defn): Use d_value_print_inner.
14086
23b0f06b
TT
140872020-03-13 Tom Tromey <tom@tromey.com>
14088
14089 * go-valprint.c (go_value_print_inner): New function.
14090 * go-lang.h (go_value_print_inner): Declare.
14091 * go-lang.c (go_language_defn): Use go_value_print_inner.
14092
5f56f7cb
TT
140932020-03-13 Tom Tromey <tom@tromey.com>
14094
14095 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14096 API.
14097 (rust_val_print): Rewrite.
14098 (rust_value_print_inner): New function, from rust_val_print.
14099 (rust_language_defn): Use rust_value_print_inner.
14100
26792ee0
TT
141012020-03-13 Tom Tromey <tom@tromey.com>
14102
14103 * ada-valprint.c (ada_value_print_inner): New function.
14104 * ada-lang.h (ada_value_print_inner): Declare.
14105 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14106
24051bbe
TT
141072020-03-13 Tom Tromey <tom@tromey.com>
14108
14109 * f-valprint.c (f_value_print_innner): New function.
14110 * f-lang.h (f_value_print_innner): Declare.
14111 * f-lang.c (f_language_defn): Use f_value_print_innner.
14112
c0941be6
TT
141132020-03-13 Tom Tromey <tom@tromey.com>
14114
14115 * p-valprint.c (pascal_value_print_inner): New function.
14116 * p-lang.h (pascal_value_print_inner): Declare.
14117 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14118
62c4663d
TT
141192020-03-13 Tom Tromey <tom@tromey.com>
14120
14121 * m2-valprint.c (m2_value_print_inner): New function.
14122 * m2-lang.h (m2_value_print_inner): Declare.
14123 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14124
62182190
TT
141252020-03-13 Tom Tromey <tom@tromey.com>
14126
14127 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14128 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14129 * c-valprint.c (c_value_print_inner): New function.
14130 * c-lang.h (c_value_print_inner): Declare.
14131 * c-lang.c (c_language_defn, cplus_language_defn)
14132 (asm_language_defn, minimal_language_defn): Use
14133 c_value_print_inner.
14134
1e592a8a
TT
141352020-03-13 Tom Tromey <tom@tromey.com>
14136
14137 * p-valprint.c (pascal_object_print_value_fields): Now static.
14138 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14139
7fe471e9
TT
141402020-03-13 Tom Tromey <tom@tromey.com>
14141
14142 * c-valprint.c (c_val_print_array): Simplify.
14143
d121c6ce
TT
141442020-03-13 Tom Tromey <tom@tromey.com>
14145
14146 * valprint.c (value_print_array_elements): New function.
14147 * valprint.h (value_print_array_elements): Declare.
14148
4dba70ee
TT
141492020-03-13 Tom Tromey <tom@tromey.com>
14150
14151 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14152 * mips-tdep.c (mips_print_register): Use
14153 value_print_scalar_formatted.
14154
4f9ae810
TT
141552020-03-13 Tom Tromey <tom@tromey.com>
14156
14157 * valprint.h (value_print_scalar_formatted): Declare.
14158 * valprint.c (value_print_scalar_formatted): New function.
14159
156bfec9
TT
141602020-03-13 Tom Tromey <tom@tromey.com>
14161
14162 * valprint.h (generic_value_print): Declare.
14163 * valprint.c (generic_value_print): New function.
14164
2b4e573d
TT
141652020-03-13 Tom Tromey <tom@tromey.com>
14166
14167 * valprint.c (do_val_print): Call la_value_print_inner, if
14168 available.
14169 * rust-lang.c (rust_language_defn): Update.
14170 * p-lang.c (pascal_language_defn): Update.
14171 * opencl-lang.c (opencl_language_defn): Update.
14172 * objc-lang.c (objc_language_defn): Update.
14173 * m2-lang.c (m2_language_defn): Update.
14174 * language.h (struct language_defn) <la_value_print_inner>: New
14175 member.
14176 * language.c (unknown_language_defn, auto_language_defn): Update.
14177 * go-lang.c (go_language_defn): Update.
14178 * f-lang.c (f_language_defn): Update.
14179 * d-lang.c (d_language_defn): Update.
14180 * c-lang.c (c_language_defn, cplus_language_defn)
14181 (asm_language_defn, minimal_language_defn): Update.
14182 * ada-lang.c (ada_language_defn): Update.
14183
a1f6a07c
TT
141842020-03-13 Tom Tromey <tom@tromey.com>
14185
14186 * c-valprint.c (c_value_print): Use common_val_print.
14187
410cf315
TT
141882020-03-13 Tom Tromey <tom@tromey.com>
14189
14190 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14191
72a45c93
TT
141922020-03-13 Tom Tromey <tom@tromey.com>
14193
14194 * f-valprint.c (f77_print_array_1, f_val_print): Use
14195 common_val_print.
14196
040f66bd
TT
141972020-03-13 Tom Tromey <tom@tromey.com>
14198
14199 * riscv-tdep.c (riscv_print_one_register_info): Use
14200 common_val_print.
14201
a6e05a6c
TT
142022020-03-13 Tom Tromey <tom@tromey.com>
14203
14204 * mi/mi-main.c (output_register): Use common_val_print.
14205
3444c526
TT
142062020-03-13 Tom Tromey <tom@tromey.com>
14207
14208 * infcmd.c (default_print_one_register_info): Use
14209 common_val_print.
14210
c2a44efe
TT
142112020-03-13 Tom Tromey <tom@tromey.com>
14212
14213 * valprint.h (common_val_print_checked): Declare.
14214 * valprint.c (common_val_print_checked): New function.
14215 * stack.c (print_frame_arg): Use common_val_print_checked.
14216
b0c26e99
TT
142172020-03-13 Tom Tromey <tom@tromey.com>
14218
14219 * valprint.c (do_val_print): New function, from val_print.
14220 (val_print): Use do_val_print.
14221 (common_val_print): Use do_val_print.
14222
ce3acbe9
TT
142232020-03-13 Tom Tromey <tom@tromey.com>
14224
14225 * valprint.c (value_print): Use scoped_value_mark.
14226
96c7f873
TV
142272020-03-13 Tom de Vries <tdevries@suse.de>
14228
14229 PR symtab/25646
14230 * psymtab.c (partial_symtab::partial_symtab): Don't set
14231 globals_offset and statics_offset. Push element onto
14232 current_global_psymbols and current_static_psymbols stacks.
14233 (concat): New function.
14234 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14235 element from current_global_psymbols and current_static_psymbols
14236 stacks. Concat popped elements to global_psymbols and
14237 static_symbols.
14238 (add_psymbol_to_list): Use current_global_psymbols and
14239 current_static_psymbols stacks.
14240 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14241 current_static_psymbols fields.
14242
6ba0a321
CB
142432020-03-12 Christian Biesinger <cbiesinger@google.com>
14244
14245 * corelow.c (sniff_core_bfd): Remove.
14246 (class core_target) <m_core_vec>: Remove.
14247 (core_target::core_target): Update.
14248 (core_file_fns): Remove.
14249 (deprecated_add_core_fns): Remove.
14250 (default_core_sniffer): Remove.
14251 (sniff_core_bfd): Remove.
14252 (default_check_format): Remove.
14253 (gdb_check_format): Remove.
14254 (core_target_open): Update.
14255 (core_target::get_core_register_section): Update.
14256 (get_core_registers_cb): Update.
14257 (core_target::fetch_registers): Update.
14258 * gdbcore.h (struct core_fns): Remove.
14259 (deprecated_add_core_fns): Remove.
14260 (default_core_sniffer): Remove.
14261 (default_check_format): Remove.
14262
227031b2
TT
142632020-03-12 Tom Tromey <tom@tromey.com>
14264
14265 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14266 CORE_ADDR.
14267 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14268
53807e9f
TT
142692020-03-12 Tom Tromey <tom@tromey.com>
14270
14271 * remote.c (remote_target::download_tracepoint)
14272 (remote_target::enable_tracepoint)
14273 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14274 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14275 sprintf_vma.
14276
64f25102
TT
142772020-03-12 Tom Tromey <tom@tromey.com>
14278
14279 * symfile-mem.c: Update CORE_ADDR size assert.
14280
272cd5a3
SM
142812020-03-12 Simon Marchi <simon.marchi@efficios.com>
14282
14283 * selftest.m4: Move to gdbsupport/.
14284 * acinclude.m4: Update path to selftest.m4.
14285
74cd3f9d
SM
142862020-03-12 Simon Marchi <simon.marchi@efficios.com>
14287
14288 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14289 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14290 gdbarch-selfselftests.c and selftest-arch.c.
14291 (SUBDIR_UNITTESTS_OBS): Rename to...
14292 (SELFTESTS_OBS): ... this.
14293 (COMMON_SFILES): Remove disasm-selftests.c and
14294 gdbarch-selftests.c.
14295 * configure.ac: Don't add selftest-arch.{c,o} to
14296 CONFIG_{SRCS,OBS}.
14297 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14298 preprocessor conditions.
14299
db6878ac
SM
143002020-03-12 Simon Marchi <simon.marchi@efficios.com>
14301
14302 * configure.ac: Don't source bfd/development.sh.
14303 * selftest.m4: Modify comment.
14304 * configure: Re-generate.
14305
4d696a5c
SM
143062020-03-12 Simon Marchi <simon.marchi@efficios.com>
14307
14308 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14309 not "true" or "false".
14310 * configure: Re-generate.
14311
8dd8e1c7
CB
143122020-03-12 Christian Biesinger <cbiesinger@google.com>
14313
14314 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14315 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14316 renamed to arm_nbsd_supply_gregset.
14317 (fetch_register): Update to call arm_nbsd_supply_gregset.
14318 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14319 (arm_netbsd_nat_target::fetch_registers): Update.
14320 (fetch_elfcore_registers): Removed.
14321 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14322 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14323 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14324 not require NetBSD system headers.
14325 (arm_nbsd_regset): New struct.
14326 (arm_nbsd_iterate_over_regset_sections): New function.
14327 (arm_netbsd_init_abi_common): Updated to call
14328 set_gdbarch_iterate_over_regset_sections.
14329 * arm-nbsd-tdep.h: New file.
14330
dd69bf7a
KB
143312020-03-11 Kevin Buettner <kevinb@redhat.com>
14332
14333 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14334 recursion.
14335
a0761e34
SM
143362020-03-11 Simon Marchi <simon.marchi@efficios.com>
14337
14338 * configure: Re-generate.
14339
e7a82140
TT
143402020-03-11 Tom Tromey <tromey@adacore.com>
14341
14342 * ada-typeprint.c (print_choices): Fix comment.
14343
dcc050c8
AB
143442020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14345
14346 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14347 previous item in the list, when the list has no items.
14348
1c33af77
TV
143492020-03-11 Tom de Vries <tdevries@suse.de>
14350
14351 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14352 PROP_LOCLIST handling code.
14353
8c95582d
AB
143542020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14355
14356 * buildsym-legacy.c (record_line): Pass extra parameter to
14357 record_line.
14358 * buildsym.c (buildsym_compunit::record_line): Take an extra
14359 parameter, reduce duplication in the line table, and record the
14360 is_stmt flag in the line table.
14361 * buildsym.h (buildsym_compunit::record_line): Add extra
14362 parameter.
14363 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14364 non-statement lines.
14365 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14366 this to the symtab builder.
14367 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14368 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14369 through to dwarf_record_line_1.
14370 * infrun.c (process_event_stop_test): When stepping, don't stop at
14371 a non-statement instruction, and only refresh the step info when
14372 we land in the middle of a line's range. Also add an extra
14373 comment.
14374 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14375 field.
14376 * record-btrace.c (btrace_find_line_range): Only record lines
14377 marked as is-statement.
14378 * stack.c (frame_show_address): Show the frame address if we are
14379 in a non-statement sal.
14380 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14381 (maintenance_print_one_line_table): Print a header for the is_stmt
14382 column, and include is_stmt information in the output.
14383 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14384 preference to non-statements.
14385 (find_pcs_for_symtab_line): Prefer is-statement entries.
14386 (find_line_common): Likewise.
14387 * symtab.h (struct linetable_entry): Add is_stmt field.
14388 (struct symtab_and_line): Likewise.
14389 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14390 arranging the line table.
14391
e4003a34
TV
143922020-03-07 Tom de Vries <tdevries@suse.de>
14393
14394 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14395 DIE.
14396
e8932576
TT
143972020-03-07 Tom Tromey <tom@tromey.com>
14398
14399 * valops.c (value_literal_complex): Remove obsolete comment.
14400 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14401 comment.
14402
29734269
SM
144032020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14404
14405 * infrun.h: Forward-declare thread_info.
14406 (set_step_info): Add thread_info parameter, add doc.
14407 * infrun.c (set_step_info): Add thread_info parameter, move doc
14408 to header.
14409 * infrun.c (process_event_stop_test): Pass thread to
14410 set_step_info call.
14411 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14412 set_step_info.
14413 (prepare_one_step): Add thread_info parameter, pass it to
14414 set_step_frame and prepare_one_step (recursive) call.
14415 (step_1): Pass thread to prepare_one_step call.
14416 (step_command_fsm::should_stop): Pass thread to
14417 prepare_one_step.
14418 (until_next_fsm): Pass thread to set_step_frame call.
14419 (finish_command): Pass thread to set_step_info call.
14420
b7d64b29
HD
144212020-03-06 Hannes Domani <ssbssa@yahoo.de>
14422
14423 * windows-tdep.c (windows_solib_create_inferior_hook):
14424 Check if inferior is running.
14425
09f2921c
TV
144262020-03-06 Tom de Vries <tdevries@suse.de>
14427
14428 * NEWS: Fix "the the".
14429 * ctfread.c: Same.
14430
fd760e79
TV
144312020-03-06 Tom de Vries <tdevries@suse.de>
14432
14433 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14434
20ea4a60
AB
144352020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14436
14437 * .dir-locals.el: Add a comment referencing the other copies of
14438 this file.
14439
0afbabf0
JB
144402020-03-05 John Baldwin <jhb@FreeBSD.org>
14441
14442 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14443 psargs.
14444
842806cb
TBA
144452020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14446
14447 * .gitattributes: New file.
14448
be1e3d3e
TT
144492020-03-04 Tom Tromey <tom@tromey.com>
14450
14451 * symmisc.c (print_symbol_bcache_statistics)
14452 (print_objfile_statistics): Update.
14453 * symfile.c (allocate_symtab): Use intern.
14454 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14455 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14456 macro_cache>: Remove.
14457 <string_cache>: New member.
14458 (struct objfile) <intern>: New methods.
14459 * elfread.c (elf_symtab_read): Use intern.
14460 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14461 (dwarf2_compute_name, dwarf2_physname)
14462 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14463 names.
14464 (guess_partial_die_structure_name): Update.
14465 (partial_die_info::fixup): Intern name.
14466 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14467 name.
14468 (dwarf2_name): Intern name. Update.
14469 * buildsym.c (buildsym_compunit::get_macro_table): Use
14470 string_cache.
14471
4e7625fd
TT
144722020-03-04 Tom Tromey <tom@tromey.com>
14473
14474 * jit.c (bfd_open_from_target_memory): Make "target" const.
14475 * corefile.c (gnutarget): Now const.
14476 * gdbcore.h (gnutarget): Now const.
14477
46f9f931
HD
144782020-03-04 Hannes Domani <ssbssa@yahoo.de>
14479
14480 * NEWS: Mention support for WOW64 processes.
14481 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14482 (amd64_windows_segment_register_p): Remove static.
14483 (_initialize_amd64_windows_nat): Update.
14484 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14485 * i386-windows-nat.c (context_offset): Update.
14486 (i386_mappings): Rename and remove static.
14487 (i386_windows_segment_register_p): Remove static.
14488 (_initialize_i386_windows_nat): Update.
14489 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14490 (STATUS_WX86_SINGLE_STEP): New macro.
14491 (EnumProcessModulesEx): New macro.
14492 (Wow64SuspendThread): New macro.
14493 (Wow64GetThreadContext): New macro.
14494 (Wow64SetThreadContext): New macro.
14495 (Wow64GetThreadSelectorEntry): New macro.
14496 (windows_set_context_register_offsets): Add static.
14497 (windows_set_segment_register_p): Likewise.
14498 (windows_add_thread): Adapt for WOW64 processes.
14499 (windows_fetch_one_register): Likewise.
14500 (windows_nat_target::fetch_registers): Likewise.
14501 (windows_store_one_register): Likewise.
14502 (display_selector): Likewise.
14503 (display_selectors): Likewise.
14504 (handle_exception): Likewise.
14505 (windows_continue): Likewise.
14506 (windows_nat_target::resume): Likewise.
14507 (windows_add_all_dlls): Likewise.
14508 (do_initial_windows_stuff): Likewise.
14509 (windows_nat_target::attach): Likewise.
14510 (windows_get_exec_module_filename): Likewise.
14511 (windows_nat_target::create_inferior): Likewise.
14512 (windows_xfer_siginfo): Likewise.
14513 (_initialize_loadable): Initialize Wow64SuspendThread,
14514 Wow64GetThreadContext, Wow64SetThreadContext,
14515 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14516 * windows-nat.h (windows_set_context_register_offsets):
14517 Remove declaration.
14518 (windows_set_segment_register_p): Likewise.
14519 (i386_windows_segment_register_p): Add declaration.
14520 (amd64_windows_segment_register_p): Likewise.
14521
440cf44e
LM
145222020-03-04 Luis Machado <luis.machado@linaro.org>
14523
14524 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14525 in "info registers" for AArch64/ARM.
14526
14527 The change caused "info registers" to not print GPR's.
14528
14529 gdb/ChangeLog:
14530
14531 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14532
14533 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14534 when reg->group is empty and reggroup is not.
14535
1009d92f
TT
145362020-03-03 Tom Tromey <tromey@adacore.com>
14537
14538 * dwarf2/frame.c (struct dwarf2_frame_cache)
14539 <checked_tailcall_bottom, entry_cfa_sp_offset,
14540 entry_cfa_sp_offset_p>: Remove members.
14541 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14542 (dwarf2_frame_prev_register): Don't call
14543 dwarf2_tailcall_sniffer_first.
14544 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14545 * frame-unwind.c (add_unwinder): New fuction.
14546 (frame_unwind_init): Use it. Add tailcall unwinder.
14547
5e5d66b6
AB
145482020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14549 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14550
14551 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14552 value should be printed as true.
14553
584cf46d
HD
145542020-03-03 Hannes Domani <ssbssa@yahoo.de>
14555
14556 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14557 (windows_init_abi): Set and use windows_so_ops.
14558
7b973adc
SDJ
145592020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14560
14561 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14562 when verifying if dealing with a convenience variable.
14563
bb7b70ab
LM
145642020-03-03 Luis Machado <luis.machado@linaro.org>
14565
14566 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14567
9822cb57
SM
145682020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14569
14570 * infrun.c (gdbarch_supports_displaced_stepping): New.
14571 (use_displaced_stepping): Break up conditions in smaller pieces.
14572 Use gdbarch_supports_displaced_stepping.
14573 (displaced_step_prepare_throw): Use
14574 gdbarch_supports_displaced_stepping.
14575
63e163f2
AB
145762020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14577
14578 * NEWS: Mention new behaviour of the history filename.
14579 * top.c (write_history_p): Add comment.
14580 (show_write_history_p): Add header comment, give a different
14581 message when history writing is on, but the history filename is
14582 empty.
14583 (history_filename): Add comment.
14584 (history_filename_empty): New function.
14585 (show_history_filename): Add header comment, give a different
14586 message when the filename is empty.
14587 (init_history): Compare history_filename against nullptr, and only
14588 read history if the filename is not empty.
14589 (set_history_filename): Add header comment, and only make
14590 non-empty filenames absolute.
14591 (init_main): Make the filename argument to 'set history filename'
14592 optional.
14593
81b86b97
CB
145942020-03-02 Christian Biesinger <cbiesinger@google.com>
14595
14596 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14597 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14598 (fetch_fp_register): Update.
14599 (fetch_fp_regs): Update.
14600 (store_fp_register): Update.
14601 (store_fp_regs): Update.
14602 (arm_netbsd_nat_target::read_description): New function.
14603 (fetch_elfcore_registers): Update.
14604
24ed6739
AB
146052020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14606
14607 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14608 general_thread if the stop reply is missing a thread-id.
14609 (remote_target::process_stop_reply): Use the first non-exited
14610 thread if the target didn't pass a thread-id.
14611 * infrun.c (do_target_wait): Move call to
14612 switch_to_inferior_no_thread to ....
14613 (do_target_wait_1): ... here.
14614
a84bb2a0
JT
146152020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14616
14617 * debuginfod-support.c: Include defs.h first.
14618
658dadf0
TV
146192020-02-28 Tom de Vries <tdevries@suse.de>
14620
14621 * symfile.c (set_initial_language): Use default language for lookup.
14622
4ebe4877
SM
146232020-02-28 Simon Marchi <simon.marchi@efficios.com>
14624
14625 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14626 reader variable, pass `this` to read_cutu_die_from_dwo.
14627
e5da1139
AM
146282020-02-27 Aaron Merey <amerey@redhat.com>
14629
14630 * source.c (open_source_file): Check for nullptr when computing
14631 srcpath.
14632
317f7127
TT
146332020-02-27 Tom Tromey <tromey@adacore.com>
14634
14635 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14636 member.
14637 (dwarf2_add_field): Don't update nfields.
14638 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14639
3104d9ee
AB
146402020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14641
14642 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14643 abs.
14644
b83470bf
TT
146452020-02-26 Tom Tromey <tom@tromey.com>
14646
14647 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14648 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14649 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14650 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14651 per_cu_data.
14652
edfe0a0c
TT
146532020-02-26 Tom Tromey <tom@tromey.com>
14654
14655 * dwarf2/index-write.c (psym_index_map): Change type.
14656 (add_address_entry_worker, write_one_signatured_type)
14657 (recursively_count_psymbols, recursively_write_psymbols)
14658 (class debug_names, psyms_seen_size, write_gdbindex)
14659 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14660
0d79cdc4
AM
146612020-02-26 Aaron Merey <amerey@redhat.com>
14662
14663 * Makefile.in: Handle optional debuginfod support.
14664 * NEWS: Update.
14665 * README: Add --with-debuginfod summary.
14666 * config.in: Regenerate.
14667 * configure: Regenerate.
14668 * configure.ac: Handle optional debuginfod support.
14669 * debuginfod-support.c: debuginfod helper functions.
14670 * debuginfod-support.h: Ditto.
14671 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14672 summary.
14673 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14674 when a dwz file cannot be found.
14675 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14676 debuginfo file cannot be found.
14677 * source.c (open_source_file): Query debuginfod servers when a
14678 source file cannot be found.
14679 * top.c (print_gdb_configuration): Include
14680 --{with,without}-debuginfod in the output.
14681
b65ce565
JG
146822020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14683
14684 * thread.c (thr_try_catch_cmd): Print thread name.
14685
d4c9a4f8
SM
146862020-02-26 Simon Marchi <simon.marchi@efficios.com>
14687
14688 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14689 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14690 dwarf2_fetch_die_type_sect_off): Move to...
14691 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14692 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14693 dwarf2_fetch_die_type_sect_off): ... here.
14694 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14695 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14696 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14697
0dce4280
TV
146982020-02-26 Tom de Vries <tdevries@suse.de>
14699
14700 PR gdb/25603
14701 * symfile.c (set_initial_language): Exit-early if
14702 language_mode == language_mode_manual.
14703
450a1bfc
SM
147042020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14705
14706 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14707 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14708 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14709
9e80cfa1
AB
147102020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14711
14712 * gdbtypes.c (create_array_type_with_stride): Handle negative
14713 array strides.
14714 * valarith.c (value_subscripted_rvalue): Likewise.
14715
09624f1f
LM
147162020-02-25 Luis Machado <luis.machado@linaro.org>
14717
14718 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14719
8cb5117c
SM
147202020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14721
14722 * loc.h (dwarf2_get_die_type): Move to...
14723 * read.h (dwarf2_get_die_type): ... here.
14724 * read.c (dwarf2_get_die_type): Move doc to header.
14725
c325c44e
JB
147262020-02-25 Joel Brobecker <brobecker@adacore.com>
14727
14728 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14729 'gnulib/Makefile.in' to the list.
14730
4ac93832
TT
147312020-02-24 Tom Tromey <tom@tromey.com>
14732
14733 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14734 Remove.
14735 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14736 XOBNEWVEC.
14737
197400e8
TT
147382020-02-24 Tom Tromey <tom@tromey.com>
14739
14740 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14741 New method.
14742 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14743 (dw2_do_instantiate_symtab, dw2_get_file_names)
14744 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14745
76935768
TT
147462020-02-24 Tom Tromey <tom@tromey.com>
14747
14748 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14749 make_scoped_restore.
14750 (dwarf2_psymtab::read_symtab): Don't clear
14751 reading_partial_symbols.
14752
a88ef40d
TV
147532020-02-24 Tom de Vries <tdevries@suse.de>
14754
14755 PR gdb/25592
14756 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14757
c9af6521
TV
147582020-02-24 Tom de Vries <tdevries@suse.de>
14759
14760 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14761 commands layout next/prev/regs.
14762
5707a07a
TT
147632020-02-22 Tom Tromey <tom@tromey.com>
14764
14765 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14766 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14767
3b0fb49e
TT
147682020-02-22 Tom Tromey <tom@tromey.com>
14769
14770 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14771
283be8bf
TT
147722020-02-22 Tom Tromey <tom@tromey.com>
14773
14774 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14775 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14776 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14777 * tui/tui.c (_initialize_tui): Add usage text.
14778
ca793b96
TT
147792020-02-22 Tom Tromey <tom@tromey.com>
14780
14781 * tui/tui-win.c (tui_set_focus_command)
14782 (tui_set_win_height_command): Use error_no_arg.
14783 (_initialize_tui_win): Update help text.
14784 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14785
432b5c40
TT
147862020-02-22 Tom Tromey <tom@tromey.com>
14787
14788 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14789 * tui/tui-disasm.h (struct tui_disasm_window)
14790 <display_start_addr>: Declare.
14791 * tui/tui-source.h (struct tui_source_window)
14792 <display_start_addr>: Declare.
14793 * tui/tui-winsource.h (struct tui_source_window_base)
14794 <show_source_line, display_start_addr>: New methods.
14795 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14796 Rename and move to protected section.
14797 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14798 (tui_source_window_base::do_erase_source_content): Update.
14799 (tui_source_window_base::show_source_line): Now a method.
14800 (tui_source_window_base::show_source_content)
14801 (tui_source_window_base::tui_source_window_base)
14802 (tui_source_window_base::rerender)
14803 (tui_source_window_base::refill)
14804 (tui_source_window_base::do_scroll_horizontal)
14805 (tui_source_window_base::set_is_exec_point_at)
14806 (tui_source_window_base::update_breakpoint_info)
14807 (tui_source_window_base::update_exec_info): Update.
14808 * tui/tui-source.c (tui_source_window::set_contents)
14809 (tui_source_window::showing_source_p)
14810 (tui_source_window::do_scroll_vertical)
14811 (tui_source_window::location_matches_p)
14812 (tui_source_window::line_is_displayed): Update.
14813 (tui_source_window::display_start_addr): New method.
14814 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14815 (tui_disasm_window::do_scroll_vertical)
14816 (tui_disasm_window::location_matches_p): Update.
14817 (tui_disasm_window::display_start_addr): New method.
14818
01b1af32
TT
148192020-02-22 Tom Tromey <tom@tromey.com>
14820
14821 * NEWS: Add entry for gdb.register_window_type.
14822 * tui/tui-layout.h (window_factory): New typedef.
14823 (tui_register_window): Declare.
14824 * tui/tui-layout.c (saved_tui_windows): New global.
14825 (tui_apply_current_layout): Use it.
14826 (tui_register_window): New function.
14827 * python/python.c (do_start_initialization): Call
14828 gdbpy_initialize_tui.
14829 (python_GdbMethods): Add "register_window_type" function.
14830 * python/python-internal.h (gdbpy_register_tui_window)
14831 (gdbpy_initialize_tui): Declare.
14832 * python/py-tui.c: New file.
14833 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14834
fc96d20b
TT
148352020-02-22 Tom Tromey <tom@tromey.com>
14836
14837 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14838
935c78c0
TT
148392020-02-22 Tom Tromey <tom@tromey.com>
14840
14841 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14842 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14843 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14844 (tui_set_win_focus_to): Move from tui-win.c.
14845
0240c8f1
TT
148462020-02-22 Tom Tromey <tom@tromey.com>
14847
14848 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14849 functions.
14850 (known_window_types): New global.
14851 (tui_get_window_by_name): Reimplement.
14852 (initialize_known_windows): New function.
14853 (validate_window_name): Rewrite.
14854 (_initialize_tui_layout): Call initialize_known_windows.
14855
fdb01f0c
TT
148562020-02-22 Tom Tromey <tom@tromey.com>
14857
14858 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14859 Remove constants.
14860 * tui/tui-winsource.h (struct tui_source_window_base)
14861 <tui_source_window_base>: Remove parameter.
14862 * tui/tui-winsource.c
14863 (tui_source_window_base::tui_source_window_base): Remove
14864 parameter.
14865 (tui_source_window_base::refill): Update.
14866 * tui/tui-stack.h (struct tui_locator_window)
14867 <tui_locator_window>: Update.
14868 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14869 Default the constructor.
14870 * tui/tui-regs.h (struct tui_data_item_window)
14871 <tui_data_item_window>: Default the constructor.
14872 (struct tui_data_window) <tui_data_window>: Likewise.
14873 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14874 Default the constructor.
14875 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14876 Default the constructor.
14877 <type>: Remove.
14878 (struct tui_win_info) <tui_win_info>: Default the constructor.
14879 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14880 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14881 Default the constructor.
14882
865a5aec
TT
148832020-02-22 Tom Tromey <tom@tromey.com>
14884
14885 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14886 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14887 * tui/tui-win.c (tui_resize_all): Don't call
14888 tui_delete_invisible_windows.
14889 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14890 done.
14891 (tui_set_layout): Update.
14892 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14893 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14894 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14895
e098d18c
TT
148962020-02-22 Tom Tromey <tom@tromey.com>
14897
14898 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14899 correctly.
14900
eb9c8874
TT
149012020-02-22 Tom Tromey <tom@tromey.com>
14902
14903 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14904
7eed1a8e
TT
149052020-02-22 Tom Tromey <tom@tromey.com>
14906
14907 * tui/tui-winsource.h (struct tui_source_window_iterator)
14908 <inner_iterator>: New etytypedef.
14909 <tui_source_window_iterator>: Take "end" parameter.
14910 <tui_source_window_iterator>: Take iterator.
14911 <operator*, advance>: Update.
14912 <m_iter>: Change type.
14913 <m_end>: New field.
14914 (struct tui_source_windows) <begin, end>: Update.
14915 * tui/tui-layout.c (tui_windows): New global.
14916 (tui_apply_current_layout): Clear tui_windows.
14917 (tui_layout_window::apply): Update tui_windows.
14918 * tui/tui-data.h (tui_windows): Declare.
14919 (all_tui_windows): Now inline function.
14920 (class tui_window_iterator, struct all_tui_windows): Remove.
14921
7c043ba6
TT
149222020-02-22 Tom Tromey <tom@tromey.com>
14923
14924 PR tui/17850:
14925 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14926 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14927 "height" argument.
14928 (class tui_layout_window) <get_sizes>: Likewise.
14929 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14930 argument.
14931 <get_sizes>: Add "height" argument.
14932 <m_vertical>: New field.
14933 * tui/tui-layout.c (tui_layout_split::clone): Update.
14934 (tui_layout_split::get_sizes): Add "height" argument.
14935 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14936 (tui_new_layout_command): Parse "-horizontal".
14937 (_initialize_tui_layout): Update help string.
14938 (tui_layout_split::specification): Add "-horizontal" when needed.
14939 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14940 argument.
14941 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14942 New methods.
14943
6bc56648
TT
149442020-02-22 Tom Tromey <tom@tromey.com>
14945
14946 * tui/tui-layout.h (enum tui_adjust_result): New.
14947 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14948 (class tui_layout_window) <adjust_size>: Return
14949 tui_adjust_result. Rewrite.
14950 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14951 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14952
c22fef7e
TT
149532020-02-22 Tom Tromey <tom@tromey.com>
14954
14955 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14956 parameter and return types.
14957 (class tui_layout_base) <specification>: Add "depth".
14958 (class tui_layout_window) <specification>: Add "depth".
14959 (class tui_layout_split) <specification>: Add "depth".
14960 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14961 and return types.
14962 (tui_new_layout_command): Parse sub-layouts.
14963 (_initialize_tui_layout): Update help string.
14964 (tui_layout_window::specification): Add "depth".
14965 (add_layout_command): Update.
14966
ee325b61
TT
149672020-02-22 Tom Tromey <tom@tromey.com>
14968
14969 * NEWS: Add "tui new-layout" item.
14970 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14971 Add new-layout command to help text.
14972 (validate_window_name): New function.
14973 (tui_new_layout_command): New function.
14974 (_initialize_tui_layout): Register "new-layout".
14975 (tui_layout_window::specification): New method.
14976 (tui_layout_window::specification): New method.
14977 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14978 method.
14979 (class tui_layout_window) <specification>: New method.
14980 (class tui_layout_split) <specification>: New method.
14981
416eb92d
TT
149822020-02-22 Tom Tromey <tom@tromey.com>
14983
14984 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14985 * tui/tui-win.c (window_name_completer): Update comment.
14986 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14987 Declare method.
14988 (class tui_layout_window) <replace_window>: Likewise.
14989 (class tui_layout_split) <replace_window>: Likewise.
14990 (tui_set_layout): Don't declare.
14991 (tui_set_initial_layout): Declare function.
14992 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14993 (asm_regs_layout): New globals.
14994 (tui_current_layout, show_layout): Remove.
14995 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14996 (find_layout, tui_apply_layout): New function.
14997 (layout_completer): Remove.
14998 (tui_next_layout): Reimplement.
14999 (tui_next_layout_command): New function.
15000 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15001 (tui_regs_layout): Reimplement.
15002 (tui_regs_layout_command): New function.
15003 (extract_display_start_addr): Rewrite.
15004 (next_layout, prev_layout): Remove.
15005 (tui_layout_window::replace_window): New method.
15006 (tui_layout_split::replace_window): New method.
15007 (destroy_layout): New function.
15008 (layout_list): New global.
15009 (add_layout_command): New function.
15010 (initialize_layouts): Update.
15011 (tui_layout_command): New function.
15012 (_initialize_tui_layout): Install "layout" commands.
15013 * tui/tui-data.h (enum tui_layout_type): Remove.
15014 (tui_current_layout): Don't declare.
15015
0dbc2fc7
TT
150162020-02-22 Tom Tromey <tom@tromey.com>
15017
15018 * tui/tui-regs.c (tui_reg_layout): Remove.
15019 (tui_reg_command): Use tui_regs_layout.
15020 * tui/tui-layout.h (tui_reg_command): Declare.
15021 * tui/tui-layout.c (tui_reg_command): New function.
15022
5afe342e
TT
150232020-02-22 Tom Tromey <tom@tromey.com>
15024
15025 * tui/tui.c (tui_rl_delete_other_windows): Call
15026 tui_remove_some_windows.
15027 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15028 Declare method.
15029 (class tui_layout_window) <remove_windows>: New method.
15030 (class tui_layout_split) <remove_windows>: Declare.
15031 (tui_remove_some_windows): Declare.
15032 * tui/tui-layout.c (tui_remove_some_windows): New function.
15033 (tui_layout_split::remove_windows): New method.
15034
427326a8
TT
150352020-02-22 Tom Tromey <tom@tromey.com>
15036
15037 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15038 * tui/tui-layout.h (tui_next_layout): Declare.
15039 * tui/tui-layout.c (tui_next_layout): New function.
15040
3fe12b6d
TT
150412020-02-22 Tom Tromey <tom@tromey.com>
15042
15043 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15044 correct coordinates.
15045
59b8b5d2
TT
150462020-02-22 Tom Tromey <tom@tromey.com>
15047
15048 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15049 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15050 DATA_WIN case.
15051
2a3d458b
TT
150522020-02-22 Tom Tromey <tom@tromey.com>
15053
15054 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15055 TUI_DISASM_WIN, not tui_win_list.
15056
3f0cbb04
TT
150572020-02-22 Tom Tromey <tom@tromey.com>
15058
15059 * valprint.c (generic_val_print_enum_1)
15060 (val_print_type_code_flags): Style member names.
15061 * rust-lang.c (val_print_struct, rust_print_enum)
15062 (rust_print_struct_def, rust_internal_print_type): Style member
15063 names.
15064 * p-valprint.c (pascal_object_print_value_fields): Style member
15065 names. Only call fprintf_symbol_filtered for static members.
15066 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15067 * f-valprint.c (f_val_print): Style member names.
15068 * f-typeprint.c (f_type_print_base): Style member names.
15069 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15070 call fprintf_symbol_filtered for static members.
15071 (cp_print_class_member): Style member names.
15072 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15073 member names.
15074 * ada-valprint.c (ada_print_scalar): Style enum names.
15075 (ada_val_print_enum): Likewise.
15076 * ada-typeprint.c (print_enum_type): Style enum names.
15077
d4d947ae
TT
150782020-02-21 Tom Tromey <tom@tromey.com>
15079
15080 * psympriv.h (struct partial_symtab): Update comment.
15081
e94e944b
TT
150822020-02-21 Tom Tromey <tromey@adacore.com>
15083
15084 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15085 type is CORE_ADDR.
15086
1eb73179
TV
150872020-02-21 Tom de Vries <tdevries@suse.de>
15088
15089 PR gdb/25534
15090 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15091 if dependencies[i]->user != NULL.
15092
4f180d53
AT
150932020-02-21 Ali Tamur <tamur@google.com>
15094
15095 * dwarf2/read.c (dwarf2_name): Add null check.
15096
22b6cd70
TT
150972020-02-20 Tom Tromey <tom@tromey.com>
15098
15099 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15100 ">=", in binary search.
15101 (dwarf2_find_containing_comp_unit): New overload.
15102 (run_test): New self-test.
15103 (_initialize_dwarf2_read): Register new test.
15104
bd0cf5a6
NC
151052020-02-20 Nelson Chu <nelson.chu@sifive.com>
15106
15107 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15108 * riscv-tdep.h: Likewise.
15109 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15110 rv32-only CSR.
15111 * features/riscv/64bit-csr.xml: Regenerated.
15112
3f702acd
SDJ
151132020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15114 Tom Tromey <tom@tromey.com>
15115
15116 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15117 of 'fputc_unfiltered'.
15118 (putchar_unfiltered): Call 'fputc_unfiltered'.
15119 (fputc_unfiltered): Call 'fputs_unfiltered'.
15120
d13c7322
AB
151212020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15122
15123 * config.in: Regenerate.
15124 * configure: Regenerate.
15125 * configure.ac: Add --with-python-libdir option.
15126 * main.c: Use WITH_PYTHON_LIBDIR.
15127
869d8950
TT
151282020-02-19 Tom Tromey <tom@tromey.com>
15129
15130 * symtab.c (general_symbol_info::compute_and_set_names): Use
15131 obstack_strndup. Simplify call to symbol_set_demangled_name.
15132
298e9637
SM
151332020-02-19 Simon Marchi <simon.marchi@efficios.com>
15134
15135 * dwarf2/read.c (allocate_signatured_type_table,
15136 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15137 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15138 Remove objfile parameter, update all callers.
15139
08410482
DE
151402020-02-19 Doug Evans <dje@google.com>
15141
15142 PR rust/25535
15143 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15144 rust_enum_variant calculation.
15145
dfdeeca1
TT
151462020-02-19 Tom Tromey <tromey@adacore.com>
15147
15148 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15149
2ef5453b
TT
151502020-02-19 Tom Tromey <tromey@adacore.com>
15151
15152 * ada-lang.c (cache_symbol): Use obstack_strdup.
15153
9f1528a1
AB
151542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15155
15156 * configure: Regenerate.
15157
d3c22fa8
TT
151582020-02-19 Tom Tromey <tromey@adacore.com>
15159
15160 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15161 NULL check.
15162
bf84f706
MR
151632020-02-19 Maciej W. Rozycki <macro@wdc.com>
15164
15165 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15166
d1c9b20f
AB
151672020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15168
15169 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15170 if GDBSERVER is not defined.
15171 (riscv_tdesc_cache): Likewise, also store const target_desc.
15172 (STATIC_IN_GDB): Define.
15173 (riscv_create_target_description): Update declaration with
15174 STATIC_IN_GDB.
15175 (riscv_lookup_target_description): New function, only define if
15176 GDBSERVER is not defined.
15177 * arch/riscv.h (riscv_create_target_description): Declare only
15178 when GDBSERVER is defined.
15179 (riscv_lookup_target_description): New declaration when GDBSERVER
15180 is not defined.
15181 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15182 (riscv_linux_read_features): ...this, and return
15183 riscv_gdbarch_features instead of target_desc.
15184 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15185 (riscv_linux_read_description): Rename to...
15186 (riscv_linux_read_features): ...this.
15187 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15188 Update to use riscv_gdbarch_features and
15189 riscv_lookup_target_description.
15190 * riscv-tdep.c (riscv_find_default_target_description): Use
15191 riscv_lookup_target_description instead of
15192 riscv_create_target_description.
15193
373d7ac0
SM
151942020-02-18 Simon Marchi <simon.marchi@efficios.com>
15195
15196 * valprint.c (generic_val_print_enum_1): When printing a flag
15197 enum with value 0 and there is no enumerator with value 0, print
15198 just "0" instead of "(unknown: 0x0)".
15199
b29a2df0
SM
152002020-02-18 Simon Marchi <simon.marchi@efficios.com>
15201
15202 * valprint.c (generic_val_print_enum_1): Print unknown part of
15203 flag enum in hex.
15204
6740f0cc
SM
152052020-02-18 Simon Marchi <simon.marchi@efficios.com>
15206
15207 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15208 flag enums to contain duplicate enumerators.
15209 * valprint.c (generic_val_print_enum_1): Update comment.
15210
edd45eb0
SM
152112020-02-18 Simon Marchi <simon.marchi@efficios.com>
15212
15213 * dwarf2/read.c: Include "count-one-bits.h".
15214 (update_enumeration_type_from_children): If an enumerator has
15215 multiple bits set, don't treat the enumeration as a "flag enum".
15216 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15217 of flag enums have 0 or 1 bit set.
15218
6d0cf446
BE
152192020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15220
15221 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15222 conversion.
15223 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15224 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15225 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15226 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15227 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15228
7001c1b7
SM
152292020-02-18 Simon Marchi <simon.marchi@efficios.com>
15230
15231 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15232
fdb61c6c
SM
152332020-02-14 Simon Marchi <simon.marchi@efficios.com>
15234
15235 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15236 displaced_step_closure_up.
15237 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15238 (struct displaced_step_closure_up):
15239 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15240 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15241 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15242 Likewise.
15243 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15244 * gdbarch.c, gdbarch.h: Re-generate.
15245 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15246 displaced_step_closure_up.
15247 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15248 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15249 * infrun.h (displaced_step_closure_up): New type alias.
15250 (struct displaced_step_inferior_state) <step_closure>: Change
15251 type to displaced_step_closure_up.
15252 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15253 displaced_step_closure_up.
15254 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15255
a4a38eb4
TT
152562020-02-14 Tom Tromey <tom@tromey.com>
15257
15258 * minidebug.c (gnu_debug_key): New global.
15259 (find_separate_debug_file_in_section): Use it.
15260
e8217e61
SM
152612020-02-14 Simon Marchi <simon.marchi@efficios.com>
15262
15263 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15264 std::unique_ptr.
15265 * gdbarch.c: Re-generate.
15266 * gdbarch.h: Re-generate.
15267 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15268 change.
15269 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15270 type to std::unique_ptr.
15271 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15272 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15273 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15274 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15275 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15276 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15277 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15278 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15279 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15280
d8d83535
SM
152812020-02-14 Simon Marchi <simon.marchi@efficios.com>
15282
15283 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15284 std::unique_ptr.
15285 (displaced_step_clear): Rename to...
15286 (displaced_step_reset): ... this. Just call displaced->reset ().
15287 (displaced_step_clear_cleanup): Rename to...
15288 (displaced_step_reset_cleanup): ... this.
15289 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15290 (displaced_step_fixup): Likewise.
15291 (resume_1): Likewise.
15292 (handle_inferior_event): Restore child's memory before calling
15293 displaced_step_fixup on the parent.
15294 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15295 to std::unique_ptr.
15296 <step_closure>: Change type to std::unique_ptr.
15297
5f661e03
SM
152982020-02-14 Simon Marchi <simon.marchi@efficios.com>
15299
15300 * arm-tdep.c: Include count-one-bits.h.
15301 (cleanup_block_store_pc): Use count_one_bits.
15302 (cleanup_block_load_pc): Use count_one_bits.
15303 (arm_copy_block_xfer): Use count_one_bits.
15304 (thumb2_copy_block_xfer): Use count_one_bits.
15305 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15306 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15307 (thumb_get_next_pcs_raw): Use count_one_bits.
15308 (arm_get_next_pcs_raw): Use count_one_bits_l.
15309 * arch/arm.c (bitcount): Remove.
15310 * arch/arm.h (bitcount): Remove.
15311
8084e579
TT
153122020-02-14 Tom Tromey <tromey@adacore.com>
15313
15314 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15315 Update.
15316 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15317 * dwarf2/loc.c (call_site_find_chain_1): Return
15318 unique_xmalloc_ptr.
15319 (call_site_find_chain): Likewise.
15320
258bf0ee
RB
153212020-02-14 Richard Biener <rguenther@suse.de>
15322
15323 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15324 on expression with division operators.
15325
f98a8458
AKS
153262020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15327
15328 * MAINTAINERS (Write After Approval): Adding myself.
15329
d1437c0e
TT
153302020-02-12 Tom Tromey <tom@tromey.com>
15331
15332 * event-loop.c (event_data, gdb_event, event_handler_func):
15333 Remove.
15334
3d4560f7
TT
153352020-02-12 Tom Tromey <tom@tromey.com>
15336
15337 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15338 (dwarf2_frame_objfile_data): Add comment.
15339 (find_comp_unit, set_comp_unit): New functions.
15340 (dwarf2_frame_find_fde): Use find_comp_unit.
15341 (dwarf2_build_frame_info): Use set_comp_unit.
15342
21982304
TT
153432020-02-12 Tom Tromey <tom@tromey.com>
15344
15345 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15346 (comp_unit): Don't initialize objfile.
15347 (execute_cfa_program): Add text_offset parameter.
15348 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15349 (dwarf2_frame_cache): Update.
15350 (dwarf2_build_frame_info): Don't set "objfile" member.
15351
4debb237
TT
153522020-02-12 Tom Tromey <tom@tromey.com>
15353
15354 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15355 (decode_frame_entry): Likewise.
15356 (dwarf2_build_frame_info): Update.
15357
0d404d44
TT
153582020-02-12 Tom Tromey <tom@tromey.com>
15359
15360 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15361 (decode_frame_entry_1): Use the comp_unit obstack.
15362
a7a3ae5c
TT
153632020-02-12 Tom Tromey <tom@tromey.com>
15364
15365 * dwarf2/frame.c (struct comp_unit): Add initializers and
15366 constructor.
15367 (dwarf2_frame_objfile_data): Store a comp_unit.
15368 (dwarf2_frame_find_fde): Update.
15369 (dwarf2_build_frame_info): Use "new".
15370
a9d65418
TT
153712020-02-12 Tom Tromey <tom@tromey.com>
15372
15373 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15374 (dwarf2_fde_table): Typedef for std::vector.
15375 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15376 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15377 (decode_frame_entry): Update.
15378 (dwarf2_build_frame_info): Use "new".
15379
7559c217
CB
153802020-02-12 Christian Biesinger <cbiesinger@google.com>
15381
15382 * arm-tdep.c (arm_gdbarch_init): Update.
15383 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15384 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15385 have_neon, is_m>: Change to bool.
15386
aeefc73c
CB
153872020-02-12 Christian Biesinger <cbiesinger@google.com>
15388
15389 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15390
d27b8e5f
TT
153912020-02-12 Tom Tromey <tom@tromey.com>
15392
15393 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15394
cd5900f3
HD
153952020-02-12 Hannes Domani <ssbssa@yahoo.de>
15396
15397 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15398 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15399
f056b22b
TT
154002020-02-11 Tom Tromey <tom@tromey.com>
15401
15402 * psymtab.h: Update comment.
15403
f92ff6b5
TT
154042020-02-11 Tom Tromey <tom@tromey.com>
15405
15406 * gdb_obstack.h (struct auto_obstack): Use
15407 DISABLE_COPY_AND_ASSIGN.
15408
3fd6912b
TT
154092020-02-11 Tom Tromey <tom@tromey.com>
15410
15411 * dwarf2/frame.h (struct objfile): Don't forward declare.
15412
69ed9b74
CB
154132020-02-11 Christian Biesinger <cbiesinger@google.com>
15414
15415 * cris-tdep.c (cris_supply_gregset): Change signature to match
15416 what struct regset expects.
15417 (cris_regset): New struct.
15418 (fetch_core_registers): Remove.
15419 (cris_iterate_over_regset_sections): New function.
15420 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15421 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15422
bda874f6
CB
154232020-02-11 Christian Biesinger <cbiesinger@google.com>
15424
15425 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15426 registers.
15427
754e1564
CB
154282020-02-11 Christian Biesinger <cbiesinger@google.com>
15429
15430 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15431
8ddd8e0e
SM
154322020-02-11 Simon Marchi <simon.marchi@efficios.com>
15433
15434 * configure: Re-generate.
15435
898e7f60
SM
154362020-02-11 Simon Marchi <simon.marchi@efficios.com>
15437
15438 * configure: Re-generate.
15439
58df732b
SM
154402020-02-11 Simon Marchi <simon.marchi@efficios.com>
15441
15442 * acinclude: Update warning.m4 path.
15443 * warning.m4: Move to gdbsupport.
15444
da5bd37e
TT
154452020-02-11 Tom Tromey <tromey@adacore.com>
15446
15447 * remote.c (remote_console_output): Update.
15448 * printcmd.c (printf_command): Update.
15449 * event-loop.c (gdb_wait_for_event): Update.
15450 * linux-nat.c (sigchld_handler): Update.
15451 * remote-sim.c (gdb_os_write_stdout): Update.
15452 (gdb_os_flush_stdout): Update.
15453 (gdb_os_flush_stderr): Update.
15454 (gdb_os_write_stderr): Update.
15455 * exceptions.c (print_exception): Update.
15456 * remote-fileio.c (remote_fileio_func_read): Update.
15457 (remote_fileio_func_write): Update.
15458 * tui/tui.c (tui_enable): Update.
15459 * tui/tui-interp.c (tui_interp::init): Update.
15460 * utils.c (init_page_info): Update.
15461 (putchar_unfiltered, fputc_unfiltered): Update.
15462 (gdb_flush): Update.
15463 (emit_style_escape): Update.
15464 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15465 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15466 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15467 (stderr_file::write): Update.
15468 (stderr_file::puts): Update.
15469 * ui-file.h (ui_file_isatty, ui_file_write)
15470 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15471 (ui_file_puts): Don't declare.
15472
85f0dd3c
TV
154732020-02-10 Tom de Vries <tdevries@suse.de>
15474
15475 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15476 sentinel to char *.
15477
2e927613
TV
154782020-02-09 Tom de Vries <tdevries@suse.de>
15479
15480 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15481 filename if it matches "<artificial>".
15482
6bafc845
HD
154832020-02-09 Hannes Domani <ssbssa@yahoo.de>
15484
15485 * windows-tdep.c (struct enum_value_name): New struct.
15486 (create_enum): New function.
15487 (windows_get_siginfo_type): Create and use enum types.
15488
7928d571
HD
154892020-02-09 Hannes Domani <ssbssa@yahoo.de>
15490
15491 * NEWS: Mention $_siginfo support for Windows.
15492 * windows-nat.c (handle_exception): Set siginfo_er.
15493 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15494 (windows_xfer_siginfo): New function.
15495 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15496 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15497 (init_windows_gdbarch_data): New function.
15498 (get_windows_gdbarch_data): New function.
15499 (windows_get_siginfo_type): New function.
15500 (windows_init_abi): Register windows_get_siginfo_type.
15501 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15502
6751ebae
TT
155032020-02-08 Tom Tromey <tom@tromey.com>
15504
15505 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15506 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15507 <keep>: Declare method.
15508 <m_keep>: Remove member.
15509 <~cutu_reader>: Remove.
15510 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15511 (cutu_reader::cutu_reader): Update.
15512 (cutu_reader::keep): Rename from ~cutu_reader.
15513 (process_psymtab_comp_unit, build_type_psymtabs_1)
15514 (process_skeletonless_type_unit, load_partial_comp_unit)
15515 (load_full_comp_unit, dwarf2_read_addr_index)
15516 (read_signatured_type): Update.
15517
135f5437
TT
155182020-02-08 Tom Tromey <tom@tromey.com>
15519
15520 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15521 "want_partial_unit" parameter.
15522 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15523 Inline check for DW_TAG_partial_unit.
15524 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15525
9f66ff1c
TT
155262020-02-08 Tom Tromey <tom@tromey.com>
15527
15528 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15529 read.c.
15530 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15531 read.c.
15532
c8a7a66f
TT
155332020-02-08 Tom Tromey <tom@tromey.com>
15534
15535 * dwarf2/read.c (read_address): Move to comp-unit.c.
15536 (dwarf2_rnglists_process, dwarf2_ranges_process)
15537 (read_attribute_value, dwarf_decode_lines_1)
15538 (var_decode_location, decode_locdesc): Update.
15539 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15540 read.c. Remove "cu" parameter.
15541 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15542 method.
15543
8266302d
TT
155442020-02-08 Tom Tromey <tom@tromey.com>
15545
15546 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15547 (read_indirect_line_string): Update.
15548 * dwarf2/comp-unit.c (read_offset): Remove.
15549 (read_comp_unit_head): Update.
15550 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15551 method.
15552 (read_offset): Don't declare.
15553
4057dfde
TT
155542020-02-08 Tom Tromey <tom@tromey.com>
15555
15556 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15557 * dwarf2/read.c (struct comp_unit_head): Move to
15558 dwarf2/comp-unit.h.
15559 (enum class rcuh_kind): Move to comp-unit.h.
15560 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15561 (read_comp_unit_head, error_check_comp_unit_head)
15562 (read_and_check_comp_unit_head): Move to comp-unit.c.
15563 (read_offset, dwarf_unit_type_name): Likewise.
15564 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15565 (cutu_reader::cutu_reader, read_call_site_scope)
15566 (find_partial_die, follow_die_offset): Update.
15567 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15568
24aa364d
TT
155692020-02-08 Tom Tromey <tom@tromey.com>
15570
15571 * dwarf2/read.c (read_offset_1): Move to leb.c.
15572 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15573 (dwarf_decode_macro_bytes): Update.
15574 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15575 * dwarf2/leb.h (read_offset): Declare.
15576
2c7d5afc
TT
155772020-02-08 Tom Tromey <tom@tromey.com>
15578
15579 * dwarf2/read.c (dwarf2_section_size): Remove.
15580 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15581 Update.
15582 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15583
4075cb26
TT
155842020-02-08 Tom Tromey <tom@tromey.com>
15585
15586 * dwarf2/read.c (read_initial_length): Move to leb.c.
15587 * dwarf2/leb.h (read_initial_length): Declare.
15588 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15589 handle_nonstd parameter.
15590 * dwarf2/frame.c (read_initial_length): Remove.
15591 (decode_frame_entry_1): Update.
15592
09ba997f
TT
155932020-02-08 Tom Tromey <tom@tromey.com>
15594
15595 * dwarf2/loc.c (dwarf2_find_location_expression)
15596 (dwarf_evaluate_loc_desc::get_tls_address)
15597 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15598 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15599 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15600 (dwarf2_compile_property_to_c)
15601 (dwarf2_loc_desc_get_symbol_read_needs)
15602 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15603 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15604 (loclist_describe_location, loclist_tracepoint_var_ref)
15605 (loclist_generate_c_location): Update.
15606 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15607 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15608 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15609 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15610 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15611 (dwarf2_per_cu_data::addr_size)
15612 (dwarf2_per_cu_data::ref_addr_size)
15613 (dwarf2_per_cu_data::text_offset)
15614 (dwarf2_per_cu_data::addr_type): Now methods.
15615 (per_cu_header_read_in): Make per_cu "const".
15616 (dwarf2_version): Remove.
15617 (dwarf2_per_cu_data::int_type): Now a method.
15618 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15619 (set_die_type, read_array_type, read_subrange_index_type)
15620 (read_tag_string_type, read_subrange_type): Update.
15621 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15622 offset_size, ref_addr_size, text_offset, addr_type, version,
15623 objfile, int_type, addr_sized_int_type>: Declare methods.
15624
96c738c0
TT
156252020-02-08 Tom Tromey <tom@tromey.com>
15626
15627 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15628 Move earlier.
15629
8fdd972c
TT
156302020-02-08 Tom Tromey <tom@tromey.com>
15631
15632 * dwarf2/read.h (dwarf_line_debug): Declare.
15633 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15634 * dwarf2/read.c: Move line_header code to new files.
15635 (dwarf_line_debug): No longer static.
15636 * dwarf2/line-header.c: New file.
15637 * dwarf2/line-header.h: New file.
15638
03075812
TT
156392020-02-08 Tom Tromey <tom@tromey.com>
15640
15641 * dwarf2/read.c (struct line_header) <file_full_name,
15642 file_file_name>: Return unique_xmalloc_ptr.
15643 (line_header::file_file_name): Update.
15644 (line_header::file_full_name): Update.
15645 (dw2_get_file_names_reader): Update.
15646 (macro_start_file): Update.
15647
bb822404
TT
156482020-02-08 Tom Tromey <tom@tromey.com>
15649
15650 * dwarf2/read.c (struct line_header) <file_full_name,
15651 file_file_name>: Declare methods.
15652 (dw2_get_file_names_reader): Update.
15653 (file_file_name): Now a method.
15654 (file_full_name): Likewise.
15655 (macro_start_file): Update.
15656
009b64fc
TT
156572020-02-08 Tom Tromey <tom@tromey.com>
15658
15659 * dwarf2/read.c (dwarf_always_disassemble)
15660 (show_dwarf_always_disassemble): Move to loc.c.
15661 (_initialize_dwarf2_read): Move "always-disassemble" registration
15662 to loc.c.
15663 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15664 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15665 static.
15666 (show_dwarf_always_disassemble): Move from read.c.
15667 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15668
5895093f
TT
156692020-02-08 Tom Tromey <tom@tromey.com>
15670
15671 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15672 (create_quick_file_names_table): Return htab_up.
15673 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15674 Update.
15675 * dwarf2/read.h (struct dwarf2_per_objfile)
15676 <quick_file_names_table>: Now htab_up.
15677
b3b32279
TT
156782020-02-08 Tom Tromey <tom@tromey.com>
15679
15680 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15681
1d33d811
TT
156822020-02-08 Tom Tromey <tom@tromey.com>
15683
15684 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15685 Rewrite.
15686 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15687 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15688 (abbrev_table::abbrev_table): No longer inline.
15689 (ABBREV_HASH_SIZE): Remove.
15690 (abbrev_table::m_abbrevs): Now an htab_up.
15691
86de1d91
TT
156922020-02-08 Tom Tromey <tom@tromey.com>
15693
15694 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15695 (cutu_reader): Update.
15696 (build_type_psymtabs_1): Update.
15697 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15698 (abbrev_table::alloc_abbrev): Update.
15699 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15700 (abbrev_table::read): New static method, renamed from
15701 abbrev_table_read_table.
15702 (abbrev_table::alloc_abbrev)
15703 (abbrev_table::add_abbrev): Now private.
15704 (abbrev_table::abbrev_table): Now private.
15705 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15706
0335378b
TT
157072020-02-08 Tom Tromey <tom@tromey.com>
15708
15709 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15710 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15711 htab_up.
15712
48b490f2
TT
157132020-02-08 Tom Tromey <tom@tromey.com>
15714
15715 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15716 htab_up.
15717 (lookup_dwo_unit_in_dwp): Update.
15718 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15719 on obstack.
15720
bc68fb19
TT
157212020-02-08 Tom Tromey <tom@tromey.com>
15722
15723 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15724 obstack.
15725
d15acc42
TT
157262020-02-08 Tom Tromey <tom@tromey.com>
15727
15728 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15729 line_header_hash.
15730 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15731 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15732 Change type to htab_up.
15733
eaa5fa8b
TT
157342020-02-08 Tom Tromey <tom@tromey.com>
15735
15736 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15737 htab_up. Don't allocate on obstack.
15738 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15739 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15740 Change type to htab_up.
15741
b0b6a987
TT
157422020-02-08 Tom Tromey <tom@tromey.com>
15743
15744 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15745 Change type to htab_up.
15746 * dwarf2/read.c (create_signatured_type_table_from_index)
15747 (create_signatured_type_table_from_debug_names)
15748 (create_all_type_units, add_type_unit)
15749 (lookup_dwo_signatured_type, lookup_signatured_type)
15750 (process_skeletonless_type_unit): Update.
15751 (create_debug_type_hash_table, create_debug_types_hash_table):
15752 Change type of types_htab.
15753 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15754 htab_up. Don't allocate on obstack.
15755 (create_cus_hash_table): Change type of cus_htab parameter.
15756 (struct dwo_file) <cus, tus>: Now htab_up.
15757 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15758 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15759 (queue_and_load_all_dwo_tus): Update.
15760 * dwarf2/index-write.c (write_gdbindex): Update.
15761 (write_debug_names): Update.
15762
39856def
TT
157632020-02-08 Tom Tromey <tom@tromey.com>
15764
15765 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15766 dwarf2/read.c. Remove "next" member. Add constructor ntad
15767 destructor.
15768 (struct dwarf2_per_objfile) <queue>: New member.
15769 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15770 dwarf2/read.h.
15771 (dwarf2_queue, dwarf2_queue_tail): Remove.
15772 (class dwarf2_queue_guard): Add parameter to constructor. Use
15773 DISABLE_COPY_AND_ASSIGN.
15774 <m_per_objfile>: New member.
15775 <~dwarf2_queue_guard>: Rewrite.
15776 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15777 Update.
15778 (~dwarf2_queue_item): New.
15779
3e225074
TT
157802020-02-08 Tom Tromey <tom@tromey.com>
15781
15782 * dwarf2/read.c (struct die_info) <has_children>: New member.
15783 (dw2_get_file_names_reader): Remove has_children.
15784 (dw2_get_file_names): Update.
15785 (read_cutu_die_from_dwo): Remove has_children.
15786 (cutu_reader::init_tu_and_read_dwo_dies)
15787 (cutu_reader::cutu_reader): Update.
15788 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15789 Remove has_children.
15790 (build_type_psymtabs_1, process_skeletonless_type_unit)
15791 (load_partial_comp_unit, load_full_comp_unit): Update.
15792 (create_dwo_cu_reader): Remove has_children.
15793 (create_cus_hash_table, read_die_and_children): Update.
15794 (read_full_die_1,read_full_die): Remove has_children.
15795 (read_signatured_type): Update.
15796 (class cutu_reader) <has_children>: Remove.
15797
82ca8957
TT
157982020-02-08 Tom Tromey <tom@tromey.com>
15799
15800 * dwarf2/expr.c: Rename from dwarf2expr.c.
15801 * dwarf2/expr.h: Rename from dwarf2expr.h.
15802 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15803 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15804 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15805 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15806 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15807 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15808 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15809 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15810 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15811 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15812 * dwarf2/loc.c: Rename from dwarf2loc.c.
15813 * dwarf2/loc.h: Rename from dwarf2loc.h.
15814 * dwarf2/read.c: Rename from dwarf2read.c.
15815 * dwarf2/read.h: Rename from dwarf2read.h.
15816 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15817 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15818 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15819 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15820 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15821 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15822 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15823 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15824 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15825 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15826 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15827 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15828 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15829 Update.
15830 * Makefile.in (COMMON_SFILES): Update.
15831 (HFILES_NO_SRCDIR): Update.
15832
9e35d499
TT
158332020-02-08 Tom Tromey <tom@tromey.com>
15834
15835 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15836 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15837
1eba2311
TT
158382020-02-08 Tom Tromey <tom@tromey.com>
15839
15840 * dwarf2read.h (struct die_info): Don't declare.
15841
e41c2da2
TT
158422020-02-08 Tom Tromey <tom@tromey.com>
15843
15844 * dwarf2read.h (die_info_ptr): Remove typedef.
15845
4fc6c0d5
TT
158462020-02-08 Tom Tromey <tom@tromey.com>
15847
15848 * dwarf2read.c (read_call_site_scope)
15849 (handle_data_member_location, dwarf2_add_member_fn)
15850 (mark_common_block_symbol_computed, read_common_block)
15851 (attr_to_dynamic_prop, partial_die_info::read)
15852 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15853 (dwarf2_symbol_mark_computed, set_die_type): Update.
15854 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15855 method.
15856 (attr_form_is_block): Don't declare.
15857 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15858
cd6c91b4
TT
158592020-02-08 Tom Tromey <tom@tromey.com>
15860
15861 * dwarf2read.c (dwarf2_find_base_address, )
15862 (read_call_site_scope, rust_containing_type)
15863 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15864 (handle_data_member_location, dwarf2_add_member_fn)
15865 (get_alignment, read_structure_type, process_structure_scope)
15866 (mark_common_block_symbol_computed, read_common_block)
15867 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15868 (partial_die_info::read, read_attribute_value, new_symbol)
15869 (lookup_die_type, dwarf2_get_ref_die_offset)
15870 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15871 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15872 (dwarf2_symbol_mark_computed): Update.
15873 * dwarf2/attribute.h (struct attribute) <value_as_address,
15874 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15875 methods.
15876 (value_as_address, attr_form_is_section_offset)
15877 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15878 * dwarf2/attribute.c (attribute::value_as_address)
15879 (attribute::form_is_section_offset, attribute::form_is_constant)
15880 (attribute::form_is_ref): Now methods.
15881
162dce55
TT
158822020-02-08 Tom Tromey <tom@tromey.com>
15883
15884 * dwarf2read.c (struct attribute, DW_STRING)
15885 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15886 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15887 (attr_form_is_block, attr_form_is_section_offset)
15888 (attr_form_is_constant, attr_form_is_ref): Move.
15889 * dwarf2/attribute.h: New file.
15890 * dwarf2/attribute.c: New file, from dwarf2read.c.
15891 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15892
3054dd54
TT
158932020-02-08 Tom Tromey <tom@tromey.com>
15894
15895 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15896 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15897 Move.
15898 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15899 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15900 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15901 abbrev.c.
15902 * dwarf2/abbrev.h: New file.
15903 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15904 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15905
96b79293
TT
159062020-02-08 Tom Tromey <tom@tromey.com>
15907
15908 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15909 (dwarf2_section_size, dwarf2_get_section_info)
15910 (create_signatured_type_table_from_debug_names)
15911 (create_addrmap_from_aranges, read_debug_names_from_section)
15912 (get_gdb_index_contents_from_section, read_comp_unit_head)
15913 (error_check_comp_unit_head, read_abbrev_offset)
15914 (create_debug_type_hash_table, init_cu_die_reader)
15915 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15916 (read_comp_units_from_section, create_cus_hash_table)
15917 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15918 (create_dwp_v2_section, dwarf2_rnglists_process)
15919 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15920 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15921 (read_indirect_string_from_dwz, read_addr_index_1)
15922 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15923 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15924 (fill_in_loclist_baton): Update.
15925 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15926 get_containing_section, get_bfd_owner, get_bfd_section,
15927 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15928 (dwarf2_read_section, get_section_name, get_section_file_name)
15929 (get_containing_section, get_section_bfd_owner)
15930 (get_section_bfd_section, get_section_name, get_section_file_name)
15931 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15932 declare.
15933 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15934 (dwarf2_section_info::get_bfd_owner)
15935 (dwarf2_section_info::get_bfd_section)
15936 (dwarf2_section_info::get_name)
15937 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15938 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15939 (dwarf2_section_info::read): Now methods.
15940 * dwarf-index-write.c (class debug_names): Update.
15941
2c86cff9
TT
159422020-02-08 Tom Tromey <tom@tromey.com>
15943
15944 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15945 Move to dwarf2/section.h.
15946 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15947 (get_section_bfd_section, get_section_name)
15948 (get_section_file_name, get_section_id, get_section_flags)
15949 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15950 dwarf2/section.c.
15951 * dwarf2/section.h: New file.
15952 * dwarf2/section.c: New file, from dwarf2read.c.
15953 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15954
f4382c45
TT
159552020-02-08 Tom Tromey <tom@tromey.com>
15956
15957 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15958 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15959 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15960 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15961 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15962 * dwarf2/leb.h: New file, from dwarf2read.c.
15963 * dwarf2/leb.c: New file, from dwarf2read.c.
15964 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15965 Remove.
15966 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15967 (COMMON_SFILES): Add dwarf2/leb.c.
15968
01840b7a
JB
159692020-02-08 Joel Brobecker <brobecker@adacore.com>
15970
15971 GDB 9.1 released.
15972
dfcb27e4
IB
159732020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15974
15975 PR gdb/25190:
aac66a4c
SM
15976 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15977 * gdb/remote.c (remote_console_output): Update.
15978 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15979 (ui_file_puts): ...this.
15980 * gdb/ui-file.h (ui_file_puts): Add declaration.
15981 * gdb/utils.c (emit_style_escape): Update.
15982 (flush_wrap_buffer): Update.
15983 (fputs_maybe_filtered): Update.
15984 (fputs_unfiltered): Add function.
dfcb27e4 15985
faa17681
IB
159862020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15987
aac66a4c
SM
15988 * gdb/event-loop.c (gdb_wait_for_event): Update.
15989 * gdb/printcmd.c (printf_command): Update.
15990 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15991 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15992 (gdb_os_flush_stderr): Update.
15993 * gdb/remote.c (remote_console_output): Update.
15994 * gdb/ui-file.c (gdb_flush): Rename to...
15995 (ui_file_flush): ...this.
15996 (stderr_file::write): Update.
15997 (stderr_file::puts): Update.
15998 * gdb/ui-file.h (gdb_flush): Rename to...
15999 (ui_file_flush): ...this.
16000 * gdb/utils.c (gdb_flush): Add function.
16001 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 16002
5abbbe1d
TT
160032020-02-07 Tom Tromey <tromey@adacore.com>
16004
16005 PR breakpoints/24915:
16006 * source.c (find_and_open_source): Do not check basenames_may_differ.
16007
919adfe8
TT
160082020-02-07 Tom Tromey <tom@tromey.com>
16009
16010 * README: Update gdbserver documentation.
16011 * gdbserver: Move to top level.
16012 * configure.tgt (build_gdbserver): Remove.
16013 * configure.ac: Remove --enable-gdbserver.
16014 * configure: Rebuild.
16015 * Makefile.in (distclean): Don't mention gdbserver.
16016
1d5d29e7
SV
160172020-02-06 Shahab Vahedi <shahab@synopsys.com>
16018
16019 * source-cache.c (source_cache::ensure): Surround
16020 get_plain_source_lines with a try/catch.
16021 (source_cache::get_line_charpos): Get rid of try/catch
16022 and only check for the return value of "ensure".
16023 * tui/tui-source.c (tui_source_window::set_contents):
16024 Simplify "nlines" calculation.
16025
6eb1129c
SV
160262020-02-06 Shahab Vahedi <shahab@synopsys.com>
16027
16028 * MAINTAINERS (Write After Approval): Add myself.
16029
c6a42d11
CB
160302020-02-05 Christian Biesinger <cbiesinger@google.com>
16031
16032 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16033 function call.
16034
c8ecdda6
CB
160352020-02-05 Christian Biesinger <cbiesinger@google.com>
16036
16037 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16038
f6480e70
MR
160392020-02-05 Maciej W. Rozycki <macro@wdc.com>
16040
16041 * nat/riscv-linux-tdesc.h: New file.
16042 * nat/riscv-linux-tdesc.c: New file, taking code from...
16043 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16044 ... here.
16045 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16046 NATDEPFILES.
16047
dcc9fbc6
AB
160482020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16049
16050 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16051 we don't set the fake simulator ptid to the null_ptid.
16052
719546c4
SM
160532020-02-03 Simon Marchi <simon.marchi@efficios.com>
16054
16055 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16056 * gdbthread.h (class thread_info) <resumed>: Likewise.
16057 * infrun.c (resume_1): Likewise.
16058 (proceed): Likewise.
16059 (infrun_thread_stop_requested): Likewise.
16060 (stop_all_threads): Likewise.
16061 (handle_inferior_event): Likewise.
16062 (restart_threads): Likewise.
16063 (finish_step_over): Likewise.
16064 (keep_going_stepped_thread): Likewise.
16065 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16066 (linux_handle_extended_wait): Likewise.
16067 * record-btrace.c (get_thread_current_frame_id): Likewise.
16068 * record-full.c (record_full_wait_1): Likewise.
16069 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16070 * target.c (target_resume): Likewise.
16071 * thread.c (set_running_thread): Likewise.
16072
e409c542
AKS
160732020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16074
16075 * f-valprint.c (f77_print_array_1): Changed datatype of index
16076 variable to LONGEST from int to enable it to contain bound
16077 values correctly.
16078
ee98c0da
MR
160792020-02-03 Maciej W. Rozycki <macro@wdc.com>
16080
16081 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16082 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16083 offsets according to FLEN determined.
16084 (riscv_linux_nat_target::read_description): Determine FLEN
16085 dynamically.
16086 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16087 according to FLEN determined.
16088 (riscv_linux_nat_target::store_registers): Likewise.
16089
aa66aac4
SV
160902020-02-01 Shahab Vahedi <shahab@synopsys.com>
16091
16092 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16093 when reg->group is empty and reggroup is not.
16094
fd9faca8
TT
160952020-01-31 Tom Tromey <tromey@adacore.com>
16096
16097 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16098 Call beneath target's mourn_inferior after unpushing.
16099
42330a68
AB
161002020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16101
16102 PR tui/9765
16103 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16104 have enough lines to fill the screen, still return the lowest
16105 address we found.
16106
7a27a45b
AB
161072020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16108
16109 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16110 '-', '<', and '>' commands.
16111
c47f70e2
PA
161122020-01-29 Pedro Alves <palves@redhat.com>
16113 Sergio Durigan Junior <sergiodj@redhat.com>
16114
16115 * infcmd.c (construct_inferior_arguments): Assert that
16116 'argc' is greater than 0.
16117
5133a315
LM
161182020-01-29 Luis Machado <luis.machado@linaro.org>
16119
16120 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16121 (BRK_INSN_MASK): Define to 0xd4200000.
16122 (aarch64_program_breakpoint_here_p): New function.
16123 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16124 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16125 breakpoint.c.
16126 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16127 breakpoint.h
16128 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16129 call gdbarch_program_breakpoint_here_p.
16130 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16131 default_program_breakpoint_here_p, changed return type to bool and
16132 simplified.
16133 * breakpoint.h (program_breakpoint_here): Moved prototype to
16134 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16135 return type to bool.
16136 * gdbarch.c: Regenerate.
16137 * gdbarch.h: Regenerate.
16138 * gdbarch.sh (program_breakpoint_here_p): New method.
16139 * infrun.c (handle_signal_stop): Call
16140 gdbarch_program_breakpoint_here_p.
16141
168f8c6b
TT
161422020-01-26 Tom Tromey <tom@tromey.com>
16143
16144 * ctfread.c (struct ctf_fp_info): Reindent.
16145 (_initialize_ctfread): Remove.
16146
128a391f
TT
161472020-01-26 Tom Tromey <tom@tromey.com>
16148
16149 * psymtab.c (partial_map_expand_apply)
16150 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16151 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16152 (psym_print_stats, psym_expand_symtabs_for_function)
16153 (psym_map_symbol_filenames, psym_map_matching_symbols)
16154 (psym_expand_symtabs_matching)
16155 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16156 (maintenance_check_psymtabs): Use new methods.
16157 * psympriv.h (struct partial_symtab) <readin_p,
16158 get_compunit_symtab>: New methods.
16159 <readin, compunit_symtab>: Remove members.
16160 (struct standard_psymtab): New.
16161 (struct legacy_psymtab): Derive from standard_psymtab.
16162 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16163 standard_psymtab.
16164 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16165
0494dbec
TT
161662020-01-26 Tom Tromey <tom@tromey.com>
16167
16168 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16169 read_dependencies. Add assert.
16170 * psymtab.c (partial_symtab::read_dependencies): New method.
16171 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16172 method.
16173 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16174 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16175 read_dependencies.
16176 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16177 Add assert.
16178
8566b89b
TT
161792020-01-26 Tom Tromey <tom@tromey.com>
16180
16181 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16182 Call expand_psymtab.
16183 (xcoff_read_symtab): Call expand_psymtab.
16184 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16185 legacy_expand_psymtab.
16186 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16187 method.
16188 (struct legacy_psymtab) <expand_psymtab>: Implement.
16189 <legacy_expand_psymtab>: New member.
16190 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16191 (parse_partial_symbols): Set legacy_expand_psymtab.
16192 (psymtab_to_symtab_1): Change argument order. Call
16193 expand_psymtab.
16194 (new_psymtab): Set legacy_expand_psymtab.
16195 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16196 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16197 expand_psymtab.
16198 (dwarf2_psymtab::expand_psymtab): Rename from
16199 psymtab_to_symtab_1. Call expand_psymtab.
16200 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16201 (dbx_end_psymtab): Likewise.
16202 (dbx_psymtab_to_symtab_1): Change argument order. Call
16203 expand_psymtab.
16204 (dbx_read_symtab): Call expand_psymtab.
16205 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16206 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16207 (ctf_psymtab::read_symtab): Call expand_psymtab.
16208
077cbab2
TT
162092020-01-26 Tom Tromey <tom@tromey.com>
16210
16211 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16212 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16213 messages.
16214 * mdebugread.c (mdebug_read_symtab): Remove prints.
16215 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16216 assert.
16217 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16218
891813be
TT
162192020-01-26 Tom Tromey <tom@tromey.com>
16220
16221 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16222 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16223 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16224 legacy_symtab.
16225 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16226 * psymtab.c (psymtab_to_symtab): Call method.
16227 (dump_psymtab): Update.
16228 * psympriv.h (struct partial_symtab): Add virtual destructor.
16229 <read_symtab>: New method.
16230 (struct legacy_symtab): New.
16231 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16232 (struct pst_map) <pst>: Now a legacy_psymtab.
16233 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16234 (new_psymtab): Use legacy_psymtab.
16235 * dwarf2read.h (struct dwarf2_psymtab): New.
16236 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16237 * dwarf2read.c (dwarf2_create_include_psymtab)
16238 (dwarf2_build_include_psymtabs, create_type_unit_group)
16239 (create_partial_symtab, process_psymtab_comp_unit_reader)
16240 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16241 (set_partial_user): Use dwarf2_psymtab.
16242 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16243 (psymtab_to_symtab_1, process_full_comp_unit)
16244 (process_full_type_unit, dwarf2_ranges_read)
16245 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16246 (dwarf_decode_lines): Use dwarf2_psymtab.
16247 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16248 (add_address_entry_worker, write_one_signatured_type)
16249 (recursively_count_psymbols, recursively_write_psymbols)
16250 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16251 (write_debug_names): Likewise.
16252 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16253 <pst>: Now a legacy_psymtab.
16254 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16255 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16256 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16257 * ctfread.c (struct ctf_psymtab): New.
16258 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16259 ctf_psymtab.
16260 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16261 (create_partial_symtab): Return a ctf_psymtab.
16262 (scan_partial_symbols): Update.
16263
c3693a1d
TT
162642020-01-26 Tom Tromey <tom@tromey.com>
16265
16266 * xcoffread.c (xcoff_start_psymtab): Use new.
16267 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16268 renamed from start_psymtab_common.
16269 * psympriv.h (struct partial_symtab): Add new constructor.
16270 (start_psymtab_common): Don't declare.
16271 * mdebugread.c (parse_partial_symbols): Use new.
16272 * dwarf2read.c (create_partial_symtab): Use new.
16273 * dbxread.c (start_psymtab): Use new.
16274 * ctfread.c (create_partial_symtab): Use new.
16275
32caafd0
TT
162762020-01-26 Tom Tromey <tom@tromey.com>
16277
16278 * xcoffread.c (xcoff_end_psymtab): Use new.
16279 * psymtab.c (start_psymtab_common): Use new.
16280 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16281 Update.
16282 * psympriv.h (struct partial_symtab): Add parameters to
16283 constructor. Don't inline.
16284 (allocate_psymtab): Don't declare.
16285 * mdebugread.c (new_psymtab): Use new.
16286 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16287 * dbxread.c (dbx_end_psymtab): Use new.
16288
abaa2f23
TT
162892020-01-26 Tom Tromey <tom@tromey.com>
16290
16291 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16292 allocate_psymtab. Update documentation.
16293 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16294 allocate_psymtab. Do not use new.
16295 (allocate_psymtab): Use new. Update.
16296
6d94535f
TT
162972020-01-26 Tom Tromey <tom@tromey.com>
16298
16299 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16300 * psymtab.c (psym_print_stats): Update.
16301 * psympriv.h (struct partial_symtab) <readin,
16302 psymtabs_addrmap_supported, anonymous>: Now bool.
16303 * mdebugread.c (psymtab_to_symtab_1): Update.
16304 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16305 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16306 (process_full_comp_unit, process_full_type_unit): Update.
16307 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16308 * ctfread.c (psymtab_to_symtab): Update.
16309
6f17252b
TT
163102020-01-26 Tom Tromey <tom@tromey.com>
16311
16312 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16313 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16314 * psymtab.c (psymtab_storage): Delete psymtabs.
16315 (psymtab_storage::allocate_psymtab): Use new.
16316 (psymtab_storage::discard_psymtab): Use delete.
16317 * psympriv.h (struct partial_symtab): Add constructor and
16318 initializers.
16319
f6f1cebc
TT
163202020-01-26 Tom Tromey <tom@tromey.com>
16321
16322 * machoread.c: Do not include psympriv.h.
16323
e47e48f6
PW
163242020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16325
16326 * NEWS: Mention the new option and the set/show commands.
16327
a2fedca9
PW
163282020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16329
16330 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16331 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16332 (validate_exec_file): New variables, enums, functions.
16333 (exec_file_locate_attach, print_section_info): Style the filenames.
16334 (_initialize_exec): Install show_exec_file_mismatch_command and
16335 set_exec_file_mismatch_command.
16336 * gdbcore.h (validate_exec_file): Declare.
16337 * infcmd.c (attach_command): Call validate_exec_file.
16338 * remote.c ( remote_target::remote_add_inferior): Likewise.
16339
7ffa82e1
AB
163402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16341
16342 * frame.c (find_frame_sal): Move call to get_next_frame into more
16343 inner scope.
16344 * inline-frame.c (inilne_state) <inline_state>: Update argument
16345 types.
16346 (inilne_state) <skipped_symbol>: Rename to...
16347 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16348 (skip_inline_frames): Build vector of skipped symbols and use this
16349 to reate the inline_state.
16350 (inline_skipped_symbol): Add a comment and some assertions, fetch
16351 skipped symbol from the list.
16352
3d92a3e3
AB
163532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16354
16355 * buildsym.c (lte_is_less_than): Delete.
16356 (buildsym_compunit::end_symtab_with_blockvector): Create local
16357 lambda function to sort line table entries, and use
16358 std::stable_sort instead of std::sort.
16359 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16360 markers when looking for a previous line.
16361
94a72be7
AB
163622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16363
16364 * dwarf2read.c (lnp_state_machine::record_line): Include
16365 end_sequence parameter in debug print out. Record the line if we
16366 are at an end_sequence marker even if it's not the start of a
16367 statement.
16368 * symmisc.c (maintenance_print_one_line_table): Print end of
16369 sequence markers with 'END' not '0'.
16370
53af73bf
PA
163712020-01-24 Pedro Alves <palves@redhat.com>
16372
16373 PR gdb/25410
16374 * thread.c (scoped_restore_current_thread::restore): Use
16375 switch_to_inferior_no_thread.
16376 * exec.c: Include "progspace-and-thread.h".
16377 (add_target_sections, remove_target_sections):
16378 scoped_restore_current_pspace_and_thread instead of
16379 scoped_restore_current_thread.
16380 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16381 and aspace to the inferior before calling clone_program_space.
16382 Remove stale comment.
16383
3050c6f4
CB
163842020-01-24 Christian Biesinger <cbiesinger@google.com>
16385
16386 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16387 (arm_netbsd_nat_target::fetch_registers): ...this.
16388 (arm_nbsd_nat_target::store_registers): Rename to...
16389 (arm_netbsd_nat_target::store_registers): ...this.
16390
73685c7e
CB
163912020-01-24 Christian Biesinger <cbiesinger@google.com>
16392
16393 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16394 register_t.
16395
89203d40
CB
163962020-01-24 Christian Biesinger <cbiesinger@google.com>
16397
16398 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16399 Update comment.
16400 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16401 Likewise.
16402 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16403 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16404 the correct replacement (iterate_over_regset_sections).
16405 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16406 Update comment.
16407
1ba1ac88
AB
164082020-01-24 Graham Markall <graham.markall@embecosm.com>
16409
16410 PR gdb/23718
16411 * gdb/python/python.c (execute_gdb_command): Call
16412 async_enable_stdin in catch block.
16413
f3364a6d
AB
164142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16415
16416 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16417 SWITCH_THRU_ALL_UIS.
16418
733d0a67
AB
164192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16420
16421 PR tui/9765
16422 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16423 comment, add extra parameter, and update to store previous symbol
16424 when appropriate.
16425 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16426 add extra parameter.
16427 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16428 remove unneeded parameter, add try/catch around gdb_print_insn,
16429 rewrite to add items to asm_lines vector.
16430 (tui_find_backward_disassembly_start_address): New function.
16431 (tui_find_disassembly_address): Updated throughout.
16432 (tui_disasm_window::set_contents): Update for changes to
16433 tui_disassemble.
16434 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16435 number of lines to scroll.
16436
b3b3bada
SM
164372020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16438
16439 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16440 (SECT_OFF_DATA): Likewise.
16441 (SECT_OFF_RODATA): Likewise.
16442 (SECT_OFF_TEXT): Likewise.
16443 (SECT_OFF_BSS): Likewise.
16444 (struct objfile) <text_section_offset, data_section_offset>: New
16445 methods.
16446 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16447 objfile::text_section_offset.
16448 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16449 * coffread.c (coff_symtab_read): Likewise.
16450 (enter_linenos): Likewise.
16451 (process_coff_symbol): Likewise.
16452 * ctfread.c (get_objfile_text_range): Likewise.
16453 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16454 Use objfile::data_section_offset.
16455 * dwarf2-frame.c (execute_cfa_program): Use
16456 objfile::text_section_offset.
16457 (dwarf2_frame_find_fde): Likewise.
16458 * dwarf2read.c (create_addrmap_from_index): Likewise.
16459 (create_addrmap_from_aranges): Likewise.
16460 (dw2_find_pc_sect_compunit_symtab): Likewise.
16461 (process_psymtab_comp_unit_reader): Likewise.
16462 (add_partial_symbol): Likewise.
16463 (add_partial_subprogram): Likewise.
16464 (process_full_comp_unit): Likewise.
16465 (read_file_scope): Likewise.
16466 (read_func_scope): Likewise.
16467 (read_lexical_block_scope): Likewise.
16468 (read_call_site_scope): Likewise.
16469 (dwarf2_rnglists_process): Likewise.
16470 (dwarf2_ranges_process): Likewise.
16471 (dwarf2_ranges_read): Likewise.
16472 (dwarf_decode_lines_1): Likewise.
16473 (new_symbol): Likewise.
16474 (dwarf2_fetch_die_loc_sect_off): Likewise.
16475 (dwarf2_per_cu_text_offset): Likewise.
16476 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16477 * hppa-tdep.c (read_unwind_info): Likewise.
16478 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16479 * psympriv.h (struct partial_symtab): Likewise.
16480 * psymtab.c (find_pc_sect_psymtab): Likewise.
16481 * solib-svr4.c (enable_break): Likewise.
16482 * stap-probe.c (relocate_address): Use
16483 objfile::data_section_offset.
16484 * xcoffread.c (enter_line_range): Use
16485 objfile::text_section_offset.
16486 (read_xcoff_symtab): Likewise.
16487
ab53f382
SM
164882020-01-23 Simon Marchi <simon.marchi@efficios.com>
16489
16490 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16491 declaration to narrower scopes.
16492
e7eee665
SM
164932020-01-23 Simon Marchi <simon.marchi@efficios.com>
16494
16495 * darwin-nat.h (struct darwin_exception_msg, enum
16496 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16497 Move up.
16498 (class darwin_nat_target) <wait_1, check_new_threads,
16499 decode_exception_message, decode_message, stop_inferior,
16500 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16501 * darwin-nat.c (darwin_check_new_threads): Rename to...
16502 (darwin_nat_target::check_new_threads): ... this.
16503 (darwin_suspend_inferior_it): Remove.
16504 (darwin_decode_exception_message): Rename to...
16505 (darwin_nat_target::decode_exception_message): ... this.
16506 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16507 (darwin_decode_message): Rename to...
16508 (darwin_nat_target::decode_message): ... this.
16509 (cancel_breakpoint): Rename to...
16510 (darwin_nat_target::cancel_breakpoint): ... this.
16511 (darwin_wait): Rename to...
16512 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16513 instead of iterate_over_inferiors.
16514 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16515 (darwin_stop_inferior): Rename to...
16516 (darwin_nat_target::stop_inferior): ... this.
16517 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16518 (darwin_init_thread_list): Rename to...
16519 (darwin_nat_target::init_thread_list): ... this.
16520 (darwin_ptrace_him): Rename to...
16521 (darwin_nat_target::ptrace_him): ... this.
16522 (darwin_nat_target::create_inferior): Pass lambda function to
16523 fork_inferior.
16524 (darwin_nat_target::detach): Call stop_inferior instead of
16525 darwin_stop_inferior.
16526 * fork-inferior.h (fork_inferior): Change init_trace_fun
16527 parameter to gdb::function_view.
16528 * fork-inferior.c (fork_inferior): Likewise.
16529
c162ed3e
HD
165302020-01-23 Hannes Domani <ssbssa@yahoo.de>
16531
16532 * i386-cygwin-tdep.c (core_process_module_section): Update.
16533 * windows-nat.c (struct lm_info_windows): Add text_offset.
16534 (windows_xfer_shared_libraries): Update.
16535 * windows-tdep.c (windows_xfer_shared_library):
16536 Add text_offset_cached argument.
16537 * windows-tdep.h (windows_xfer_shared_library): Update.
16538
a1237872
SM
165392020-01-21 Simon Marchi <simon.marchi@efficios.com>
16540
16541 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16542
b3ee6dd9
SM
165432020-01-21 Simon Marchi <simon.marchi@efficios.com>
16544
16545 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16546 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16547 replace with range-based for.
16548 (gdbsim_interrupt_inferior): Remove.
16549 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16550 with a range-based for. Inline code from
16551 gdbsim_interrupt_inferior.
16552
f9fac3c8
SM
165532020-01-21 Simon Marchi <simon.marchi@efficios.com>
16554
16555 * infrun.c (proceed): Fix indentation.
16556
f6474de9
TT
165572020-01-21 Tom Tromey <tromey@adacore.com>
16558
16559 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16560 * python/python.c (python_extension_ops): Update.
16561 (gdbpy_colorize): New function.
16562 * python/lib/gdb/__init__.py (colorize): New function.
16563 * extension.h (ext_lang_colorize): Declare.
16564 * extension.c (ext_lang_colorize): New function.
16565 * extension-priv.h (struct extension_language_ops) <colorize>: New
16566 member.
16567 * cli/cli-style.c (_initialize_cli_style): Update help text.
16568
f0c702d4
LM
165692020-01-21 Luis Machado <luis.machado@linaro.org>
16570
16571 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16572 <cond>: Change type to bool.
16573 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16574 (aarch64_displaced_step_cb): Likewise.
16575 (aarch64_displaced_step_tb): Likewise.
16576
1ab139e5
LM
165772020-01-21 Luis Machado <luis.machado@linaro.org>
16578
16579 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16580 output.
16581
0c271889
LM
165822020-01-21 Luis Machado <luis.machado@linaro.org>
16583
16584 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16585 <pc_adjust>: Adjust the documentation.
16586 (aarch64_displaced_step_fixup): Check if PC really moved before
16587 adjusting it.
16588
4d89c1c7
TT
165892020-01-19 Tom Tromey <tom@tromey.com>
16590
16591 * disasm.c (~gdb_disassembler): New destructor.
16592 (gdb_buffered_insn_length): Call disassemble_free_target.
16593 * disasm.h (class gdb_disassembler): Declare destructor. Use
16594 DISABLE_COPY_AND_ASSIGN.
16595
c0ab21c2
TT
165962020-01-19 Tom Tromey <tom@tromey.com>
16597
16598 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16599 (die_reader_func_ftype): Remove.
16600 (cutu_reader): New class.
16601 (dw2_get_file_names_reader): Remove "data" parameter.
16602 (dw2_get_file_names): Use cutu_reader.
16603 (create_debug_type_hash_table): Update.
16604 (read_cutu_die_from_dwo): Update comment.
16605 (lookup_dwo_unit): Add dwo_name parameter.
16606 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16607 die_reader_func_ftype and data parameters.
16608 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16609 Remove die_reader_func_ftype and data parameters.
16610 (~cutu_reader): New; from init_cutu_and_read_dies.
16611 (cutu_reader::cutu_reader): Rename from
16612 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16613 and data parameters.
16614 (init_cutu_and_read_dies_simple): Remove.
16615 (struct process_psymtab_comp_unit_data): Remove.
16616 (process_psymtab_comp_unit_reader): Remove data parameter; add
16617 want_partial_unit and pretend_language parameters.
16618 (process_psymtab_comp_unit): Use cutu_reader.
16619 (build_type_psymtabs_reader): Remove data parameter.
16620 (build_type_psymtabs_1): Use cutu_reader.
16621 (process_skeletonless_type_unit): Likewise.
16622 (load_partial_comp_unit_reader): Remove.
16623 (load_partial_comp_unit): Use cutu_reader.
16624 (load_full_comp_unit_reader): Remove.
16625 (load_full_comp_unit): Use cutu_reader.
16626 (struct create_dwo_cu_data): Remove.
16627 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16628 dwo_unit parameters.
16629 (create_cus_hash_table): Use cutu_reader.
16630 (struct dwarf2_read_addr_index_data): Remove.
16631 (dwarf2_read_addr_index_reader): Remove.
16632 (dwarf2_read_addr_index): Use cutu_reader.
16633 (read_signatured_type_reader): Remove.
16634 (read_signatured_type): Use cutu_reader.
16635
45bbae5c
TT
166362020-01-19 Tom Tromey <tom@tromey.com>
16637
16638 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16639 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16640 (tui_wrefresh): Declare.
16641 * tui/tui-wingeneral.c (suppress_output): New global.
16642 (tui_suppress_output, ~tui_suppress_output): New constructor and
16643 destructor.
16644 (tui_wrefresh): New function.
16645 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16646 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16647 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16648 method.
16649 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16650 tui_wrefresh.
16651 (tui_data_window::no_refresh): New method.
16652 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16653 (tui_reg_command): Use tui_suppress_output
16654 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16655 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16656 method.
16657 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16658
4f13c1c0
TT
166592020-01-19 Tom Tromey <tom@tromey.com>
16660
16661 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16662 Handle case where symtab is null.
16663
fa47e446
SM
166642020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16665
16666 * linux-fork.c (one_fork_p): Simplify.
16667
26f42329
SM
166682020-01-17 Simon Marchi <simon.marchi@efficios.com>
16669
16670 * top.c (struct qt_args): Remove.
16671 (kill_or_detach): Change return type to void, replace `void *`
16672 parameter with a proper one.
16673 (print_inferior_quit_action): Likewise.
16674 (quit_confirm): Use range-based for loop to iterate over inferiors.
16675 (quit_force): Likewise.
16676
a9ac81b1
SM
166772020-01-17 Simon Marchi <simon.marchi@efficios.com>
16678
16679 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16680 `void *` parameter with proper parameters.
16681 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16682 (print_one_inferior): Change return type to void, replace `void *`
16683 parameter with proper parameters.
16684 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16685 inferiors.
16686 (get_other_inferior): Remove.
16687 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16688 inferiors.
16689
788eca49
SM
166902020-01-17 Simon Marchi <simon.marchi@efficios.com>
16691
16692 * mi/mi-interp.c (report_initial_inferior): Remove.
16693 (mi_interp::init): Use range-based for to iterate over inferiors.
16694
d9bc85b6
SM
166952020-01-17 Simon Marchi <simon.marchi@efficios.com>
16696
16697 * python/py-inferior.c (build_inferior_list): Remove.
16698 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16699
40c94099
CB
167002020-01-16 Christian Biesinger <cbiesinger@google.com>
16701
16702 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16703 (btrace_stitch_trace): Likewise.
16704 * charset.c (intermediate_encoding): Likewise (vaild).
16705 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16706 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16707 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16708
e0cdfe3c
HD
167092020-01-16 Hannes Domani <ssbssa@yahoo.de>
16710
16711 * windows-tdep.c (windows_get_tlb_type):
16712 Add rtl_user_process_parameters type.
16713
790f1718 167142020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16715 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16716
16717 PR build/24805
16718 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16719 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16720 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16721 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16722 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16723 (ps_plog): Redeclare exported functions with default visibility.
16724
3112ed97
NA
167252020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16726
16727 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16728 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16729
8dc3273e
SM
167302020-01-15 Simon Marchi <simon.marchi@efficios.com>
16731
16732 * infcmd.c (post_create_inferior): Use get_thread_regcache
16733 instead of get_current_regcache.
16734
ff47f4f0
TT
167352020-01-14 Tom Tromey <tom@tromey.com>
16736
16737 PR symtab/12535:
16738 * python/python.c (gdbpy_decode_line): Treat empty string the same
16739 as no argument.
16740
975f45b7
TT
167412020-01-14 Tom Tromey <tom@tromey.com>
16742
16743 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16744
25e57356
TT
167452020-01-14 Tom Tromey <tom@tromey.com>
16746
16747 * nat/linux-btrace.c: Don't include <config.h>.
16748 * nat/linux-ptrace.c: Don't include <config.h>.
16749 * nat/x86-linux-dregs.c: Don't include <config.h>.
16750
05ea2a05
TT
167512020-01-14 Tom Tromey <tom@tromey.com>
16752
16753 * configure: Rebuild.
16754 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16755
01027315
TT
167562020-01-14 Tom Tromey <tom@tromey.com>
16757
16758 * nat/x86-linux-dregs.c: Include configh.h.
16759 * nat/linux-ptrace.c: Include configh.h.
16760 * nat/linux-btrace.c: Include configh.h.
16761 * defs.h: Include config.h, bfd.h.
16762 * configure.ac: Don't source common.host.
16763 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16764 * configure: Rebuild.
16765 * acinclude.m4: Update path.
16766 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16767 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16768 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16769 (CLIBS): Add LIBSUPPORT.
16770 (CDEPS): Likewise.
16771 (COMMON_SFILES): Remove gdbsupport files.
16772 (HFILES_NO_SRCDIR): Likewise.
16773 (stamp-version): Update path to create-version.sh.
16774 (ALLDEPFILES): Remove gdbsupport files.
16775
b2ceabe8
TT
167762020-01-14 Tom Tromey <tom@tromey.com>
16777
16778 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16779 USE_WIN32API when needed.
16780 * configure.ac (USE_WIN32API): Don't define.
16781 (WIN32LIBS): Use WIN32APILIBS.
16782 * configure: Rebuild.
16783
25c51f71
TT
167842020-01-14 Tom Tromey <tom@tromey.com>
16785
16786 * configure: Rebuild.
16787 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16788
717c684d
BE
167892020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16790
16791 * skip.c (skip_function_command): Make skip w/o arguments use the
16792 name of the inlined function if pc is inside any inlined function.
16793
7da6a5b9
LM
167942020-01-14 Luis Machado <luis.machado@linaro.org>
16795
16796 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16797 * infrun.c (resume_1): Likewise.
16798 (handle_inferior_event): Remove stale comment.
16799 * linux-nat.c (linux_nat_target::resume): Update comments.
16800 (save_stop_reason): Likewise.
16801 (linux_nat_filter_event): Likewise.
16802 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16803
44e4c775
AB
168042020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16805
16806 * elfread.c (record_minimal_symbol): Set section index to 0 for
16807 non-allocatable sections.
16808
18a8505e
AT
16809
168102020-01-13 Ali Tamur <tamur@google.com>
16811
16812 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16813 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16814 to gdb::optional. Update comments.
16815 (dwo_file): Update comments.
16816 (read_attribute): Update API to take an additional out parameter,
16817 need_reprocess. This is used to mark attributes that need other
16818 attributes (e.g. str_offsets_base) for correct computation which may not
16819 have been read yet.
16820 (read_attribute_reprocess): New function declaration.
16821 (read_addr_index): Likewise.
16822 (read_dwo_str_index): Likewise.
16823 (read_stub_str_index): Likewise.
16824 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16825 (lookup_addr_base): New function definition.
16826 (lookup_ranges_base): Likewise.
16827 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16828 lookup_ranges_base.
16829 (init_cutu_and_read_dies): Update comments.
16830 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16831 unit. This is used to inherit parent's str_offsets_base and addr_base.
16832 Update comments.
16833 (init_cutu_and_read_dies_simple): Reflect API changes.
16834 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16835 (create_cus_hash_table): Change API to take parent compile unit.
16836 Reflect API changes.
16837 (open_and_init_dwo_file): Reflect API changes.
16838 (dwarf2_get_pc_bounds): Update comments.
16839 (dwarf2_record_block_ranges): Likewise.
16840 (read_full_die_1): Change implementation to reprocess attributes that
16841 need str_offsets_base and addr_base.
16842 (partial_die_info::read): Likewise.
16843 (read_attribute_reprocess): New function definition.
16844 (read_attribute_value): Change API to take an additional out parameter,
16845 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16846 when a non-dwo compile unit has index based attributes.
16847 (read_attribute): Reflect API changes.
16848 (read_addr_index_1): Reflect API changes. Update comments.
16849 (dwarf2_read_addr_index_data): Reflect API changes.
16850 (dwarf2_read_addr_index): Likewise.
16851 (read_str_index): Change API and implementation. This becomes a helper
16852 to be used by the new string index related methods. Update error
16853 message and comments.
16854 (read_dwo_str_index): New function definition.
16855 (read_stub_str_index): Likewise.
16856 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16857 * symfile.h (dwarf2_debug_sections): Likewise.
16858 * xcoffread.c (dwarf2_debug_sections): Likewise.
16859
0cac9354
SM
168602020-01-13 Simon Marchi <simon.marchi@efficios.com>
16861
16862 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16863 core_reg_sect type to gdb_byte *.
16864 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16865 * cris-tdep.c (fetch_core_registers): Likewise.
16866 * corelow.c (core_target::get_core_register_section): Change
16867 type of `contents` to gdb::byte_vector.
16868
9a6d629c
AB
168692020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16870
16871 * tui/tui-wingeneral.c (box_win): Position the title in the center
16872 of the border.
16873
d8b2f9e3
SM
168742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16875
16876 * corelow.c (core_target::get_core_register_section): Use
16877 std::vector instead of alloca.
16878
bb564c58
SM
168792020-01-13 Simon Marchi <simon.marchi@efficios.com>
16880
16881 * warning.m4: Add -Wmissing-declarations to build_warnings.
16882 * configure: Re-generate.
16883
6b366111
SM
168842020-01-13 Simon Marchi <simon.marchi@efficios.com>
16885
16886 * python/python.c (init__gdb_module): Add declaration.
16887
6c265988
SM
168882020-01-13 Simon Marchi <simon.marchi@efficios.com>
16889
16890 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16891 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16892 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16893 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16894 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16895 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16896 * ada-exp.y (_initialize_ada_exp): Add declaration.
16897 * ada-lang.c (_initialize_ada_language): Add declaration.
16898 * ada-tasks.c (_initialize_tasks): Add declaration.
16899 * agent.c (_initialize_agent): Add declaration.
16900 * aix-thread.c (_initialize_aix_thread): Add declaration.
16901 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16902 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16903 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16904 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16905 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16906 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16907 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16908 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16909 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16910 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16911 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16912 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16913 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16914 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16915 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16916 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16917 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16918 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16919 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16920 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16921 * annotate.c (_initialize_annotate): Add declaration.
16922 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16923 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16924 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16925 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16926 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16927 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16928 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16929 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16930 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16931 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16932 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16933 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16934 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16935 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16936 * auto-load.c (_initialize_auto_load): Add declaration.
16937 * auxv.c (_initialize_auxv): Add declaration.
16938 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16939 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16940 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16941 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16942 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16943 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16944 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16945 * breakpoint.c (_initialize_breakpoint): Add declaration.
16946 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16947 * btrace.c (_initialize_btrace): Add declaration.
16948 * charset.c (_initialize_charset): Add declaration.
16949 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16950 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16951 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16952 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16953 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16954 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16955 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16956 * coffread.c (_initialize_coffread): Add declaration.
16957 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16958 * compile/compile.c (_initialize_compile): Add declaration.
16959 * complaints.c (_initialize_complaints): Add declaration.
16960 * completer.c (_initialize_completer): Add declaration.
16961 * copying.c (_initialize_copying): Add declaration.
16962 * corefile.c (_initialize_core): Add declaration.
16963 * corelow.c (_initialize_corelow): Add declaration.
16964 * cp-abi.c (_initialize_cp_abi): Add declaration.
16965 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16966 * cp-support.c (_initialize_cp_support): Add declaration.
16967 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16968 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16969 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16970 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16971 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16972 * ctfread.c (_initialize_ctfread): Add declaration.
16973 * d-lang.c (_initialize_d_language): Add declaration.
16974 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16975 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16976 * dbxread.c (_initialize_dbxread): Add declaration.
16977 * dcache.c (_initialize_dcache): Add declaration.
16978 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16979 * disasm.c (_initialize_disasm): Add declaration.
16980 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16981 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16982 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16983 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16984 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16985 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16986 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16987 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16988 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16989 * elfread.c (_initialize_elfread): Add declaration.
16990 * exec.c (_initialize_exec): Add declaration.
16991 * extension.c (_initialize_extension): Add declaration.
16992 * f-lang.c (_initialize_f_language): Add declaration.
16993 * f-valprint.c (_initialize_f_valprint): Add declaration.
16994 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16995 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16996 * filesystem.c (_initialize_filesystem): Add declaration.
16997 * findcmd.c (_initialize_mem_search): Add declaration.
16998 * findvar.c (_initialize_findvar): Add declaration.
16999 * fork-child.c (_initialize_fork_child): Add declaration.
17000 * frame-base.c (_initialize_frame_base): Add declaration.
17001 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17002 * frame.c (_initialize_frame): Add declaration.
17003 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17004 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17005 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17006 * gcore.c (_initialize_gcore): Add declaration.
17007 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17008 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17009 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17010 * gdbarch.c (_initialize_gdbarch): Add declaration.
17011 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17012 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17013 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17014 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17015 * go-lang.c (_initialize_go_language): Add declaration.
17016 * go32-nat.c (_initialize_go32_nat): Add declaration.
17017 * guile/guile.c (_initialize_guile): Add declaration.
17018 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17019 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17020 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17021 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17022 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17023 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17024 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17025 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17026 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17027 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17028 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17029 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17030 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17031 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17032 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17033 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17034 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17035 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17036 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17037 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17038 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17039 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17040 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17041 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17042 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17043 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17044 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17045 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17046 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17047 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17048 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17049 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17050 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17051 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17052 * infcall.c (_initialize_infcall): Add declaration.
17053 * infcmd.c (_initialize_infcmd): Add declaration.
17054 * inflow.c (_initialize_inflow): Add declaration.
17055 * infrun.c (_initialize_infrun): Add declaration.
17056 * interps.c (_initialize_interpreter): Add declaration.
17057 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17058 * jit.c (_initialize_jit): Add declaration.
17059 * language.c (_initialize_language): Add declaration.
17060 * linux-fork.c (_initialize_linux_fork): Add declaration.
17061 * linux-nat.c (_initialize_linux_nat): Add declaration.
17062 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17063 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17064 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17065 * m2-lang.c (_initialize_m2_language): Add declaration.
17066 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17067 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17068 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17069 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17070 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17071 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17072 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17073 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17074 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17075 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17076 * machoread.c (_initialize_machoread): Add declaration.
17077 * macrocmd.c (_initialize_macrocmd): Add declaration.
17078 * macroscope.c (_initialize_macroscope): Add declaration.
17079 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17080 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17081 * maint.c (_initialize_maint_cmds): Add declaration.
17082 * mdebugread.c (_initialize_mdebugread): Add declaration.
17083 * memattr.c (_initialize_mem): Add declaration.
17084 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17085 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17086 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17087 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17088 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17089 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17090 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17091 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17092 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17093 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17094 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17095 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17096 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17097 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17098 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17099 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17100 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17101 * mipsread.c (_initialize_mipsread): Add declaration.
17102 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17103 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17104 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17105 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17106 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17107 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17108 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17109 * nto-procfs.c (_initialize_procfs): Add declaration.
17110 * objc-lang.c (_initialize_objc_language): Add declaration.
17111 * observable.c (_initialize_observer): Add declaration.
17112 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17113 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17114 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17115 * osabi.c (_initialize_gdb_osabi): Add declaration.
17116 * osdata.c (_initialize_osdata): Add declaration.
17117 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17118 * parse.c (_initialize_parse): Add declaration.
17119 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17120 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17121 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17122 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17123 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17124 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17125 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17126 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17127 * printcmd.c (_initialize_printcmd): Add declaration.
17128 * probe.c (_initialize_probe): Add declaration.
17129 * proc-api.c (_initialize_proc_api): Add declaration.
17130 * proc-events.c (_initialize_proc_events): Add declaration.
17131 * proc-service.c (_initialize_proc_service): Add declaration.
17132 * procfs.c (_initialize_procfs): Add declaration.
17133 * producer.c (_initialize_producer): Add declaration.
17134 * psymtab.c (_initialize_psymtab): Add declaration.
17135 * python/python.c (_initialize_python): Add declaration.
17136 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17137 * record-btrace.c (_initialize_record_btrace): Add declaration.
17138 * record-full.c (_initialize_record_full): Add declaration.
17139 * record.c (_initialize_record): Add declaration.
17140 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17141 * regcache.c (_initialize_regcache): Add declaration.
17142 * reggroups.c (_initialize_reggroup): Add declaration.
17143 * remote-notif.c (_initialize_notif): Add declaration.
17144 * remote-sim.c (_initialize_remote_sim): Add declaration.
17145 * remote.c (_initialize_remote): Add declaration.
17146 * reverse.c (_initialize_reverse): Add declaration.
17147 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17148 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17149 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17150 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17151 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17152 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17153 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17154 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17155 Add declaration.
17156 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17157 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17158 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17159 * rust-exp.y (_initialize_rust_exp): Add declaration.
17160 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17161 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17162 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17163 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17164 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17165 * score-tdep.c (_initialize_score_tdep): Add declaration.
17166 * ser-go32.c (_initialize_ser_dos): Add declaration.
17167 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17168 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17169 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17170 * ser-uds.c (_initialize_ser_socket): Add declaration.
17171 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17172 * serial.c (_initialize_serial): Add declaration.
17173 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17174 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17175 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17176 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17177 * skip.c (_initialize_step_skip): Add declaration.
17178 * sol-thread.c (_initialize_sol_thread): Add declaration.
17179 * solib-aix.c (_initialize_solib_aix): Add declaration.
17180 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17181 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17182 * solib-frv.c (_initialize_frv_solib): Add declaration.
17183 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17184 * solib-target.c (_initialize_solib_target): Add declaration.
17185 * solib.c (_initialize_solib): Add declaration.
17186 * source-cache.c (_initialize_source_cache): Add declaration.
17187 * source.c (_initialize_source): Add declaration.
17188 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17189 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17190 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17191 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17192 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17193 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17194 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17195 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17196 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17197 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17198 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17199 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17200 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17201 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17202 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17203 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17204 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17205 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17206 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17207 * stabsread.c (_initialize_stabsread): Add declaration.
17208 * stack.c (_initialize_stack): Add declaration.
17209 * stap-probe.c (_initialize_stap_probe): Add declaration.
17210 * std-regs.c (_initialize_frame_reg): Add declaration.
17211 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17212 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17213 * symfile.c (_initialize_symfile): Add declaration.
17214 * symmisc.c (_initialize_symmisc): Add declaration.
17215 * symtab.c (_initialize_symtab): Add declaration.
17216 * target.c (_initialize_target): Add declaration.
17217 * target-connection.c (_initialize_target_connection): Add
17218 declaration.
17219 * target-dcache.c (_initialize_target_dcache): Add declaration.
17220 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17221 * thread.c (_initialize_thread): Add declaration.
17222 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17223 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17224 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17225 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17226 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17227 * tracectf.c (_initialize_ctf): Add declaration.
17228 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17229 * tracefile.c (_initialize_tracefile): Add declaration.
17230 * tracepoint.c (_initialize_tracepoint): Add declaration.
17231 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17232 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17233 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17234 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17235 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17236 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17237 * tui/tui.c (_initialize_tui): Add declaration.
17238 * typeprint.c (_initialize_typeprint): Add declaration.
17239 * ui-style.c (_initialize_ui_style): Add declaration.
17240 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17241 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17242 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17243 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17244 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17245 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17246 * unittests/filtered_iterator-selftests.c
17247 (_initialize_filtered_iterator_selftests): Add declaration.
17248 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17249 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17250 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17251 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17252 * unittests/main-thread-selftests.c
17253 (_initialize_main_thread_selftests): Add declaration.
17254 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17255 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17256 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17257 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17258 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17259 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17260 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17261 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17262 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17263 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17264 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17265 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17266 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17267 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17268 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17269 declaration.
17270 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17271 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17272 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17273 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17274 * user-regs.c (_initialize_user_regs): Add declaration.
17275 * utils.c (_initialize_utils): Add declaration.
17276 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17277 * valops.c (_initialize_valops): Add declaration.
17278 * valprint.c (_initialize_valprint): Add declaration.
17279 * value.c (_initialize_values): Add declaration.
17280 * varobj.c (_initialize_varobj): Add declaration.
17281 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17282 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17283 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17284 * windows-nat.c (_initialize_windows_nat): Add declaration.
17285 (_initialize_check_for_gdb_ini): Add declaration.
17286 (_initialize_loadable): Add declaration.
17287 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17288 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17289 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17290 * xcoffread.c (_initialize_xcoffread): Add declaration.
17291 * xml-support.c (_initialize_xml_support): Add declaration.
17292 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17293 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17294 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17295 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17296
e2de1eec
SM
172972020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17298
17299 * regformats/regdat.sh: Generate declaration for init function.
17300
e0037b4c
SM
173012020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17302
17303 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17304 up.
17305 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17306 close_one_inferior>: New methods.
17307 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17308 pass down target to find_inferior_pid.
17309 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17310 Pass down target to find_inferior_ptid.
17311 (gdbsim_target::create_inferior): Pass down target to
17312 add_thread_silent.
17313 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17314 target down to find_inferior_ptid and switch_to_thread.
17315 (gdbsim_target::close): Update to call close_one_inferior.
17316 (struct resume_data): Remove.
17317 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17318 directly, rather than through a void pointer.
17319 (gdbsim_target::resume): Update to call resume_one_inferior.
17320
58920b5b
SM
173212020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17322
17323 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17324
4ec89149
PA
173252020-01-12 Pedro Alves <palves@redhat.com>
17326
17327 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17328 directly for the current inferior instead of
17329 discard_all_inferiors.
17330 (discard_all_inferiors): Delete.
17331
7c392d1d
TT
173322020-01-11 Tom Tromey <tom@tromey.com>
17333
17334 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17335 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17336 deprecated_safe_get_selected_frame.
17337
d9ebdab7
TBA
173382020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17339
17340 * inferior.c (print_inferior): Switch inferior before printing it.
17341
f3c469b9
PA
173422020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17343 Pedro Alves <palves@redhat.com>
17344
17345 * progspace-and-thread.c (switch_to_program_space_and_thread):
17346 Assert there's an inferior for PSPACE. Use
17347 switch_to_inferior_no_thread to switch the inferior too.
17348 * progspace.c (program_space::~program_space): Call
17349 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17350 (program_space::free_all_objfiles): Don't call clear_symtab_users
17351 here.
17352 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17353
65c574f6
PA
173542020-01-10 Pedro Alves <palves@redhat.com>
17355
17356 * NEWS: Mention multi-target debugging, "info connections", and
17357 "add-inferior -no-connection".
17358
2f4fcf00
PA
173592020-01-10 Pedro Alves <palves@redhat.com>
17360
17361 * infrun.c: Include "target-connection.h".
17362 (check_multi_target_resumption): New.
17363 (proceed): Call it.
17364 * target-connection.c (make_target_connection_string): Make
17365 extern.
17366 * target-connection.h (make_target_connection_string): Declare.
17367
121b3efd
PA
173682020-01-10 Pedro Alves <palves@redhat.com>
17369
17370 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17371 * inferior.c (uiout_field_connection): New function.
17372 (print_inferior): Add new "connection-id" column.
17373 (add_inferior_command): Show connection number/string of added
17374 inferior.
17375 * process-stratum-target.h
17376 (process_stratum_target::connection_string): New virtual method.
17377 (process_stratum_target::connection_number): New field.
17378 * remote.c (remote_target::connection_string): New override.
17379 * target-connection.c: New file.
17380 * target-connection.h: New file.
17381 * target.c (decref_target): Remove process_stratum targets from
17382 the connection list.
17383 (target_stack::push): Add process_stratum targets to the
17384 connection list.
17385
4f837581
PA
173862020-01-10 Pedro Alves <palves@redhat.com>
17387
17388 Revert:
17389 2016-04-12 Pedro Alves <palves@redhat.com>
17390 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17391 Remove references to name.
17392 * serial.h (struct serial) <name>: Delete.
17393
f4ec508e
PA
173942020-01-10 Pedro Alves <palves@redhat.com>
17395
17396 * gdbarch-selftests.c (register_to_value_test): Remove "target
17397 already pushed" check.
17398
5b6d1e4f
PA
173992020-01-10 Pedro Alves <palves@redhat.com>
17400 John Baldwin <jhb@FreeBSD.org>
17401
17402 * aarch64-linux-nat.c
17403 (aarch64_linux_nat_target::thread_architecture): Adjust.
17404 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17405 (task_command_1): Likewise.
17406 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17407 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17408 (aix_thread_target::store_registers)
17409 (aix_thread_target::thread_alive): Adjust.
17410 * amd64-fbsd-tdep.c: Include "inferior.h".
17411 (amd64fbsd_get_thread_local_address): Pass down target.
17412 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17413 thread's gdbarch instead of target_gdbarch.
17414 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17415 get_last_target_status.
17416 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17417 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17418 inferiors.
17419 (update_inserted_breakpoint_locations): Skip if inferiors with no
17420 execution.
17421 (update_global_location_list): When handling moribund locations,
17422 find representative inferior for location's pspace, and use thread
17423 count of its process_stratum target.
17424 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17425 * bsd-uthread.c (bsd_uthread_target::wait): Use
17426 as_process_stratum_target and adjust thread_change_ptid and
17427 add_thread calls.
17428 (bsd_uthread_target::update_thread_list): Use
17429 as_process_stratum_target and adjust find_thread_ptid,
17430 thread_change_ptid and add_thread calls.
17431 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17432 find_thread_ptid call.
17433 * corelow.c (add_to_thread_list): Adjust add_thread call.
17434 (core_target_open): Adjust add_thread_silent and thread_count
17435 calls.
17436 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17437 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17438 * event-top.c (async_disconnect): Pop targets from all inferiors.
17439 * exec.c (add_target_sections): Push exec target on all inferiors
17440 sharing the program space.
17441 (remove_target_sections): Remove the exec target from all
17442 inferiors sharing the program space.
17443 (exec_on_vfork): New.
17444 * exec.h (exec_on_vfork): Declare.
17445 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17446 Pass it down.
17447 (fbsd_nat_target::update_thread_list): Adjust.
17448 (fbsd_nat_target::resume): Adjust.
17449 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17450 down.
17451 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17452 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17453 get_thread_arch_regcache call.
17454 * fork-child.c (gdb_startup_inferior): Pass target down to
17455 startup_inferior and set_executing.
17456 * gdbthread.h (struct process_stratum_target): Forward declare.
17457 (add_thread, add_thread_silent, add_thread_with_info)
17458 (in_thread_list): Add process_stratum_target parameter.
17459 (find_thread_ptid(inferior*, ptid_t)): New overload.
17460 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17461 parameter.
17462 (all_threads()): Delete overload.
17463 (all_threads, all_non_exited_threads): Add process_stratum_target
17464 parameter.
17465 (all_threads_safe): Use brace initialization.
17466 (thread_count): Add process_stratum_target parameter.
17467 (set_resumed, set_running, set_stop_requested, set_executing)
17468 (threads_are_executing, finish_thread_state): Add
17469 process_stratum_target parameter.
17470 (switch_to_thread): Use is_current_thread.
17471 * i386-fbsd-tdep.c: Include "inferior.h".
17472 (i386fbsd_get_thread_local_address): Pass down target.
17473 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17474 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17475 have_inferiors check.
17476 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17477 (inf_ptrace_target::attach): Adjust.
17478 * infcall.c (run_inferior_call): Adjust.
17479 * infcmd.c (run_command_1): Pass target to
17480 scoped_finish_thread_state.
17481 (proceed_thread_callback): Skip inferiors with no execution.
17482 (continue_command): Rename 'all_threads' local to avoid hiding
17483 'all_threads' function. Adjust get_last_target_status call.
17484 (prepare_one_step): Adjust set_running call.
17485 (signal_command): Use user_visible_resume_target. Compare thread
17486 pointers instead of inferior_ptid.
17487 (info_program_command): Adjust to pass down target.
17488 (attach_command): Mark target's 'thread_executing' flag.
17489 (stop_current_target_threads_ns): New, factored out from ...
17490 (interrupt_target_1): ... this. Switch inferior before making
17491 target calls.
17492 * inferior-iter.h
17493 (struct all_inferiors_iterator, struct all_inferiors_range)
17494 (struct all_inferiors_safe_range)
17495 (struct all_non_exited_inferiors_range): Filter on
17496 process_stratum_target too. Remove explicit.
17497 * inferior.c (inferior::inferior): Push dummy target on target
17498 stack.
17499 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17500 Add process_stratum_target parameter, and pass it down.
17501 (have_live_inferiors): Adjust.
17502 (switch_to_inferior_and_push_target): New.
17503 (add_inferior_command, clone_inferior_command): Handle
17504 "-no-connection" parameter. Use
17505 switch_to_inferior_and_push_target.
17506 (_initialize_inferior): Mention "-no-connection" option in
17507 the help of "add-inferior" and "clone-inferior" commands.
17508 * inferior.h: Include "process-stratum-target.h".
17509 (interrupt_target_1): Use bool.
17510 (struct inferior) <push_target, unpush_target, target_is_pushed,
17511 find_target_beneath, top_target, process_target, target_at,
17512 m_stack>: New.
17513 (discard_all_inferiors): Delete.
17514 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17515 (all_inferiors, all_non_exited_inferiors): Add
17516 process_stratum_target parameter.
17517 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17518 (target_last_proc_target): New global.
17519 (follow_fork_inferior): Push target on new inferior. Pass target
17520 to add_thread_silent. Call exec_on_vfork. Handle target's
17521 reference count.
17522 (follow_fork): Adjust get_last_target_status call. Also consider
17523 target.
17524 (follow_exec): Push target on new inferior.
17525 (struct execution_control_state) <target>: New field.
17526 (user_visible_resume_target): New.
17527 (do_target_resume): Call target_async.
17528 (resume_1): Set target's threads_executing flag. Consider resume
17529 target.
17530 (commit_resume_all_targets): New.
17531 (proceed): Also consider resume target. Skip threads of inferiors
17532 with no execution. Commit resumtion in all targets.
17533 (start_remote): Pass current inferior to wait_for_inferior.
17534 (infrun_thread_stop_requested): Consider target as well. Pass
17535 thread_info pointer to clear_inline_frame_state instead of ptid.
17536 (infrun_thread_thread_exit): Consider target as well.
17537 (random_pending_event_thread): New inferior parameter. Use it.
17538 (do_target_wait): Rename to ...
17539 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17540 down.
17541 (threads_are_resumed_pending_p, do_target_wait): New.
17542 (prepare_for_detach): Adjust calls.
17543 (wait_for_inferior): New inferior parameter. Handle it. Use
17544 do_target_wait_1 instead of do_target_wait.
17545 (fetch_inferior_event): Adjust. Switch to representative
17546 inferior. Pass target down.
17547 (set_last_target_status): Add process_stratum_target parameter.
17548 Save target in global.
17549 (get_last_target_status): Add process_stratum_target parameter and
17550 handle it.
17551 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17552 (context_switch): Check inferior_ptid == null_ptid before calling
17553 inferior_thread().
17554 (get_inferior_stop_soon): Pass down target.
17555 (wait_one): Rename to ...
17556 (poll_one_curr_target): ... this.
17557 (struct wait_one_event): New.
17558 (wait_one): New.
17559 (stop_all_threads): Adjust.
17560 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17561 event's target.
17562 (switch_back_to_stepped_thread): Also consider target.
17563 (print_stop_event): Update.
17564 (normal_stop): Update. Also consider the resume target.
17565 * infrun.h (wait_for_inferior): Remove declaration.
17566 (user_visible_resume_target): New declaration.
17567 (get_last_target_status, set_last_target_status): New
17568 process_stratum_target parameter.
17569 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17570 process_stratum_target parameter, and use it.
17571 (clear_inline_frame_state (thread_info*)): New.
17572 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17573 process_stratum_target parameter.
17574 (clear_inline_frame_state (thread_info*)): Declare.
17575 * linux-fork.c (delete_checkpoint_command): Pass target down to
17576 find_thread_ptid.
17577 (checkpoint_command): Adjust.
17578 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17579 instead of just tweaking inferior_ptid.
17580 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17581 (exit_lwp): Pass target down to find_thread_ptid.
17582 (attach_proc_task_lwp_callback): Pass target down to
17583 add_thread/set_running/set_executing.
17584 (linux_nat_target::attach): Pass target down to
17585 thread_change_ptid.
17586 (get_detach_signal): Pass target down to find_thread_ptid.
17587 Consider last target status's target.
17588 (linux_resume_one_lwp_throw, resume_lwp)
17589 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17590 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17591 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17592 (linux_nat_target::async_wait_fd): New.
17593 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17594 target down.
17595 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17596 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17597 * linux-thread-db.c (struct thread_db_info::process_target): New
17598 field.
17599 (add_thread_db_info): Save target.
17600 (get_thread_db_info): New process_stratum_target parameter. Also
17601 match target.
17602 (delete_thread_db_info): New process_stratum_target parameter.
17603 Also match target.
17604 (thread_from_lwp): Adjust to pass down target.
17605 (thread_db_notice_clone): Pass down target.
17606 (check_thread_db_callback): Pass down target.
17607 (try_thread_db_load_1): Always push the thread_db target.
17608 (try_thread_db_load, record_thread): Pass target down.
17609 (thread_db_target::detach): Pass target down. Always unpush the
17610 thread_db target.
17611 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17612 target down. Always unpush the thread_db target.
17613 (find_new_threads_callback, thread_db_find_new_threads_2)
17614 (thread_db_target::update_thread_list): Pass target down.
17615 (thread_db_target::pid_to_str): Pass current inferior down.
17616 (thread_db_target::get_thread_local_address): Pass target down.
17617 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17618 target down.
17619 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17620 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17621 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17622 (procfs_init_inferior): Rename to ...
17623 (procfs_target::procfs_init_inferior): ... this and adjust.
17624 (procfs_target::create_inferior, procfs_notice_thread)
17625 (procfs_do_thread_registers): Adjust.
17626 * ppc-fbsd-tdep.c: Include "inferior.h".
17627 (ppcfbsd_get_thread_local_address): Pass down target.
17628 * proc-service.c (ps_xfer_memory): Switch current inferior and
17629 program space as well.
17630 (get_ps_regcache): Pass target down.
17631 * process-stratum-target.c
17632 (process_stratum_target::thread_address_space)
17633 (process_stratum_target::thread_architecture): Pass target down.
17634 * process-stratum-target.h
17635 (process_stratum_target::threads_executing): New field.
17636 (as_process_stratum_target): New.
17637 * ravenscar-thread.c
17638 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17639 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17640 down.
17641 * record-btrace.c (record_btrace_target::info_record): Adjust.
17642 (record_btrace_target::record_method)
17643 (record_btrace_target::record_is_replaying)
17644 (record_btrace_target::fetch_registers)
17645 (get_thread_current_frame_id, record_btrace_target::resume)
17646 (record_btrace_target::wait, record_btrace_target::stop): Pass
17647 target down.
17648 * record-full.c (record_full_wait_1): Switch to event thread.
17649 Pass target down.
17650 * regcache.c (regcache::regcache)
17651 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17652 process_stratum_target parameter and handle it.
17653 (current_thread_target): New global.
17654 (get_thread_regcache): Add process_stratum_target parameter and
17655 handle it. Switch inferior before calling target method.
17656 (get_thread_regcache): Pass target down.
17657 (get_thread_regcache_for_ptid): Pass target down.
17658 (registers_changed_ptid): Add process_stratum_target parameter and
17659 handle it.
17660 (registers_changed_thread, registers_changed): Pass target down.
17661 (test_get_thread_arch_aspace_regcache): New.
17662 (current_regcache_test): Define a couple local test_target_ops
17663 instances and use them for testing.
17664 (readwrite_regcache): Pass process_stratum_target parameter.
17665 (cooked_read_test, cooked_write_test): Pass mock_target down.
17666 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17667 (get_thread_arch_aspace_regcache): Add process_stratum_target
17668 parameter.
17669 (regcache::target): New method.
17670 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17671 (regcache::registers_changed_ptid): Add process_stratum_target
17672 parameter.
17673 (regcache::m_target): New field.
17674 (registers_changed_ptid): Add process_stratum_target parameter.
17675 * remote.c (remote_state::supports_vCont_probed): New field.
17676 (remote_target::async_wait_fd): New method.
17677 (remote_unpush_and_throw): Add remote_target parameter.
17678 (get_current_remote_target): Adjust.
17679 (remote_target::remote_add_inferior): Push target.
17680 (remote_target::remote_add_thread)
17681 (remote_target::remote_notice_new_inferior)
17682 (get_remote_thread_info): Pass target down.
17683 (remote_target::update_thread_list): Skip threads of inferiors
17684 bound to other targets. (remote_target::close): Don't discard
17685 inferiors. (remote_target::add_current_inferior_and_thread)
17686 (remote_target::process_initial_stop_replies)
17687 (remote_target::start_remote)
17688 (remote_target::remote_serial_quit_handler): Pass down target.
17689 (remote_target::remote_unpush_target): New remote_target
17690 parameter. Unpush the target from all inferiors.
17691 (remote_target::remote_unpush_and_throw): New remote_target
17692 parameter. Pass it down.
17693 (remote_target::open_1): Check whether the current inferior has
17694 execution instead of checking whether any inferior is live. Pass
17695 target down.
17696 (remote_target::remote_detach_1): Pass down target. Use
17697 remote_unpush_target.
17698 (extended_remote_target::attach): Pass down target.
17699 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17700 (remote_target::append_resumption): Pass down target.
17701 (remote_target::append_pending_thread_resumptions)
17702 (remote_target::remote_resume_with_hc, remote_target::resume)
17703 (remote_target::commit_resume): Pass down target.
17704 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17705 (remote_target::interrupt_query)
17706 (remote_target::remove_new_fork_children)
17707 (remote_target::check_pending_events_prevent_wildcard_vcont)
17708 (remote_target::remote_parse_stop_reply)
17709 (remote_target::process_stop_reply): Pass down target.
17710 (first_remote_resumed_thread): New remote_target parameter. Pass
17711 it down.
17712 (remote_target::wait_as): Pass down target.
17713 (unpush_and_perror): New remote_target parameter. Pass it down.
17714 (remote_target::readchar, remote_target::remote_serial_write)
17715 (remote_target::getpkt_or_notif_sane_1)
17716 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17717 down target.
17718 (remote_target::mourn_inferior): Pass down target. Use
17719 remote_unpush_target.
17720 (remote_target::core_of_thread)
17721 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17722 (remote_target::pid_to_exec_file)
17723 (remote_target::thread_handle_to_thread_info): Pass down target.
17724 (remote_target::async_wait_fd): New.
17725 * riscv-fbsd-tdep.c: Include "inferior.h".
17726 (riscv_fbsd_get_thread_local_address): Pass down target.
17727 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17728 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17729 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17730 Adjust.
17731 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17732 * solib-svr4.c (enable_break): Pass down target.
17733 * spu-multiarch.c (parse_spufs_run): Pass down target.
17734 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17735 * target-delegates.c: Regenerate.
17736 * target.c (g_target_stack): Delete.
17737 (current_top_target): Return the current inferior's top target.
17738 (target_has_execution_1): Refer to the passed-in inferior's top
17739 target.
17740 (target_supports_terminal_ours): Check whether the initial
17741 inferior was already created.
17742 (decref_target): New.
17743 (target_stack::push): Incref/decref the target.
17744 (push_target, push_target, unpush_target): Adjust.
17745 (target_stack::unpush): Defref target.
17746 (target_is_pushed): Return bool. Adjust to refer to the current
17747 inferior's target stack.
17748 (dispose_inferior): Delete, and inline parts ...
17749 (target_preopen): ... here. Only dispose of the current inferior.
17750 (target_detach): Hold strong target reference while detaching.
17751 Pass target down.
17752 (target_thread_name): Add assertion.
17753 (target_resume): Pass down target.
17754 (target_ops::beneath, find_target_at): Adjust to refer to the
17755 current inferior's target stack.
17756 (get_dummy_target): New.
17757 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17758 has a thread running.
17759 (initialize_targets): Rename to ...
17760 (_initialize_target): ... this.
17761 * target.h: Include "gdbsupport/refcounted-object.h".
17762 (struct target_ops): Inherit refcounted_object.
17763 (target_ops::shortname, target_ops::longname): Make const.
17764 (target_ops::async_wait_fd): New method.
17765 (decref_target): Declare.
17766 (struct target_ops_ref_policy): New.
17767 (target_ops_ref): New typedef.
17768 (get_dummy_target): Declare function.
17769 (target_is_pushed): Return bool.
17770 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17771 (all_matching_threads_iterator::all_matching_threads_iterator):
17772 Handle filter target.
17773 * thread-iter.h (struct all_matching_threads_iterator, struct
17774 all_matching_threads_range, class all_non_exited_threads_range):
17775 Filter by target too. Remove explicit.
17776 * thread.c (threads_executing): Delete.
17777 (inferior_thread): Pass down current inferior.
17778 (clear_thread_inferior_resources): Pass down thread pointer
17779 instead of ptid_t.
17780 (add_thread_silent, add_thread_with_info, add_thread): Add
17781 process_stratum_target parameter. Use it for thread and inferior
17782 searches.
17783 (is_current_thread): New.
17784 (thread_info::deletable): Use it.
17785 (find_thread_ptid, thread_count, in_thread_list)
17786 (thread_change_ptid, set_resumed, set_running): New
17787 process_stratum_target parameter. Pass it down.
17788 (set_executing): New process_stratum_target parameter. Pass it
17789 down. Adjust reference to 'threads_executing'.
17790 (threads_are_executing): New process_stratum_target parameter.
17791 Adjust reference to 'threads_executing'.
17792 (set_stop_requested, finish_thread_state): New
17793 process_stratum_target parameter. Pass it down.
17794 (switch_to_thread): Also match inferior.
17795 (switch_to_thread): New process_stratum_target parameter. Pass it
17796 down.
17797 (update_threads_executing): Reimplement.
17798 * top.c (quit_force): Pop targets from all inferior.
17799 (gdb_init): Don't call initialize_targets.
17800 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17801 Declare.
17802 (windows_add_thread, windows_delete_thread): Adjust.
17803 (get_windows_debug_event): Rename to ...
17804 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17805 * tracefile-tfile.c (tfile_target_open): Pass down target.
17806 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17807 Forward declare.
17808 (switch_to_thread): Add process_stratum_target parameter.
17809 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17810 parameter. Use it.
17811 (mi_on_resume): Pass target down.
17812 * nat/fork-inferior.c (startup_inferior): Add
17813 process_stratum_target parameter. Pass it down.
17814 * nat/fork-inferior.h (startup_inferior): Add
17815 process_stratum_target parameter.
17816 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17817
75c6c844
PA
178182020-01-10 Pedro Alves <palves@redhat.com>
17819
17820 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17821 directly. Instead find the first thread in the thread list and
17822 use switch_to_thread.
17823
78f2c40a
PA
178242020-01-10 Pedro Alves <palves@redhat.com>
17825
17826 * remote.c (remote_target::remote_add_inferior): Don't bind a
17827 process to the current inferior if the current inferior is already
17828 bound to a process.
17829
e7af6c70
TBA
178302020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17831 Pedro Alves <palves@redhat.com>
17832
17833 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17834 If no process is specified, return null_ptid instead of
17835 inferior_ptid.
17836 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17837 TARGET_WAITKIND_SIGNALLED with no pid.
17838
31ba933e
PA
178392020-01-10 Pedro Alves <palves@redhat.com>
17840
17841 * remote.c (first_remote_resumed_thread): New.
17842 (remote_target::wait_as): Use it as default event_ptid instead of
17843 inferior_ptid.
17844
735fc2ca
PA
178452020-01-10 Pedro Alves <palves@redhat.com>
17846
17847 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17848
c17e02e1
PA
178492020-01-10 Pedro Alves <palves@redhat.com>
17850
17851 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17852 not -1.
17853
ab1ddbcf
PA
178542020-01-10 Pedro Alves <palves@redhat.com>
17855
17856 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17857 ptid to get_last_target_status.
17858 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17859 ptid to get_last_target_status.
17860 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17861 get_last_target_status.
17862 (info_program_command): Don't pass a target_waitstatus to
17863 get_last_target_status.
17864 * infrun.c (init_wait_for_inferior): Use
17865 nullify_last_target_wait_ptid.
17866 (get_last_target_status): Handle nullptr arguments.
17867 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17868 (print_stop_event): Don't pass a ptid to get_last_target_status.
17869 (normal_stop): Don't pass a ptid to get_last_target_status.
17870 * infrun.h (get_last_target_status, set_last_target_status): Move
17871 comments here and update.
17872 (nullify_last_target_wait_ptid): Declare.
17873 * linux-fork.c (fork_load_infrun_state): Remove local extern
17874 declaration of nullify_last_target_wait_ptid.
17875 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17876 to get_last_target_status.
17877
f3f8ece4
PA
178782020-01-10 Pedro Alves <palves@redhat.com>
17879
17880 * gdbthread.h (scoped_restore_current_thread)
17881 <dont_restore, restore, m_dont_restore>: Declare.
17882 * thread.c (thread_alive): Add assertion. Return bool.
17883 (switch_to_thread_if_alive): New.
17884 (prune_threads): Switch inferior/thread.
17885 (print_thread_info_1): Switch thread before calling target methods.
17886 (scoped_restore_current_thread::restore): New, factored out from
17887 ...
17888 (scoped_restore_current_thread::~scoped_restore_current_thread):
17889 ... this.
17890 (scoped_restore_current_thread::scoped_restore_current_thread):
17891 Add assertion.
17892 (thread_apply_all_command, thread_select): Use
17893 switch_to_thread_if_alive.
17894 * infrun.c (proceed, restart_threads, handle_signal_stop)
17895 (switch_back_to_stepped_thread): Switch current thread before
17896 calling target methods.
17897
db2d40f7
PA
178982020-01-10 Pedro Alves <palves@redhat.com>
17899
17900 * inferior.c (switch_to_inferior_no_thread): New function,
17901 factored out from ...
17902 (inferior_command): ... here.
17903 * inferior.h (switch_to_inferior_no_thread): Declare.
17904 * mi/mi-main.c (run_one_inferior): Use
17905 switch_to_inferior_no_thread.
17906
bd420a2d
PA
179072020-01-10 Pedro Alves <palves@redhat.com>
17908
17909 * infcmd.c (kill_command): Remove dead code.
17910
ddf5db90
PA
179112020-01-10 Pedro Alves <palves@redhat.com>
17912
17913 * remote.c (remote_target::mourn_inferior): No longer check
17914 whether the target is running.
17915
5018ce90
PA
179162020-01-10 Pedro Alves <palves@redhat.com>
17917
17918 * corelow.c (core_target::has_execution): Change parameter type to
17919 inferior pointer.
17920 * inferior.c (number_of_live_inferiors): Use
17921 inferior::has_execution instead of target_has_execution_1.
17922 * inferior.h (inferior::has_execution): New.
17923 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17924 inferior::has_execution instead of target_has_execution_1.
17925 * process-stratum-target.c
17926 (process_stratum_target::has_execution): Change parameter type to
17927 inferior pointer. Check the inferior's PID instead of
17928 inferior_ptid.
17929 * process-stratum-target.h
17930 (process_stratum_target::has_execution): Change parameter type to
17931 inferior pointer.
17932 * record-full.c (record_full_core_target::has_execution): Change
17933 parameter type to inferior pointer.
17934 * target.c (target_has_execution_1): Change parameter type to
17935 inferior pointer.
17936 (target_has_execution_current): Adjust.
17937 * target.h (target_ops::has_execution): Change parameter type to
17938 inferior pointer.
17939 (target_has_execution_1): Change parameter type to inferior
17940 pointer. Change return type to bool.
17941 * tracefile.h (tracefile_target::has_execution): Change parameter
17942 type to inferior pointer.
17943
74375d18
PA
179442020-01-10 Pedro Alves <palves@redhat.com>
17945
17946 * exceptions.c (print_flush): Remove current_top_target() check.
17947
acdf84a6
PA
179482020-01-10 Pedro Alves <palves@redhat.com>
17949
17950 * remote.c (show_remote_exec_file): Show the current inferior's
17951 exec-file instead of the command variable's value.
17952
ec506636
PA
179532020-01-10 Pedro Alves <palves@redhat.com>
17954
17955 * record-full.c (record_full_resume_ptid): New global.
17956 (record_full_target::resume): Set it.
17957 (record_full_wait_1): Use record_full_resume_ptid instead of
17958 inferior_ptid.
17959
873657b9
PA
179602020-01-10 Pedro Alves <palves@redhat.com>
17961
17962 * gdbthread.h (scoped_restore_current_thread)
17963 <dont_restore, restore, m_dont_restore>: Declare.
17964 * thread.c (thread_alive): Add assertion. Return bool.
17965 (switch_to_thread_if_alive): New.
17966 (prune_threads): Switch inferior/thread.
17967 (print_thread_info_1): Switch thread before calling target methods.
17968 (scoped_restore_current_thread::restore): New, factored out from
17969 ...
17970 (scoped_restore_current_thread::~scoped_restore_current_thread):
17971 ... this.
17972 (scoped_restore_current_thread::scoped_restore_current_thread):
17973 Add assertion.
17974 (thread_apply_all_command, thread_select): Use
17975 switch_to_thread_if_alive.
17976
7f0ae84c
GB
179772020-01-10 George Barrett <bob@bob131.so>
17978
17979 * stap-probe.c (stap_modify_semaphore): Don't check for null
17980 semaphores.
17981 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17982 for null semaphores.
17983
f5a7c406
AB
179842020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17985
17986 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17987 all source windows, and maintain horizontal scroll status while
17988 doing so.
17989
9ae6bf64
TT
179902020-01-09 Tom Tromey <tom@tromey.com>
17991
17992 PR tui/18932:
17993 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17994 update_source_window, not print_source_lines.
17995
b2efe70c
AB
179962020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17997
17998 * tui/tui.c (tui_enable): Register tui hooks after calling
17999 tui_display_main.
18000
5f23a082
CB
180012020-01-09 Christian Biesinger <cbiesinger@google.com>
18002
18003 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18004
3061113b
SM
180052020-01-08 Simon Marchi <simon.marchi@efficios.com>
18006
18007 * thread.c (print_thread_info_1): Fix indentation.
18008
57d75002
CB
180092020-01-09 Christian Biesinger <cbiesinger@google.com>
18010
18011 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18012 unique_xmalloc_ptr outside the if to always free the demangled name.
18013
6a053cb1
TT
180142020-01-08 Tom Tromey <tromey@adacore.com>
18015
18016 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18017 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18018 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18019 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18020 Remove.
18021 (section_offsets): New typedef.
18022 * symtab.c (fixup_section, get_msymbol_address): Update.
18023 * symmisc.c (dump_msymbols): Update.
18024 * symfile.h (relative_addr_info_to_section_offsets)
18025 (symfile_map_offsets_to_segments): Update.
18026 * symfile.c (build_section_addr_info_from_objfile)
18027 (init_objfile_sect_indices): Update.
18028 (struct place_section_arg): Change type of "offsets".
18029 (place_section): Update.
18030 (relative_addr_info_to_section_offsets): Change type of
18031 "section_offsets". Remove "num_sections" parameter.
18032 (default_symfile_offsets, syms_from_objfile_1)
18033 (set_objfile_default_section_offset): Update.
18034 (reread_symbols): No need to preserve section offsets by hand.
18035 (symfile_map_offsets_to_segments): Change type of "offsets".
18036 * stap-probe.c (relocate_address): Update.
18037 * stabsread.h (process_one_symbol): Update.
18038 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18039 (solib_target_relocate_section_addresses): Update.
18040 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18041 Update.
18042 * solib-frv.c (frv_relocate_main_executable): Update.
18043 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18044 * solib-aix.c (solib_aix_get_section_offsets): Change return
18045 type.
18046 (solib_aix_solib_create_inferior_hook): Update.
18047 * remote.c (remote_target::get_offsets): Update.
18048 * psymtab.c (find_pc_sect_psymtab): Update.
18049 * psympriv.h (struct partial_symbol) <address, text_low,
18050 text_high>: Update.
18051 * objfiles.h (obj_section_offset): Update.
18052 (struct objfile) <section_offsets>: Change type.
18053 <num_sections>: Remove.
18054 (objfile_relocate): Update.
18055 * objfiles.c (entry_point_address_query): Update
18056 (relocate_one_symbol): Change type of "section_offsets".
18057 (objfile_relocate1, objfile_relocate1): Change type of
18058 "new_offsets".
18059 (objfile_rebase1): Update.
18060 * mipsread.c (mipscoff_symfile_read): Update.
18061 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18062 parameter.
18063 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18064 (parse_external, psymtab_to_symtab_1): Update.
18065 * machoread.c (macho_symfile_offsets): Update.
18066 * ia64-tdep.c (ia64_find_unwind_table): Update.
18067 * hppa-tdep.c (read_unwind_info): Update.
18068 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18069 * dwarf2read.c (create_addrmap_from_index)
18070 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18071 (process_psymtab_comp_unit_reader, add_partial_symbol)
18072 (add_partial_subprogram, process_full_comp_unit)
18073 (read_file_scope, read_func_scope, read_lexical_block_scope)
18074 (read_call_site_scope, dwarf2_rnglists_process)
18075 (dwarf2_ranges_process, dwarf2_ranges_read)
18076 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18077 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18078 Update.
18079 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18080 Update.
18081 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18082 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18083 (process_one_symbol): Change type of "section_offsets".
18084 * ctfread.c (get_objfile_text_range): Update.
18085 * coffread.c (coff_symtab_read, enter_linenos)
18086 (process_coff_symbol): Update.
18087 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18088 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18089
456e800a
TT
180902020-01-08 Tom Tromey <tromey@adacore.com>
18091
18092 * dwarf2read.c (parse_macro_definition): Use std::string.
18093 (parse_macro_definition): Likewise.
18094
6dfa2fc2
TT
180952020-01-08 Tom Tromey <tromey@adacore.com>
18096
18097 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18098 (ATTR_ALLOC_CHUNK): Remove.
18099
421d1616
TT
181002020-01-08 Tom Tromey <tromey@adacore.com>
18101
18102 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18103
43816ebc
TT
181042020-01-08 Tom Tromey <tromey@adacore.com>
18105
18106 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18107 (dwarf2_compute_name, open_dwo_file): Likewise.
18108 (process_enumeration_scope): Use std::vector.
18109 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18110 (partial_die_info::fixup, dwarf2_start_subfile)
18111 (guess_full_die_structure_name, dwarf2_name): Likewise.
18112 (determine_prefix): Update.
18113 (guess_full_die_structure_name): Make return type const.
18114 (partial_die_full_name): Return unique_xmalloc_ptr.
18115 (DW_FIELD_ALLOC_CHUNK): Remove.
18116
4212d509
TT
181172020-01-07 Tom Tromey <tromey@adacore.com>
18118
18119 PR build/24937:
18120 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18121
06a6207a
JT
181222020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18123
18124 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18125
153d79c4
AB
181262020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18127
18128 * stack.c (print_frame_info): Move disassemble_next_line code
18129 inside source_print block.
18130
66182876
EZ
181312020-01-06 Eli Zaretskii <eliz@gnu.org>
18132
18133 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18134 gdb/signals.h, as we are now using native signal symbols.
18135
cbfa8581
SV
181362020-01-06 Shahab Vahedi <shahab@synopsys.com>
18137
18138 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18139 overflow by an early check of content vs threshold.
aac66a4c 18140 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
18141 Likewise.
18142
3f602821
EZ
181432020-01-06 Eli Zaretskii <eliz@gnu.org>
18144
18145 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18146
a08c904d
JT
181472020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18148
18149 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18150 export table if no section contains it's RVA.
18151
89a65580
EZ
181522020-01-06 Eli Zaretskii <eliz@gnu.org>
18153
18154 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18155
8b7fcda2
HD
181562020-01-06 Hannes Domani <ssbssa@yahoo.de>
18157
18158 * source.c (print_source_lines_base): Set last_line_listed.
18159
a61b4f69
SV
181602020-01-06 Shahab Vahedi <shahab@synopsys.com>
18161
18162 * tui/tui-disasm.c: Remove trailing spaces.
18163
559e7e50
EZ
181642020-01-06 Eli Zaretskii <eliz@gnu.org>
18165 Pedro Alves <palves@redhat.com>
18166
18167 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18168 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18169 (windows_gdb_signal_to_target): New function, uses the above
18170 enumeration to convert GDB internal signal codes to equivalent
18171 Windows codes.
18172 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18173 * windows-nat.c: Include "gdb_wait.h".
18174 (get_windows_debug_event): Extract the fatal exception from the
18175 exit status and convert to the equivalent Posix signal number.
18176 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18177 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18178 * gdbsupport/gdb_wait.c: New file, implements
18179 windows_status_to_termsig.
18180 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18181 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18182
f2302a34
AB
181832020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18184
18185 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18186 show_layout.
18187
6a5206eb
LM
181882020-01-05 Luis Machado <luis.machado@linaro.org>
18189
18190 * aarch64-linux-nat.c
18191 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18192 and bfd_mach_aarch64.
18193
6ec1d75e
PW
181942020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18195
18196 * ui-file.c (stdio_file::can_emit_style_escape)
18197 (tee_file::can_emit_style_escape): Ensure style is used also on
18198 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18199 to gdb_stdout.
18200 * main.c (set_gdb_data_directory): Use file style to output the
18201 warning that the given pathname is not a directory.
18202 * top.c (show_history_filename, gdb_safe_append_history)
18203 (show_gdb_datadir): Use file style.
18204
44f81a76
HD
182052020-01-03 Hannes Domani <ssbssa@yahoo.de>
18206
18207 * solib-target.c (struct lm_info_target):
18208 Change offsets to be a unique_xmalloc_ptr.
18209 (solib_target_relocate_section_addresses): Update.
18210
25057eb0
HD
182112020-01-03 Hannes Domani <ssbssa@yahoo.de>
18212
18213 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18214
6e2118f5
BE
182152020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18216
18217 * MAINTAINERS (Write After Approval): Add myself.
18218
8133c7dc
LM
182192020-01-02 Luis Machado <luis.machado@linaro.org>
18220
18221 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18222 Cell BE architecture.
18223 * target.h (struct target_ops) <thread_architecture>: Likewise.
18224
48189bec
HD
182252020-01-01 Hannes Domani <ssbssa@yahoo.de>
18226
18227 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18228
ead1063b
HD
182292020-01-01 Hannes Domani <ssbssa@yahoo.de>
18230
18231 * MAINTAINERS (Write After Approval): Add myself.
18232
e5d78223
JB
182332020-01-01 Joel Brobecker <brobecker@adacore.com>
18234
18235 * gdbarch.sh: Update copyright year range of generated files.
18236
b811d2c2
JB
182372020-01-01 Joel Brobecker <brobecker@adacore.com>
18238
18239 Update copyright year range in all GDB files.
18240
5f4def5c
JB
182412020-01-01 Joel Brobecker <brobecker@adacore.com>
18242
18243 * copyright.py: Convert to Python 3.
18244
51fd4002
JB
182452020-01-01 Joel Brobecker <brobecker@adacore.com>
18246
18247 * copyright.py: Adapt after move of gnulib directory from gdb
18248 directory to toplevel directory.
18249
5fb651f2
JB
182502020-01-01 Joel Brobecker <brobecker@adacore.com>
18251
18252 * copyright.py (main): Exit if run from the wrong directory.
18253
5dd8bf88
JB
182542020-01-01 Joel Brobecker <brobecker@adacore.com>
18255
18256 * top.c (print_gdb_version): Change copyright year to 2020.
18257
9f71dacb 182582020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18259
9f71dacb 18260 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18261
9f71dacb 18262For older changes see ChangeLog-2019.
c906108c
SS
18263\f
18264Local Variables:
18265mode: change-log
18266left-margin: 8
18267fill-column: 74
18268version-control: never
57da7796 18269coding: utf-8
c906108c 18270End:
This page took 3.685333 seconds and 4 git commands to generate.