Handle 128-bit constants for fixed point
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-09 Tom Tromey <tromey@adacore.com>
2
3 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
4 and "denominator" to gdb_mpz. Handle block forms.
5 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
6 "denominator" to gdb_mpz.
7 (finish_fixed_point_type): Update.
8 (has_zero_over_zero_small_attribute): Update.
9
10 2020-12-09 Tom Tromey <tromey@adacore.com>
11
12 * expprint.c (op_name): Update.
13 * expression.h (enum exp_opcode): Update.
14 * std-operator.def: Add more opcodes.
15 * ada-operator.def, fortran-operator.def: Remove, moving contents
16 into std-operator.def.
17
18 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
19
20 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
21 Return {} instead of false.
22 (get_discrete_bounds): Compute high bound only if low bound is
23 valid.
24
25 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
26
27 PR 26875, PR 26901
28 * gdbtypes.c (get_discrete_low_bound): Make non-static.
29 (get_discrete_high_bound): Make non-static.
30 * gdbtypes.h (get_discrete_low_bound): New declaration.
31 (get_discrete_high_bound): New declaration.
32 * valarith.c (value_subscript): Only fetch high bound if
33 necessary.
34
35 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
36
37 * gdbtypes.c (get_discrete_bounds): Implement with
38 get_discrete_low_bound and get_discrete_high_bound.
39 (get_discrete_low_bound): New.
40 (get_discrete_high_bound): New.
41
42 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
43
44 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
45 callers.
46 * gdbtypes.c (get_discrete_bounds): Return bool.
47
48 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
49
50 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
51 (ada_value_slice): Adjust.
52 (pos_atr): Adjust.
53 * gdbtypes.c (get_discrete_bounds): Adjust.
54 (discrete_position): Return optional.
55 * gdbtypes.h (discrete_position): Return optional.
56
57 2020-12-07 Tom Tromey <tromey@adacore.com>
58
59 * maint.c (_initialize_maint_cmds): Use expression command
60 completer for "maint print type".
61
62 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
63
64 * completer.c (complete_explicit_location): Also add keywords
65 that start with '-' to the completion list.
66
67 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
68
69 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
70 keyword may be followed by any keyword.
71 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
72 'toklen' in the case for "-force-condition".
73
74 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
75
76 * main.c (catch_command_errors): Add a flag parameter; invoke
77 `bpstat_do_actions` if the flag is set.
78 (execute_cmdargs): Update a call to `catch_command_errors`.
79
80 2020-12-07 Tom de Vries <tdevries@suse.de>
81
82 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
83
84 2020-12-06 Tom Tromey <tom@tromey.com>
85
86 PR ada/26999
87 * ada-lang.c (replace_operator_with_call): Rewrite.
88
89 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
90
91 PR breakpoints/27009
92 * s390-tdep.h (op_bc): Correct BC opcode value.
93
94 2020-12-06 Joel Brobecker <brobecker@adacore.com>
95
96 * gmp-utils.h (gdb_mpz::safe_export): New private method.
97 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
98 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
99 (gdb_mpz::safe_export): New method.
100 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
101 Update function description.
102 (check_as_integer_raises_out_of_range_error): New function.
103 (gdb_mpz_as_integer_out_of_range): New function.
104 (_initialize_gmp_utils_selftests): Register
105 gdb_mpz_as_integer_out_of_range as a selftest.
106
107 2020-12-05 Joel Brobecker <brobecker@adacore.com>
108
109 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
110 TARGET_CHAR_BIT.
111 (gdb_mpz::write): Likewise.
112
113 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
114
115 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
116 number of displaced step buffers.
117
118 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
119
120 * displaced-stepping.h (struct displaced_step_buffer): Rename
121 to...
122 (struct displaced_step_buffers): ... this.
123 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
124 <struct displaced_step_buffer>: New inner class.
125 <m_buffers>: New.
126 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
127 to...
128 (displaced_step_buffers::prepare): ... this, adjust for multiple
129 buffers.
130 (displaced_step_buffer::finish): Rename to...
131 (displaced_step_buffers::finish): ... this, adjust for multiple
132 buffers.
133 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
134 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
135 adjust for multiple buffers.
136 (displaced_step_buffer::restore_in_ptid): Rename to...
137 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
138 multiple buffers.
139 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
140 for num_disp_step_buffers.
141 * linux-tdep.c (struct linux_gdbarch_data)
142 <num_disp_step_buffers>: New field.
143 (struct linux_info) <disp_step_buf>: Rename to...
144 <disp_step_bufs>: ... this, change type to
145 displaced_step_buffers.
146 (linux_displaced_step_prepare): Use
147 linux_gdbarch_data::num_disp_step_buffers to create that number
148 of buffers.
149 (linux_displaced_step_finish): Adjust.
150 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
151 (linux_displaced_step_restore_all_in_ptid): Adjust.
152 (linux_init_abi): Change supports_displaced_step parameter for
153 num_disp_step_buffers, save it in linux_gdbarch_data.
154 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
155 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
156 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
157 supports_displaced_step parameter for num_disp_step_buffers.
158 (amd64_linux_init_abi): Adjust.
159 (amd64_x32_linux_init_abi): Adjust.
160 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
161 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
162 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
163 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
164 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
165 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
166 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
167 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
168 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
169 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
170 * m68k-linux-tdep.c (m68k_linux_init_abi):
171 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
172 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
173 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
174 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
175 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
176 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
177 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
178 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
179 Change type to displaced_step_buffers.
180 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
181 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
182 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
183 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
184 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
185 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
186 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
187
188 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
189
190 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
191 obkstack.
192 (_initialize_linux_tdep): Register pre-init gdb data instead of
193 post-init.
194
195 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
196
197 * displaced-stepping.h (struct
198 displaced_step_copy_insn_closure): Adjust comments.
199 (struct displaced_step_inferior_state) <step_thread,
200 step_gdbarch, step_closure, step_original, step_copy,
201 step_saved_copy>: Remove fields.
202 (struct displaced_step_thread_state): New.
203 (struct displaced_step_buffer): New.
204 * displaced-stepping.c (displaced_step_buffer::prepare): New.
205 (write_memory_ptid): Move from infrun.c.
206 (displaced_step_instruction_executed_successfully): New,
207 factored out of displaced_step_finish.
208 (displaced_step_buffer::finish): New.
209 (displaced_step_buffer::copy_insn_closure_by_addr): New.
210 (displaced_step_buffer::restore_in_ptid): New.
211 * gdbarch.sh (displaced_step_location): Remove.
212 (displaced_step_prepare, displaced_step_finish,
213 displaced_step_copy_insn_closure_by_addr,
214 displaced_step_restore_all_in_ptid): New.
215 * gdbarch.c: Re-generate.
216 * gdbarch.h: Re-generate.
217 * gdbthread.h (class thread_info) <displaced_step_state>: New
218 field.
219 (thread_step_over_chain_remove): New declaration.
220 (thread_step_over_chain_next): New declaration.
221 (thread_step_over_chain_length): New declaration.
222 * thread.c (thread_step_over_chain_remove): Make non-static.
223 (thread_step_over_chain_next): New.
224 (global_thread_step_over_chain_next): Use
225 thread_step_over_chain_next.
226 (thread_step_over_chain_length): New.
227 (global_thread_step_over_chain_enqueue): Add debug print.
228 (global_thread_step_over_chain_remove): Add debug print.
229 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
230 Remove.
231 * infrun.c (get_displaced_stepping_state): New.
232 (displaced_step_in_progress_any_inferior): Remove.
233 (displaced_step_in_progress_thread): Adjust.
234 (displaced_step_in_progress): Adjust.
235 (displaced_step_in_progress_any_thread): New.
236 (get_displaced_step_copy_insn_closure_by_addr): Remove.
237 (gdbarch_supports_displaced_stepping): Use
238 gdbarch_displaced_step_prepare_p.
239 (displaced_step_reset): Change parameter from inferior to
240 thread.
241 (displaced_step_prepare_throw): Implement using
242 gdbarch_displaced_step_prepare.
243 (write_memory_ptid): Move to displaced-step.c.
244 (displaced_step_restore): Remove.
245 (displaced_step_finish): Implement using
246 gdbarch_displaced_step_finish.
247 (start_step_over): Allow starting more than one displaced step.
248 (prepare_for_detach): Handle possibly multiple threads doing
249 displaced steps.
250 (handle_inferior_event): Handle possibility that fork event
251 happens while another thread displaced steps.
252 * linux-tdep.h (linux_displaced_step_prepare): New.
253 (linux_displaced_step_finish): New.
254 (linux_displaced_step_copy_insn_closure_by_addr): New.
255 (linux_displaced_step_restore_all_in_ptid): New.
256 (linux_init_abi): Add supports_displaced_step parameter.
257 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
258 (linux_displaced_step_prepare): New.
259 (linux_displaced_step_finish): New.
260 (linux_displaced_step_copy_insn_closure_by_addr): New.
261 (linux_displaced_step_restore_all_in_ptid): New.
262 (linux_init_abi): Add supports_displaced_step parameter,
263 register displaced step methods if true.
264 (_initialize_linux_tdep): Register inferior_execd observer.
265 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
266 supports_displaced_step parameter, adjust call to
267 linux_init_abi. Remove call to
268 set_gdbarch_displaced_step_location.
269 (amd64_linux_init_abi): Adjust call to
270 amd64_linux_init_abi_common.
271 (amd64_x32_linux_init_abi): Likewise.
272 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
273 linux_init_abi. Remove call to
274 set_gdbarch_displaced_step_location.
275 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
276 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
277 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
278 linux_init_abi.
279 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
280 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
281 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
282 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
283 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
284 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
285 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
286 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
287 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
288 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
289 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
290 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
291 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
292 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
293 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
294 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
295 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
296 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
297 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
298 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
299 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
300 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
301 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
302 linux_init_abi. Remove call to
303 set_gdbarch_displaced_step_location.
304 * arm-tdep.c (arm_pc_is_thumb): Call
305 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
306 get_displaced_step_copy_insn_closure_by_addr.
307 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
308 clear gdbarch methods.
309 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
310 (get_ppc_per_inferior): New function.
311 (ppc_displaced_step_prepare): New function.
312 (ppc_displaced_step_finish): New function.
313 (ppc_displaced_step_restore_all_in_ptid): New function.
314 (rs6000_gdbarch_init): Register new gdbarch methods.
315 * s390-tdep.c (s390_gdbarch_init): Don't call
316 set_gdbarch_displaced_step_location, set new gdbarch methods.
317
318 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
319
320 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
321 * aarch64-tdep.h: Include displaced-stepping.h.
322 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
323 Move here.
324 (displaced_step_copy_insn_closure_up): Move here.
325 (struct buf_displaced_step_copy_insn_closure): Move here.
326 (struct displaced_step_inferior_state): Move here.
327 (debug_displaced): Move here.
328 (displaced_debug_printf_1): Move here.
329 (displaced_debug_printf): Move here.
330 * displaced-stepping.c: New file.
331 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
332 * gdbarch.h: Re-generate.
333 * inferior.h: Include displaced-stepping.h.
334 * infrun.h (debug_displaced): Move to displaced-stepping.h.
335 (displaced_debug_printf_1): Likewise.
336 (displaced_debug_printf): Likewise.
337 (struct displaced_step_copy_insn_closure): Likewise.
338 (displaced_step_copy_insn_closure_up): Likewise.
339 (struct buf_displaced_step_copy_insn_closure): Likewise.
340 (struct displaced_step_inferior_state): Likewise.
341 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
342 (displaced_debug_printf_1): Likewise.
343 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
344 Likewise.
345 (_initialize_infrun): Don't register "set/show debug displaced".
346
347 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
348
349 * linux-tdep.c (get_linux_inferior_data): Add inferior
350 parameter.
351 (linux_vsyscall_range): Pass current inferior.
352
353 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
354
355 * infrun.c (displaced_step_prepare_throw): Change return type to
356 displaced_step_prepare_status.
357 (displaced_step_prepare): Likewise.
358 (displaced_step_finish): Change return type to
359 displaced_step_finish_status.
360 (resume_1): Adjust.
361 (stop_all_threads): Adjust.
362 * displaced-stepping.h: New file.
363
364 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
365
366 * infrun.c (displaced_step_fixup): Rename to...
367 (displaced_step_finish): ... this, update all callers.
368
369 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
370
371 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
372 (get_displaced_step_copy_insn_closure_by_addr): ... this.
373 Update all users.
374 (displaced_step_closure): Rename to...
375 (displaced_step_copy_insn_closure): ... this. Update all users.
376 (displaced_step_closure_up): Rename to...
377 (displaced_step_copy_insn_closure_up). ... this. Update all
378 users.
379 (buf_displaced_step_closure): Rename to...
380 (buf_displaced_step_copy_insn_closure): ... this. Update all
381 users.
382 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
383 (get_displaced_step_copy_insn_closure_by_addr): ... this.
384 Update all users.
385 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
386 (aarch64_displaced_step_copy_insn_closure): ... this. Update
387 all users.
388 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
389 (amd64_displaced_step_copy_insn_closure): ... this. Update all
390 users.
391 * arm-tdep.h (arm_displaced_step_closure): Rename to...
392 (arm_displaced_step_copy_insn_closure): ... this. Update all
393 users.
394 * i386-tdep.h (i386_displaced_step_closure): Rename to...
395 (i386_displaced_step_copy_insn_closure): ... this. Update all
396 users.
397 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
398 (ppc_displaced_step_copy_insn_closure): ... this. Update all
399 users.
400 * s390-tdep.c (s390_displaced_step_closure): Rename to...
401 (s390_displaced_step_copy_insn_closure): ... this. Update all
402 users.
403 * gdbarch.h: Re-generate.
404 * gdbarch.c: Re-generate.
405
406 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
407
408 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
409 (global_thread_step_over_chain_enqueue): ... this. Update all
410 users.
411 (thread_step_over_chain_remove): Rename to...
412 (global_thread_step_over_chain_remove): ... this. Update all
413 users.
414 (thread_step_over_chain_next): Rename to...
415 (global_thread_step_over_chain_next): ... this. Update all
416 users.
417 * infrun.h (step_over_queue_head): Rename to...
418 (global_thread_step_over_chain_head): ... this. Update all
419 users.
420 * infrun.c (step_over_queue_head): Rename to...
421 (global_thread_step_over_chain_head): ... this. Update all
422 users.
423 * thread.c (step_over_chain_remove): Rename to...
424 (thread_step_over_chain_remove): ... this. Update all users.
425 (thread_step_over_chain_next): Rename to...
426 (global_thread_step_over_chain_next): ... this. Update all
427 users.
428 (thread_step_over_chain_enqueue): Rename to...
429 (global_thread_step_over_chain_enqueue): ... this. Update all
430 users.
431 (thread_step_over_chain_remove): Rename to...
432 (global_thread_step_over_chain_remove): ... this. Update all
433 users.
434
435 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
436
437 * infrun.c (get_displaced_stepping_state): Remove, change
438 callers to access the field directly.
439
440 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
441
442 * infrun.c (handle_inferior_event): Restore displaced step
443 buffer bytes in child process when handling fork, even if fork
444 happened in another thread than the displaced-stepping one.
445
446 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
447
448 * infrun.c (infrun_inferior_execd): New function.
449 (_initialize_infrun): Attach inferior_execd observer.
450
451 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
452
453 * observable.h (inferior_execd): Declare new observable.
454 * observable.c (inferior_execd): Declare new observable.
455 * infrun.c (follow_exec): Notify inferior_execd observer.
456 * jit.c (jit_inferior_created_hook): Make static.
457 (_initialize_jit): Register inferior_execd observer.
458 * jit.h (jit_inferior_created_hook): Remove declaration.
459 * solib.c (_initialize_solib): Register inferior_execd observer.
460
461 2020-12-04 Tom de Vries <tdevries@suse.de>
462
463 PR gdb/27003
464 * completer.c (completion_tracker::build_completion_result): Don't
465 access match_list[0][-1].
466
467 2020-12-04 Tom Tromey <tromey@adacore.com>
468
469 * linespec.c (struct linespec_token): Rename; remove typedef.
470 * guile/scm-block.c (struct block_smob): Remove typedef.
471 (struct block_syms_progress_smob): Likewise.
472 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
473 * guile/scm-symtab.c (symtab_smob): Remove typedef.
474 (struct sal_smob): Remove typedef.
475 * guile/scm-param.c (struct param_smob): Remove typedef.
476 * guile/scm-progspace.c (struct pspace_smob): Rename.
477 * guile/scm-objfile.c (struct objfile_smob): Rename.
478 * guile/scm-iterator.c (struct iterator_smob): Rename.
479 * guile/scm-frame.c (struct frame_smob): Rename.
480 * guile/scm-arch.c (struct arch_smob): Rename.
481 * guile/scm-type.c (struct field_smob): Remove typedef.
482 (struct type_smob): Rename.
483 * guile/scm-cmd.c (struct command_smob): Remove typedef.
484 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
485 * guile/scm-value.c (struct value_smob): Remove typedef.
486 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
487 * guile/guile-internal.h (struct scheme_variable)
488 (struct scheme_function, struct scheme_integer_constant)
489 (struct gdb_smob, struct chained_gdb_smob)
490 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
491 (objfile_smob, pspace_smob, type_smob): Remove typedef.
492 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
493 (struct pretty_printer_worker_smob): Remove typedef.
494 * guile/scm-exception.c (struct exception_smob): Remove typedef.
495 * python/py-block.c (struct block_object): Remove typedef.
496 (block_syms_iterator_object): Update.
497 (set_block): Update.
498 (block_syms_iterator_object): Remove typedef.
499 * python/py-inferior.c (struct membuf_object): Remove typedef.
500 * python/py-symtab.c (struct symtab_object): Remove typedef.
501 (set_symtab): Update.
502 (sal_object): Remove typedef.
503 (set_sal): Update.
504 * python/py-frame.c (frame_object): Remove typedef.
505 * python/py-record-btrace.c (struct btpy_list_object): Remove
506 typedef.
507 * python/py-arch.c (struct arch_object): Remove typedef.
508 * python/py-linetable.c (struct linetable_entry_object)
509 (linetable_object, struct ltpy_iterator_object): Remove typedef.
510 * python/py-events.h (eventregistry_object): Remove typedef.
511 (struct events_object): Remove typedef.
512 * python/python-internal.h (gdbpy_breakpoint_object): Remove
513 typedef.
514 (thread_object): Remove typedef.
515 * python/py-progspace.c (pspace_object): Remove typedef.
516 * python/py-value.c (struct value_object): Remove typedef.
517 * python/py-record.h (recpy_record_object): Remove typedef.
518 (struct recpy_element_object): Remove typedef.
519 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
520 * python/py-objfile.c (objfile_object): Remove typedef.
521 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
522 * python/py-type.c (type_object): Remove typedef.
523 (typy_iterator_object): Update.
524 (set_type): Update.
525 (field_object): Remove typedef.
526 (typy_iterator_object): Remove typedef.
527 * python/py-registers.c (register_descriptor_iterator_object):
528 Remove typedef.
529 (struct register_descriptor_object)
530 (struct reggroup_iterator_object, struct reggroup_object): Remove
531 typedef.
532 * python/py-record.c (recpy_gap_object): Remove typedef.
533 * python/py-symbol.c (symbol_object): Remove typedef.
534 (set_symbol): Update.
535 * python/py-event.h (event_object): Remove typedef.
536 * python/py-param.c (parmpy_object): Remove typedef.
537 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
538 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
539 (unwind_info_object, struct cached_frame_info): Likewise.
540
541 2020-12-04 Tom Tromey <tromey@adacore.com>
542
543 * value.c (value_internal_function_name): Make return type const.
544 * value.h (value_internal_function_name): Make return type const.
545
546 2020-12-04 Luis Machado <luis.machado@linaro.org>
547
548 * aarch64-tdep.c (submask, bit, bits): Remove.
549 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
550 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
551 (aarch64_decode_cb, aarch64_decode_tb)
552 (aarch64_decode_ldr_literal): Use sbits to extract a signed
553 immediate.
554 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
555
556 2020-12-04 Tom de Vries <tdevries@suse.de>
557
558 PR tdep/27007
559 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
560
561 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
562
563 PR gdb/26876
564 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
565 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
566
567 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
568
569 * arch/riscv.c: Include 'rv32e-xregs.c'.
570 (riscv_create_target_description): Update to handle rv32e.
571 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
572 member variable.
573 <operator==>: Update to account for new field.
574 <hash>: Likewise.
575 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
576 * features/riscv/rv32e-xregs.c: Generated.
577 * features/riscv/rv32e-xregs.xml: New file.
578 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
579 file.
580 (riscv_debug_infcall): Likewise.
581 (riscv_debug_unwinder): Likewise.
582 (riscv_debug_gdbarch): Likewise.
583 (enum riscv_register_required_status): Delete.
584 (struct riscv_register_feature): Add constructor, delete default
585 constructor, copy, and assign constructors.
586 (struct riscv_register_feature::register_info) <required>: Delete.
587 <check>: Update comment and arguments.
588 (struct riscv_register_feature) <name>: Change to member function.
589 <prefer_first_name>: Delete.
590 <tdesc_feature>: New member function.
591 <registers>: Rename to...
592 <m_registers>: ...this.
593 <m_feature_name>: New member variable.
594 (riscv_register_feature::register_info::check): Update arguments.
595 (riscv_xreg_feature): Rewrite as class, create a single static
596 instance of the class.
597 (riscv_freg_feature): Likewise.
598 (riscv_virtual_feature): Likewise.
599 (riscv_csr_feature): Likewise.
600 (riscv_create_csr_aliases): Has become a member function inside
601 riscv_csr_feature class.
602 (riscv_abi_embedded): New function definition.
603 (riscv_register_name): Adjust to use new feature objects.
604 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
605 and adjust available argument registers.
606 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
607 (riscv_check_tdesc_feature): Delete.
608 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
609 (riscv_gdbarch_init): Delete target description checking code, and
610 instead call to the new feature objects to perform the checks.
611 Reorder handling of no abi information case, allows small code
612 simplification.
613 (_initialize_riscv_tdep): Remove call, this is now done in the
614 riscv_csr_feature constructor.
615 * riscv-tdep.h (riscv_abi_embedded): Declare.
616
617 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
618
619 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
620 DECLARE_CSR_ALIAS.
621
622 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
623
624 * riscv-tdep.c (riscv_is_unknown_csr): New function,
625 implementation moved from riscv_register_reggroup_p.
626 (riscv_register_reggroup_p): Update group handling for unknown
627 CSRs.
628
629 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
630
631 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
632 (dwarf2_get_dwz_file): Convert 'filename' to a
633 std::string. Use dwz_search_other_debugdirs to search for DWZ
634 files in the debug-file-directories provided by the user as well.
635
636 2020-12-01 Tom Tromey <tom@tromey.com>
637
638 * parse.c (expr_builder::expr_builder): Initialize expout.
639 (expr_builder::release): Use expression::resize.
640 (expression::expression, expression::~expression)
641 (expression::resize): New methods.
642 (write_exp_elt): Use expression::resize.
643 (prefixify_expression): Update.
644 (increase_expout_size): Use expression::resize.
645 * expression.h (struct expression): Add constructor, destructor.
646 <resize>: New method.
647 (expression_up): Change type.
648
649 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
650 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
651 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
652 set region.
653
654 2020-11-30 Tom de Vries <tdevries@suse.de>
655
656 PR symtab/26905
657 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
658 is_reference parameter.
659 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
660
661 2020-11-30 Tom Tromey <tom@tromey.com>
662
663 * rust-lang.c (rust_op_name): Remove.
664 (exp_descriptor_rust): Update.
665 * parser-defs.h (op_name_standard): Don't declare.
666 (struct exp_descriptor) <op_name>: Remove.
667 * parse.c (exp_descriptor_standard): Update.
668 * opencl-lang.c (exp_descriptor_opencl): Update.
669 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
670 * f-lang.c (op_name_f): Remove.
671 (f_language::exp_descriptor_tab): Update.
672 * expression.h (op_name): Update.
673 * expprint.c (op_name): Rewrite.
674 (op_name_standard): Remove.
675 (dump_raw_expression, dump_subexp): Update.
676 * c-lang.c (exp_descriptor_c): Update.
677 * ax-gdb.c (gen_expr): Update.
678 * ada-lang.c (ada_op_name): Remove.
679 (ada_exp_descriptor): Update.
680
681 2020-11-30 Tom Tromey <tom@tromey.com>
682
683 * eval.c (init_array_element): Remove.
684 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
685
686 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
687
688 PR tui/26973
689 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
690 static locator win info.
691
692 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
693
694 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
695 program.
696
697 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
698
699 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
700 is always initialized.
701
702 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
703 * MAINTAINERS (Write After Approval): Add myself.
704
705 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
706
707 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
708 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
709
710 2020-11-25 Tom Tromey <tom@tromey.com>
711
712 * eval.c (evaluate_subexp_standard): Remove unnecessary
713 variables.
714
715 2020-11-25 Tom Tromey <tom@tromey.com>
716
717 * d-lang.c: Include parser-defs.h.
718 * rust-lang.c: Include parser-defs.h.
719 * c-lang.h: Do not include parser-defs.h.
720
721 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
722
723 * regcache.h (struct cached_reg): Remove typedef.
724
725 2020-11-24 Joel Brobecker <brobecker@adacore.com>
726
727 * README: Fix the URL of the MPFR library.
728
729 2020-11-24 Joel Brobecker <brobecker@adacore.com>
730
731 * README: Document the --with-libgmp-prefix configure option.
732
733 2020-11-24 Joel Brobecker <brobecker@adacore.com>
734
735 * NEWS: Add entry documenting support for DWARF-based fixed
736 point types.
737
738 2020-11-24 Joel Brobecker <brobecker@adacore.com>
739
740 * NEWS: Document that building GDB now requires GMP.
741
742 2020-11-24 Joel Brobecker <brobecker@adacore.com>
743
744 * typeprint.c (print_type_scalar): Add handling of
745 TYPE_CODE_FIXED_POINT.
746
747 2020-11-24 Joel Brobecker <brobecker@adacore.com>
748
749 * valarith.c (fixed_point_binop): Replace the
750 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
751 users accordingly.
752
753 2020-11-24 Joel Brobecker <brobecker@adacore.com>
754
755 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
756 replacing fixed_point_scaling_factor. All callers updated
757 throughout this project.
758 (fixed_point_scaling_factor): Delete declaration.
759 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
760 fixed_point_scaling_factor. Adjust implementation accordingly.
761
762 2020-11-24 Joel Brobecker <brobecker@adacore.com>
763
764 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
765 replacing the fixed_point_type_base_type function. All callers
766 updated throughout this project.
767 (fixed_point_type_base_type): Remove declaration.
768 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
769 fixed_point_type_base_type. Adjust implementation accordingly.
770
771 2020-11-24 Joel Brobecker <brobecker@adacore.com>
772
773 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
774 New methods.
775 (INIT_FIXED_POINT_SPECIFIC): Adjust.
776 (TYPE_FIXED_POINT_INFO): Delete macro.
777 (allocate_fixed_point_type_info): Change return type to void.
778 * gdbtypes.c (copy_type_recursive): Replace the use of
779 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
780 (fixed_point_scaling_factor): Likewise.
781 (allocate_fixed_point_type_info): Change return type to void.
782 Adjust implementation accordingly.
783 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
784 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
785
786 2020-11-24 Joel Brobecker <brobecker@adacore.com>
787
788 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
789 into one single gdb::array_view parameter.
790 (gdb_mpz::write): Likewise.
791 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
792 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
793 into one single gdb::array_view parameter.
794 Adjust implementation accordingly.
795 (gdb_mpz::write): Likewise.
796 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
797 * unittests/gmp-utils-selftests.c: Adapt following changes above.
798 * valarith.c, valops.c, valprint.c, value.c: Likewise.
799
800 2020-11-24 Joel Brobecker <brobecker@adacore.com>
801
802 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
803 Change return type to std::string. Update all callers.
804 * gmp-utils.c (gmp_string_printf): Likewise.
805
806 2020-11-24 Joel Brobecker <brobecker@adacore.com>
807
808 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
809 instead of mpq_set_ui to initialize our GMP rational.
810
811 2020-11-23 Tom de Vries <tdevries@suse.de>
812
813 * debuginfod-support.c (debuginfod_source_query)
814 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
815
816 2020-11-21 Tom Tromey <tom@tromey.com>
817
818 * breakpoint.c (watchpoint_exp_is_const): Return bool.
819
820 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
821
822 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
823 Pass 2.0 to pow.
824 (gdb_mpz_write_all_from_small): Likewise.
825
826 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
827
828 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
829 of abs.
830
831 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
832
833 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
834 ctf_arc_open_by_name.
835
836 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
837
838 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
839 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
840
841 2020-11-20 Pedro Alves <pedro@palves.net>
842
843 * language.c (language_arch_info::lookup_primitive_type): Use
844 gdb::function_view instead of gdb::function.
845 (template language_lookup_primitive_type): Rename to ...
846 (language_lookup_primitive_type_1): ... this, and make static.
847 (language_lookup_primitive_type(const struct language_defn *,
848 struct gdbarch *, const char *): Make non-template.
849 (language_lookup_primitive_type(const struct language_defn *,
850 struct gdbarch *, std::function<bool (struct type *)>): Make
851 non-template and use gdb::function_view.
852 * language.h (language_arch_info::lookup_primitive_type): Use
853 gdb::function_view instead of std::function.
854 (language_lookup_primitive_type): No longer template.
855 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
856 lambda instead of a std::function.
857
858 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
859
860 PR tdep/26916
861 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
862 and STOCFH.
863
864 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
865
866 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
867
868 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
869
870 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
871 in `loop_cb` parameter.
872 * gdbarch.c: Re-generate.
873 * gdbarch.h: Re-generate.
874 * arch-utils.c (default_read_core_file_mappings): Remove `other`
875 parameter.
876 * arch-utils.h (default_read_core_file_mappings): Likewise.
877 * corelow.c (core_target::build_file_mappings): Likewise.
878 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
879 (linux_core_info_proc_mappings): Likewise.
880
881 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
882
883 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
884 * NEWS: Mention new options.
885 * f-array-walker.h: New file.
886 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
887 (repack_array_slices): New static global.
888 (show_repack_array_slices): New function.
889 (fortran_array_slicing_debug): New static global.
890 (show_fortran_array_slicing_debug): New function.
891 (value_f90_subarray): Delete.
892 (skip_undetermined_arglist): Delete.
893 (class fortran_array_repacker_base_impl): New class.
894 (class fortran_lazy_array_repacker_impl): New class.
895 (class fortran_array_repacker_impl): New class.
896 (fortran_value_subarray): Complete rewrite.
897 (set_fortran_list): New static global.
898 (show_fortran_list): Likewise.
899 (_initialize_f_language): Register new commands.
900 (fortran_adjust_dynamic_array_base_address_hack): New function.
901 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
902 Declare.
903 * f-valprint.c: Include 'f-array-walker.h'.
904 (class fortran_array_printer_impl): New class.
905 (f77_print_array_1): Delete.
906 (f77_print_array): Delete.
907 (fortran_print_array): New.
908 (f_value_print_inner): Update to call fortran_print_array.
909 * gdbtypes.c: Include 'f-lang.h'.
910 (resolve_dynamic_type_internal): Call
911 fortran_adjust_dynamic_array_base_address_hack.
912
913 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
914
915 * breakpoint.c (struct watch_options): New struct.
916 (watch_option_defs): New static global.
917 (make_watch_options_def_group): New function.
918 (watch_maybe_just_location): Convert option parsing.
919 (watch_command_completer): New function.
920 (_initialize_breakpoint): Build help text using options mechanism.
921
922 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
923
924 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
925 (watch_command_1): Update parameter types. Convert locals to
926 bool.
927 (watch_command_wrapper): Change parameter type.
928 (watch_maybe_just_location): Change locals to bool.
929 (rwatch_command_wrapper): Update parameter type.
930 (awatch_command_wrapper): Update parameter type.
931 * breakpoint.h (watch_command_wrapper): Change parameter type.
932 (rwatch_command_wrapper): Update parameter type.
933 (awatch_command_wrapper): Update parameter type.
934 * eval.c (fetch_subexp_value): Change parameter type.
935 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
936 'false' not '0'.
937 * value.h (fetch_subexp_value): Change parameter type in
938 declaration.
939
940 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
941
942 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
943 skip_spaces.
944
945 2020-11-18 Keith Seitz <keiths@redhat.com>
946
947 * linux-tdep.c (dump_note_entry_p): Return true instead of
948 checking `filename'.
949
950 2020-11-18 Tom de Vries <tdevries@suse.de>
951
952 * debuginfod-support.c (debuginfod_source_query)
953 (debuginfod_debuginfo_query): Also do early exit if
954 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
955
956 2020-11-18 Tom de Vries <tdevries@suse.de>
957
958 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
959 warning.
960
961 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
962
963 * gdbtypes.h (get_array_bounds): Return bool, adjust some
964 callers. Move doc here.
965 * gdbtypes.c (get_array_bounds): Return bool
966
967 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
968
969 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
970 assert.
971 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
972 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
973 case to the default.
974
975 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
976
977 * printcmd.c: Include 'safe-ctype.c'.
978 (skip_over_slash_fmt): New function.
979 (print_command_completer): Call skip_over_slash_fmt.
980 (display_and_x_command_completer): New function.
981 (_initialize_printcmd): Add command completion for 'x' and
982 'display'.
983
984 2020-11-16 Pedro Alves <pedro@palves.net>
985
986 * frame.c (get_prev_frame): Move get_frame_id call from here ...
987 (get_prev_frame_always_1): ... to here.
988 * inline-frame.c (inline_frame_this_id): Mention
989 get_prev_frame_always_1 in comment.
990
991 2020-11-15 Joel Brobecker <brobecker@adacore.com>
992
993 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
994 handling.
995 (value_less): Add fixed-point handling.
996
997 2020-11-15 Joel Brobecker <brobecker@adacore.com>
998
999 * eval.c (binop_promote): Add fixed-point type handling.
1000 * valarith.c (fixed_point_binop): New function.
1001 (scalar_binop): Add fixed-point type handling.
1002 (value_neg): Add fixed-point type handling.
1003 * valops.c (value_cast_to_fixed_point): New function.
1004 (value_cast): Add fixed-point type handling.
1005
1006 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1007
1008 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1009 range types.
1010 * c-typeprint.c (c_type_print_varspec_prefix)
1011 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1012 TYPE_CODE_FIXED_POINT handling.
1013 * p-typeprint.c (pascal_type_print_varspec_prefix)
1014 (pascal_type_print_varspec_suffix): Likewise.
1015 * typeprint.c (print_type_fixed_point): New function.
1016 * typeprint.h (print_type_fixed_point): Add declaration.
1017
1018 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1019
1020 * printcmd.c (print_scalar_formatted): Add fixed-point type
1021 handling when options->format is set.
1022
1023 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1024
1025 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1026 * dwarf2/read.c (get_dwarf2_rational_constant)
1027 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1028 (has_zero_over_zero_small_attribute): New functions.
1029 read_base_type, set_die_type): Add fixed-point type handling.
1030 * gdb-gdb.py.in: Add fixed-point type handling.
1031 * gdbtypes.c: #include "gmp-utils.h".
1032 (create_range_type, set_type_code): Add fixed-point type handling.
1033 (init_fixed_point_type): New function.
1034 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1035 (print_fixed_point_type_info): New function.
1036 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1037 handling.
1038 (fixed_point_type_storage): New typedef.
1039 (fixed_point_objfile_key): New static global.
1040 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1041 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1042 functions.
1043 * gdbtypes.h: #include "gmp-utils.h".
1044 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1045 (union type_specific) <fixed_point_info>: New field.
1046 (struct fixed_point_type_info): New struct.
1047 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1048 (init_fixed_point_type, is_fixed_point_type)
1049 (fixed_point_type_base_type, fixed_point_scaling_factor)
1050 (allocate_fixed_point_type_info): Add declarations.
1051 * valprint.c (generic_val_print_fixed_point): New function.
1052 (generic_value_print): Add fixed-point type handling.
1053 * value.c (value_as_address, unpack_long): Add fixed-point type
1054 handling.
1055
1056 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1057
1058 * utils.h (uinteger_pow): Add declaration.
1059 * utils.c (uinteger_pow): Moved here (without changes)...
1060 * valarith.c (uinteger_pow): ... from here.
1061
1062 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1063
1064 * gmp-utils.h, gmp-utils.c: New file.
1065 * unittests/gmp-utils-selftests.c: New file.
1066 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1067 unittests/gmp-utils-selftests.c.
1068 (COMMON_SFILES) Add gmp-utils.c.
1069 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1070
1071 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1072
1073 * configure.ac: Generate an error if a usable GMP library
1074 could not be found.
1075 * configure: Regenerate.
1076
1077 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1078
1079 * configure.ac: Add support for --with-libgmp-prefix.
1080 * Makefile.in (LIBGMP): New variable.
1081 (CLIBS): Include $(LIBGMP).
1082 * configure, config.in: Regenerate
1083
1084 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1085
1086 PR cli/26879
1087 * f-exp.y (COMPLETE): New token.
1088 (exp): Two new rules for tab-completion.
1089 (saw_name_at_eof): New static global.
1090 (last_was_structop): Likewise.
1091 (yylex): Set new variables, and return COMPLETE token at the end
1092 of the input stream in some cases.
1093
1094 2020-11-14 Tom Tromey <tom@tromey.com>
1095
1096 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1097
1098 2020-11-14 Tom Tromey <tom@tromey.com>
1099
1100 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1101
1102 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1103
1104 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1105
1106 2020-11-13 Tom Tromey <tom@tromey.com>
1107
1108 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1109 (convert_escape, parse_one_string): Constify.
1110
1111 2020-11-13 Keith Seitz <keiths@redhat.com>
1112
1113 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1114 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1115 outside of ELF segments" warning for debugin
1116
1117 2020-11-13 Keith Seitz <keiths@redhat.com>
1118
1119 PR gdb/23034
1120 * elfread.c (elf_symfile_segments): Output a BFD file name
1121 for the "Loadable section ... outside of ELF segments" warning.
1122
1123 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1124
1125 PR gdb/26835
1126 * arm-tdep.c (class arm_instruction_reader): New.
1127 (target_arm_instruction_reader): New.
1128 (arm_analyze_prologue): Add instruction reader parameter and use
1129 it. Use arm_expand_immediate.
1130 (class target_arm_instruction_reader): Adjust.
1131 (arm_skip_prologue): Adjust.
1132 (arm_expand_immediate): New.
1133 (arm_scan_prologue): Adjust.
1134 (arm_analyze_prologue_test): New.
1135 (class test_arm_instruction_reader): New.
1136
1137 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1138
1139 * f-lang.c (fortran_argument_convert): Add declaration. Add
1140 header comment, taken from f-lang.h. Make static.
1141 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1142 (fortran_argument_convert): Delete declaration.
1143
1144 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1145
1146 * ada-exp.y (find_primitive_type): Make parameter const.
1147 * ada-lang.c (enum ada_primitive_types): Delete.
1148 (ada_language::language_arch_info): Update.
1149 * c-lang.c (enum c_primitive_types): Delete.
1150 (c_language_arch_info): Update.
1151 (enum cplus_primitive_types): Delete.
1152 (cplus_language::language_arch_info): Update.
1153 * d-lang.c (enum d_primitive_types): Delete.
1154 (d_language::language_arch_info): Update.
1155 * f-lang.c (enum f_primitive_types): Delete.
1156 (f_language::language_arch_info): Update.
1157 * go-lang.c (enum go_primitive_types): Delete.
1158 (go_language::language_arch_info): Update.
1159 * language.c (auto_or_unknown_language::language_arch_info):
1160 Update.
1161 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1162 (language_string_char_type): Add header comment, call function in
1163 language_arch_info.
1164 (language_bool_type): Likewise
1165 (language_arch_info::bool_type): Define.
1166 (language_lookup_primitive_type_1): Delete.
1167 (language_lookup_primitive_type): Rewrite as a templated function
1168 to call function in language_arch_info, then instantiate twice.
1169 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1170 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1171 (language_arch_info::lookup_primitive_type): Define twice with
1172 different signatures.
1173 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1174 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1175 member function in language_arch_info.
1176 * language.h (language_arch_info): Complete rewrite.
1177 (language_lookup_primitive_type): Make templated.
1178 * m2-lang.c (enum m2_primitive_types): Delete.
1179 (m2_language::language_arch_info): Update.
1180 * opencl-lang.c (OCL_P_TYPE): Delete.
1181 (enum opencl_primitive_types): Delete.
1182 (opencl_type_data): Delete.
1183 (builtin_opencl_type): Delete.
1184 (lookup_opencl_vector_type): Update.
1185 (opencl_language::language_arch_info): Update, lots of content
1186 moved from...
1187 (build_opencl_types): ...here. This function is now deleted.
1188 (_initialize_opencl_language): Delete.
1189 * p-lang.c (enum pascal_primitive_types): Delete.
1190 (pascal_language::language_arch_info): Update.
1191 * rust-lang.c (enum rust_primitive_types): Delete.
1192 (rust_language::language_arch_info): Update.
1193
1194 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1195
1196 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1197 dwarf2_queue_guard.
1198
1199 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1200
1201 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1202 comment.
1203
1204 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1205
1206 * dwarf2/read.c (dwarf_read_debug_printf,
1207 dwarf_read_debug_printf_v): New macros, use throughout the file.
1208
1209 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1210
1211 PR tdep/27015
1212 * arc-linux-tdep.c (collect_register): Populate "eret" by
1213 "pc" value from the regcache when asked for "pc" value.
1214
1215 2020-11-12 Tom Tromey <tom@tromey.com>
1216
1217 PR rust/26799:
1218 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1219 exist.
1220
1221 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 * features/Makefile (XMLTOC): Add rx.xml.
1224 (FEATURE_XMLFILES): Remove rx.xml.
1225 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1226 * features/rx.c: Regenerate.
1227 * features/rx.xml: Wrap in `target` tags, and reindent.
1228 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1229 structure.
1230 (maint_print_c_tdesc_opt_def): New typedef.
1231 (maint_print_c_tdesc_opt_defs): New static global.
1232 (make_maint_print_c_tdesc_options_def_group): New function.
1233 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1234 print single feature C file for target descriptions containing a
1235 single feature.
1236 (maint_print_c_tdesc_cmd_completer): New function.
1237 (_initialize_target_descriptions): Update call to register command
1238 completer, and include command line flag in help text.
1239
1240 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1241
1242 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1243 numbers.
1244 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1245 enum values.
1246
1247 2020-11-10 Tom Tromey <tom@tromey.com>
1248
1249 * value.h (internalvar_name): Update.
1250 * value.c (internalvar_name): Make return type const.
1251
1252 2020-11-10 Tom Tromey <tom@tromey.com>
1253
1254 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1255 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1256 const.
1257
1258 2020-11-10 Tom Tromey <tom@tromey.com>
1259
1260 * objc-lang.h (value_nsstring): Update.
1261 * objc-lang.c (value_nsstring): Make "ptr" const.
1262
1263 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * expprint.c (print_subexp_funcall): Increment expression position
1266 after reading argument count.
1267 * f-lang.c (print_subexp_f): Skip over opcode before calling
1268 common function.
1269 (dump_subexp_body_f): Likewise.
1270
1271 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1272
1273 PR python/26832
1274 * configure: Regenerate.
1275 * configure.ac: Check for python modules ctypes instead of
1276 itertools.
1277
1278 2020-11-06 Pedro Alves <pedro@palves.net>
1279
1280 * macroexp.c (struct macro_buffer): Split in two classes. Add
1281 uses adjusted.
1282 (struct shared_macro_buffer): New, factored out from struct
1283 macro_buffer.
1284 (struct growable_macro_buffer): New, factored out from struct
1285 macro_buffer.
1286 (set_token, get_comment, get_identifier, get_pp_number)
1287 (get_character_constant, get_string_literal, get_punctuator)
1288 (get_next_token_for_substitution): Constify parameters.
1289 (substitute_args): Constify locals.
1290
1291 2020-11-05 Tom Tromey <tom@tromey.com>
1292
1293 * dwarf2/read.c (read_cutu_die_from_dwo)
1294 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1295 (build_type_psymtabs_1): Update.
1296 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1297 parameter.
1298 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1299 Don't read section. Add assert.
1300
1301 2020-11-04 Tom Tromey <tromey@adacore.com>
1302
1303 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1304
1305 2020-11-04 Tom Tromey <tromey@adacore.com>
1306
1307 * ada-typeprint.c (ada_print_type): Handle __T types.
1308
1309 2020-11-04 Tom Tromey <tromey@adacore.com>
1310
1311 * dwarf2/read.c (add_partial_symbol, process_die):
1312 Handle DW_TAG_array_type.
1313 (is_type_tag_for_partial): Add "lang" parameter.
1314 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1315
1316 2020-11-04 Tom Tromey <tromey@adacore.com>
1317
1318 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1319
1320 2020-11-04 Tom Tromey <tromey@adacore.com>
1321
1322 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1323 array.
1324
1325 2020-11-04 Tom Tromey <tromey@adacore.com>
1326
1327 * gdbtypes.c (update_static_array_size): Handle bit stride.
1328
1329 2020-11-04 Tom Tromey <tromey@adacore.com>
1330
1331 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1332
1333 2020-11-04 Tom Tromey <tromey@adacore.com>
1334
1335 * ada-lang.c (ada_is_any_packed_array_type): New function.
1336 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1337
1338 2020-11-04 Tom Tromey <tromey@adacore.com>
1339
1340 * dwarf2/read.c (recognize_bound_expression)
1341 (quirk_ada_thick_pointer): New functions.
1342 (read_array_type): Call quirk_ada_thick_pointer.
1343 (set_die_type): Add "skip_data_location" parameter.
1344 (quirk_ada_thick_pointer): New function.
1345 (process_structure_scope): Call quirk_ada_thick_pointer.
1346 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1347 (decode_packed_array_bitsize): Handle thick pointers without
1348 parallel types.
1349 (ada_is_gnat_encoded_packed_array_type): Rename from
1350 ada_is_packed_array_type.
1351 (ada_is_constrained_packed_array_type): Update.
1352 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1353 (ada_value_print_1): Use ada_get_decoded_value.
1354
1355 2020-11-04 Tom Tromey <tromey@adacore.com>
1356
1357 * ada-lang.c (recursively_update_array_bitsize): New function.
1358 (decode_constrained_packed_array_type): Call it.
1359
1360 2020-11-04 Tom Tromey <tromey@adacore.com>
1361
1362 * ada-lang.c (to_fixed_array_type): Error if
1363 decode_constrained_packed_array_type returns NULL.
1364
1365 2020-11-04 Tom Tromey <tromey@adacore.com>
1366
1367 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1368
1369 2020-11-02 Tom Tromey <tromey@adacore.com>
1370
1371 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1372 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1373 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1374 * amd64-ravenscar-thread.c: New file.
1375 * amd64-ravenscar-thread.h: New file.
1376 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1377 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1378
1379 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1380
1381 * main.c (execute_cmdargs): New function.
1382 (captured_main_1): Make use of execute_cmdargs.
1383
1384 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1385
1386 * NEWS: Mention changes to config file search path.
1387 * main.c
1388
1389 2020-11-02 Tom Tromey <tromey@adacore.com>
1390
1391 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1392 (python_GdbModuleDef): Move earlier. Now static.
1393 (do_start_initialization): Consolidate some IS_PY3K blocks.
1394
1395 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1396
1397 * aarch64-linux-tdep.c: Fix indentation.
1398 * aarch64-ravenscar-thread.c: Fix indentation.
1399 * aarch64-tdep.c: Fix indentation.
1400 * aarch64-tdep.h: Fix indentation.
1401 * ada-lang.c: Fix indentation.
1402 * ada-lang.h: Fix indentation.
1403 * ada-tasks.c: Fix indentation.
1404 * ada-typeprint.c: Fix indentation.
1405 * ada-valprint.c: Fix indentation.
1406 * ada-varobj.c: Fix indentation.
1407 * addrmap.c: Fix indentation.
1408 * addrmap.h: Fix indentation.
1409 * agent.c: Fix indentation.
1410 * aix-thread.c: Fix indentation.
1411 * alpha-bsd-nat.c: Fix indentation.
1412 * alpha-linux-tdep.c: Fix indentation.
1413 * alpha-mdebug-tdep.c: Fix indentation.
1414 * alpha-nbsd-tdep.c: Fix indentation.
1415 * alpha-obsd-tdep.c: Fix indentation.
1416 * alpha-tdep.c: Fix indentation.
1417 * amd64-bsd-nat.c: Fix indentation.
1418 * amd64-darwin-tdep.c: Fix indentation.
1419 * amd64-linux-nat.c: Fix indentation.
1420 * amd64-linux-tdep.c: Fix indentation.
1421 * amd64-nat.c: Fix indentation.
1422 * amd64-obsd-tdep.c: Fix indentation.
1423 * amd64-tdep.c: Fix indentation.
1424 * amd64-windows-tdep.c: Fix indentation.
1425 * annotate.c: Fix indentation.
1426 * arc-tdep.c: Fix indentation.
1427 * arch-utils.c: Fix indentation.
1428 * arch/arm-get-next-pcs.c: Fix indentation.
1429 * arch/arm.c: Fix indentation.
1430 * arm-linux-nat.c: Fix indentation.
1431 * arm-linux-tdep.c: Fix indentation.
1432 * arm-nbsd-tdep.c: Fix indentation.
1433 * arm-pikeos-tdep.c: Fix indentation.
1434 * arm-tdep.c: Fix indentation.
1435 * arm-tdep.h: Fix indentation.
1436 * arm-wince-tdep.c: Fix indentation.
1437 * auto-load.c: Fix indentation.
1438 * auxv.c: Fix indentation.
1439 * avr-tdep.c: Fix indentation.
1440 * ax-gdb.c: Fix indentation.
1441 * ax-general.c: Fix indentation.
1442 * bfin-linux-tdep.c: Fix indentation.
1443 * block.c: Fix indentation.
1444 * block.h: Fix indentation.
1445 * blockframe.c: Fix indentation.
1446 * bpf-tdep.c: Fix indentation.
1447 * break-catch-sig.c: Fix indentation.
1448 * break-catch-syscall.c: Fix indentation.
1449 * break-catch-throw.c: Fix indentation.
1450 * breakpoint.c: Fix indentation.
1451 * breakpoint.h: Fix indentation.
1452 * bsd-uthread.c: Fix indentation.
1453 * btrace.c: Fix indentation.
1454 * build-id.c: Fix indentation.
1455 * buildsym-legacy.h: Fix indentation.
1456 * buildsym.c: Fix indentation.
1457 * c-typeprint.c: Fix indentation.
1458 * c-valprint.c: Fix indentation.
1459 * c-varobj.c: Fix indentation.
1460 * charset.c: Fix indentation.
1461 * cli/cli-cmds.c: Fix indentation.
1462 * cli/cli-decode.c: Fix indentation.
1463 * cli/cli-decode.h: Fix indentation.
1464 * cli/cli-script.c: Fix indentation.
1465 * cli/cli-setshow.c: Fix indentation.
1466 * coff-pe-read.c: Fix indentation.
1467 * coffread.c: Fix indentation.
1468 * compile/compile-cplus-types.c: Fix indentation.
1469 * compile/compile-object-load.c: Fix indentation.
1470 * compile/compile-object-run.c: Fix indentation.
1471 * completer.c: Fix indentation.
1472 * corefile.c: Fix indentation.
1473 * corelow.c: Fix indentation.
1474 * cp-abi.h: Fix indentation.
1475 * cp-namespace.c: Fix indentation.
1476 * cp-support.c: Fix indentation.
1477 * cp-valprint.c: Fix indentation.
1478 * cris-linux-tdep.c: Fix indentation.
1479 * cris-tdep.c: Fix indentation.
1480 * darwin-nat-info.c: Fix indentation.
1481 * darwin-nat.c: Fix indentation.
1482 * darwin-nat.h: Fix indentation.
1483 * dbxread.c: Fix indentation.
1484 * dcache.c: Fix indentation.
1485 * disasm.c: Fix indentation.
1486 * dtrace-probe.c: Fix indentation.
1487 * dwarf2/abbrev.c: Fix indentation.
1488 * dwarf2/attribute.c: Fix indentation.
1489 * dwarf2/expr.c: Fix indentation.
1490 * dwarf2/frame.c: Fix indentation.
1491 * dwarf2/index-cache.c: Fix indentation.
1492 * dwarf2/index-write.c: Fix indentation.
1493 * dwarf2/line-header.c: Fix indentation.
1494 * dwarf2/loc.c: Fix indentation.
1495 * dwarf2/macro.c: Fix indentation.
1496 * dwarf2/read.c: Fix indentation.
1497 * dwarf2/read.h: Fix indentation.
1498 * elfread.c: Fix indentation.
1499 * eval.c: Fix indentation.
1500 * event-top.c: Fix indentation.
1501 * exec.c: Fix indentation.
1502 * exec.h: Fix indentation.
1503 * expprint.c: Fix indentation.
1504 * f-lang.c: Fix indentation.
1505 * f-typeprint.c: Fix indentation.
1506 * f-valprint.c: Fix indentation.
1507 * fbsd-nat.c: Fix indentation.
1508 * fbsd-tdep.c: Fix indentation.
1509 * findvar.c: Fix indentation.
1510 * fork-child.c: Fix indentation.
1511 * frame-unwind.c: Fix indentation.
1512 * frame-unwind.h: Fix indentation.
1513 * frame.c: Fix indentation.
1514 * frv-linux-tdep.c: Fix indentation.
1515 * frv-tdep.c: Fix indentation.
1516 * frv-tdep.h: Fix indentation.
1517 * ft32-tdep.c: Fix indentation.
1518 * gcore.c: Fix indentation.
1519 * gdb_bfd.c: Fix indentation.
1520 * gdbarch.sh: Fix indentation.
1521 * gdbarch.c: Re-generate
1522 * gdbarch.h: Re-generate.
1523 * gdbcore.h: Fix indentation.
1524 * gdbthread.h: Fix indentation.
1525 * gdbtypes.c: Fix indentation.
1526 * gdbtypes.h: Fix indentation.
1527 * glibc-tdep.c: Fix indentation.
1528 * gnu-nat.c: Fix indentation.
1529 * gnu-nat.h: Fix indentation.
1530 * gnu-v2-abi.c: Fix indentation.
1531 * gnu-v3-abi.c: Fix indentation.
1532 * go32-nat.c: Fix indentation.
1533 * guile/guile-internal.h: Fix indentation.
1534 * guile/scm-cmd.c: Fix indentation.
1535 * guile/scm-frame.c: Fix indentation.
1536 * guile/scm-iterator.c: Fix indentation.
1537 * guile/scm-math.c: Fix indentation.
1538 * guile/scm-ports.c: Fix indentation.
1539 * guile/scm-pretty-print.c: Fix indentation.
1540 * guile/scm-value.c: Fix indentation.
1541 * h8300-tdep.c: Fix indentation.
1542 * hppa-linux-nat.c: Fix indentation.
1543 * hppa-linux-tdep.c: Fix indentation.
1544 * hppa-nbsd-nat.c: Fix indentation.
1545 * hppa-nbsd-tdep.c: Fix indentation.
1546 * hppa-obsd-nat.c: Fix indentation.
1547 * hppa-tdep.c: Fix indentation.
1548 * hppa-tdep.h: Fix indentation.
1549 * i386-bsd-nat.c: Fix indentation.
1550 * i386-darwin-nat.c: Fix indentation.
1551 * i386-darwin-tdep.c: Fix indentation.
1552 * i386-dicos-tdep.c: Fix indentation.
1553 * i386-gnu-nat.c: Fix indentation.
1554 * i386-linux-nat.c: Fix indentation.
1555 * i386-linux-tdep.c: Fix indentation.
1556 * i386-nto-tdep.c: Fix indentation.
1557 * i386-obsd-tdep.c: Fix indentation.
1558 * i386-sol2-nat.c: Fix indentation.
1559 * i386-tdep.c: Fix indentation.
1560 * i386-tdep.h: Fix indentation.
1561 * i386-windows-tdep.c: Fix indentation.
1562 * i387-tdep.c: Fix indentation.
1563 * i387-tdep.h: Fix indentation.
1564 * ia64-libunwind-tdep.c: Fix indentation.
1565 * ia64-libunwind-tdep.h: Fix indentation.
1566 * ia64-linux-nat.c: Fix indentation.
1567 * ia64-linux-tdep.c: Fix indentation.
1568 * ia64-tdep.c: Fix indentation.
1569 * ia64-tdep.h: Fix indentation.
1570 * ia64-vms-tdep.c: Fix indentation.
1571 * infcall.c: Fix indentation.
1572 * infcmd.c: Fix indentation.
1573 * inferior.c: Fix indentation.
1574 * infrun.c: Fix indentation.
1575 * iq2000-tdep.c: Fix indentation.
1576 * language.c: Fix indentation.
1577 * linespec.c: Fix indentation.
1578 * linux-fork.c: Fix indentation.
1579 * linux-nat.c: Fix indentation.
1580 * linux-tdep.c: Fix indentation.
1581 * linux-thread-db.c: Fix indentation.
1582 * lm32-tdep.c: Fix indentation.
1583 * m2-lang.c: Fix indentation.
1584 * m2-typeprint.c: Fix indentation.
1585 * m2-valprint.c: Fix indentation.
1586 * m32c-tdep.c: Fix indentation.
1587 * m32r-linux-tdep.c: Fix indentation.
1588 * m32r-tdep.c: Fix indentation.
1589 * m68hc11-tdep.c: Fix indentation.
1590 * m68k-bsd-nat.c: Fix indentation.
1591 * m68k-linux-nat.c: Fix indentation.
1592 * m68k-linux-tdep.c: Fix indentation.
1593 * m68k-tdep.c: Fix indentation.
1594 * machoread.c: Fix indentation.
1595 * macrocmd.c: Fix indentation.
1596 * macroexp.c: Fix indentation.
1597 * macroscope.c: Fix indentation.
1598 * macrotab.c: Fix indentation.
1599 * macrotab.h: Fix indentation.
1600 * main.c: Fix indentation.
1601 * mdebugread.c: Fix indentation.
1602 * mep-tdep.c: Fix indentation.
1603 * mi/mi-cmd-catch.c: Fix indentation.
1604 * mi/mi-cmd-disas.c: Fix indentation.
1605 * mi/mi-cmd-env.c: Fix indentation.
1606 * mi/mi-cmd-stack.c: Fix indentation.
1607 * mi/mi-cmd-var.c: Fix indentation.
1608 * mi/mi-cmds.c: Fix indentation.
1609 * mi/mi-main.c: Fix indentation.
1610 * mi/mi-parse.c: Fix indentation.
1611 * microblaze-tdep.c: Fix indentation.
1612 * minidebug.c: Fix indentation.
1613 * minsyms.c: Fix indentation.
1614 * mips-linux-nat.c: Fix indentation.
1615 * mips-linux-tdep.c: Fix indentation.
1616 * mips-nbsd-tdep.c: Fix indentation.
1617 * mips-tdep.c: Fix indentation.
1618 * mn10300-linux-tdep.c: Fix indentation.
1619 * mn10300-tdep.c: Fix indentation.
1620 * moxie-tdep.c: Fix indentation.
1621 * msp430-tdep.c: Fix indentation.
1622 * namespace.h: Fix indentation.
1623 * nat/fork-inferior.c: Fix indentation.
1624 * nat/gdb_ptrace.h: Fix indentation.
1625 * nat/linux-namespaces.c: Fix indentation.
1626 * nat/linux-osdata.c: Fix indentation.
1627 * nat/netbsd-nat.c: Fix indentation.
1628 * nat/x86-dregs.c: Fix indentation.
1629 * nbsd-nat.c: Fix indentation.
1630 * nbsd-tdep.c: Fix indentation.
1631 * nios2-linux-tdep.c: Fix indentation.
1632 * nios2-tdep.c: Fix indentation.
1633 * nto-procfs.c: Fix indentation.
1634 * nto-tdep.c: Fix indentation.
1635 * objfiles.c: Fix indentation.
1636 * objfiles.h: Fix indentation.
1637 * opencl-lang.c: Fix indentation.
1638 * or1k-tdep.c: Fix indentation.
1639 * osabi.c: Fix indentation.
1640 * osabi.h: Fix indentation.
1641 * osdata.c: Fix indentation.
1642 * p-lang.c: Fix indentation.
1643 * p-typeprint.c: Fix indentation.
1644 * p-valprint.c: Fix indentation.
1645 * parse.c: Fix indentation.
1646 * ppc-linux-nat.c: Fix indentation.
1647 * ppc-linux-tdep.c: Fix indentation.
1648 * ppc-nbsd-nat.c: Fix indentation.
1649 * ppc-nbsd-tdep.c: Fix indentation.
1650 * ppc-obsd-nat.c: Fix indentation.
1651 * ppc-ravenscar-thread.c: Fix indentation.
1652 * ppc-sysv-tdep.c: Fix indentation.
1653 * ppc64-tdep.c: Fix indentation.
1654 * printcmd.c: Fix indentation.
1655 * proc-api.c: Fix indentation.
1656 * producer.c: Fix indentation.
1657 * producer.h: Fix indentation.
1658 * prologue-value.c: Fix indentation.
1659 * prologue-value.h: Fix indentation.
1660 * psymtab.c: Fix indentation.
1661 * python/py-arch.c: Fix indentation.
1662 * python/py-bpevent.c: Fix indentation.
1663 * python/py-event.c: Fix indentation.
1664 * python/py-event.h: Fix indentation.
1665 * python/py-finishbreakpoint.c: Fix indentation.
1666 * python/py-frame.c: Fix indentation.
1667 * python/py-framefilter.c: Fix indentation.
1668 * python/py-inferior.c: Fix indentation.
1669 * python/py-infthread.c: Fix indentation.
1670 * python/py-objfile.c: Fix indentation.
1671 * python/py-prettyprint.c: Fix indentation.
1672 * python/py-registers.c: Fix indentation.
1673 * python/py-signalevent.c: Fix indentation.
1674 * python/py-stopevent.c: Fix indentation.
1675 * python/py-stopevent.h: Fix indentation.
1676 * python/py-threadevent.c: Fix indentation.
1677 * python/py-tui.c: Fix indentation.
1678 * python/py-unwind.c: Fix indentation.
1679 * python/py-value.c: Fix indentation.
1680 * python/py-xmethods.c: Fix indentation.
1681 * python/python-internal.h: Fix indentation.
1682 * python/python.c: Fix indentation.
1683 * ravenscar-thread.c: Fix indentation.
1684 * record-btrace.c: Fix indentation.
1685 * record-full.c: Fix indentation.
1686 * record.c: Fix indentation.
1687 * reggroups.c: Fix indentation.
1688 * regset.h: Fix indentation.
1689 * remote-fileio.c: Fix indentation.
1690 * remote.c: Fix indentation.
1691 * reverse.c: Fix indentation.
1692 * riscv-linux-tdep.c: Fix indentation.
1693 * riscv-ravenscar-thread.c: Fix indentation.
1694 * riscv-tdep.c: Fix indentation.
1695 * rl78-tdep.c: Fix indentation.
1696 * rs6000-aix-tdep.c: Fix indentation.
1697 * rs6000-lynx178-tdep.c: Fix indentation.
1698 * rs6000-nat.c: Fix indentation.
1699 * rs6000-tdep.c: Fix indentation.
1700 * rust-lang.c: Fix indentation.
1701 * rx-tdep.c: Fix indentation.
1702 * s12z-tdep.c: Fix indentation.
1703 * s390-linux-tdep.c: Fix indentation.
1704 * score-tdep.c: Fix indentation.
1705 * ser-base.c: Fix indentation.
1706 * ser-mingw.c: Fix indentation.
1707 * ser-uds.c: Fix indentation.
1708 * ser-unix.c: Fix indentation.
1709 * serial.c: Fix indentation.
1710 * sh-linux-tdep.c: Fix indentation.
1711 * sh-nbsd-tdep.c: Fix indentation.
1712 * sh-tdep.c: Fix indentation.
1713 * skip.c: Fix indentation.
1714 * sol-thread.c: Fix indentation.
1715 * solib-aix.c: Fix indentation.
1716 * solib-darwin.c: Fix indentation.
1717 * solib-frv.c: Fix indentation.
1718 * solib-svr4.c: Fix indentation.
1719 * solib.c: Fix indentation.
1720 * source.c: Fix indentation.
1721 * sparc-linux-tdep.c: Fix indentation.
1722 * sparc-nbsd-tdep.c: Fix indentation.
1723 * sparc-obsd-tdep.c: Fix indentation.
1724 * sparc-ravenscar-thread.c: Fix indentation.
1725 * sparc-tdep.c: Fix indentation.
1726 * sparc64-linux-tdep.c: Fix indentation.
1727 * sparc64-nbsd-tdep.c: Fix indentation.
1728 * sparc64-obsd-tdep.c: Fix indentation.
1729 * sparc64-tdep.c: Fix indentation.
1730 * stabsread.c: Fix indentation.
1731 * stack.c: Fix indentation.
1732 * stap-probe.c: Fix indentation.
1733 * stubs/ia64vms-stub.c: Fix indentation.
1734 * stubs/m32r-stub.c: Fix indentation.
1735 * stubs/m68k-stub.c: Fix indentation.
1736 * stubs/sh-stub.c: Fix indentation.
1737 * stubs/sparc-stub.c: Fix indentation.
1738 * symfile-mem.c: Fix indentation.
1739 * symfile.c: Fix indentation.
1740 * symfile.h: Fix indentation.
1741 * symmisc.c: Fix indentation.
1742 * symtab.c: Fix indentation.
1743 * symtab.h: Fix indentation.
1744 * target-float.c: Fix indentation.
1745 * target.c: Fix indentation.
1746 * target.h: Fix indentation.
1747 * tic6x-tdep.c: Fix indentation.
1748 * tilegx-linux-tdep.c: Fix indentation.
1749 * tilegx-tdep.c: Fix indentation.
1750 * top.c: Fix indentation.
1751 * tracefile-tfile.c: Fix indentation.
1752 * tracepoint.c: Fix indentation.
1753 * tui/tui-disasm.c: Fix indentation.
1754 * tui/tui-io.c: Fix indentation.
1755 * tui/tui-regs.c: Fix indentation.
1756 * tui/tui-stack.c: Fix indentation.
1757 * tui/tui-win.c: Fix indentation.
1758 * tui/tui-winsource.c: Fix indentation.
1759 * tui/tui.c: Fix indentation.
1760 * typeprint.c: Fix indentation.
1761 * ui-out.h: Fix indentation.
1762 * unittests/copy_bitwise-selftests.c: Fix indentation.
1763 * unittests/memory-map-selftests.c: Fix indentation.
1764 * utils.c: Fix indentation.
1765 * v850-tdep.c: Fix indentation.
1766 * valarith.c: Fix indentation.
1767 * valops.c: Fix indentation.
1768 * valprint.c: Fix indentation.
1769 * valprint.h: Fix indentation.
1770 * value.c: Fix indentation.
1771 * value.h: Fix indentation.
1772 * varobj.c: Fix indentation.
1773 * vax-tdep.c: Fix indentation.
1774 * windows-nat.c: Fix indentation.
1775 * windows-tdep.c: Fix indentation.
1776 * xcoffread.c: Fix indentation.
1777 * xml-syscall.c: Fix indentation.
1778 * xml-tdesc.c: Fix indentation.
1779 * xstormy16-tdep.c: Fix indentation.
1780 * xtensa-config.c: Fix indentation.
1781 * xtensa-linux-nat.c: Fix indentation.
1782 * xtensa-linux-tdep.c: Fix indentation.
1783 * xtensa-tdep.c: Fix indentation.
1784
1785 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1786 Craig Blackmore <craig.blackmore@embecosm.com>
1787
1788 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1789 as an unsigned value.
1790
1791 2020-11-01 Tom Tromey <tom@tromey.com>
1792
1793 * dbxread.c (dbx_end_psymtab): Update.
1794 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1795 (build_type_psymtabs_reader): Update.
1796 * xcoffread.c (xcoff_end_psymtab): Update.
1797 * ctfread.c (scan_partial_symbols): Update.
1798 * psymtab.c (sort_pst_symbols): Remove.
1799 (partial_symtab::end): Rename from end_psymtab_common. Inline
1800 sort_pst_symbols.
1801 * psympriv.h (struct partial_symtab) <end>: New method.
1802 (end_psymtab_common): Don't declare.
1803
1804 2020-11-01 Tom Tromey <tom@tromey.com>
1805
1806 * symmisc.c (count_psyms): New function.
1807 (print_objfile_statistics): Use it.
1808 * psymtab.c (append_psymbol_to_list): Remove.
1809 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1810 * objfiles.h (struct objstats) <n_psyms>: Remove.
1811
1812 2020-11-01 Tom Tromey <tom@tromey.com>
1813
1814 * dbxread.c (dbx_end_psymtab): Update.
1815 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1816 (build_type_psymtabs_reader): Update.
1817 * xcoffread.c (xcoff_end_psymtab): Update.
1818 * ctfread.c (scan_partial_symbols): Update.
1819 * psympriv.h (end_psymtab_common): Update.
1820 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1821 (sort_pst_symbols): Likewise.
1822
1823 2020-11-01 Tom Tromey <tom@tromey.com>
1824
1825 * dbxread.c (dbx_symfile_read): Update.
1826 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1827 * xcoffread.c (xcoff_initial_scan): Update.
1828 * psympriv.h (init_psymbol_list): Don't declare.
1829 * psymtab.c (init_psymbol_list): Remove.
1830
1831 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1832
1833 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1834 gnat_encoded_fixed_type_info. Update all callers.
1835
1836 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1837
1838 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1839 line too long.
1840
1841 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1842
1843 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1844 cast_from_fixed. Update all callers.
1845 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1846 Update all callers.
1847 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1848 Update all callers.
1849 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1850 ada_scaling_factor.
1851 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1852 to print_gnat_encoded_fixed_point_type.
1853 * ada-valprint.c: Likewise.
1854
1855 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1856
1857 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1858 (debug_prefixed_printf): Add check of debug_displaced flag.
1859 * linux-nat.c (linux_nat_debug_printf): Add check of
1860 debug_linux_nat flag.
1861
1862 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1863
1864 * infrun.c (infrun_debug_printf_1): Remove.
1865 (displaced_debug_printf_1): Remove.
1866 (stop_all_threads): Use debug_prefixed_printf.
1867 * infrun.h (infrun_debug_printf_1): Remove.
1868 (infrun_debug_printf): Use debug_prefixed_printf.
1869 (displaced_debug_printf_1): Remove.
1870 (displaced_debug_printf): Use debug_prefixed_printf.
1871 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1872 (linux_nat_debug_printf): Use debug_prefixed_printf.
1873
1874 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1875
1876 * configure: Re-generate.
1877 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1878 AC_LANG_PROGRAM.
1879
1880 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1881
1882 * configure: Re-generate.
1883
1884 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1885
1886 * configure: Re-generate.
1887
1888 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1889
1890 * configure: Re-generate.
1891
1892 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1893
1894 * configure: Re-generate.
1895
1896 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1897
1898 * acinclude.m4: Modernize.
1899 * configure: Re-generate.
1900
1901 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1902
1903 * configure.ac: Modernize.
1904 * configure: Re-generate.
1905
1906 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1907
1908 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1909 * configure: Re-generate.
1910 * configure.ac: Remove AM_PROG_CC_STDC.
1911
1912 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1913
1914 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1915 AC_CANONICAL_SYSTEM.
1916 * configure: Re-generate.
1917
1918 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1919
1920 * infrun.h (displaced_debug_printf): New macro. Replace
1921 displaced debug prints throughout to use it.
1922 (displaced_debug_printf_1): New declaration.
1923 (displaced_step_dump_bytes): Return string, remove ui_file
1924 parameter, update all callers.
1925 * infrun.c (displaced_debug_printf_1): New function.
1926 (displaced_step_dump_bytes): Return string, remove ui_file
1927 parameter
1928
1929 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1930
1931 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1932
1933 2020-10-30 Tom Tromey <tromey@adacore.com>
1934
1935 * Makefile.in (stamp-init): Depend on config.status.
1936
1937 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1938
1939 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1940
1941 2020-10-30 Pedro Alves <pedro@palves.net>
1942
1943 * thread.c (lookup_selected_frame): Move ...
1944 * frame.c (lookup_selected_frame): ... here.
1945
1946 2020-10-30 Pedro Alves <pedro@palves.net>
1947
1948 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1949 * frame.c
1950 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1951 Use save_selected_frame. Save language as well.
1952 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1953 Use restore_selected_frame, and restore language as well.
1954 (selected_frame_id, selected_frame_level): New.
1955 (selected_frame): Update comments.
1956 (save_selected_frame, restore_selected_frame): New.
1957 (get_selected_frame): Use lookup_selected_frame.
1958 (get_selected_frame_if_set): Delete.
1959 (select_frame): Record selected_frame_level and selected_frame_id.
1960 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1961 fields.
1962 (get_selected_frame): Make 'message' parameter optional.
1963 (get_selected_frame_if_set): Delete declaration.
1964 (select_frame): Update comments.
1965 (save_selected_frame, restore_selected_frame)
1966 (lookup_selected_frame): Declare.
1967 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1968 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1969 New field.
1970 (save_infcall_control_state): Use save_selected_frame.
1971 (restore_selected_frame): Delete.
1972 (restore_infcall_control_state): Use restore_selected_frame.
1973 * stack.c (select_frame_command_core, frame_command_core): Use
1974 get_selected_frame.
1975 * thread.c (restore_selected_frame): Rename to ...
1976 (lookup_selected_frame): ... this and make extern. Select the
1977 current frame if the frame level is -1.
1978 (scoped_restore_current_thread::restore): Also restore the
1979 language.
1980 (scoped_restore_current_thread::~scoped_restore_current_thread):
1981 Don't try/catch.
1982 (scoped_restore_current_thread::scoped_restore_current_thread):
1983 Save the language as well. Use save_selected_frame.
1984
1985 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1986
1987 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1988 documentation.
1989 * gdbarch.h: Re-generate.
1990
1991 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1992
1993 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1994 parameter.
1995 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1996 Likewise.
1997 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1998 Likewise.
1999 * arch-utils.c (default_displaced_step_hw_singlestep):
2000 Likewise.
2001 * arch-utils.h (default_displaced_step_hw_singlestep):
2002 Likewise.
2003 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2004 Likewise.
2005 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2006 Likewise.
2007 * gdbarch.c: Re-generate.
2008 * gdbarch.h: Re-generate.
2009 * infrun.c (resume_1): Adjust.
2010
2011 2020-10-29 Tom Tromey <tom@tromey.com>
2012
2013 * progspace.c (program_space::~program_space): Don't call
2014 exec_close.
2015
2016 2020-10-29 Tom Tromey <tom@tromey.com>
2017
2018 * exec.c (exec_target::close): Don't change current program
2019 space.
2020
2021 2020-10-29 Tom Tromey <tom@tromey.com>
2022
2023 * symfile.c (add_symbol_file_command): Update.
2024 * exec.c (program_space::add_target_sections): Rename.
2025 * symfile-mem.c (symbol_file_add_from_memory): Update.
2026 * progspace.h (struct program_space) <add_target_sections>:
2027 Declare new overload.
2028 * exec.h (add_target_sections_of_objfile): Don't declare.
2029
2030 2020-10-29 Tom Tromey <tom@tromey.com>
2031
2032 * solib.c (solib_map_sections): Update.
2033 * exec.c (program_space::add_target_sections): Now a method.
2034 (exec_file_attach): Update.
2035 * exec.h (add_target_sections): Don't declare.
2036 * progspace.h (struct program_space) <add_target_sections>:
2037 Declare.
2038
2039 2020-10-29 Tom Tromey <tom@tromey.com>
2040
2041 * progspace.h (struct program_space) <remove_target_sections>:
2042 Declare.
2043 * exec.c (program_space::remove_target_sections): Now a method.
2044 * exec.h (remove_target_sections): Don't declare.
2045
2046 2020-10-29 Tom Tromey <tom@tromey.com>
2047
2048 * inferior.c (delete_inferior): Update.
2049 * progspace.c (program_space::empty): Rename from
2050 program_space_empty_p. Return bool.
2051 * progspace.h (struct program_space) <empty>: New method.
2052 (program_space_empty_p): Don't declare.
2053
2054 2020-10-29 Tom Tromey <tom@tromey.com>
2055
2056 * progspace.c (program_space::~program_space): Don't call
2057 clear_program_space_solib_cache.
2058 (program_space::clear_solib_cache): Rename from
2059 clear_solib_cache.
2060 * solib.c (handle_solib_event): Update.
2061 * progspace.h (struct program_space) <clear_solib_cache>: New
2062 method.
2063 (clear_program_space_solib_cache): Don't declare.
2064
2065 2020-10-29 Tom Tromey <tom@tromey.com>
2066
2067 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2068 * target.c (info_target_command): Update.
2069 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2070 (symbol_file_clear, reread_symbols): Update.
2071 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2072 * stabsread.c (scan_file_globals): Update.
2073 * solib.c (update_solib_list): Update.
2074 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2075 (svr4_fetch_objfile_link_map, enable_break)
2076 (svr4_relocate_main_executable)
2077 (svr4_iterate_over_objfiles_in_search_order): Update.
2078 * solib-frv.c (lm_base, enable_break)
2079 (frv_relocate_main_executable): Update.
2080 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2081 (frv_fetch_objfile_link_map): Update.
2082 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2083 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2084 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2085 * remote.c (remote_target::get_offsets): Update.
2086 (remote_target::start_remote)
2087 (extended_remote_target::post_attach): Update.
2088 * objfiles.c (entry_point_address_query): Update.
2089 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2090 * minsyms.c (get_symbol_leading_char): Update.
2091 * frame.c (inside_main_func): Update.
2092 * progspace.h (symfile_objfile): Remove macro.
2093
2094 2020-10-29 Tom Tromey <tom@tromey.com>
2095
2096 * exec.c (exec_file_attach): Update.
2097 * progspace.c (program_space::exec_close): Update.
2098 * progspace.h (struct program_space) <ebfd>: Now a
2099 gdb_bfd_ref_ptr.
2100 <set_exec_bfd>: Change argument type.
2101 <exec_bfd>: Update.
2102
2103 2020-10-29 Tom Tromey <tom@tromey.com>
2104
2105 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2106 * symfile.c (reread_symbols): Update.
2107 * symfile-mem.c (add_symbol_file_from_memory_command)
2108 (add_vsyscall_page): Update.
2109 * source-cache.c (source_cache::get_plain_source_lines): Update.
2110 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2111 (svr4_current_sos_direct, svr4_exec_displacement)
2112 (svr4_relocate_main_executable): Update.
2113 (svr4_iterate_over_objfiles_in_search_order): Update.
2114 * solib-frv.c (enable_break2, enable_break): Update.
2115 * solib-dsbt.c (lm_base, enable_break): Update.
2116 * solib-darwin.c (find_program_interpreter)
2117 (darwin_solib_create_inferior_hook): Update.
2118 * sol-thread.c (rw_common, ps_pdmodel): Update.
2119 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2120 * remote.c (compare_sections_command)
2121 (remote_target::trace_set_readonly_regions): Update.
2122 * remote-sim.c (get_sim_inferior_data)
2123 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2124 (gdbsim_target_open, gdbsim_target::files_info): Update.
2125 * exec.h (exec_bfd): Remove macro.
2126 * progspace.c (initialize_progspace): Update.
2127 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2128 Update.
2129 * nto-procfs.c (nto_procfs_target::post_attach)
2130 (nto_procfs_target::create_inferior): Update.
2131 * maint.c (maintenance_info_sections): Update.
2132 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2133 Update.
2134 * infcmd.c (post_create_inferior): Update.
2135 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2136 (objfile_find_memory_regions): Update.
2137 * exec.c (validate_exec_file, exec_file_attach)
2138 (exec_read_partial_read_only, print_section_info): Update.
2139 * corelow.c (core_target_open): Update.
2140 * corefile.c (reopen_exec_file, validate_files): Update.
2141 * arm-tdep.c (gdb_print_insn_arm): Update.
2142 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2143 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2144 methods.
2145
2146 2020-10-29 Tom Tromey <tom@tromey.com>
2147
2148 * progspace.h (current_target_sections): Remove macro.
2149 * solib-svr4.c (scan_dyntag): Update.
2150 * solib-dsbt.c (scan_dyntag): Update.
2151 * exec.c (exec_target::close): Update.
2152 (add_target_sections, add_target_sections_of_objfile)
2153 (remove_target_sections, exec_target::get_section_table)
2154 (exec_target::files_info, set_section_command)
2155 (exec_set_section_address, exec_target::has_memory)
2156 (exec_target::has_memory): Update.
2157
2158 2020-10-29 Tom Tromey <tom@tromey.com>
2159
2160 * source-cache.c (source_cache::get_plain_source_lines): Use
2161 current_program_space.
2162 * corefile.c (reopen_exec_file): Use current_program_space.
2163 * exec.c (exec_file_attach): Use current_program_space.
2164 * exec.h (exec_bfd_mtime): Remove.
2165
2166 2020-10-29 Tom Tromey <tom@tromey.com>
2167
2168 * gcore.c (default_gcore_mach): Remove.
2169 (create_gcore_bfd): Update.
2170
2171 2020-10-29 Tom Tromey <tom@tromey.com>
2172
2173 * progspace.c (program_space::exec_close): New method, from
2174 exec_close in exec.c.
2175 * exec.c (exec_close): Move to progspace.c.
2176 (exec_target::close, exec_file_attach): Update.
2177 * progspace.h (struct program_space) <exec_close>: Declare
2178 method.
2179
2180 2020-10-29 Tom Tromey <tom@tromey.com>
2181
2182 * progspace.h (struct program_space) <exec_filename>: Rename from
2183 pspace_exec_filename. Now a unique_xmalloc_ptr.
2184 * inferior.c (print_selected_inferior): Update.
2185 (print_inferior): Update.
2186 * mi/mi-main.c (print_one_inferior): Update.
2187 * exec.h (exec_filename): Remove macro.
2188 * corefile.c (get_exec_file): Update.
2189 * exec.c (exec_close): Update.
2190 (exec_file_attach): Update.
2191 * progspace.c (clone_program_space): Update.
2192 (print_program_space): Update.
2193
2194 2020-10-29 Tom Tromey <tom@tromey.com>
2195
2196 * target-section.h (struct target_section): Add constructor.
2197 * exec.c (build_section_table, add_target_sections_of_objfile):
2198 Update.
2199 * corelow.c (core_target::build_file_mappings): Update.
2200
2201 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2202
2203 PR gdb/19318
2204 * inferior.c (detach_inferior_command): Restore the current thread.
2205 (kill_inferior_command): Ditto.
2206
2207 2020-10-28 Tom de Vries <tdevries@suse.de>
2208
2209 PR symtab/26772
2210 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2211 map, check it in the "best match" loop.
2212
2213 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2214
2215 * m32c-tdep.c: Remove unused includes.
2216
2217 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2218
2219 * xtensa-tdep.c: Remove includes.
2220
2221 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2222
2223 * breakpoint.c (struct condition_command_opts): New struct.
2224 (condition_command_option_defs): New static global.
2225 (make_condition_command_options_def_group): New function.
2226 (condition_completer): Update to consider the '-force' flag.
2227 (condition_command): Use gdb::option for the '-force' flag.
2228
2229 2020-10-27 Tom de Vries <tdevries@suse.de>
2230
2231 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2232 symbols in section check.
2233
2234 2020-10-27 Tom de Vries <tdevries@suse.de>
2235
2236 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2237
2238 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2239
2240 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2241 * breakpoint.c: Update the help text of the 'condition' and 'break'
2242 commands.
2243 (set_breakpoint_condition): Take a new bool parameter
2244 to control whether condition definition should be forced even when
2245 the condition expression is invalid in all of the current locations.
2246 (condition_command): Update the call to 'set_breakpoint_condition'.
2247 (find_condition_and_thread): Take the "-force-condition" flag into
2248 account.
2249 * linespec.c (linespec_keywords): Add "-force-condition" as an
2250 element.
2251 (FORCE_KEYWORD_INDEX): New #define.
2252 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2253 as a keyword.
2254 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2255 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2256 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2257 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2258
2259 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2260
2261 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2262 * breakpoint.c (set_breakpoint_location_condition): New function.
2263 (set_breakpoint_condition): Disable a breakpoint location if parsing
2264 the condition string gives an error.
2265 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2266 (build_target_condition_list): Ditto.
2267 (build_target_command_list): Ditto.
2268 (build_bpstat_chain): Ditto.
2269 (print_one_breakpoint_location): Ditto.
2270 (print_one_breakpoint): Ditto.
2271 (breakpoint_1): Ditto.
2272 (bp_location::bp_location): Ditto.
2273 (locations_are_equal): Ditto.
2274 (update_breakpoint_locations): Ditto.
2275 (enable_disable_bp_num_loc): Ditto.
2276 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2277 (find_condition_and_thread_for_sals): New static function.
2278 (create_breakpoint): Call find_condition_and_thread_for_sals.
2279 (location_to_sals): Call find_condition_and_thread_for_sals instead
2280 of find_condition_and_thread.
2281
2282 2020-10-26 Tom de Vries <tdevries@suse.de>
2283
2284 * dwarf2/read.c (process_full_comp_unit): Call
2285 dwarf2_find_base_address.
2286
2287 2020-10-26 Tom Tromey <tromey@adacore.com>
2288
2289 * gdbtypes.c (create_range_type): Revert previous patch. Add
2290 comment.
2291
2292 2020-10-26 Pedro Alves <pedro@palves.net>
2293
2294 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2295 (my_waitpid): Use gdb::handle_eintr.
2296
2297 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2298
2299 * acinclude.m4: Update ptrace.m4 path.
2300 * ptrace.m4: Moved to gdbsupport.
2301
2302 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2303
2304 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2305 instead of target_gdbarch.
2306
2307 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2308
2309 * jit.c (jit_reader_load_command): Pass current inferior.
2310 (jit_inferior_init): Change parameter type to inferior, use it.
2311 (jit_inferior_created): Remove.
2312 (jit_inferior_created_hook): Pass inferior parameter down.
2313 (_initialize_jit): Use jit_inferior_created_hook instead of
2314 jit_inferior_created.
2315 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2316 * infrun.c (follow_exec): Pass inferior to
2317 jit_inferior_created_hook.
2318
2319 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2320
2321 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2322 parameter and use it.
2323 (thread_db_inferior_created): Pass inferior argument.
2324
2325 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2326
2327 * aix-thread.c (aix_thread_inferior_created): Add inferior
2328 parameter.
2329 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2330 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2331 * jit.c (jit_inferior_created): Likewise.
2332 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2333 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2334 * observable.h (inferior_created): Likewise.
2335 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2336 * symfile-mem.c (add_vsyscall_page): Likewise.
2337 * infcmd.c (post_create_inferior): Pass inferior argument.
2338
2339 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2340
2341 GDB 10.1 released.
2342
2343 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2344
2345 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2346 to ada_check_typedef.
2347
2348 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 * f-exp.y (f_parse): Rename to...
2351 (f_language::parser): ...this.
2352 * f-lang.c (f_get_encoding): Rename to...
2353 (f_language::get_encoding): ...this.
2354 (f_op_print_tab): Rename to...
2355 (f_language::op_print_tab): ...this.
2356 (exp_descriptor_f): Rename to...
2357 (f_language::exp_descriptor_tab): ...this.
2358 (class f_language): Moved to f-lang.h.
2359 (f_language::language_arch_info): New function, moved out of class
2360 declaration.
2361 (f_language::search_name_hash): Likewise.
2362 (f_language::lookup_symbol_nonlocal): Likewise.
2363 (f_language::get_symbol_name_matcher_inner): Likewise.
2364 * f-lang.h: Add 'valprint.h' include.
2365 (class f_language): Moved here from f-lang.c.
2366 * f-typeprint.c (f_type_print_args): Delete commented out
2367 declaration.
2368 (f_print_typedef): Rename to...
2369 (f_language::print_typedef): ...this.
2370 (f_print_type): Rename to...
2371 (f_language::print_type): ...this.
2372 (f_type_print_varspec_prefix): Delete declaration and rename to...
2373 (f_language::f_type_print_varspec_prefix): ...this.
2374 (f_type_print_varspec_suffix): Delete declaration and rename to...
2375 (f_language::f_type_print_varspec_suffix): ...this.
2376 (f_type_print_base): Delete declaration and rename to...
2377 (f_language::f_type_print_base): ...this.
2378 * f-valprint.c (f_value_print_inner): Rename to...
2379 (f_language::value_print_inner): ...this.
2380 * parse.c: Delete 'f-lang.h' include.
2381
2382 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2383
2384 * language.h (language_defn::print_type): Add variable names in
2385 declaration, and update header comment.
2386
2387 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * ada-lang.c (ada_language::demangle): Rename to...
2390 (ada_language::demangle_symbol): ...this.
2391 * c-lang.c (cplus_language::demangle): Rename to...
2392 (cplus_language::demangle_symbol): ...this.
2393 * d-lang.c (d_language::demangle): Rename to...
2394 (d_language::demangle_symbol): ...this.
2395 * f-lang.c (f_language::demangle): Rename to...
2396 (f_language::demangle_symbol): ...this.
2397 * go-lang.c (go_language::demangle): Rename to...
2398 (go_language::demangle_symbol): ...this.
2399 * language.c (language_demangle): Update call to demangle_symbol.
2400 (auto_or_unknown_language::demangle): Rename to...
2401 (auto_or_unknown_language::demangle_symbol): ...this.
2402 * language.h (language_defn::demangle): Rename to...
2403 (language_defn::demangle_symbol): ...this.
2404 * objc-lang.c (objc_language::demangle): Rename to...
2405 (objc_language::demangle_symbol): ...this.
2406 * rust-lang.c (rust_language::demangle): Rename to...
2407 (rust_language::demangle_symbol): ...this.
2408
2409 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2410
2411 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2412 (iterate_over_file_blocks): Replace use of macro with the macros
2413 definition.
2414
2415 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2416
2417 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2418 * valprint.c (maybe_print_array_index): Replace use of macro with
2419 the macros definition.
2420
2421 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2422
2423 * ada-lang.c (ada_language::print_array_index): Call value_print
2424 directly.
2425 * language.c (language_defn::print_array_index): Likewise.
2426 * language.h (LA_VALUE_PRINT): Delete.
2427 * valprint.c (value_print): Call value_print on the
2428 current_language directly.
2429
2430 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2431
2432 * language.h (LA_PRINT_TYPEDEF): Delete.
2433 * typeprint.c (typedef_print): Call print_typedef directly on the
2434 current_language object.
2435
2436 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2437
2438 * m2-exp.y (m2_parse): Rename to...
2439 (m2_language::parser): ...this. Update function signature.
2440 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2441 (m2_op_print): Rename to...
2442 (m2_language::op_print_tab): ...this, and make const.
2443 (exp_descriptor_modula2): Rename to...
2444 (m2_language::exp_descriptor_modula2): ...this.
2445 (class m2_language): Move to m2-lang.h.
2446 (m2_language::language_arch_info): New function, moved out of
2447 class declaration.
2448 (m2_language::printchar): New function, body from m2_printchar.
2449 (m2_language::printstr): New function, moved out of class
2450 declaration.
2451 (m2_language::emitchar): Likewise.
2452 * m2-lang.h (m2_parse): Delete declaration.
2453 (m2_print_typedef): Delete declaration.
2454 (m2_value_print_inner): Delete declaration.
2455 (class m2_language): Class declaration moved from m2-lang.c,
2456 larger functions are left in m2-lang.c.
2457 * m2-typeprint.c (m2_print_typedef): Rename to...
2458 (m2_language::print_typedef): ...this, and update function
2459 signature.
2460 * m2-valprint.c (m2_value_print_inner): Rename to...
2461 (m2_language::value_print_inner): ...this, replace use of
2462 LA_PRINT_STRING with a direct call to printstr member function,
2463 and update recursive call.
2464
2465 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * language.c (default_is_string_type_p): Delete, implementation
2468 moved into auto_or_unknown_language::is_string_type_p.
2469 (unk_op_print_tab): Moved into
2470 auto_or_unknown_language::opcode_print_table.
2471 (unknown_language_arch_info): Delete, implementation moved into
2472 auto_or_unknown_language::language_arch_info.
2473 (class auto_or_unknown_language): New class, member functions
2474 copied from unknown_language class, with some updates.
2475 (class unknown_language): Most member functions moved into
2476 auto_or_unknown_language class. Inherit from
2477 auto_or_unknown_language class.
2478 (class auto_language): Inherit from auto_or_unknown_language.
2479 Delete most member functions.
2480
2481 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2482
2483 * stabsread.c (read_member_functions): Remove gdb_assert.
2484
2485 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2486
2487 * gdbtypes.c (init_complex_type): Check target type name.
2488
2489 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2490
2491 * target-debug.h (target_debug_print_struct_target_ops_p):
2492 Remove.
2493 (target_debug_print_async_callback_ftype_p): Remove.
2494 (target_debug_print_struct_trace_state_variable_p): Remove.
2495 (target_debug_print_struct_traceframe_info_p): Remove.
2496 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2497 (target_debug_print_enum_btrace_format): Remove.
2498 (target_debug_print_enum_info_proc_what): Remove.
2499 (target_debug_print_thread_info_pp): Remove.
2500
2501 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2502
2503 * target.h (struct target_ops) <make_corefile_notes>:
2504 Change return type to unique pointer.
2505 * target.c (dummy_make_corefile_notes): Likewise.
2506 * exec.c (struct exec_target) <make_corefile_notes>:
2507 Likewise.
2508 (exec_target::make_corefile_notes): Likewise.
2509 * procfs.c (class procfs_target) <make_corefile_notes>:
2510 Likewise.
2511 (procfs_do_thread_registers): Adjust to unique pointer.
2512 (struct procfs_corefile_thread_data): Add constructor.
2513 <note_data>: Change type to unique pointer.
2514 (procfs_corefile_thread_callback): Adjust to unique pointer.
2515 (procfs_target::make_corefile_notes): Change return type to
2516 unique pointer.
2517 * target-delegates.c: Re-generate.
2518 * gcore.c (write_gcore_file_1): Adjust.
2519 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2520 New.
2521
2522 2020-10-22 Tom de Vries <tdevries@suse.de>
2523
2524 * block.c (find_block_in_blockvector): Make sure the returned block
2525 contains pc.
2526
2527 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2528
2529 PR gdb/26693
2530 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2531 parameter.
2532 (load_cu): Pass existing CU.
2533 (process_imported_unit_die): Likewise.
2534 (follow_die_offset): Likewise.
2535
2536 2020-10-22 Luis Machado <luis.machado@linaro.org>
2537
2538 * corelow.c (core_target::xfer_partial): Also check for an empty
2539 m_core_unavailable_mappings vector.
2540
2541 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2542
2543 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2544 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2545 * f-exp.y (arglist): Allow for a series of subranges.
2546 (subrange): Add cases for subranges with strides.
2547 * f-lang.c (value_f90_subarray): Catch use of array strides and
2548 throw an error.
2549 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2550
2551 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2552
2553 * expprint.c (print_subexp_standard): Change enum range_type to
2554 range_flag and rename variables to match.
2555 (dump_subexp_body_standard): Likewise.
2556 * expression.h (enum range_type): Rename to...
2557 (enum range_flag): ...this.
2558 (range_types): Rename to...
2559 (range_flags): ...this.
2560 * f-lang.c (value_f90_subarray): Change enum range_type to
2561 range_flag and rename variables to match.
2562 * parse.c (operator_length_standard): Likewise.
2563 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2564 range_type to range_flag.
2565 * rust-lang.c (rust_evaluate_funcall): Likewise.
2566 (rust_range): Likewise.
2567 (rust_compute_range): Likewise.
2568 (rust_subscript): Likewise.
2569
2570 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2571
2572 * expprint.c (print_subexp_standard): Update to reflect changes to
2573 enum range_type.
2574 (dump_subexp_body_standard): Likewise.
2575 * expression.h (enum range_type): Convert to a bit field enum, and
2576 make the enum unsigned.
2577 * f-exp.y (subrange): Update to reflect changes to enum
2578 range_type.
2579 * f-lang.c (value_f90_subarray): Likewise.
2580 * parse.c (operator_length_standard): Likewise.
2581 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2582 * rust-lang.c (rust_range): Likewise.
2583 (rust_compute_range): Likewise.
2584 (rust_subscript): Likewise.
2585
2586 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2587
2588 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2589 (displaced_step_in_progress): Fix comment.
2590
2591 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2592
2593 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2594 * gdbarch.c: Re-generate.
2595 * gdbarch.h: Re-generate.
2596 * gcore.c (write_gcore_file_1): Adjust.
2597 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2598 constructor.
2599 <note_data>: Change type to unique pointer.
2600 <abort_iteration>: Change type to bool.
2601 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2602 (fbsd_collect_thread_registers): Return void, adjust.
2603 (struct fbsd_corefile_thread_data): Add construtor.
2604 <note_data>: Change type to unique pointer.
2605 (fbsd_corefile_thread): Adjust.
2606 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2607 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2608 to unique pointer, adjust.
2609 (struct linux_collect_regset_section_cb_data): Add constructor.
2610 <note_data>: Change type to unique pointer.
2611 <abort_iteration>: Change type to bool.
2612 (linux_collect_thread_registers): Return void, adjust.
2613 (struct linux_corefile_thread_data): Add constructor.
2614 <note_data>: Change type to unique pointer.
2615 (linux_corefile_thread): Adjust.
2616 (linux_make_corefile_notes): Return unique pointer, adjust.
2617
2618 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2619
2620 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2621 * gdbarch.c: Re-generate.
2622 * gdbarch.h: Re-generate.
2623 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2624 bool.
2625 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2626 Likewise.
2627 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2628 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2629 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2630 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2631
2632 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2633
2634 * gdbarch.sh: Make generated predicates return bool.
2635 * gdbarch.c: Re-generate.
2636 * gdbarch.h: Re-generate.
2637
2638 2020-10-20 Tom Tromey <tom@tromey.com>
2639
2640 * varobj-iter.h (struct varobj_item): Remove typedef.
2641
2642 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2643
2644 * infrun.c (currently_stepping): Change int to bool
2645 (maybe_software_singlestep): Likewise.
2646 (show_stop_on_solib_events): Likewise.
2647 (stepping_past_nonsteppable_watchpoint): Likewise.
2648 (displaced_step_in_progress_any_inferior): Likewise.
2649 (displaced_step_in_progress_thread): Likewise.
2650 (keep_going_stepped_thread): Likewise.
2651 (thread_still_needs_step_over): Likewise.
2652 (start_step_over): Likewise.
2653 (do_target_resume): Likewise.
2654 (resume_1): Likewise.
2655 (clear_proceed_status): Likewise.
2656 (thread_still_needs_step_over_bp): Likewise.
2657 (proceed): Likewise.
2658 (switch_back_to_stepped_thread): Likewise.
2659 (adjust_pc_after_break): Likewise.
2660 (stepped_in_from): Likewise.
2661 (handle_stop_requested): Likewise.
2662 (handle_syscall_event): Likewise.
2663 (handle_no_resumed): Likewise.
2664 (handle_inferior_event): Likewise.
2665 (finish_step_over): Likewise.
2666 (handle_signal_stop): Likewise.
2667 (process_event_stop_test): Likewise.
2668
2669 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2670
2671 * infrun.c (get_displaced_stepping_state): Fix comment.
2672
2673 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2674
2675 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2676
2677 2020-10-19 Tom Tromey <tromey@adacore.com>
2678
2679 PR tui/26719
2680 * tui/tui-winsource.h (struct tui_source_window_base)
2681 <refresh_window>: Rename from refresh_pad.
2682 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2683 Rename from refresh_pad.
2684 (tui_source_window_base::show_source_content)
2685 (tui_source_window_base::do_scroll_horizontal): Update.
2686
2687 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2688
2689 * thread.c (_initialize_thread): Fine-tune the help text of
2690 'info threads'.
2691
2692 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2693
2694 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2695
2696 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2697
2698 * breakpoint.c (handle_jit_event): Add an argument, change how
2699 `jit_event_handler` is called.
2700
2701 2020-10-17 Tom Tromey <tom@tromey.com>
2702
2703 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2704 (scan_xcoff_symtab): Update.
2705 * psymtab.h (class psymtab_storage) <global_psymbols,
2706 static_psymbols, current_global_psymbols,
2707 current_static_psymbols>: Remove.
2708 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2709 (match_partial_symbol, lookup_partial_symbol): Update.
2710 (print_partial_symbols): Change parameters.
2711 (dump_psymtab, recursively_search_psymtabs)
2712 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2713 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2714 (concat): Remove.
2715 (end_psymtab_common): Simplify.
2716 (append_psymbol_to_list): Change parameters.
2717 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2718 (init_psymbol_list): Simplify.
2719 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2720 * psympriv.h (struct partial_symtab) <empty>: New method.
2721 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2722 Remove.
2723 <global_psymbols, static_psymbols>: New members.
2724 <add_psymbol>: New methods.
2725 (add_psymbol_to_list): Don't declare.
2726 (psymbol_placement): Move earlier.
2727 * mdebugread.c (parse_partial_symbols): Update.
2728 (handle_psymbol_enumerators): Change parameters.
2729 (mdebug_expand_psymtab): Update.
2730 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2731 (add_partial_symbol): Update.
2732 * dwarf2/index-write.c (write_psymbols): Change parameters.
2733 (write_one_signatured_type): Update.
2734 (recursively_count_psymbols): Update.
2735 (recursively_write_psymbols): Update.
2736 (class debug_names) <recursively_write_psymbols>: Update.
2737 <write_psymbols>: Change parameters.
2738 <write_one_signatured_type>: Update.
2739 * dbxread.c (read_dbx_symtab): Update.
2740 (dbx_end_psymtab): Use partial_symtab::empty.
2741 * ctfread.c (struct ctf_context) <pst>: New member.
2742 (create_partial_symtab): Set it.
2743 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2744 (scan_partial_symbols): Use the psymtab's context. Update.
2745
2746 2020-10-17 Tom Tromey <tom@tromey.com>
2747
2748 * valprint.c (generic_value_print): Remove comment.
2749 * m2-valprint.c (m2_value_print_inner): Remove comment.
2750 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2751 type.
2752
2753 2020-10-17 Tom de Vries <tdevries@suse.de>
2754
2755 PR symtab/26317
2756 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2757 symbol main.
2758
2759 2020-10-14 Tom de Vries <tdevries@suse.de>
2760
2761 PR gdb/26733
2762 * solib.c (solib_contains_address_p): Handle
2763 'solib->sections == nullptr'.
2764
2765 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2766
2767 PR gdb/26642
2768 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2769 target can't do async.
2770 * target.c (target_wait): Assert that we don't pass
2771 TARGET_WNOHANG to a target that can't async.
2772
2773 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2774
2775 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2776 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2777 * alpha-bsd-nat.c: Adjust include.
2778 * alpha-bsd-tdep.h: Adjust comment.
2779 * alpha-nbsd-tdep.c: Rename to ...
2780 * alpha-netbsd-tdep.c: ... this, adjust include.
2781 * amd64-nbsd-nat.c: Rename to ...
2782 * amd64-netbsd-nat.c: ... this, adjust include.
2783 * amd64-nbsd-tdep.c: Rename to ...
2784 * amd64-netbsd-tdep.c: ... this, adjust include.
2785 * amd64-tdep.h: Adjust include.
2786 * arm-nbsd-nat.c: Rename to ...
2787 * arm-netbsd-nat.c: ... this, adjust include.
2788 * arm-nbsd-tdep.c: Rename to ...
2789 * arm-netbsd-tdep.c: ... this, adjust include.
2790 * arm-nbsd-tdep.h: Rename to ...
2791 * arm-netbsd-tdep.h: ... this, adjust include.
2792 * configure.nat: Adjust file lists.
2793 * configure.tgt: Likewise.
2794 * hppa-nbsd-nat.c: Rename to ...
2795 * hppa-netbsd-nat.c: ... this, adjust include.
2796 * hppa-nbsd-tdep.c: Rename to ...
2797 * hppa-netbsd-tdep.c: ... this, adjust include.
2798 * i386-nbsd-nat.c: Rename to ...
2799 * i386-netbsd-nat.c: ... this, adjust include.
2800 * i386-nbsd-tdep.c: Rename to ...
2801 * i386-netbsd-tdep.c: ... this, adjust include.
2802 * m68k-bsd-nat.c: Adjust include.
2803 * mips-nbsd-nat.c: Rename to ...
2804 * mips-netbsd-nat.c: ... this, adjust include.
2805 * mips-nbsd-tdep.c: Rename to ...
2806 * mips-netbsd-tdep.c: ... this, adjust include.
2807 * mips-nbsd-tdep.h: Rename to ...
2808 * mips-netbsd-tdep.h: ... this.
2809 * nbsd-nat.c: Rename to ...
2810 * netbsd-nat.c: ... this, adjust include.
2811 * nbsd-nat.h: Rename to ...
2812 * netbsd-nat.h: ... this, adjust include.
2813 * nbsd-tdep.c: Rename to ...
2814 * netbsd-tdep.c: ... this, adjust include.
2815 * nbsd-tdep.h: Rename to ...
2816 * netbsd-tdep.h: ... this.
2817 * ppc-nbsd-nat.c: Rename to ...
2818 * ppc-netbsd-nat.c: ... this, adjust include.
2819 * ppc-nbsd-tdep.c: Rename to ...
2820 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2821 * ppc-nbsd-tdep.h: Rename to ...
2822 * ppc-netbsd-tdep.h: ... this.
2823 * sh-nbsd-nat.c: Rename to ...
2824 * sh-netbsd-nat.c: ... this, adjust include.
2825 * sh-nbsd-tdep.c: Rename to ...
2826 * sh-netbsd-tdep.c: ... this, adjust include.
2827 * sparc-nbsd-nat.c: Rename to ...
2828 * sparc-netbsd-nat.c: ... this.
2829 * sparc-nbsd-tdep.c: Rename to ...
2830 * sparc-netbsd-tdep.c: ... this, adjust include.
2831 * sparc64-nbsd-nat.c: Rename to ...
2832 * sparc64-netbsd-nat.c: ... this.
2833 * sparc64-nbsd-tdep.c: Rename to ...
2834 * sparc64-netbsd-tdep.c: ... this, adjust include.
2835 * sparc64-tdep.h: Adjust comment.
2836 * vax-bsd-nat.c: Adjust include.
2837 * vax-nbsd-tdep.c: Rename to ...
2838 * vax-netbsd-tdep.c: ... this, adjust include.
2839
2840 2020-10-12 Tom Tromey <tom@tromey.com>
2841
2842 * target.h (struct target_ops) <get_section_table>: Update.
2843 (target_get_section_table): Update.
2844 * target.c (target_get_section_table, target_section_by_addr)
2845 (memory_xfer_partial_1): Update.
2846 * target-section.h (target_section_table): Now an alias.
2847 * target-delegates.c: Rebuild.
2848 * target-debug.h (target_debug_print_target_section_table_p):
2849 Rename from target_debug_print_struct_target_section_table_p.
2850 * symfile.c (build_section_addr_info_from_section_table): Update.
2851 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2852 * solib-svr4.c (scan_dyntag): Update.
2853 * solib-dsbt.c (scan_dyntag): Update.
2854 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2855 Update.
2856 * record-full.c (record_full_core_target::xfer_partial): Update.
2857 * progspace.h (struct program_space) <target_sections>: Update.
2858 * exec.h (print_section_info): Update.
2859 * exec.c (exec_target::close, build_section_table)
2860 (add_target_sections, add_target_sections_of_objfile)
2861 (remove_target_sections, exec_on_vfork)
2862 (section_table_available_memory)
2863 (section_table_xfer_memory_partial)
2864 (exec_target::get_section_table, exec_target::xfer_partial)
2865 (print_section_info, set_section_command)
2866 (exec_set_section_address, exec_target::has_memory): Update.
2867 * corelow.c (core_target::build_file_mappings)
2868 (core_target::xfer_partial, core_target::info_proc_mappings)
2869 (core_target::info_proc_mappings): Update.
2870 * bfd-target.c (class target_bfd): Update
2871
2872 2020-10-12 Tom Tromey <tom@tromey.com>
2873
2874 * progspace.c (program_space::~program_space): Don't call
2875 clear_section_table.
2876 * exec.h (clear_section_table): Don't declare.
2877 * exec.c (exec_target::close): Update.
2878 (clear_section_table): Remove.
2879
2880 2020-10-12 Tom Tromey <tom@tromey.com>
2881
2882 * exec.c (add_target_sections_of_objfile): Simplify.
2883
2884 2020-10-12 Tom Tromey <tom@tromey.com>
2885
2886 * solib.c (solib_map_sections): Update.
2887 * record-full.c (record_full_core_open_1): Update.
2888 * exec.h (build_section_table): Return a target_section_table.
2889 * exec.c (exec_file_attach): Update.
2890 (build_section_table): Return a target_section_table.
2891 * corelow.c (core_target::core_target): Update.
2892 * bfd-target.c (target_bfd::target_bfd): Update.
2893
2894 2020-10-12 Tom Tromey <tom@tromey.com>
2895
2896 * target.c (target_section_by_addr, memory_xfer_partial_1):
2897 Update.
2898 * target-section.h (struct target_section_table): Use
2899 std::vector.
2900 * symfile.h (build_section_addr_info_from_section_table): Take a
2901 target_section_table.
2902 * symfile.c (build_section_addr_info_from_section_table): Take a
2903 target_section_table.
2904 * solist.h (struct so_list) <sections>: Change type.
2905 <sections_end>: Remove.
2906 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2907 (solib_contains_address_p): Update.
2908 * solib-svr4.c (scan_dyntag): Update.
2909 * solib-dsbt.c (scan_dyntag): Update.
2910 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2911 Update.
2912 * record-full.c (record_full_core_start, record_full_core_end):
2913 Remove.
2914 (record_full_core_sections): New global.
2915 (record_full_core_open_1, record_full_core_target::xfer_partial):
2916 Update.
2917 * exec.h (build_section_table, section_table_xfer_memory_partial)
2918 (add_target_sections): Take a target_section_table.
2919 * exec.c (exec_file_attach, clear_section_table): Update.
2920 (resize_section_table): Remove.
2921 (build_section_table, add_target_sections): Take a
2922 target_section_table.
2923 (add_target_sections_of_objfile, remove_target_sections)
2924 (exec_on_vfork): Update.
2925 (section_table_available_memory): Take a target_section_table.
2926 (section_table_read_available_memory): Update.
2927 (section_table_xfer_memory_partial): Take a target_section_table.
2928 (print_section_info, set_section_command)
2929 (exec_set_section_address, exec_target::has_memory): Update.
2930 * corelow.c (class core_target) <m_core_section_table,
2931 m_core_file_mappings>: Remove braces.
2932 <~core_target>: Remove.
2933 (core_target::core_target): Update.
2934 (core_target::~core_target): Remove.
2935 (core_target::build_file_mappings)
2936 (core_target::xfer_memory_via_mappings)
2937 (core_target::xfer_partial, core_target::info_proc_mappings):
2938 Update.
2939 * bfd-target.c (target_bfd::xfer_partial): Update.
2940 (target_bfd::target_bfd): Update.
2941 (target_bfd::~target_bfd): Remove.
2942
2943 2020-10-12 Tom Tromey <tom@tromey.com>
2944
2945 * target.h (struct target_section, struct target_section_table):
2946 Move to target-section.h.
2947 * target-section.h: New file.
2948
2949 2020-10-12 Pedro Alves <pedro@palves.net>
2950
2951 PR exp/26602
2952 * valops.c (struct struct_field_searcher): New.
2953 (update_search_result): Rename to ...
2954 (struct_field_searcher::update_result): ... this. Simplify
2955 prototype. Record all found fields.
2956 (do_search_struct_field): Rename to ...
2957 (struct_field_searcher::search): ... this. Simplify prototype.
2958 Maintain stack of visited baseclass path. Call update_result for
2959 fields too. Keep searching fields in baseclasses instead of
2960 stopping at the first found field.
2961 (search_struct_field): Use struct_field_searcher. When looking
2962 for fields, report ambiguous access attempts.
2963
2964 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 * frame.c (inside_main_func): Check full symbols as well as
2967 minimal symbols.
2968
2969 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2970
2971 * ada-lang.c (advance_wild_match): Rewrite the function's
2972 description. Change the type of target0, t0 and t1 to char.
2973
2974 2020-10-09 Tom Tromey <tromey@adacore.com>
2975
2976 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2977
2978 2020-10-09 Tom Tromey <tromey@adacore.com>
2979
2980 * ada-lang.h (ada_encode): Return std::string.
2981 * ada-lang.c (ada_encode_1): Return std::string.
2982 (ada_encode): Likewise.
2983 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2984 Update.
2985 * ada-exp.y (block_lookup, write_var_or_type): Update.
2986
2987 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2988
2989 PR exp/26714
2990 * printcmd.c (print_formatted): Handle void results as
2991 unformatted prints.
2992
2993 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2994
2995 * arch/aarch32.c (aarch32_create_target_description): Release the
2996 target_desc_up as late as possible.
2997 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2998 * arch/amd64.c (amd64_create_target_description): Likewise.
2999 * arch/arc.c (arc_create_target_description): Return a
3000 target_desc_up, don't release it.
3001 * arch/arc.h (arc_create_target_description): Update declaration.
3002 (arc_lookup_target_description): Move target_desc_up into the
3003 cache, and return a borrowed pointer.
3004 * arch/arm.c (arm_create_target_description): Release the
3005 target_desc_up as late as possible.
3006 * arch/i386.c (i386_create_target_description): Likewise.
3007 * arch/riscv.h (riscv_create_target_description): Update
3008 declaration to match definition.
3009 * arch/tic6x.c (tic6x_create_target_description): Release the
3010 target_desc_up as late as possible.
3011
3012 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3013
3014 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3015 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3016
3017 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3018
3019 * source.c (directory_command): Notify observers that "directories"
3020 parameter has changed.
3021
3022 2020-10-08 Tom Tromey <tom@tromey.com>
3023
3024 * cli/cli-cmds.c (print_disassembly): Style function name and
3025 addresses. Add _() wrappers.
3026
3027 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3028
3029 * NEWS: Mention ARC support in GDBserver.
3030
3031 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3032
3033 * arch/aarch32.c (aarch32_create_target_description): Release
3034 unique_ptr returned from allocate_target_description.
3035 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3036 * arch/amd64.c (amd64_create_target_description): Likewise.
3037 * arch/arc.c (arc_create_target_description): Likewise.
3038 * arch/arm.c (arm_create_target_description): Likewise.
3039 * arch/i386.c (i386_create_target_description): Likewise.
3040 * arch/riscv.c (riscv_create_target_description): Update return
3041 type. Handle allocate_target_description returning a unique_ptr.
3042 (riscv_lookup_target_description): Update to handle unique_ptr.
3043 * arch/tic6x.c (tic6x_create_target_description): Release
3044 unique_ptr returned from allocate_target_description.
3045 * features/microblaze-with-stack-protect.c: Regenerate.
3046 * features/microblaze.c: Regenerate.
3047 * features/mips-dsp-linux.c: Regenerate.
3048 * features/mips-linux.c: Regenerate.
3049 * features/mips64-dsp-linux.c: Regenerate.
3050 * features/mips64-linux.c: Regenerate.
3051 * features/nds32.c: Regenerate.
3052 * features/nios2.c: Regenerate.
3053 * features/or1k.c: Regenerate.
3054 * features/rs6000/powerpc-32.c: Regenerate.
3055 * features/rs6000/powerpc-32l.c: Regenerate.
3056 * features/rs6000/powerpc-403.c: Regenerate.
3057 * features/rs6000/powerpc-403gc.c: Regenerate.
3058 * features/rs6000/powerpc-405.c: Regenerate.
3059 * features/rs6000/powerpc-505.c: Regenerate.
3060 * features/rs6000/powerpc-601.c: Regenerate.
3061 * features/rs6000/powerpc-602.c: Regenerate.
3062 * features/rs6000/powerpc-603.c: Regenerate.
3063 * features/rs6000/powerpc-604.c: Regenerate.
3064 * features/rs6000/powerpc-64.c: Regenerate.
3065 * features/rs6000/powerpc-64l.c: Regenerate.
3066 * features/rs6000/powerpc-7400.c: Regenerate.
3067 * features/rs6000/powerpc-750.c: Regenerate.
3068 * features/rs6000/powerpc-860.c: Regenerate.
3069 * features/rs6000/powerpc-altivec32.c: Regenerate.
3070 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3071 * features/rs6000/powerpc-altivec64.c: Regenerate.
3072 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3073 * features/rs6000/powerpc-e500.c: Regenerate.
3074 * features/rs6000/powerpc-e500l.c: Regenerate.
3075 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3076 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3077 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3078 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3079 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3080 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3081 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3082 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3083 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3084 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3085 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3086 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3087 * features/rs6000/powerpc-vsx32.c: Regenerate.
3088 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3089 * features/rs6000/powerpc-vsx64.c: Regenerate.
3090 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3091 * features/rs6000/rs6000.c: Regenerate.
3092 * features/rx.c: Regenerate.
3093 * features/s390-gs-linux64.c: Regenerate.
3094 * features/s390-linux32.c: Regenerate.
3095 * features/s390-linux32v1.c: Regenerate.
3096 * features/s390-linux32v2.c: Regenerate.
3097 * features/s390-linux64.c: Regenerate.
3098 * features/s390-linux64v1.c: Regenerate.
3099 * features/s390-linux64v2.c: Regenerate.
3100 * features/s390-te-linux64.c: Regenerate.
3101 * features/s390-tevx-linux64.c: Regenerate.
3102 * features/s390-vx-linux64.c: Regenerate.
3103 * features/s390x-gs-linux64.c: Regenerate.
3104 * features/s390x-linux64.c: Regenerate.
3105 * features/s390x-linux64v1.c: Regenerate.
3106 * features/s390x-linux64v2.c: Regenerate.
3107 * features/s390x-te-linux64.c: Regenerate.
3108 * features/s390x-tevx-linux64.c: Regenerate.
3109 * features/s390x-vx-linux64.c: Regenerate.
3110 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3111 from allocate_target_description.
3112 * target-descriptions.c (allocate_target_description): Update
3113 return type.
3114 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3115 allocate_target_description.
3116
3117 2020-10-07 Tom Tromey <tromey@adacore.com>
3118
3119 * unittests/search-memory-selftests.c: New file.
3120 * Makefile.in (SELFTESTS_SRCS): Add
3121 unittests/search-memory-selftests.c.
3122
3123 2020-10-07 Tom Tromey <tromey@adacore.com>
3124
3125 PR gdb/16930:
3126 * findcmd.c (_initialize_mem_search): Mention that the range is
3127 inclusive.
3128
3129 2020-10-07 Tom Tromey <tromey@adacore.com>
3130
3131 * target.h (simple_search_memory): Don't declare.
3132 * target.c (simple_search_memory): Move to gdbsupport.
3133 (default_search_memory): Update.
3134 * remote.c (remote_target::search_memory): Update.
3135
3136 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3137
3138 * Makefile.in (COMPILE): Add CXXFLAGS.
3139 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3140 (check-headers): Add CXXFLAGS.
3141
3142 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3143
3144 * arc-linux-tdep.h: New file.
3145 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3146 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3147 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3148 arc_linux_gregset, arc_linux_v2_regset,
3149 arc_linux_iterate_over_regset_sections,
3150 arc_linux_core_read_description): Implement.
3151 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3152 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3153 (arc_gdbarch_features_create): Add.
3154 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3155
3156 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3157
3158 * arch/arc.h: Rename "arc_gdbarch_features" to
3159 "arc_arch_features".
3160 * arc-tdep.h: Likewise.
3161 * arc-tdep.c: Likewise.
3162
3163 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3164
3165 * infcmd.c (attach_command): Remove the redundant call to
3166 `clear_proceed_status`.
3167
3168 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3169
3170 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3171
3172 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3173
3174 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3175 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3176 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3177
3178 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3179
3180 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3181 (_initialize_break_catch_sig): Don't allocate array.
3182
3183 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3184
3185 * symtab.c (find_pc_line): Return unmapped addresses when the
3186 requested address is also unmapped.
3187
3188 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3189
3190 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3191 tui/tui-out.h.
3192
3193 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3194
3195 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3196 type::is_vector instead of TYPE_VECTOR.
3197
3198 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3199
3200 * auto-load.c (auto_load_objfile_script_1): Don't use
3201 debugfile_holder as temporary variable when stripping drive
3202 letter.
3203
3204 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3205
3206 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3207 Add TYPE_CODE_COMPLEX.
3208 (amd64_windows_return_value): Fix types returned via XMM0.
3209
3210 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3211
3212 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3213 AArch64/ARM maintainers.
3214
3215 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3216
3217 * NEWS: Mention set/show debug event-loop.
3218
3219 2020-10-02 Tom Tromey <tromey@adacore.com>
3220
3221 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3222 REG_EXTENDED.
3223
3224 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3225
3226 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3227 * procfs.c (procfs_inferior_created): Remove.
3228 (_initialize_procfs): Don't register procfs_inferior_created.
3229
3230 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3231
3232 * async-event.c (invoke_async_signal_handlers): Add debug
3233 print.
3234 (check_async_event_handlers): Likewise.
3235 * event-top.c (show_debug_event_loop): New function.
3236 (_initialize_event_top): Register "set debug event-loop"
3237 setting.
3238
3239 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3240
3241 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3242 * debug.h: Remove.
3243 * infrun.c: Include gdbsupport/common-debug.h.
3244 * linux-nat.c: Likewise.
3245
3246 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3247
3248 * async-event.h (create_async_signal_handler): Add name
3249 parameter.
3250 (create_async_event_handler): Likewise.
3251 * async-event.c (struct async_signal_handler) <name>: New field.
3252 (struct async_event_handler) <name>: New field.
3253 (create_async_signal_handler): Assign name.
3254 (create_async_event_handler): Assign name.
3255 * event-top.c (async_init_signals): Pass name when creating
3256 handler.
3257 * infrun.c (_initialize_infrun): Likewise.
3258 * record-btrace.c (record_btrace_push_target): Likewise.
3259 * record-full.c (record_full_open): Likewise.
3260 * remote-notif.c (remote_notif_state_allocate): Likewise.
3261 * remote.c (remote_target::open_1): Likewise.
3262 * tui/tui-win.c (tui_initialize_win): Likewise.
3263
3264 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3265
3266 * async-event.c (initialize_async_signal_handlers): Pass name to
3267 add_file_handler
3268 * event-top.c (ui_register_input_event_handler): Likewise.
3269 * linux-nat.c (linux_nat_target::async): Likewise.
3270 * run-on-main-thread.c (_initialize_run_on_main_thread):
3271 Likewise
3272 * ser-base.c (reschedule): Likewise.
3273 (ser_base_async): Likewise.
3274 * tui/tui-io.c: Likewise.
3275 * top.h (struct ui) <num>: New field.
3276 * top.c (highest_ui_num): New variable.
3277 (ui::ui): Initialize num.
3278
3279 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3280
3281 * observable.h <inferior_created>: Remove parameters. Update all
3282 listeners.
3283 * inferior.h (post_create_inferior): Remove target parameter.
3284 Update all callers.
3285
3286 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3287
3288 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3289 and DW_MACRO_undef_strx.
3290 (dwarf_decode_macros): Likewise
3291 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3292 which is the value of DW_AT_str_offsets_base.
3293 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3294 str_offsets_base.
3295
3296 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3297
3298 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3299
3300 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3301
3302 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3303 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3304
3305 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3306
3307 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3308
3309 2020-09-30 Tom de Vries <tdevries@suse.de>
3310
3311 PR symtab/26683
3312 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3313
3314 2020-09-30 Tom Tromey <tromey@adacore.com>
3315
3316 * dwarf2/read.c (handle_variant): Use constant_value.
3317
3318 2020-09-29 Tom Tromey <tom@tromey.com>
3319
3320 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3321 (read_file_scope, dwarf2_get_pc_bounds)
3322 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3323 (read_structure_type, handle_struct_member_die)
3324 (read_enumeration_type, read_array_type, read_set_type)
3325 (read_tag_pointer_type, read_tag_reference_type)
3326 (read_subroutine_type, read_base_type, read_subrange_type)
3327 (read_full_die_1, partial_die_info::read)
3328 (partial_die_info::read, by, new_symbol)
3329 (dwarf2_const_value_data, dwarf2_const_value_attr)
3330 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3331 (prepare_one_comp_unit): Update.
3332 * dwarf2/attribute.h (DW_UNSND): Remove.
3333
3334 2020-09-29 Tom Tromey <tom@tromey.com>
3335
3336 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3337 (read_subroutine_type, partial_die_info::read)
3338 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3339 (dwarf2_add_member_fn): Update.
3340 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3341 * dwarf2/attribute.c (attribute::as_boolean): New method.
3342
3343 2020-09-29 Tom Tromey <tom@tromey.com>
3344
3345 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3346 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3347 method.
3348 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3349
3350 2020-09-29 Tom Tromey <tom@tromey.com>
3351
3352 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3353 the attribute's form.
3354
3355 2020-09-29 Tom Tromey <tom@tromey.com>
3356
3357 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3358 (dwarf2_add_member_fn): Update.
3359 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3360 * dwarf2/attribute.c (attribute::defaulted): New method, from
3361 is_valid_DW_AT_defaulted.
3362
3363 2020-09-29 Tom Tromey <tom@tromey.com>
3364
3365 * dwarf2/read.c (dw2_get_file_names_reader)
3366 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3367 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3368 (dwarf2_symbol_mark_computed): Use as_unsigned.
3369 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3370 method.
3371 <form_is_section_offset>: Update comment.
3372
3373 2020-09-29 Tom Tromey <tom@tromey.com>
3374
3375 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3376 dwarf2_default_access_attribute. Look up attribute.
3377 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3378 Update.
3379
3380 2020-09-29 Tom Tromey <tom@tromey.com>
3381
3382 * dwarf2/read.c (skip_one_die): Update.
3383 (read_full_die_1): Change how reprocessing is done.
3384 (partial_die_info::read): Update.
3385 (read_attribute_value): Remove need_reprocess parameter.
3386 (read_attribute): Likewise.
3387 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3388 New method.
3389
3390 2020-09-29 Tom Tromey <tom@tromey.com>
3391
3392 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3393 (dwarf2_const_value_attr, dump_die_shallow)
3394 (dwarf2_fetch_constant_bytes): Update.
3395 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3396 comment.
3397 <set_address>: New method.
3398 (DW_ADDR): Remove.
3399 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3400 (attribute::as_string, attribute::as_address): Add assert.
3401
3402 2020-09-29 Tom Tromey <tom@tromey.com>
3403
3404 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3405 (read_attribute_reprocess, read_attribute_value): Update.
3406 (read_attribute): Clear requires_reprocessing.
3407 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3408 form_requires_reprocessing>: New methods.
3409 <string_init>: Clear requires_reprocessing.
3410 <set_unsigned_reprocess>: New method.
3411 <name>: Shrink by one bit.
3412 <requires_reprocessing>: New member.
3413 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3414 method.
3415
3416 2020-09-29 Tom Tromey <tom@tromey.com>
3417
3418 * dwarf2/read.c (read_attribute_value): Update.
3419 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3420 set_unsigned>: New methods.
3421 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3422
3423 2020-09-29 Tom Tromey <tom@tromey.com>
3424
3425 * dwarf2/read.c (get_alignment, read_array_order)
3426 (read_attribute_value, dwarf2_const_value_attr)
3427 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3428 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3429 New methods.
3430 (DW_SND): Remove.
3431
3432 2020-09-29 Tom Tromey <tom@tromey.com>
3433
3434 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3435 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3436 Update.
3437 * dwarf2/attribute.h (struct attribute) <as_signature,
3438 set_signature>: New methods.
3439 (DW_SIGNATURE): Remove.
3440
3441 2020-09-29 Tom Tromey <tom@tromey.com>
3442
3443 * dwarf2/read.c (read_call_site_scope)
3444 (handle_data_member_location, dwarf2_add_member_fn)
3445 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3446 (partial_die_info::read, read_attribute_value)
3447 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3448 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3449 (dwarf2_symbol_mark_computed): Update.
3450 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3451 methods.
3452 (DW_BLOCK): Remove.
3453 * dwarf2/attribute.c (attribute::form_is_block): Add
3454 DW_FORM_data16.
3455
3456 2020-09-29 Tom Tromey <tom@tromey.com>
3457
3458 * dwarf2/read.c (read_cutu_die_from_dwo)
3459 (read_attribute_reprocess, read_attribute_value, read_attribute)
3460 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3461 (dwarf2_fetch_constant_bytes): Update.
3462 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3463 <set_string_noncanonical, set_string_canonical>: New methods.
3464 <string_is_canonical>: Update comment.
3465 <canonical_string_p>: Add assert.
3466 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3467 * dwarf2/attribute.c (attribute::form_is_string): New method.
3468 (attribute::string): Use it.
3469
3470 2020-09-29 Tom Tromey <tom@tromey.com>
3471
3472 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3473 (dump_die_shallow): Use canonical_string_p.
3474 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3475 method.
3476
3477 2020-09-29 Tom Tromey <tom@tromey.com>
3478
3479 * dwarf2/read.c (partial_die_info::read)
3480 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3481 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3482 attribute::as_string.
3483
3484 2020-09-29 Tom Tromey <tom@tromey.com>
3485
3486 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3487 DW_ADDR.
3488 (attribute::string): Don't use DW_STRING.
3489 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3490 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3491
3492 2020-09-29 Tom Tromey <tom@tromey.com>
3493
3494 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3495 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3496 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3497 * dwarf2/attribute.h (struct attribute): Rename methods.
3498 * dwarf2/attribute.c (attribute::as_address): Rename from
3499 value_as_address.
3500 (attribute::as_string): Rename from value_as_string.
3501
3502 2020-09-29 Tom Tromey <tom@tromey.com>
3503
3504 * dwarf2/read.c (partial_die_info::read) <case
3505 DW_AT_linkage_name>: Use value_as_string.
3506 (dwarf2_string_attr): Use value_as_string.
3507 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3508 method.
3509 * dwarf2/attribute.c (attribute::value_as_string): New method.
3510
3511 2020-09-29 Pedro Alves <pedro@palves.net>
3512
3513 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3514 defined before using '#pragma GCC diagnostic' instead of checking
3515 __clang__.
3516
3517 2020-09-28 Tom Tromey <tom@tromey.com>
3518
3519 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3520 (handle_signal_stop): Update.
3521 * procfs.c (procfs_target::insert_watchpoint): Update.
3522 * target.h (target_have_steppable_watchpoint): Now a function.
3523
3524 2020-09-28 Tom Tromey <tom@tromey.com>
3525
3526 * infrun.c (set_schedlock_func): Update.
3527 * target.h (target_can_lock_scheduler): Now a function.
3528
3529 2020-09-28 Tom Tromey <tom@tromey.com>
3530
3531 * inferior.h (class inferior) <has_execution>: Update.
3532 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3533 * valops.c (find_function_in_inferior)
3534 (value_allocate_space_in_inferior): Update.
3535 * top.c (kill_or_detach): Update.
3536 * target.c (target_preopen, set_target_permissions): Update.
3537 (target_has_execution_current): Remove.
3538 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3539 Update.
3540 * solib.c (update_solib_list, reload_shared_libraries): Update.
3541 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3542 * solib-dsbt.c (enable_break): Update.
3543 * score-tdep.c (score7_fetch_inst): Update.
3544 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3545 Update.
3546 * remote.c (remote_target::start_remote)
3547 (remote_target::remote_check_symbols, remote_target::open_1)
3548 (remote_target::remote_detach_1, remote_target::verify_memory)
3549 (remote_target::xfer_partial, remote_target::read_description)
3550 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3551 * record-full.c (record_full_open_1): Update.
3552 * record-btrace.c (record_btrace_target_open): Update.
3553 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3554 (value_nsstring): Update.
3555 * linux-thread-db.c (add_thread_db_info)
3556 (thread_db_find_new_threads_silently, check_thread_db_callback)
3557 (try_thread_db_load_1, record_thread): Update.
3558 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3559 Update.
3560 * linux-fork.c (checkpoint_command): Update.
3561 * infrun.c (set_non_stop, set_observer_mode)
3562 (check_multi_target_resumption, for_each_just_stopped_thread)
3563 (maybe_remove_breakpoints, normal_stop)
3564 (class infcall_suspend_state): Update.
3565 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3566 (info_program_command, attach_command): Update.
3567 * infcall.c (call_function_by_hand_dummy): Update.
3568 * inf-loop.c (inferior_event_handler): Update.
3569 * gcore.c (gcore_command, derive_heap_segment): Update.
3570 * exec.c (exec_file_command): Update.
3571 * eval.c (evaluate_subexp): Update.
3572 * compile/compile.c (compile_to_object): Update.
3573 * cli/cli-dump.c (restore_command): Update.
3574 * breakpoint.c (update_watchpoint)
3575 (update_inserted_breakpoint_locations)
3576 (insert_breakpoint_locations, get_bpstat_thread): Update.
3577 * target.h (target_has_execution): Remove macro.
3578 (target_has_execution_current): Don't declare.
3579 (target_has_execution): Rename from target_has_execution_1. Add
3580 argument default.
3581
3582 2020-09-28 Tom Tromey <tom@tromey.com>
3583
3584 * mi/mi-main.c (exec_reverse_continue)
3585 (mi_cmd_list_target_features): Update.
3586 * infrun.c (set_exec_direction_func): Update.
3587 * target.c (default_execution_direction): Update.
3588 * reverse.c (exec_reverse_once): Update.
3589 * target.h (target_can_execute_reverse): Now a function.
3590
3591 2020-09-28 Tom Tromey <tom@tromey.com>
3592
3593 * tui/tui-regs.c (tui_get_register)
3594 (tui_data_window::show_registers): Update.
3595 * thread.c (scoped_restore_current_thread::restore)
3596 (scoped_restore_current_thread::scoped_restore_current_thread):
3597 Update.
3598 * regcache-dump.c (regcache_print): Update.
3599 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3600 Update.
3601 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3602 * mep-tdep.c (current_me_module, current_options): Update.
3603 * linux-thread-db.c (thread_db_load): Update.
3604 * infcmd.c (registers_info, info_vector_command)
3605 (info_float_command): Update.
3606 * ia64-tdep.c (ia64_frame_prev_register)
3607 (ia64_sigtramp_frame_prev_register): Update.
3608 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3609 * gcore.c (derive_stack_segment): Update.
3610 * frame.c (get_current_frame, has_stack_frames): Update.
3611 * findvar.c (language_defn::read_var_value): Update.
3612 * arm-tdep.c (arm_pc_is_thumb): Update.
3613 * target.c (target_has_registers): Rename from
3614 target_has_registers_1.
3615 * target.h (target_has_registers): Remove macro.
3616 (target_has_registers): Rename from target_has_registers_1.
3617
3618 2020-09-28 Tom Tromey <tom@tromey.com>
3619
3620 * windows-tdep.c (tlb_make_value): Update.
3621 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3622 * thread.c (scoped_restore_current_thread::restore)
3623 (scoped_restore_current_thread::scoped_restore_current_thread)
3624 (thread_command): Update.
3625 * stack.c (backtrace_command_1, frame_apply_level_command)
3626 (frame_apply_all_command, frame_apply_command): Update.
3627 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3628 Update.
3629 * gcore.c (derive_stack_segment): Update.
3630 * frame.c (get_current_frame, has_stack_frames): Update.
3631 * auxv.c (info_auxv_command): Update.
3632 * ada-tasks.c (ada_build_task_list): Update.
3633 * target.c (target_has_stack): Rename from target_has_stack_1.
3634 * target.h (target_has_stack): Remove macro.
3635 (target_has_stack): Rename from target_has_stack_1.
3636
3637 2020-09-28 Tom Tromey <tom@tromey.com>
3638
3639 * target.c (target_has_memory): Rename from target_has_memory_1.
3640 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3641 * thread.c (scoped_restore_current_thread::restore)
3642 (scoped_restore_current_thread::scoped_restore_current_thread):
3643 Update.
3644 * frame.c (get_current_frame, has_stack_frames): Update.
3645 * target.h (target_has_memory): Remove macro.
3646 (target_has_memory): Rename from target_has_memory_1.
3647
3648 2020-09-28 Tom Tromey <tom@tromey.com>
3649
3650 * target.c (target_has_all_memory_1): Remove.
3651 * target.h (target_has_all_memory): Remove define.
3652 (target_has_all_memory_1): Don't declare.
3653
3654 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3655
3656 * ser-base.c: Adjust comments formatting.
3657
3658 2020-09-27 Tom Tromey <tom@tromey.com>
3659
3660 PR tui/25342:
3661 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3662
3663 2020-09-27 Tom Tromey <tom@tromey.com>
3664
3665 PR tui/25342:
3666 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3667
3668 2020-09-27 Tom Tromey <tom@tromey.com>
3669
3670 * unittests/tui-selftests.c: Update.
3671 * tui/tui-winsource.h (struct tui_source_window_base)
3672 <extra_margin, show_line_number, refresh_pad>: New methods.
3673 <m_max_length, m_pad>: New members.
3674 (tui_copy_source_line): Update.
3675 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3676 first_col, line_width, ndigits parameters. Add length.
3677 (tui_source_window_base::show_source_line): Write to pad. Line
3678 number now 0-based.
3679 (tui_source_window_base::refresh_pad): New method.
3680 (tui_source_window_base::show_source_content): Write to pad. Call
3681 refresh_pad.
3682 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3683 not refill.
3684 (tui_source_window_base::update_exec_info): Call
3685 show_line_number.
3686 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3687 method.
3688 <m_digits>: New member.
3689 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3690 and m_max_length.
3691 (tui_source_window::show_line_number): New method.
3692 * tui/tui-io.h (tui_puts): Fix comment.
3693 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3694 m_max_length.
3695
3696 2020-09-27 Tom Tromey <tom@tromey.com>
3697
3698 * tui/tui-winsource.c
3699 (tui_source_window_base::set_is_exec_point_at): Don't call
3700 show_source_line.
3701
3702 2020-09-27 Tom Tromey <tom@tromey.com>
3703
3704 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3705 method.
3706 <erase>: Update.
3707 <cursor_x, cursor_y>: Remove.
3708 <m_inner_window>: New member.
3709 (tui_py_window::rerender): Create inner window.
3710 (tui_py_window::output): Write to inner window.
3711
3712 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3713
3714 PR python/26586
3715 * cli/cli-script.c (execute_control_commands): don't set
3716 instream to nullptr here as this breaks the from_tty argument
3717 to gdb.execute in Python.
3718 (execute_user_command): set instream to nullptr here instead.
3719
3720 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3721
3722 * infrun.h (infrun_debug_printf): Fix formatting.
3723 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3724
3725 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3726
3727 * compile/compile-object-load.h (struct munmap_list): Add
3728 explicitly-defined move constructor.
3729
3730 2020-09-24 Tom Tromey <tromey@adacore.com>
3731
3732 PR tui/26638:
3733 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3734 method.
3735 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3736 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3737 (tui_prev_win): Rewrite.
3738
3739 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3740
3741 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3742 in WOW64 processes as SIGINT.
3743 * nat/windows-nat.h: Make wow64_process a shared variable.
3744 * windows-nat.c: Remove static wow64_process variable.
3745
3746 2020-09-23 Tom Tromey <tom@tromey.com>
3747
3748 PR symtab/25470:
3749 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3750 offset and bit size.
3751 * printcmd.c (print_scalar_formatted): Handle zero-length
3752 integer.
3753 (print_scalar_formatted): Use bit_size_differs_p.
3754 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3755 constant.
3756 (union type_specific): <int_stuff>: New member.
3757 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3758 methods.
3759 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3760 TYPE_SPECIFIC_FIELD.
3761 (recursive_dump_type, copy_type_recursive): Update.
3762 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3763 DW_AT_data_bit_offset.
3764
3765 2020-09-23 Tom Tromey <tom@tromey.com>
3766
3767 * utils.h (class gdb_argv): Add move operators.
3768 <append>: New methods.
3769 * compile/compile.c (build_argc_argv): Remove.
3770 (compile_args_argc): Remove.
3771 (compile_args_argv): Change type.
3772 (set_compile_args): Simplify.
3773 (append_args): Remove.
3774 (filter_args): Remove argcp parameter.
3775 (get_args): Return gdb_argv. Simplify.
3776 (compile_to_object): Update.
3777
3778 2020-09-23 Tom Tromey <tom@tromey.com>
3779
3780 * compile/compile-object-run.c (do_module_cleanup)
3781 <~do_module_cleanup> :Remove.
3782 (do_module_cleanup): Update.
3783 * compile/compile-object-load.h (struct munmap_list): Add move
3784 assignment operator.
3785 <source_file>: Now a std::string.
3786 <munmap_list>: Rename. No longer a pointer.
3787 * compile/compile-object-load.c (struct setup_sections_data): Add
3788 constructor.
3789 <setup_one_section>: Declare.
3790 <munmap_list>: Move earlier.
3791 <m_bfd>: New member.
3792 <m_last_size, m_last_section_first, m_last_prot,
3793 m_last_max_alignment>: Rename, add initializers where needed.
3794 (setup_sections_data::setup_one_section): Rename from
3795 setup_sections. Update.
3796 (compile_object_load): Update. Don't use bfd_map_over_sections.
3797
3798 2020-09-23 Tom Tromey <tom@tromey.com>
3799
3800 * compile/compile-object-run.c (struct do_module_cleanup): Add
3801 parameters to constructor. Update destructor.
3802 <source_file, scope, scope_data, out_value_type, out_value_addr,
3803 munmap_list_head, objfile_name_string>: Remove.
3804 <module>: New member.
3805 (do_module_cleanup): Update.
3806 (compile_object_run): Update.
3807
3808 2020-09-23 Tom Tromey <tom@tromey.com>
3809
3810 * compile/compile.c (eval_compile_command): Update.
3811 * compile/compile-object-run.h (compile_object_run): Take a
3812 compile_module_up.
3813 * compile/compile-object-run.c (compile_object_run): Take a
3814 compile_module_up.
3815 * compile/compile-object-load.h (struct compile_module): Add
3816 constructor, destructor.
3817 (compile_module_up): New typedef.
3818 (compile_object_load): Return compile_object_up.
3819 * compile/compile-object-load.c (compile_object_load): Return
3820 compile_module_up.
3821
3822 2020-09-23 Tom Tromey <tom@tromey.com>
3823
3824 * compile/compile-object-run.c (struct do_module_cleanup): Add
3825 constructor, destructor.
3826 <objfile_name_string>: Don't use struct hack.
3827 (do_module_cleanup): Use delete.
3828 (compile_object_run): Use new.
3829
3830 2020-09-23 Tom Tromey <tom@tromey.com>
3831
3832 * compile/compile-cplus-types.c
3833 (compile_cplus_convert_struct_or_union): Use std::vector.
3834 (compile_cplus_convert_func): Likewise.
3835 * compile/compile-c-types.c (convert_func): Use std::vector.
3836
3837 2020-09-21 Tom Tromey <tromey@adacore.com>
3838
3839 * sparc-tdep.c (sparc32_skip_prologue): Use
3840 skip_prologue_using_sal.
3841
3842 2020-09-19 Tom Tromey <tom@tromey.com>
3843
3844 * symfile.c (add_section_size_callback): Remove.
3845 (load_one_section): Rename from load_section_callback. Change
3846 parameters.
3847 (generic_load): Use foreach.
3848
3849 2020-09-19 Tom Tromey <tom@tromey.com>
3850
3851 * exec.c (add_to_section_table): Remove.
3852 (build_section_table): Use foreach.
3853
3854 2020-09-19 Tom Tromey <tom@tromey.com>
3855
3856 * elfread.c (elf_locate_sections): Change parameters.
3857 (elf_symfile_read): Use foreach.
3858
3859 2020-09-19 Tom Tromey <tom@tromey.com>
3860
3861 * cli/cli-dump.c (struct callback_data): Remove.
3862 (restore_one_section): Rename from restore_section_callback.
3863 Change parameters.
3864 (restore_binary_file): Change parameters.
3865 (restore_command): Use foreach.
3866
3867 2020-09-19 Tom Tromey <tom@tromey.com>
3868
3869 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3870 (gcore_copy_callback): Likewise.
3871 (gcore_memory_sections): Use foreach.
3872
3873 2020-09-19 Tom Tromey <tom@tromey.com>
3874
3875 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3876 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3877 parameters.
3878 (generic_elf_osabi_sniffer): Use foreach.
3879 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3880 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3881
3882 2020-09-19 Tom Tromey <tom@tromey.com>
3883
3884 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3885 (dwarf2_get_dwz_file): Use foreach.
3886 (dwarf2_locate_dwo_sections): Change parameters.
3887 (open_and_init_dwo_file): Use foreach.
3888 (dwarf2_locate_common_dwp_sections): Change parameters.
3889 (open_and_init_dwp_file): Use foreach.
3890
3891 2020-09-19 Tom Tromey <tom@tromey.com>
3892
3893 * symfile.h: (find_lowest_section): Don't declare.
3894 * symfile.c (find_lowest_section): Now static. Change
3895 parameters.
3896 (struct place_section_arg): Remove.
3897 (place_section): Change parameters.
3898 (addr_info_make_relative): Use foreach.
3899 (symfile_dummy_outputs): Remove.
3900 (default_symfile_relocate): Use foreach.
3901
3902 2020-09-19 Tom Tromey <tom@tromey.com>
3903
3904 * objfiles.c (add_to_objfile_sections): Rename from
3905 add_to_objfile_sections_full.
3906 (add_to_objfile_sections): Remove.
3907 (build_objfile_section_table): Use foreach.
3908
3909 2020-09-19 Tom Tromey <tom@tromey.com>
3910
3911 * stap-probe.c (get_stap_base_address_1): Remove.
3912 (get_stap_base_address): Use foreach.
3913
3914 2020-09-19 Tom Tromey <tom@tromey.com>
3915
3916 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3917 parameters.
3918 (gdb_bfd_close_or_warn): Use foreach.
3919
3920 2020-09-19 Tom Tromey <tom@tromey.com>
3921
3922 * corelow.c (add_to_thread_list): Change parameters.
3923 (core_target_open): Use foreach.
3924
3925 2020-09-19 Tom Tromey <tom@tromey.com>
3926
3927 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3928 existing function.
3929
3930 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3931
3932 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3933 for arrays.
3934
3935 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3936
3937 * eval.c: Remove 'f-lang.h' include.
3938 (value_f90_subarray): Moved to f-lang.c.
3939 (eval_call): Renamed to...
3940 (evaluate_subexp_do_call): ...this, is no longer static, header
3941 comment moved into header file.
3942 (evaluate_funcall): Update call to eval_call.
3943 (skip_undetermined_arglist): Moved to f-lang.c.
3944 (fortran_value_subarray): Likewise.
3945 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3946 moved to evaluate_subexp_f.
3947 (calc_f77_array_dims): Moved to f-lang.c
3948 * expprint.c (print_subexp_funcall): New function.
3949 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3950 moved to print_subexp_f, OP_FUNCALL uses new function.
3951 (dump_subexp_body_funcall): New function.
3952 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3953 moved to dump_subexp_f, OP_FUNCALL uses new function.
3954 * expression.h (evaluate_subexp_do_call): Declare.
3955 * f-lang.c (value_f90_subarray): Moved from eval.c.
3956 (skip_undetermined_arglist): Likewise.
3957 (calc_f77_array_dims): Likewise.
3958 (fortran_value_subarray): Likewise.
3959 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3960 (operator_length_f): Likewise.
3961 (print_subexp_f): Likewise.
3962 (dump_subexp_body_f): Likewise.
3963 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3964 declaration of this operation to here.
3965 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3966 support moved to operator_length_f.
3967 * parser-defs.h (dump_subexp_body_funcall): Declare.
3968 (print_subexp_funcall): Declare.
3969 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3970 fortran-operator.def.
3971
3972 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3973
3974 * eval.c (fortran_value_subarray): New function, content is taken
3975 from...
3976 (evaluate_subexp_standard): ...here, in two places. Now arrays
3977 and strings both call the new function.
3978 (calc_f77_array_dims): Add header comment, handle strings.
3979
3980 2020-09-18 Victor Collod <vcollod@nvidia.com>
3981
3982 PR gdb/26635
3983 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3984 (i386_analyze_prologue): Call i386_skip_endbr.
3985
3986 2020-09-18 Tom Tromey <tromey@adacore.com>
3987
3988 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3989 (windows_nat_target::wait): Update.
3990 * target/wait.h (enum target_wait_flag): New. Use
3991 DEF_ENUM_FLAGS_TYPE.
3992 * target/target.h (target_wait): Change type of options.
3993 * target.h (target_options_to_string, default_target_wait):
3994 Update.
3995 (struct target_ops) <wait>: Change type of options.
3996 * target.c (target_wait, default_target_wait, do_option): Change
3997 type of "options".
3998 (target_options_to_string): Likewise.
3999 * target-delegates.c: Rebuild.
4000 * target-debug.h (target_debug_print_target_wait_flags): Rename
4001 from target_debug_print_options.
4002 * sol-thread.c (class sol_thread_target) <wait>: Update.
4003 (sol_thread_target::wait): Update.
4004 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4005 (rs6000_nat_target::wait): Update.
4006 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4007 Update.
4008 (remote_target::wait_ns, remote_target::wait_as): Change type of
4009 "options".
4010 (remote_target::wait): Update.
4011 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4012 (gdbsim_target::wait): Update.
4013 * record-full.c (class record_full_base_target) <wait>: Update.
4014 (record_full_wait_1): Change type of "options".
4015 (record_full_base_target::wait): Update.
4016 * record-btrace.c (class record_btrace_target) <wait>: Update.
4017 (record_btrace_target::wait): Update.
4018 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4019 Update.
4020 (ravenscar_thread_target::wait): Update.
4021 * procfs.c (class procfs_target) <wait>: Update.
4022 (procfs_target::wait): Update.
4023 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4024 * obsd-nat.c (obsd_nat_target::wait): Update.
4025 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4026 (nto_procfs_target::wait): Update.
4027 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4028 * nbsd-nat.c (nbsd_wait): Change type of "options".
4029 (nbsd_nat_target::wait): Update.
4030 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4031 (thread_db_target::wait): Update.
4032 * linux-nat.h (class linux_nat_target) <wait>: Update.
4033 * linux-nat.c (linux_nat_target::wait): Update.
4034 (linux_nat_wait_1): Update.
4035 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4036 "options".
4037 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4038 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4039 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4040 (go32_nat_target::wait): Update.
4041 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4042 * gnu-nat.c (gnu_nat_target::wait): Update.
4043 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4044 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4045 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4046 * darwin-nat.c (darwin_nat_target::wait): Update.
4047 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4048 (bsd_uthread_target::wait): Update.
4049 * aix-thread.c (class aix_thread_target) <wait>: Update.
4050 (aix_thread_target::wait): Update.
4051
4052 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4053
4054 * compile/compile-object-run.c (create_copied_type_recursive): New
4055 function.
4056 (compile_object_run): Use new function.
4057
4058 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4059
4060 * NEWS: Mention x86_64 Cygwin core file support.
4061
4062 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4063
4064 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4065 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4066
4067 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4068
4069 * windows-tdep.h: Add prototypes.
4070 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4071 (i386_windows_core_pid_to_str): Move and rename ...
4072 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4073 (windows_core_pid_to_str): ... and here.
4074 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4075
4076 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4077 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4078 (amd64_windows_init_abi_common): ... and register.
4079
4080 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4081
4082 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4083 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4084
4085 2020-09-18 Pedro Alves <pedro@palves.net>
4086
4087 PR gdb/26631
4088 * thread.c (thread_find_command): Switch inferior before calling
4089 target methods.
4090
4091 2020-09-17 Tom Tromey <tromey@adacore.com>
4092
4093 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4094 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4095 (tdesc_arch_data_up): New typedef.
4096 (tdesc_use_registers, tdesc_data_alloc): Update.
4097 (tdesc_data_cleanup): Don't declare.
4098 * target-descriptions.c (tdesc_data_alloc): Return a
4099 tdesc_arch_data_up.
4100 (tdesc_arch_data_deleter::operator()): Rename from
4101 tdesc_data_cleanup. Change argument type.
4102 (tdesc_use_registers): Change early_data to an rvalue reference.
4103 (tdesc_use_registers): Don't use delete.
4104 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4105 * s390-tdep.c (s390_gdbarch_init): Update.
4106 * rx-tdep.c (rx_gdbarch_init): Update.
4107 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4108 * riscv-tdep.c (riscv_gdbarch_init): Update.
4109 * or1k-tdep.c (or1k_gdbarch_init): Update.
4110 * nios2-tdep.c (nios2_gdbarch_init): Update.
4111 * nds32-tdep.c (nds32_gdbarch_init): Update.
4112 * mips-tdep.c (mips_gdbarch_init): Update.
4113 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4114 * m68k-tdep.c (m68k_gdbarch_init): Update.
4115 * i386-tdep.c (i386_gdbarch_init): Update.
4116 * arm-tdep.c (arm_gdbarch_init): Update.
4117 * arc-tdep.c (arc_tdesc_init): Update.
4118 (arc_gdbarch_init): Update.
4119 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4120
4121 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4122
4123 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4124 for WOW64 processes.
4125
4126 2020-09-17 Tom Tromey <tom@tromey.com>
4127
4128 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4129
4130 2020-09-17 Tom Tromey <tom@tromey.com>
4131
4132 * value.c (preserve_values): Update.
4133 * python/py-type.c (save_objfile_types): Update.
4134 * guile/scm-type.c (save_objfile_types): Update.
4135 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4136 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4137 * compile/compile-object-run.c (compile_object_run): Update.
4138
4139 2020-09-17 Tom Tromey <tom@tromey.com>
4140
4141 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4142 Remove.
4143 <m_table>: Now htab_up.
4144 * typeprint.c (typedef_hash_table::recursively_update)
4145 (typedef_hash_table::add_template_parameters)
4146 (typedef_hash_table::typedef_hash_table): Update.
4147 (typedef_hash_table::~typedef_hash_table): Remove.
4148 (typedef_hash_table::typedef_hash_table)
4149 (typedef_hash_table::find_global_typedef)
4150 (typedef_hash_table::find_typedef): Update.
4151
4152 2020-09-17 Tom Tromey <tom@tromey.com>
4153
4154 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4155
4156 2020-09-17 Tom Tromey <tom@tromey.com>
4157
4158 * linespec.c (class decode_compound_collector)
4159 <~decode_compound_collector>: Remove.
4160 <m_unique_syms>: Now htab_up.
4161 (decode_compound_collector::operator ()): Update.
4162 (class symtab_collector) <~symtab_collector>: Remove.
4163 <m_symtab_table>: Now htab_up.
4164 (symtab_collector::operator ()): Update.
4165
4166 2020-09-17 Tom Tromey <tom@tromey.com>
4167
4168 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4169 (filename_seen_cache::clear): Update.
4170 (~filename_seen_cache): Remove.
4171 (filename_seen_cache::seen): Update.
4172 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4173 htab_up.
4174 <~filename_seen_cache>: Remove.
4175 <traverse>: Update.
4176
4177 2020-09-17 Tom Tromey <tom@tromey.com>
4178
4179 * completer.c (completion_tracker::discard_completions)
4180 (completion_tracker::~completion_tracker)
4181 (completion_tracker::maybe_add_completion)
4182 (completion_tracker::remove_completion)
4183 (completion_tracker::recompute_lowest_common_denominator)
4184 (completion_tracker::build_completion_result): Update.
4185 * completer.h (class completion_tracker) <have_completions>:
4186 Update.
4187 <m_entries_hash>: Now htab_up.
4188
4189 2020-09-17 Tom Tromey <tom@tromey.com>
4190
4191 * breakpoint.c (ambiguous_names_p): Use htab_up.
4192
4193 2020-09-17 Tom Tromey <tom@tromey.com>
4194
4195 * auto-load.c (struct auto_load_pspace_info)
4196 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4197 <loaded_script_files, loaded_script_texts>: Change type to
4198 htab_up.
4199 (~auto_load_pspace_info) Remove.
4200 (init_loaded_scripts_info, maybe_add_script_file)
4201 (maybe_add_script_text, auto_load_info_scripts): Update.
4202
4203 2020-09-17 Tom Tromey <tromey@adacore.com>
4204
4205 * c-exp.y (name_obstack): Now static.
4206
4207 2020-09-17 Chungyi Chi <demonic@csie.io>
4208
4209 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4210
4211 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4212
4213 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4214 (add_solib_catchpoint): Likewise.
4215 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4216 to bool.
4217 (add_solib_catchpoint): Change int parameter/variable to bool.
4218 (catch_load_or_unload): Likewise.
4219 (init_catchpoint): Likewise.
4220 (create_fork_vfork_event_catchpoint): Likewise.
4221 (catch_fork_command_1): Likewise.
4222 (catch_exec_command_1): Likewise.
4223
4224 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4225
4226 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4227 Change instance_flags to m_instance_flags.
4228
4229 2020-09-16 Tom Tromey <tromey@adacore.com>
4230
4231 PR gdb/26598:
4232 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4233
4234 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4235
4236 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4237 PL_FLAG_EXEC.
4238 (fbsd_nat_target::insert_exec_catchpoint)
4239 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4240 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4241 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4242
4243 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4244
4245 * configure.ac: Remove check for kinfo_getvmmap().
4246 * configure, config.in: Regenerate.
4247 * fbsd-nat.c (fbsd_read_mapping): Remove
4248 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4249 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4250 kinfo_get_vmmap() are always present.
4251
4252 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4253
4254 * fbsd-nat.c: Always include support for
4255 TARGET_OBJECT_SIGNAL_INFO.
4256
4257 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4258
4259 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4260 sysctl and remove procfs fallback.
4261
4262 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4263
4264 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4265 * fbsd-nat.h: Likewise.
4266
4267 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4268
4269 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4270 argument.
4271
4272 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4273
4274 * ada-lang.c (ada_language_data): Delete.
4275 (ada_language): Remove references to ada_language_data.
4276 * c-lang.c (c_language_data): Delete.
4277 (c_language): Remove references to c_language_data.
4278 (cplus_language_data): Delete.
4279 (cplus_language): Remove references to cplus_language_data.
4280 (asm_language_data): Delete.
4281 (asm_language): Remove references to asm_language_data.
4282 (minimal_language_data): Delete.
4283 (minimal_language): Remove references to minimal_language_data.
4284 * d-lang.c (d_language_data): Delete.
4285 (d_language): Remove references to d_language_data.
4286 * f-lang.c (f_language_data): Delete.
4287 (f_language): Remove references to f_language_data.
4288 * go-lang.c (go_language_data): Delete.
4289 (go_language): Remove references to go_language_data.
4290 * language.c (unknown_language_data): Delete.
4291 (unknown_language): Remove references to unknown_language_data.
4292 (auto_language_data): Delete.
4293 (auto_language): Remove references to auto_language_data.
4294 * language.h (language_data): Delete struct.
4295 (language_defn): No longer inherit from language_data.
4296 * m2-lang.c (m2_language_data): Delete.
4297 (m2_language): Remove references to m2_language_data.
4298 * objc-lang.c (objc_language_data): Delete.
4299 (objc_language): Remove references to objc_language_data.
4300 * opencl-lang.c (opencl_language_data): Delete.
4301 (opencl_language): Remove references to opencl_language_data.
4302 * p-lang.c (pascal_language_data): Delete.
4303 (pascal_language): Remove references to pascal_language_data.
4304 * rust-lang.c (rust_language_data): Delete.
4305 (rust_language): Remove references to rust_language_data.
4306
4307 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4308
4309 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4310 initializer.
4311 (ada_language::opcode_print_table): New member function.
4312 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4313 (c_language::opcode_print_table): New member function.
4314 (cplus_language_data): Remove la_op_print_tab initializer.
4315 (cplus_language::opcode_print_table): New member function.
4316 (asm_language_data): Remove la_op_print_tab initializer.
4317 (asm_language::opcode_print_table): New member function.
4318 (minimal_language_data): Remove la_op_print_tab initializer.
4319 (minimal_language::opcode_print_table): New member function.
4320 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4321 (d_language::opcode_print_table): New member function.
4322 * expprint.c (print_subexp_standard): Update call to
4323 opcode_print_table.
4324 (op_string): Likewise.
4325 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4326 (f_language::opcode_print_table): New member function.
4327 * go-lang.c (go_language_data): Remove la_op_print_tab
4328 initializer.
4329 (go_language::opcode_print_table): New member function.
4330 * language.c (unknown_language_data): Remove la_op_print_tab
4331 initializer.
4332 (unknown_language::opcode_print_table): New member function.
4333 (auto_language_data): Remove la_op_print_tab initializer.
4334 (auto_language::opcode_print_table): New member function.
4335 * language.h (language_data): Remove la_op_print_tab field.
4336 (language_defn::opcode_print_table): Declare new member function.
4337 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4338 initializer.
4339 (m2_language::opcode_print_table): New member function.
4340 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4341 initializer.
4342 (objc_language::opcode_print_table): New member function.
4343 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4344 initializer.
4345 (opencl_language::opcode_print_table): New member function.
4346 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4347 initializer.
4348 (pascal_language::opcode_print_table): New member function.
4349 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4350 initializer.
4351 (rust_language::opcode_print_table): New member function.
4352
4353 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4354
4355 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4356 (ada_language::expression_ops): New member function.
4357 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4358 (c_language::expression_ops): New member function.
4359 (cplus_language_data): Remove la_exp_desc initializer.
4360 (cplus_language::expression_ops): New member function.
4361 (asm_language_data): Remove la_exp_desc initializer.
4362 (asm_language::expression_ops): New member function.
4363 (minimal_language_data): Remove la_exp_desc initializer.
4364 (minimal_language::expression_ops): New member function.
4365 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4366 (d_language::expression_ops): New member function.
4367 * eval.c (evaluate_subexp): Update call to expression_ops.
4368 * expprint.c (print_subexp): Likewise.
4369 (op_name): Likewise.
4370 (dump_subexp_body): Likewise.
4371 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4372 (f_language::expression_ops): New member function.
4373 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4374 (go_language::expression_ops): New member function.
4375 * language.c (language_defn::expression_ops): New function.
4376 (unknown_language_data): Remove la_exp_desc initializer.
4377 (auto_language_data): Likewise.
4378 * language.h (language_data): Remove la_exp_desc field.
4379 (language_defn::expression_ops): Declare new member function.
4380 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4381 (m2_language::expression_ops): New member function.
4382 * objc-lang.c (objc_language_data): Remove la_exp_desc
4383 initializer.
4384 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4385 initializer.
4386 (opencl_language::expression_ops): New member function.
4387 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4388 * parse.c (operator_length): Update call to expression_ops.
4389 (exp_iterate): Likewise.
4390 * rust-lang.c (rust_language_data): Remove la_exp_desc
4391 initializer.
4392 (ruse_language::expression_ops): New member function.
4393
4394 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4395
4396 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4397 initializer.
4398 (ada_language::varobj_ops): New member function.
4399 * c-lang.c (c_language_data): Remove la_varobj_ops
4400 initializer.
4401 (cplus_language_data): Likewise.
4402 (cplus_language::varobj_ops): New member function.
4403 (asm_language_data): Remove la_varobj_ops initializer.
4404 (minimal_language_data): Likewise.
4405 * d-lang.c (d_language_data): Likewise.
4406 * f-lang.c (f_language_data): Likewise.
4407 * go-lang.c (go_language_data): Likewise.
4408 * language.c (language_defn::varobj_ops): New function.
4409 (unknown_language_data): Remove la_varobj_ops
4410 initializer.
4411 (auto_language_data): Likewise.
4412 * language.h (language_data): Remove la_varobj_ops field.
4413 (language_defn::varobj_ops): Declare new member function.
4414 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4415 * objc-lang.c (objc_language_data): Likewise.
4416 * opencl-lang.c (opencl_language_data): Likewise.
4417 * p-lang.c (pascal_language_data): Likewise.
4418 * rust-lang.c (rust_language_data): Likewise.
4419 * varobj.c (varobj_create): Update call to varobj_ops.
4420 * varobj.h (default_varobj_ops): Delete define.
4421
4422 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4423
4424 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4425 initializer.
4426 * c-lang.c (c_language_data): Likewise.
4427 (c_language::macro_expansion): New member function.
4428 (cplus_language_data): Likewise.
4429 (cplus_language::macro_expansion): New member function.
4430 (asm_language_data): Likewise.
4431 (asm_language::macro_expansion): New member function.
4432 (minimal_language_data): Likewise.
4433 (minimal_language::macro_expansion): New member function.
4434 * d-lang.c (d_language_data): Remove la_macro_expansion
4435 initializer.
4436 * f-lang.c (f_language_data): Likewise.
4437 * go-lang.c (go_language_data): Likewise.
4438 * language.c (unknown_language_data): Likewise.
4439 (auto_language_data): Likewise.
4440 * language.h (language_data): Remove la_macro_expansion field.
4441 (language_defn::macro_expansion): New member function.
4442 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4443 initializer.
4444 * objc-lang.c (objc_language_data): Likewise.
4445 (objc_language::macro_expansion): New member function.
4446 * opencl-lang.c (opencl_language_data): Likewise.
4447 (opencl_language::macro_expansion): New member function.
4448 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4449 initializer.
4450 * rust-lang.c (rust_language_data): Likewise.
4451 * symtab.c (default_collect_symbol_completion_matches_break_on):
4452 Update call to macro_expansion.
4453
4454 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4455
4456 * ada-lang.c (ada_language_data): Remove la_array_ordering
4457 initializer.
4458 * c-lang.c (c_language_data): Likewise.
4459 (cplus_language_data): Likewise.
4460 (asm_language_data): Likewise.
4461 (minimal_language_data): Likewise.
4462 * d-lang.c (d_language_data): Likewise.
4463 * dwarf2/read.c (read_array_order): Update for call to
4464 array_ordering.
4465 * f-lang.c (f_language_data): Remove la_array_ordering
4466 initializer.
4467 (f_language::array_ordering): New member function.
4468 * go-lang.c (go_language_data): Remove la_array_ordering
4469 initializer.
4470 * language.c (unknown_language_data): Likewise.
4471 (auto_language_data): Likewise.
4472 * language.h (language_data): Delete la_array_ordering field.
4473 (language_defn::array_ordering): New member function.
4474 * m2-lang.c (m2_language_data): Remove la_array_ordering
4475 initializer.
4476 * objc-lang.c (objc_language_data): Likewise.
4477 * opencl-lang.c (opencl_language_data): Likewise.
4478 * p-lang.c (pascal_language_data): Likewise.
4479 * rust-lang.c (rust_language_data): Likewise.
4480
4481 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4482
4483 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4484 initializer.
4485 * c-lang.c (c_language_data): Likewise.
4486 (cplus_language_data): Likewise.
4487 (asm_language_data): Likewise.
4488 (minimal_language_data): Likewise.
4489 * d-lang.c (d_language_data): Likewise.
4490 * f-lang.c (f_language_data): Likewise.
4491 (f_language::case_sensitivity): New member function.
4492 * go-lang.c (go_language_data): Remove la_case_sensitivity
4493 initializer.
4494 * language.c (enum case_mode): Moved here from language.h.
4495 (case_mode): Make static.
4496 (show_case_command): Update for case_sensitivity being a method.
4497 (set_case_command): Likewise.
4498 (set_range_case): Likewise.
4499 (unknown_language_data): Remove la_case_sensitivity initializer.
4500 (auto_language_data): Likewise.
4501 * language.h (case_mode): Delete, move enum declaration to
4502 language.c.
4503 (language_data): Delete la_case_sensitivity field.
4504 (language_defn::case_sensitivity): New member function.
4505 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4506 initializer.
4507 * objc-lang.c (objc_language_data): Likewise.
4508 * opencl-lang.c (opencl_language_data): Likewise.
4509 * p-lang.c (pascal_language_data): Likewise.
4510 * rust-lang.c (rust_language_data): Likewise.
4511
4512 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4513
4514 * ada-lang.c (ada_language_data): Remove la_range_check
4515 initializer.
4516 * c-lang.c (c_language_data): Likewise.
4517 (cplus_language_data): Likewise.
4518 (asm_language_data): Likewise.
4519 (minimal_language_data): Likewise.
4520 * d-lang.c (d_language_data): Likewise.
4521 * f-lang.c (f_language_data): Likewise.
4522 (f_language::range_checking_on_by_default): New member function.
4523 * go-lang.c (go_language_data): Remove la_range_check initializer.
4524 * language.c (enum range_mode): Moved here from language.h.
4525 (range_mode): Made static.
4526 (show_range_command): Update to use
4527 range_checking_on_by_default.
4528 (set_range_command): Likewise.
4529 (set_range_case): Likewise.
4530 (unknown_language_data): Remove la_range_check initializer.
4531 (auto_language_data): Likewise.
4532 * language.h (range_mode): Delete. Enum definition moved to
4533 language.c.
4534 (language_data): Remove la_range_check field.
4535 (language_defn::range_checking_on_by_default): New member
4536 function.
4537 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4538 (m2_language::range_checking_on_by_default): New member function.
4539 * objc-lang.c (objc_language_data): Remove la_range_check
4540 initializer.
4541 * opencl-lang.c (opencl_language_data): Likewise.
4542 * p-lang.c (pascal_language_data): Likewise.
4543 (pascal_language::range_checking_on_by_default): New member
4544 function.
4545 * rust-lang.c (rust_language_data): Remove la_range_check
4546 initializer.
4547 (rust_language::range_checking_on_by_default): New member
4548 function.
4549
4550 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4551
4552 * dwarf2/read.c (dwarf2_physname): Remove special case for
4553 language_go.
4554 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4555 member function.
4556
4557 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4558
4559 * ada-lang.c (ada_language_data): Remove
4560 la_store_sym_names_in_linkage_form_p initializer.
4561 (ada_language::store_sym_names_in_linkage_form_p): New member
4562 function.
4563 * c-lang.c (c_language_data): Remove
4564 la_store_sym_names_in_linkage_form_p initializer.
4565 (c_language::store_sym_names_in_linkage_form_p): New member
4566 function.
4567 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4568 initializer.
4569 (asm_language_data): Likewise.
4570 (asm_language::store_sym_names_in_linkage_form_p): New member
4571 function.
4572 (minimal_language_data): Remove
4573 la_store_sym_names_in_linkage_form_p initializer.
4574 (minimal_language::store_sym_names_in_linkage_form_p): New member
4575 function.
4576 * d-lang.c (d_language_data): Remove
4577 la_store_sym_names_in_linkage_form_p initializer.
4578 * dwarf2/read.c (dwarf2_physname): Update call to
4579 store_sym_names_in_linkage_form_p.
4580 * f-lang.c (f_language_data): Remove
4581 la_store_sym_names_in_linkage_form_p initializer.
4582 * go-lang.c (go_language_data): Remove
4583 la_store_sym_names_in_linkage_form_p initializer.
4584 * language.c (unknown_language_data): Remove
4585 la_store_sym_names_in_linkage_form_p initializer.
4586 (unknown_language::store_sym_names_in_linkage_form_p): New member
4587 function.
4588 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4589 initializer.
4590 (auto_language::store_sym_names_in_linkage_form_p): New member
4591 function.
4592 * language.h (language_data): Remove
4593 la_store_sym_names_in_linkage_form_p member variable.
4594 (language_defn::store_sym_names_in_linkage_form_p): New member
4595 function.
4596 * m2-lang.c (m2_language_data): Remove
4597 la_store_sym_names_in_linkage_form_p initializer.
4598 * objc-lang.c (objc_language_data): Likewise.
4599 * opencl-lang.c (opencl_language_data): Likewise.
4600 * p-lang.c (pascal_language_data): Likewise.
4601 * rust-lang.c (rust_language_data): Likewise.
4602
4603 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4604
4605 * ada-lang.c (ada_language_data): Remove string_lower_bound
4606 initializer.
4607 * c-lang.c (c_language_data): Likewise.
4608 (cplus_language_data): Likewise.
4609 (asm_language_data): Likewise.
4610 (minimal_language_data): Likewise.
4611 * d-lang.c (d_language_data): Likewise.
4612 * f-lang.c (f_language_data): Likewise.
4613 * go-lang.c (go_language_data): Likewise.
4614 * language.c (unknown_language_data): Likewise.
4615 (auto_language_data): Likewise.
4616 * language.h (language_data): Remove string_lower_bound field.
4617 (language_defn::string_lower_bound): New member function.
4618 * m2-lang.c (m2_language_data): Remove string_lower_bound
4619 initializer.
4620 (m2_language::string_lower_bound): New member function.
4621 * objc-lang.c (objc_language_data): Remove string_lower_bound
4622 initializer.
4623 * opencl-lang.c (opencl_language_data): Likewise.
4624 * p-lang.c (pascal_language_data): Likewise.
4625 * rust-lang.c (rust_language_data): Likewise.
4626 * valops.c (value_cstring): Update call to string_lower_bound.
4627 (value_string): Likewise.
4628 * value.c (allocate_repeated_value): Likewise.
4629
4630 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4631
4632 * valops.c (value_repeat): Fix incorrect argument name in comment.
4633
4634 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4635
4636 * ada-lang.c (ada_language_data): Remove c_style_arrays
4637 initializer.
4638 (ada_language::c_style_arrays_p): New member fuction.
4639 * c-lang.c (c_language_data): Remove c_style_arrays
4640 initializer.
4641 (cplus_language_data): Likewise.
4642 (asm_language_data): Likewise.
4643 (minimal_language_data): Likewise.
4644 * d-lang.c (d_language_data): Likewise.
4645 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4646 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4647 (f_language::c_style_arrays_p): New member function.
4648 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4649 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4650 * language.c (unknown_language_data): Remove c_style_arrays
4651 initializer.
4652 (auto_language_data): Likewise.
4653 * language.h (language_data): Remove c_style_arrays field.
4654 (language_defn::c_style_arrays_p): New member function.
4655 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4656 (m2_language::c_style_arrays_p): New member function.
4657 * objc-lang.c (objc_language_data): Remove c_style_arrays
4658 initializer.
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 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4663 and update local variable to a bool.
4664 * valops.c (value_cast): Update call to c_style_arrays_p.
4665 (value_array): Likewise.
4666 * value.c (coerce_array): Likewise.
4667
4668 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4669
4670 * ada-lang.c (ada_language_data): Remove la_language initializer.
4671 * c-lang.c (c_language_data): Likewise.
4672 (cplus_language_data): Likewise.
4673 (asm_language_data): Likewise.
4674 (minimal_language_data): Likewise.
4675 * d-lang.c (d_language_data): Likewise.
4676 * f-lang.c (f_language_data): Likewise.
4677 * go-lang.c (go_language_data): Likewise.
4678 * language.c (unknown_language_data): Likewise.
4679 (auto_language_data): Likewise.
4680 * language.h (language_data): Remove la_language field.
4681 (language_defn::language_defn): Initialise la_language field.
4682 (language_defn::la_language): New member variable.
4683 * m2-lang.c (m2_language_data): Remove la_language field.
4684 * objc-lang.c (objc_language_data): Likewise.
4685 * opencl-lang.c (opencl_language_data): Likewise.
4686 * p-lang.c (pascal_language_data): Likewise.
4687 * rust-lang.c (rust_language_data): Likewise.
4688
4689 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4690
4691 * ada-lang.c (ada_extensions): Delete, moved into
4692 ada_language::filename_extensions.
4693 (ada_language_data): Remove la_filename_extensions initializer.
4694 (ada_language::filename_extensions): New member function.
4695 * c-lang.c (c_extensions): Delete, moved into
4696 c_language::filename_extensions.
4697 (c_language_data): Remove la_filename_extensions initializer.
4698 (c_language::filename_extensions): New member function.
4699 (cplus_extensions): Delete, moved into
4700 cplus_language::filename_extensions.
4701 (cplus_language_data): Remove la_filename_extensions initializer.
4702 (cplus_language::filename_extensions): New member function.
4703 (asm_extensions): Delete, moved into
4704 asm_language::filename_extensions.
4705 (asm_language_data): Remove la_filename_extensions initializer.
4706 (asm_language::filename_extensions): New member function.
4707 (minimal_language_data): Remove la_filename_extensions
4708 initializer.
4709 * d-lang.c (d_extensions): Delete, moved into
4710 d_language::filename_extensions.
4711 (d_language_data): Remove la_filename_extensions initializer.
4712 (d_language::filename_extensions): New member function.
4713 * f-lang.c (f_extensions): Delete, moved into
4714 f_language::filename_extensions.
4715 (f_language_data): Remove la_filename_extensions initializer.
4716 (f_language::filename_extensions): New member function.
4717 * go-lang.c (go_language_data): Remove la_filename_extensions
4718 initializer.
4719 * language.c (add_set_language_command): Update now that
4720 filename_extensions returns a vector.
4721 (unknown_language_data): Remove la_filename_extensions
4722 initializer.
4723 (auto_language_data): Likewise.
4724 * language.h (language_data): Remove la_filename_extensions field.
4725 (language_defn::filename_extensions): New member function.
4726 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4727 initializer.
4728 * objc-lang.c (objc_extensions): Delete, moved into
4729 objc_language::filename_extensions.
4730 (objc_language_data): Remove la_filename_extensions initializer.
4731 (objc_language::filename_extensions): New member function.
4732 * opencl-lang.c (opencl_language_data): Remove
4733 la_filename_extensions initializer.
4734 * p-lang.c (pascal_extensions): Delete, moved into
4735 pascal_language::filename_extensions.
4736 (pascal_language_data): Remove la_filename_extensions initializer.
4737 (pascal_language::filename_extensions): New member function.
4738 * rust-lang.c (rust_extensions): Delete, moved into
4739 rust_language::filename_extensions.
4740 (rust_language_data): Remove la_filename_extensions initializer.
4741 (rust_language::filename_extensions): New member function.
4742 * symfile.c (add_filename_language): Add new assert.
4743
4744 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4745
4746 * ada-lang.c (ada_language_data): Remove la_name and
4747 la_natural_name initializers.
4748 (ada_language::name): New member function.
4749 (ada_language::natural_name): New member function.
4750 * c-lang.c (c_language_data): Remove la_name and
4751 la_natural_name initializers.
4752 (c_language::name): New member function.
4753 (c_language::natural_name): New member function.
4754 (cplus_language_data): Remove la_name and
4755 la_natural_name initializers.
4756 (cplus_language::name): New member function.
4757 (cplus_language::natural_name): New member function.
4758 (asm_language_data): Remove la_name and
4759 la_natural_name initializers.
4760 (asm_language::name): New member function.
4761 (asm_language::natural_name): New member function.
4762 (minimal_language_data): Remove la_name and
4763 la_natural_name initializers.
4764 (minimal_language::name): New member function.
4765 (minimal_language::natural_name): New member function.
4766 * compile/compile.c (compile_to_object): Update call to
4767 lanugage_defn::name.
4768 * d-lang.c (d_language_data): Remove la_name and
4769 la_natural_name initializers.
4770 (d_language::name): New member function.
4771 (d_language::natural_name): New member function.
4772 * expprint.c (print_subexp_standard): Update call to
4773 language_defn::name.
4774 (dump_raw_expression): Likewise
4775 (dump_prefix_expression): Likewise.
4776 * f-lang.c (f_language_data): Remove la_name and
4777 la_natural_name initializers.
4778 (f_language::name): New member function.
4779 (f_language::natural_name): New member function.
4780 * go-lang.c (go_language_data): Remove la_name and
4781 la_natural_name initializers.
4782 (go_language::name): New member function.
4783 (go_language::natural_name): New member function.
4784 * language.c (show_language_command): Update call to
4785 language_defn::name.
4786 (set_language_command): Likewise.
4787 (language_enum): Likewise.
4788 (language_str): Likewise.
4789 (add_set_language_command): Likewise, use
4790 language_defn::natural_name in the doc string.
4791 (unknown_language_data): Remove la_name and
4792 la_natural_name initializers.
4793 (unknown_language::name): New member function.
4794 (unknown_language::natural_name): New member function.
4795 (auto_language_data): Remove la_name and
4796 la_natural_name initializers.
4797 (auto_language::name): New member function.
4798 (auto_language::natural_name): New member function.
4799 (language_lookup_primitive_type_as_symbol): Update call to
4800 language_defn::name.
4801 * language.h (language_data): Remove la_name and la_natural_name
4802 member variables.
4803 (language_defn::name): New member function.
4804 (language_defn::natural_name): New member function.
4805 * m2-lang.c (m2_language_data): Remove la_name and
4806 la_natural_name initializers.
4807 (m2_language::name): New member function.
4808 (m2_language::natural_name): New member function.
4809 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4810 language_defn::natural_name.
4811 * objc-lang.c (objc_language_data): Remove la_name and
4812 la_natural_name initializers.
4813 (objc_language::name): New member function.
4814 (objc_language::natural_name): New member function.
4815 * opencl-lang.c (opencl_language_data): Remove la_name and
4816 la_natural_name initializers.
4817 (opencl_language::name): New member function.
4818 (opencl_language::natural_name): New member function.
4819 * p-lang.c (pascal_language_data): Remove la_name and
4820 la_natural_name initializers.
4821 (pascal_language::name): New member function.
4822 (pascal_language::natural_name): New member function.
4823 * rust-lang.c (rust_language_data): Remove la_name and
4824 la_natural_name initializers.
4825 (rust_language::name): New member function.
4826 (rust_language::natural_name): New member function.
4827 * symtab.c (lookup_language_this): Update call to
4828 language_defn::name.
4829
4830 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4831
4832 * ada-lang.c (ada_language_data): Remove la_name_of_this
4833 initializer.
4834 * ax-gdb.c (gen_expr): Update call to name_of_this.
4835 * c-exp.y (classify_name): Likewise.
4836 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4837 (cplus_language_data): Likewise.
4838 (cplus_language::name_of_this): New member function.
4839 (asm_language_data): Remove la_name_of_this initializer.
4840 (minimal_language_data): Likewise.
4841 * d-lang.c (d_language_data): Likewise.
4842 (d_language::name_of_this): New member function.
4843 * expprint.c (print_subexp_standard): Update call to name_of_this.
4844 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4845 * go-lang.c (go_language_data): Likewise.
4846 * language.c (unknown_language_data): Likewise.
4847 (unknown_language::name_of_this): New member function.
4848 (auto_language_data): Remove la_name_of_this initializer.
4849 (auto_language::name_of_this): New member function.
4850 * language.h (language_data): Delete la_name_of_this member
4851 variable.
4852 (language_defn::name_of_this): New member function.
4853 * m2-lang.c (m2_language_data): Remove la_name_of_this
4854 initializer.
4855 * objc-lang.c (objc_language_data): Likewise.
4856 (objc_language::name_of_this): New member function.
4857 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4858 initializer.
4859 * p-lang.c (pascal_language_data): Likewise.
4860 (pascal_language::name_of_this): New member function.
4861 * rust-lang.c (rust_language_data): Remove la_name_of_this
4862 initializer.
4863 * symtab.c (lookup_language_this): Update call to name_of_this.
4864 (lookup_symbol_aux): Likewise.
4865 * valops.c (value_of_this): Likewise.
4866
4867 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4868
4869 * ada-lang.c (ada_language_data): Remove
4870 la_struct_too_deep_ellipsis initializer.
4871 (ada_language::struct_too_deep_ellipsis): New member function.
4872 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4873 initializer.
4874 (cplus_language_data): Likewise.
4875 (asm_language_data): Likewise.
4876 (minimal_language_data): Likewise.
4877 * cp-valprint.c (cp_print_value): Update call to
4878 struct_too_deep_ellipsis.
4879 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4880 initializer.
4881 * f-lang.c (f_language_data): Likewise.
4882 (f_language::struct_too_deep_ellipsis): New member function.
4883 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4884 initializer.
4885 * language.c (unknown_language_data): Likewise.
4886 (auto_language_data): Likewise.
4887 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4888 member variable.
4889 (language_defn::struct_too_deep_ellipsis): New member function.
4890 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4891 initializer.Q
4892 * objc-lang.c (objc_language_data): Likewise.
4893 * opencl-lang.c (opencl_language_data): Likewise.
4894 * p-lang.c (pascal_language_data): Likewise.
4895 * rust-lang.c (rust_language_data): Likewise.
4896 * valprint.c (val_print_check_max_depth): Update call to
4897 struct_too_deep_ellipsis.
4898
4899 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4900
4901 * MAINTAINERS (Write After Approval): Add myself.
4902
4903 2020-09-15 Tom Tromey <tom@tromey.com>
4904
4905 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4906 Remove.
4907
4908 2020-09-15 Tom Tromey <tom@tromey.com>
4909
4910 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4911 and TYPE_CODE_METHODPTR cases.
4912 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4913 (c_value_print_inner): Update.
4914 * valprint.c (generic_value_print_memberptr): New function, from
4915 c_value_print_memberptr.
4916 (generic_value_print): Use it. Call cplus_print_method_ptr.
4917
4918 2020-09-15 Tom Tromey <tromey@adacore.com>
4919
4920 * python/python-internal.h (PyInt_FromLong): Remove define.
4921 * python/py-value.c (convert_value_from_python): Use
4922 gdb_py_object_from_longest.
4923 * python/py-type.c (typy_get_code): Use
4924 gdb_py_object_from_longest.
4925 * python/py-symtab.c (salpy_get_line): Use
4926 gdb_py_object_from_longest.
4927 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4928 gdb_py_object_from_longest.
4929 * python/py-record.c (recpy_gap_reason_code): Use
4930 gdb_py_object_from_longest.
4931 * python/py-record-btrace.c (recpy_bt_insn_size)
4932 (recpy_bt_func_level, btpy_list_count): Use
4933 gdb_py_object_from_longest.
4934 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4935 gdb_py_object_from_longest. Fix error handling.
4936 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4937 gdb_py_object_from_longest.
4938 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4939 gdb_py_object_from_longest.
4940 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4941 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4942 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4943
4944 2020-09-15 Tom Tromey <tromey@adacore.com>
4945
4946 * python/python.c (gdbpy_parameter_value): Use
4947 gdb_py_object_from_ulongest.
4948
4949 2020-09-15 Tom Tromey <tromey@adacore.com>
4950
4951 * python/py-infevents.c (create_register_changed_event_object):
4952 Use gdb_py_object_from_longest.
4953 * python/py-exitedevent.c (create_exited_event_object): Use
4954 gdb_py_object_from_longest.
4955
4956 2020-09-15 Tom Tromey <tromey@adacore.com>
4957
4958 * python/python.c (gdbpy_parameter_value): Use
4959 gdb_py_object_from_longest.
4960 * python/py-type.c (convert_field, typy_range): Use
4961 gdb_py_object_from_longest.
4962 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4963 gdb_py_object_from_longest.
4964 * python/py-lazy-string.c (stpy_get_length): Use
4965 gdb_py_object_from_longest.
4966 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4967 gdb_py_object_from_longest.
4968 * python/py-infevents.c (create_memory_changed_event_object): Use
4969 gdb_py_object_from_longest.
4970 * python/py-inferior.c (infpy_get_num): Use
4971 gdb_py_object_from_longest.
4972 (infpy_get_pid): Likewise.
4973
4974 2020-09-15 Tom Tromey <tromey@adacore.com>
4975
4976 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4977 defines.
4978 * python/py-value.c (valpy_long): Use
4979 gdb_py_object_from_ulongest.
4980 * python/py-symtab.c (salpy_get_pc): Use
4981 gdb_py_object_from_ulongest.
4982 (salpy_get_last): Likewise.
4983 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4984 gdb_py_object_from_ulongest.
4985 * python/py-lazy-string.c (stpy_get_address): Use
4986 gdb_py_object_from_ulongest.
4987 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4988 * python/py-arch.c (archpy_disassemble): Use
4989 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4990 error handling.
4991
4992 2020-09-15 Tom Tromey <tromey@adacore.com>
4993
4994 * python/python-internal.h (gdb_py_long_from_longest): Remove
4995 defines.
4996 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4997 * python/py-type.c (convert_field, typy_get_sizeof): Use
4998 gdb_py_object_from_longest.
4999 * python/py-record-btrace.c (btpy_list_index): Use
5000 gdb_py_object_from_longest.
5001
5002 2020-09-15 Tom Tromey <tromey@adacore.com>
5003
5004 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5005 * python/py-record.c (recpy_element_number): Use
5006 gdb_py_object_from_longest.
5007 (recpy_gap_number): Likewise.
5008
5009 2020-09-15 Tom Tromey <tromey@adacore.com>
5010
5011 * top.c (ui::ui): Update.
5012 (highest_ui_num): Remove.
5013 * top.h (struct ui) <num>: Remove.
5014
5015 2020-09-15 Tom Tromey <tromey@adacore.com>
5016
5017 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5018 * ui-style.c (ansi_regex_text): Now array.
5019 * rust-exp.y (number_regex_text): Now array.
5020 * linespec.c (linespec_quote_characters): Now array.
5021 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5022 Now arrays.
5023
5024 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5025
5026 * debuginfod-support.c (debuginfod_client_deleter): New.
5027 (debuginfod_client_up): New.
5028 (debuginfod_init): Return debuginfod_client_up.
5029 (debuginfod_source_query): Adjust.
5030 (debuginfod_debuginfo_query): Adjust.
5031
5032 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5033
5034 * debuginfod-support.c (debuginfod_source_query): Use
5035 make_unique_xstrdup.
5036
5037 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5038
5039 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5040 with `type::instance_flags`.
5041
5042 2020-09-14 Michael Mullin <masmullin@gmail.com>
5043
5044 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5045 Remove baton parameter.
5046
5047 2020-09-14 Pedro Alves <pedro@palves.net>
5048
5049 * Makefile.in (SELFTESTS_SRCS): Add
5050 unittests/enum-flags-selftests.c.
5051 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5052 btrace_function_flags instead of enum btrace_function_flag.
5053 * compile/compile-c-types.c (convert_qualified): Use
5054 enum_flags::raw.
5055 * compile/compile-cplus-symbols.c (convert_one_symbol)
5056 (convert_symbol_bmsym):
5057 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5058 (compile_cplus_convert_struct_or_union_methods)
5059 (compile_cplus_instance::convert_qualified_base):
5060 * go-exp.y (parse_string_or_char): Add cast to int.
5061 * unittests/enum-flags-selftests.c: New file.
5062 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5063 type to btrace_thread_flags from btrace_thread_flag.
5064 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5065 local's type to btrace_thread_flags from btrace_thread_flag. Add
5066 cast in DEBUG call.
5067
5068 2020-09-14 Pedro Alves <pedro@palves.net>
5069
5070 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5071 * gdbtypes.c (address_space_name_to_int): Rename to ...
5072 (address_space_name_to_type_instance_flags): ... this.
5073 (address_space_int_to_name): Rename to ...
5074 (address_space_type_instance_flags_to_name): ... this.
5075 * gdbtypes.h (address_space_name_to_int): Rename to ...
5076 (address_space_name_to_type_instance_flags): ... this.
5077 (address_space_int_to_name): Rename to ...
5078 (address_space_type_instance_flags_to_name): ... this.
5079 * type-stack.c (type_stack::insert): Adjust to rename.
5080 * type-stack.h (type_stack::insert): Likewise.
5081
5082 2020-09-14 Pedro Alves <pedro@palves.net>
5083 Andrew Burgess <andrew.burgess@embecosm.com>
5084
5085 * avr-tdep.c (avr_address_class_type_flags): Return
5086 type_instance_flags.
5087 (avr_address_class_type_flags_to_name): Take a
5088 type_instance_flags.
5089 (avr_address_class_name_to_type_flags): Return bool and take a
5090 type_instance_flags.
5091 * d-lang.c (build_d_types): Use type::set_instance_flags.
5092 * ft32-tdep.c (ft32_address_class_type_flags): Return
5093 type_instance_flags.
5094 (ft32_address_class_type_flags_to_name): Take a
5095 type_instance_flags.
5096 (ft32_address_class_name_to_type_flags): Return bool and take a
5097 type_instance_flags.
5098 (ft32_gdbarch_init): Use type::set_instance_flags.
5099 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5100 * gdbarch.h, gdbarch.c: Regenerate.
5101 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5102 (address_class_name_to_type_flags): Use type_instance_flags and
5103 bool.
5104 * gdbtypes.c (address_space_name_to_int)
5105 (address_space_int_to_name, make_qualified_type): Use
5106 type_instance_flags.
5107 (make_qualified_type): Use type_instance_flags and
5108 type::set_instance_flags.
5109 (make_type_with_address_space, make_cv_type, make_vector_type)
5110 (check_typedef): Use type_instance_flags.
5111 (recursive_dump_type): Cast type_instance_flags to unsigned for
5112 printing.
5113 (copy_type_recursive): Use type::set_instance_flags.
5114 (gdbtypes_post_init): Use type::set_instance_flags.
5115 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5116 <m_instance_flags>: ... this.
5117 <instance_flags, set_instance_flags>: New methods.
5118 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5119 (SET_TYPE_INSTANCE_FLAGS): New.
5120 (address_space_name_to_int, address_space_int_to_name)
5121 (make_type_with_address_space): Pass flags using
5122 type_instance_flags instead of int.
5123 * stabsread.c (cleanup_undefined_types_noname): Use
5124 type::set_instance_flags.
5125 * s390-tdep.c (s390_address_class_type_flags): Return
5126 type_instance_flags.
5127 (s390_address_class_type_flags_to_name): Take a
5128 type_instance_flags.
5129 (s390_address_class_name_to_type_flags): Return bool and take a
5130 type_instance_flags.
5131 * type-stack.c (type_stack::follow_types): Use
5132 type_instance_flags.
5133 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5134
5135 2020-09-14 Tom Tromey <tromey@adacore.com>
5136
5137 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5138 * x86-tdep.c (x86_is_thunk_register_name)
5139 (x86_in_indirect_branch_thunk): Update.
5140 * sparc64-tdep.c (sparc64_fpu_register_names)
5141 (sparc64_cp0_register_names, sparc64_register_names)
5142 (sparc64_pseudo_register_names): Now const.
5143 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5144 cp0_registers_num>: Now const.
5145 * sparc-tdep.c (sparc_core_register_names)
5146 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5147 (sparc32_pseudo_register_names): Now const.
5148 (validate_tdesc_registers): Update.
5149 * rust-lang.c (rust_extensions): Now const.
5150 * p-lang.c (p_extensions): Now const.
5151 * objc-lang.c (objc_extensions): Now const.
5152 * nto-tdep.c (nto_thread_state_str): Now const.
5153 * moxie-tdep.c (moxie_register_names): Now const.
5154 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5155 Now const.
5156 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5157 (mips_linux_reg_names): Now const.
5158 (mips_gdbarch_init): Update.
5159 * microblaze-tdep.c (microblaze_register_names): Now const.
5160 * m68k-tdep.c (m68k_register_names): Now const.
5161 * m32r-tdep.c (m32r_register_names): Now const.
5162 * ia64-tdep.c (ia64_register_names): Now const.
5163 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5164 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5165 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5166 ymm_avx512_register_names, pkeys_register_names>: Now const.
5167 * i386-tdep.c (i386_register_names, i386_zmm_names)
5168 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5169 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5170 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5171 * f-lang.c (f_extensions): Now const.
5172 * d-lang.c (d_extensions): Now const.
5173 * csky-tdep.c (csky_register_names): Now const.
5174 * charset.c (default_charset_names, charset_enum): Now const.
5175 (_initialize_charset): Update.
5176 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5177 const.
5178 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5179 (bsd_uthread_solib_loaded): Update.
5180 (bsd_uthread_state): Now const.
5181 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5182 (amd64_ymm_avx512_names, amd64_ymmh_names)
5183 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5184 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5185 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5186 (amd64_dword_names): Now const.
5187 * agent.c (can_use_agent_enum): Now const.
5188 * ada-tasks.c (task_states, long_task_states): Now const.
5189 * ada-lang.c (known_runtime_file_name_patterns)
5190 (known_auxiliary_function_name_patterns, attribute_names)
5191 (standard_exc, ada_extensions): Now const.
5192
5193 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5194
5195 * bcache.h (struct bcache) <bcache>: Remove constructor.
5196 <m_hash_function, m_compare_function>: Remove.
5197 <~bcache>: Make virtual.
5198 <compare>: Remove static method, introduce virtual method.
5199 <default_hash>: Remove.
5200 <hash>: New virtual method.
5201 * bcache.c (bcache::expand_hash_table): Update.
5202 (bcache::insert): Update.
5203 (bcache::hash): New.
5204 (bcache::compare): Update comment and parameter names.
5205 * gdbtypes.c (types_deeply_equal): Update.
5206 * psymtab.h (struct psymbol_bcache): New struct.
5207 (class psymtab_storage) <psymtab_storage>: Make default.
5208 <psymbol_cache>: Change type to psymbol_bcache.
5209 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5210 (psymbol_hash): Change to...
5211 (psymbol_bcache::hash): ... this.
5212 (psymbol_compare): Change to...
5213 (psymbol_bcache::compare): ... this.
5214
5215 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5216
5217 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5218 checking for initial lwp.
5219
5220 2020-09-14 Tom Tromey <tromey@adacore.com>
5221
5222 * m68k-tdep.c (m68k_extract_return_value): Use
5223 pointer_result_regnum.
5224 (m68k_store_return_value): Likewise.
5225 (m68k_reg_struct_return_p): Handle vectors and arrays.
5226 (m68k_return_value): Handle arrays.
5227 (m68k_svr4_return_value): Fix single-element aggregate handling.
5228 Handle long double. Adjust for embedded ABI.
5229 (m68k_svr4_init_abi): Set pointer_result_regnum.
5230 (m68k_embedded_init_abi): New function.
5231 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5232 (m68k_osabi_sniffer): New function.
5233 (_initialize_m68k_tdep): Register osabi sniffer.
5234 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5235 member.
5236
5237 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5238
5239 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5240 with gdb::unique_xmalloc_ptr<char>.
5241
5242 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5243
5244 * xml-support.h (xml_fetch_another): Change type to be a
5245 function_view.
5246 (xml_process_xincludes): Remove baton parameter.
5247 (xml_fetch_content_from_file): Change baton parameter to
5248 dirname.
5249 * xml-support.c (struct xinclude_parsing_data)
5250 <xinclude_parsing_data>: Remove baton parameter.
5251 <fetcher_baton>: Remove.
5252 (xinclude_start_include): Adjust.
5253 (xml_process_xincludes): Adjust.
5254 (xml_fetch_content_from_file): Replace baton parameter with
5255 dirname.
5256 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5257 (xml_init_syscalls_info): Use a lambda.
5258 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5259 (file_read_description_xml): Use a lambda.
5260 (fetch_available_features_from_target): Change baton parameter
5261 to target_ops.
5262 (target_read_description_xml): Use a lambda.
5263 (target_fetch_description_xml): Use a lambda.
5264 (string_read_description_xml): Update.
5265
5266 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5267
5268 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5269 uses with type::endianity_is_not_default.
5270
5271 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5272
5273 * gdbtypes.h (struct type) <endianity_is_not_default,
5274 set_endianity_is_not_default>: New methods.
5275 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5276 type::endianity_is_not_default, change all write call sites to
5277 use type::set_endianity_is_not_default.
5278
5279 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5280
5281 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5282 uses with type::is_fixed_instance.
5283
5284 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5285
5286 * gdbtypes.h (struct type) <is_fixed_instance,
5287 set_is_fixed_instance>: New methods.
5288 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5289 write call sites to use type::set_is_fixed_instance.
5290
5291 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5292
5293 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5294 uses with type::is_gnu_ifunc.
5295
5296 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5299 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5300 use type::set_is_gnu_ifunc.
5301
5302 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5303
5304 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5305 uses with type::stub_is_supported.
5306
5307 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5308
5309 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5310 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5311 use type::set_stub_is_supported.
5312
5313 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5314
5315 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5316 uses with type::is_vector.
5317
5318 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5319
5320 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5321 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5322 use type::set_is_vector.
5323
5324 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5325
5326 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5327 uses with type::has_varargs.
5328
5329 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5330
5331 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5332 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5333 use type::set_has_varargs.
5334
5335 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5336
5337 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5338 uses with type::is_prototyped.
5339
5340 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5341
5342 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5343 New methods.
5344 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5345 call sites to use type::set_is_prototyped.
5346
5347 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5348
5349 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5350 uses with type::target_is_stub.
5351
5352 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5353
5354 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5355 New methods.
5356 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5357 sites to use type::set_target_is_stub.
5358
5359 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5360
5361 * gdbtypes.h (TYPE_STUB): Remove, replace all
5362 uses with type::is_stub.
5363
5364 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5365
5366 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5367 (TYPE_STUB): Use type::is_stub, change all write call sites to
5368 use type::set_is_stub.
5369
5370 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5371
5372 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5373 type::has_no_signedness.
5374
5375 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5376
5377 * gdbtypes.h (struct type) <has_no_signedness,
5378 set_has_no_signedness>: New methods.
5379 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5380 call sites to use type::set_has_no_signedness.
5381
5382 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5383
5384 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5385 type::is_unsigned.
5386
5387 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5390 methods.
5391 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5392 sites to use type::set_is_unsigned.
5393
5394 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5395 Adam Renquinha <arenquinha@cimeq.qc.ca>
5396
5397 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5398 pointer and stack frame offset when unwinding.
5399
5400 2020-09-13 Pedro Alves <pedro@palves.net>
5401
5402 * NEWS: Document "-break-insert --qualified".
5403 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5404
5405 2020-09-13 Pedro Alves <pedro@palves.net>
5406
5407 * linespec.c (classify_mtype, compare_msyms): Delete.
5408 (search_minsyms_for_name): Remove classification logic. Instead
5409 filter out trampoline symbols if we also found an external
5410 function of the same name.
5411
5412 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5413
5414 * NEWS: Create a new section for the next release branch.
5415 Rename the section of the current branch, now that it has
5416 been cut.
5417
5418 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5419
5420 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5421 * version.in: Bump version to 11.0.50.DATE-git.
5422
5423 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5424
5425 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5426
5427 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5428 Felix Willgerodt <Felix.Willgerodt@intel.com>
5429
5430 * gdbarch.sh: Added bfloat16 type.
5431 * gdbarch.c: Regenerated.
5432 * gdbarch.h: Regenerated.
5433 * gdbtypes.c (floatformats_bfloat16): New struct.
5434 (gdbtypes_post_init): Add builtin_bfloat16.
5435 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5436 (floatformats_bfloat16): New struct.
5437 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5438 (i386_ymm_type): Add field "v16_bfloat16"
5439 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5440 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5441 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5442 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5443 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5444 * features/i386/64bit-avx512.c: Regenerated.
5445 * features/i386/64bit-sse.xml: Add bfloat16 type.
5446 * features/i386/64bit-sse.c: Regenerated.
5447
5448 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5449
5450 * i386-tdep.c (i386_zmm_type): Fix field names.
5451 (i386_ymm_type): Fix field names.
5452
5453 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5454
5455 * breakpoint.c: Fix typo in the help message of the
5456 "set breakpoint condition-evaluation" command.
5457
5458 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5459
5460 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5461 * (nbsd_nat_target::pid_to_exec_file)
5462 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5463 (nbsd_nat_target::post_startup_inferior)
5464 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5465 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5466 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5467 * (nbsd_thread_lister): Remove.
5468
5469 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5470
5471 * fork-inferior.c (startup_inferior): Avoid double free.
5472
5473 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5474
5475 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5476 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5477
5478 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5479
5480 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5481 * netbsd-nat.c: Include <sys/ptrace.h>.
5482 * (netbsd_nat::enable_proc_events): Add.
5483
5484 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5485
5486 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5487 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5488 (netbsd_nat::for_each_thread): Add.
5489 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5490 "gdbsupport/common-debug.h".
5491 * (netbsd_nat::netbsd_thread_lister)
5492 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5493 (netbsd_nat::for_each_thread): Add.
5494
5495 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5496
5497 * netbsd-nat.h: Include <unistd.h>.
5498 * (netbsd_nat::pid_to_exec_file): Add.
5499 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5500 * (netbsd_nat::pid_to_exec_file) Add.
5501
5502 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5503
5504 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5505
5506 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5507
5508 * netbsd-nat.h: New file.
5509 * netbsd-nat.c: Likewise.
5510
5511 2020-09-09 Tom Tromey <tromey@adacore.com>
5512
5513 * ada-lang.c (remove_extra_symbols): Do not increment when
5514 removing an element
5515
5516 2020-09-08 Tom Tromey <tromey@adacore.com>
5517
5518 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5519
5520 2020-09-08 Tom Tromey <tromey@adacore.com>
5521
5522 PR win32/25302:
5523 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5524 (gdb_bfd_init_data): New function.
5525 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5526
5527 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5528
5529 * infrun.c (fetch_inferior_event): Use
5530 `switch_to_target_no_thread` to switch the target.
5531
5532 2020-09-06 Tom Tromey <tom@tromey.com>
5533
5534 * symfile.h (dwarf2_free_objfile): Don't declare.
5535
5536 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5537
5538 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5539 to match 16 byte real/complex type generated by Flang compiler.
5540
5541 2020-09-03 Tom de Vries <tdevries@suse.de>
5542
5543 PR breakpoint/26546
5544 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5545 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5546
5547 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5548
5549 * maint.c (index_digits): New function.
5550 (struct maint_print_section_data): Remove.
5551 (print_bfd_section_info): Remove print_data parameter, add arg
5552 and index_digits.
5553 (print_objfile_section_info): Likewise.
5554 (print_bfd_section_info_maybe_relocated): Likewise (plus
5555 objfile).
5556 (maintenance_info_sections): Adjust calls.
5557
5558 2020-09-02 Tom Tromey <tromey@adacore.com>
5559
5560 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5561 for null pointers.
5562 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5563
5564 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5565
5566 * bcache.h (struct bcache) <insert>: Change type of `added` to
5567 pointer to bool.
5568 * bcache.c (bcache::insert): Likewise.
5569 * gdbtypes.c (check_types_worklist): Adjust.
5570 * psymtab.c (add_psymbol_to_bcache): Adjust.
5571
5572 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5573
5574 * corelow.c (unordered_set): Include.
5575 (class core_target): Add field 'm_core_unavailable_mappings'.
5576 (core_target::build_file_mappings): Print only one warning
5577 per inaccessible file. Add unavailable/broken mappings
5578 to m_core_unavailable_mappings.
5579 (core_target::xfer_partial): Call...
5580 (core_target::xfer_memory_via_mappings): New method.
5581
5582 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5583
5584 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5585 type to bool.
5586
5587 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5588
5589 * dwarf2/read.c (struct field_info): Fix indentation.
5590
5591 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5592
5593 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5594 ordering in comment.
5595 * frame.c (frame_id_eq): Fix indentation.
5596
5597 2020-08-31 Scott Linder <scott@scottlinder.com>
5598 Simon Marchi <simon.marchi@efficios.com>
5599
5600 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5601 inline frame ids in outer frame.
5602
5603 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5604
5605 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5606 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5607 (outer_frame_id): Use FID_STACK_OUTER instead of
5608 FID_STACK_INVALID.
5609 (frame_id_p): Don't check for outer_frame_id.
5610
5611 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5612
5613 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5614 regnum/frame in value. Call allocate_value_lazy.
5615 * frame.c (frame_unwind_register_value): Use
5616 val_print_not_saved.
5617
5618 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5619
5620 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5621
5622 2020-08-29 Pedro Alves <pedro@palves.net>
5623
5624 * progspace.c (print_program_space): Use all_inferiors. Switch to
5625 the inferior before calling target_pid_to_str.
5626
5627 2020-08-28 Tom Tromey <tom@tromey.com>
5628
5629 * xcoffread.c (xcoff_end_psymtab): Update comment.
5630 * dbxread.c (dbx_end_psymtab): Update comment.
5631
5632 2020-08-28 Tom de Vries <tdevries@suse.de>
5633
5634 PR breakpoint/26544
5635 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5636 event_location.
5637 (create_breakpoint): Same.
5638 (base_breakpoint_decode_location): Same.
5639 (bkpt_create_sals_from_location): Same.
5640 (bkpt_decode_location): Same.
5641 (bkpt_probe_create_sals_from_location): Same.
5642 (bkpt_probe_decode_location): Same.
5643 (tracepoint_create_sals_from_location): Same.
5644 (tracepoint_decode_location): Same.
5645 (tracepoint_probe_decode_location): Same.
5646 (strace_marker_create_sals_from_location): Same.
5647 (strace_marker_decode_location): Same.
5648 (create_sals_from_location_default): Same.
5649 (decode_location_default): Same.
5650 * breakpoint.h (struct breakpoint_ops): Same.
5651 (create_breakpoint): Same.
5652 * linespec.h (decode_line_full): Same.
5653 * linespec.c (decode_line_full): Same. Throw error if
5654 result.size () == 0.
5655
5656 2020-08-27 Pedro Alves <pedro@palves.net>
5657
5658 PR gdb/26524
5659 * breakpoint.c (until_break_fsm) <location_breakpoint,
5660 caller_breakpoint>: Delete fields.
5661 <breakpoints>: New field.
5662 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5663 two individual breakpoints.
5664 (until_break_fsm::should_stop): Loop over breakpoints in the
5665 breakpoint vector.
5666 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5667 vector.
5668 (until_break_command): Handle location expanding into multiple
5669 sals.
5670
5671 2020-08-27 Pedro Alves <pedro@palves.net>
5672
5673 PR gdb/26523
5674 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5675 bp_until breakpoints user-specified locations. Update intro
5676 comment.
5677
5678 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5679
5680 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5681 gdb_bfd_sections): New.
5682 * maint.c (print_bfd_section_info): Change param type to
5683 maint_print_section_data.
5684 (print_objfile_section_info): Likewise.
5685 (print_bfd_section_info_maybe_relocated): Likewise.
5686 (maintenance_info_sections): Use gdb_bfd_sections.
5687
5688 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5689
5690 * MAINTAINERS: Add ARC target and maintainer.
5691
5692 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5693
5694 * configure.tgt: ARC support for GNU/Linux.
5695 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5696 * arc-linux-tdep.c: New file.
5697 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5698 * arc-tdep.c (arc_write_pc): Use it.
5699
5700 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5701
5702 * arc-tdep.c (arc_check_for_hardware_loop): New.
5703 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5704
5705 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5706
5707 * arc-tdep.h: Include "gdbarch.h".
5708
5709 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5710
5711 * arch/arc.h
5712 (arc_gdbarch_features): New class to stir the selection of target XML.
5713 (arc_create_target_description): Use FEATURES to choose XML target.
5714 (arc_lookup_target_description): Use arc_create_target_description
5715 to create _new_ target descriptions or return the already created
5716 ones if the FEATURES is the same.
5717 * arch/arc.c: Implementation of prototypes described above.
5718 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5719 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5720 * arc-tdep.c (*_feature_name): Make feature names consistent.
5721 (arc_register_feature): A new struct to hold information about
5722 registers of a particular target/feature.
5723 (arc_check_tdesc_feature): Check if XML provides registers in
5724 compliance with ARC_REGISTER_FEATURE structs.
5725 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5726 (determine_*_reg_feature_set): Which feature name to look for.
5727 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5728 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5729 to expected ISA enums to be used in arc_gdbarch_features structs.
5730 * features/Makefile (FEATURE_XMLFILES): Add new files.
5731 * gdb/features/arc/v1-aux.c: New file.
5732 * gdb/features/arc/v1-aux.xml: Likewise.
5733 * gdb/features/arc/v1-core.c: Likewise.
5734 * gdb/features/arc/v1-core.xml: Likewise.
5735 * gdb/features/arc/v2-aux.c: Likewise.
5736 * gdb/features/arc/v2-aux.xml: Likewise.
5737 * gdb/features/arc/v2-core.c: Likewise.
5738 * gdb/features/arc/v2-core.xml: Likewise.
5739 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5740
5741 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5742 Andrew Burgess <andrew.burgess@embecosm.com>
5743
5744 PR m2/26372
5745 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5746 an assert. Remove single element array indexing pattern as the
5747 MULTI_SUBSCRIPT support will handle this case too.
5748
5749 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5750
5751 * value.h (valprint_check_validity): Move declaration from
5752 here...
5753 * valprint.h (valprint_check_validity): ... to here.
5754
5755 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5756
5757 * debug.h: New file.
5758 * debug.c (debug_prefixed_vprintf): New function.
5759 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5760 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5761
5762 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5763
5764 * infrun.h (infrun_debug_printf_1): New function declaration.
5765 (infrun_debug_printf): New macro.
5766 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5767 throughout.
5768 (infrun_debug_printf): New function.
5769 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5770 (handle_jit_event): Likewise.
5771
5772 2020-08-21 Mark Wielaard <mark@klomp.org>
5773
5774 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5775
5776 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5777
5778 * frame.c (enum class frame_id_status): New.
5779 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5780 (fprintf_frame): Update.
5781 (compute_frame_id): Set frame id status to "computing" on entry.
5782 Set it back to "not_computed" on failure and to "computed" on
5783 success.
5784 (get_frame_id): Assert the frame id is not being computed.
5785 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5786 (create_new_frame): Likewise.
5787 (frame_cleanup_after_sniffer): Update assert.
5788
5789 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5790
5791 * regcache.c (pid_ptid_regcache_map): New type.
5792 (target_ptid_regcache_map): Remove.
5793 (target_pid_ptid_regcache_map): New type.
5794 (regcaches): Change type to target_pid_ptid_regcache_map.
5795 (get_thread_arch_aspace_regcache): Update.
5796 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5797 case.
5798 (regcaches_size): Update.
5799 (regcache_count): Update.
5800 (registers_changed_ptid_target_pid_test): New.
5801 (_initialize_regcache): Register new test.
5802
5803 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5804
5805 * regcache.c (regcache_count): New.
5806 (struct regcache_test_data): New.
5807 (regcache_test_data_up): New.
5808 (populate_regcaches_for_test): New.
5809 (regcaches_test): Remove.
5810 (get_thread_arch_aspace_regcache_test): New.
5811 (registers_changed_ptid_all_test): New.
5812 (registers_changed_ptid_target_test): New.
5813 (registers_changed_ptid_target_ptid_test): New.
5814 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5815 (_initialize_regcache): Register new tests.
5816
5817 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5818
5819 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5820 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5821 gdbarch and aspace parameter. Use current inferior's aspace.
5822 Validate regcache's arch value.
5823 (regcaches_test): Update.
5824
5825 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5826
5827 * regcache.c (regcaches_test): Call registers_changed.
5828
5829 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5830
5831 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5832
5833 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5834
5835 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5836 to find the end of prologue for flang compiled binaries.
5837 * arm-tdep.c (arm_skip_prologue): Likewise.
5838 * i386-tdep.c (i386_skip_prologue): Likewise.
5839 * producer.c (producer_is_llvm): New function.
5840 (producer_parsing_tests): Added new tests for clang/flang.
5841 * producer.h (producer_is_llvm): New declaration.
5842
5843 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5844
5845 * linux-nat.c (linux_nat_debug_printf): New function.
5846 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5847
5848 2020-08-18 Aaron Merey <amerey@redhat.com>
5849
5850 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5851 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5852 (CLIBS): Add DEBUGINFOD_LIBS.
5853
5854 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5855
5856 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5857 'gdbarch_num_regs'.
5858
5859 2020-08-17 Tom Tromey <tromey@adacore.com>
5860
5861 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5862 ada_get_decoded_value returns NULL.
5863
5864 2020-08-17 Tom Tromey <tromey@adacore.com>
5865
5866 * python/py-inferior.c (infpy_search_memory): Use
5867 gdb_py_object_from_ulongest.
5868 * python/py-infevents.c (create_inferior_call_event_object)
5869 (create_memory_changed_event_object): Use
5870 gdb_py_object_from_ulongest.
5871 * python/py-linetable.c (ltpy_entry_get_pc): Use
5872 gdb_py_object_from_ulongest.
5873
5874 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5875
5876 * loc.c (class symbol_needs_eval_context): Fix indentation.
5877
5878 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5879
5880 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5881 bool.
5882
5883 2020-08-17 Tom de Vries <tdevries@suse.de>
5884
5885 PR gdb/26393
5886 * gdbtypes.c (dump_dynamic_prop): New function.
5887 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5888
5889 2020-08-15 Tom de Vries <tdevries@suse.de>
5890
5891 PR backtrace/26390
5892 * stack.c (print_frame_args): Temporarily set the selected
5893 frame to FRAME while printing the frame's arguments.
5894
5895 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5896
5897 PR breakpoints/26385
5898 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5899 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5900
5901 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5902
5903 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5904 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5905 and >= to check return value instead of == -1 and != -1.
5906
5907 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5908
5909 * utils.h (class gdb_argv) <as_array_view>: New method.
5910 * utils.c (gdb_argv_as_array_view_test): New.
5911 (_initialize_utils): Register selftest.
5912 * maint.c (maintenance_selftest): Use the new method.
5913
5914 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5915
5916 * target.h (supports_dumpcore, dumpcore): New
5917 function declarations.
5918 * target.c (supports_dumpcore, dumpcore): New
5919 functions.
5920 * target-delegates.c: Rebuild.
5921 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5922 and target_dumpcore ().
5923
5924 2020-08-13 Aaron Merey <amerey@redhat.com>
5925
5926 * debuginfod-support.c: Replace global variables with user_data.
5927
5928 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5929
5930 * maint.c (maintenance_selftest): Split args and pass array_view
5931 to run_tests.
5932
5933 2020-08-12 Luis Machado <luis.machado@linaro.org>
5934
5935 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5936 type's length.
5937 Use %s and pulongest to print the length.
5938
5939 2020-08-12 Pedro Alves <palves@redhat.com>
5940
5941 * NEWS: Move "Multi-target debugging support" item to the
5942 "Changes since GDB 9" section.
5943
5944 2020-08-12 Pedro Alves <palves@redhat.com>
5945
5946 PR gdb/26336
5947 * progspace.c (program_space::remove_objfile): Invalidate the
5948 frame cache.
5949
5950 2020-08-11 Tom de Vries <tdevries@suse.de>
5951
5952 * MAINTAINERS: Mark ms1 as deleted.
5953
5954 2020-08-10 Luis Machado <luis.machado@linaro.org>
5955
5956 PR gdb/26310
5957
5958 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5959 act accordingly.
5960 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5961 movz/str/stur/stp skipping behavior.
5962
5963 2020-08-10 Luis Machado <luis.machado@linaro.org>
5964
5965 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5966 struct user_sve_header instead of struct sve_context.
5967
5968 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5969
5970 * read.h (dwarf2_fetch_die_loc_sect_off,
5971 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5972 `void *` parameter with function_view.
5973 * read.c (dwarf2_fetch_die_loc_sect_off,
5974 dwarf2_fetch_die_loc_cu_off): Likewise.
5975 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5976 (per_cu_dwarf_call): Adjust.
5977 (get_frame_address_in_block_wrapper): Remove.
5978 (indirect_synthetic_pointer): Adjust.
5979 (get_ax_pc): Remove.
5980 (dwarf2_compile_expr_to_ax): Adjust.
5981
5982 2020-08-08 Tom de Vries <tdevries@suse.de>
5983
5984 PR build/26344
5985 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5986 constructor.
5987 * regcache.c (get_thread_arch_aspace_regcache): Same.
5988
5989 2020-08-07 Tom Tromey <tromey@adacore.com>
5990
5991 * ravenscar-thread.c
5992 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5993 New method.
5994 (ravenscar_thread_target::wait): Check
5995 runtime_initialized.
5996 (ravenscar_thread_target::prepare_to_store)
5997 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5998 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5999 (ravenscar_thread_target::stopped_by_watchpoint)
6000 (ravenscar_thread_target::stopped_data_address)
6001 (ravenscar_thread_target::core_of_thread): Use
6002 scoped_restore_current_thread and
6003 set_base_thread_from_ravenscar_task.
6004
6005 2020-08-07 Tom Tromey <tromey@adacore.com>
6006
6007 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6008
6009 2020-08-07 Tom Tromey <tromey@adacore.com>
6010
6011 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6012 update_inferior_ptid before update_thread_list.
6013 (temporarily_change_regcache_ptid): New class.
6014 (ravenscar_thread_target::fetch_registers)
6015 (ravenscar_thread_target::store_registers)
6016 (ravenscar_thread_target::prepare_to_store): Use base thread when
6017 forwarding operation.
6018
6019 2020-08-07 Tom Tromey <tromey@adacore.com>
6020
6021 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6022 "is_pid" case.
6023
6024 2020-08-07 Tom Tromey <tromey@adacore.com>
6025
6026 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6027 New methods.
6028 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6029 first.
6030 (ravenscar_thread_target::add_thread): Rename from
6031 ravenscar_add_thread.
6032 (ravenscar_thread_target::update_thread_list): Use a lambda.
6033 (ravenscar_thread_target::xfer_partial): New method.
6034
6035 2020-08-07 Tom Tromey <tromey@adacore.com>
6036
6037 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6038 gdb::function_view.
6039 (iterate_over_live_ada_tasks): Change type of argument.
6040 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6041 of argument.
6042
6043 2020-08-07 Tom Tromey <tromey@adacore.com>
6044
6045 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6046 Remove.
6047 (ravenscar_thread_target::extra_thread_info): Remove.
6048 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6049 defer to target beneath for non-Ravenscar threads.
6050
6051 2020-08-07 Tom Tromey <tromey@adacore.com>
6052
6053 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6054 get_base_thread_from_ravenscar_task>: Now methods.
6055 <m_cpu_map>: New member.
6056 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6057 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6058 (ravenscar_thread_target::task_is_currently_active): Update.
6059 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6060 Now a method.
6061 (ravenscar_thread_target::add_active_thread): Put initial thread
6062 into the m_cpu_map.
6063
6064 2020-08-07 Tom Tromey <tromey@adacore.com>
6065
6066 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6067 event_ptid.
6068
6069 2020-08-07 Tom Tromey <tromey@adacore.com>
6070
6071 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6072 runtime_initialized.
6073
6074 2020-08-07 Tom Tromey <tromey@adacore.com>
6075
6076 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6077 add_active_thread.
6078 (ravenscar_thread_target::add_active_thread): Now public.
6079 (ravenscar_inferior_created): Call add_active_thread after pushing
6080 the target.
6081
6082 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6083
6084 * regcache.c (ptid_regcache_map): New type.
6085 (target_ptid_regcache_map): New type.
6086 (regcaches): Change type to target_ptid_regcache_map.
6087 (get_thread_arch_aspace_regcache): Update to regcaches' new
6088 type.
6089 (regcache_thread_ptid_changed): Likewise.
6090 (registers_changed_ptid): Likewise.
6091 (regcaches_size): Likewise.
6092 (regcaches_test): Update.
6093 (regcache_thread_ptid_changed): Update.
6094 * regcache.h (regcache_up): New type.
6095 * gdbsupport/ptid.h (hash_ptid): New struct.
6096
6097 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6098
6099 * observable.h (thread_ptid_changed): Add parameter
6100 `process_stratum_target *`.
6101 * infrun.c (infrun_thread_ptid_changed): Add parameter
6102 `process_stratum_target *` and use it.
6103 (selftests): New namespace.
6104 (infrun_thread_ptid_changed): New function.
6105 (_initialize_infrun): Register selftest.
6106 * regcache.c (regcache_thread_ptid_changed): Add parameter
6107 `process_stratum_target *` and use it.
6108 (regcache_thread_ptid_changed): New function.
6109 (_initialize_regcache): Register selftest.
6110 * thread.c (thread_change_ptid): Pass target to
6111 thread_ptid_changed observable.
6112
6113 2020-08-06 Caroline Tice <cmtice@google.com>
6114
6115 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6116 (struct dwp_sections): Update field comments. Add loclists and
6117 rnglists fields.
6118 (struct virtual_v2_dwo_sections): Rename struct to
6119 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6120 size & offset fields for loclists and rnglists.
6121 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6122 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6123 skipping dummy type units.
6124 (create_dwp_hash_table): Update the large comment above the function to
6125 discuss Version 5 DWP files as well, with references. Update all the
6126 version checks in the function to check for version 5 as well. Add new
6127 section at the end to create dwp hash table for version 5.
6128 (create_dwp_v2_section): Rename function to
6129 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6130 Add V5 to error message text.
6131 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6132 into calls to create_dwp_v2_or_v5_section.
6133 (create_dwo_unit_in_dwp_v5): New function.
6134 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6135 check for version2; add else clause to handle version 5.
6136 (open_and_init_dwo_file): Add code to check dwarf version & only call
6137 create_debug_types_hash_table (with sections.types) if version is not 5;
6138 else call create_debug_type_hash_table, with sections.info.
6139 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6140 version 5.
6141 (dwarf2_locate_v5_dwp_sections): New function.
6142 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6143 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6144
6145 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6146
6147 * regcache.h (class regcache): Remove friend
6148 registers_changed_ptid.
6149 <regcache_thread_ptid_changed>: Remove.
6150 <regcaches>: Remove.
6151 * regcache.c (regcache::regcaches): Rename to...
6152 (regcaches): ... this. Make static.
6153 (get_thread_arch_aspace_regcache): Update.
6154 (regcache::regcache_thread_ptid_changed): Rename to...
6155 (regcache_thread_ptid_changed): ... this. Update.
6156 (class regcache_access): Remove.
6157 (regcaches_test): Update.
6158 (_initialize_regcache): Update.
6159 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6160 <forward_list>.
6161
6162 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6163
6164 * regcache.h (class regcache) <current_regcache>: Rename to...
6165 <regcaches>: ... this. Move doc here.
6166 * regcache.c (regcache::current_regcache) Rename to...
6167 (regcache::regcaches): ... this. Move doc to header.
6168 (get_thread_arch_aspace_regcache): Update.
6169 (regcache::regcache_thread_ptid_changed): Update.
6170 (registers_changed_ptid): Update.
6171 (class regcache_access) <current_regcache_size>: Rename to...
6172 <regcaches_size>: ... this.
6173 (current_regcache_test): Rename to...
6174 (regcaches_test): ... this.
6175 (_initialize_regcache): Update.
6176
6177 2020-08-06 Victor Collod <vcollod@nvidia.com>
6178
6179 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6180
6181 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6182
6183 * corelow.c (core_target::build_file_mappings): Don't output
6184 null pathname in warning.
6185
6186 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6187
6188 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6189 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6190 gdb.dwarf2/dw2-single-line-discriminators.exp,
6191 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6192
6193 2020-08-05 Tom Tromey <tromey@adacore.com>
6194
6195 PR rust/26197:
6196 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6197 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6198 Fix off-by-one and type size errors in ordinary case.
6199
6200 2020-08-05 Tom de Vries <tdevries@suse.de>
6201
6202 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6203 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6204
6205 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6206
6207 * frame.h (frame_id_p): Return bool.
6208 (frame_id_artificial_p): Return bool.
6209 (frame_id_eq): Return bool.
6210 (has_stack_frames): Return bool.
6211 (get_selected_frame): Fix typo in comment.
6212 (get_frame_pc_if_available): Return bool.
6213 (get_frame_address_in_block_if_available): Return bool.
6214 (get_frame_func_if_available): Return bool.
6215 (read_frame_register_unsigned): Return bool.
6216 (get_frame_register_bytes): Return bool.
6217 (safe_frame_unwind_memory): Return bool.
6218 (deprecated_frame_register_read): Return bool.
6219 (frame_unwinder_is): Return bool.
6220 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6221 bool.
6222 <this_id::p>: Likewise.
6223 <prev_p>: Likewise.
6224 (frame_stash_add): Return bool.
6225 (get_frame_id): Use bool.
6226 (frame_id_build_special) Use bool.
6227 (frame_id_build_unavailable_stack): Use bool.
6228 (frame_id_build): Use bool.
6229 (frame_id_p): Return bool, use true/false instead of 1/0.
6230 (frame_id_artificial_p): Likewise.
6231 (frame_id_eq): Likewise.
6232 (frame_id_inner): Likewise.
6233 (get_frame_func_if_available): Likewise.
6234 (read_frame_register_unsigned): Likewise.
6235 (deprecated_frame_register_read): Likewise.
6236 (get_frame_register_bytes): Likewise.
6237 (has_stack_frames): Likewise.
6238 (inside_main_func): Likewise.
6239 (inside_entry_func): Likewise.
6240 (get_frame_pc_if_available): Likewise.
6241 (get_frame_address_in_block_if_available): Likewise.
6242 (frame_unwinder_is): Likewise.
6243 (safe_frame_unwind_memory): Likewise.
6244 (frame_unwind_arch): Likewise.
6245
6246 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6247
6248 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6249 type to cached_copy_status.
6250 (fprintf_frame): Adjust.
6251 (get_frame_func_if_available): Adjust.
6252 (frame_cleanup_after_sniffer): Adjust.
6253
6254 2020-08-04 Mark Wielaard <mark@klomp.org>
6255
6256 * MAINTAINERS (Write After Approval): Update email address.
6257
6258 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6261 dynamic_prop::const_val.
6262
6263 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6266 dynamic_prop::kind.
6267
6268 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6269
6270 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6271
6272 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6273
6274 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6275
6276 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6277 Jose E. Marchesi <jose.marchesi@oracle.com>
6278
6279 * configure.tgt: Add entry for bpf-*-*.
6280 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6281 (ALLDEPFILES): Add bpf-tdep.c.
6282 * bpf-tdep.c: New file.
6283 * MAINTAINERS: Add bpf target and maintainer.
6284 * NEWS: Mention the support for the new target.
6285
6286 2020-08-04 Tom de Vries <tdevries@suse.de>
6287
6288 PR symtab/23270
6289 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6290 Error.
6291
6292 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6293
6294 * syscalls/freebsd.xml: Regenerate.
6295
6296 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6297
6298 * syscalls/update-freebsd.sh: Fix usage and year range.
6299
6300 2020-08-03 Tom de Vries <tdevries@suse.de>
6301
6302 PR symtab/26333
6303 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6304 DW_LNE_lo_user/DW_LNE_hi_user range.
6305
6306 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6307
6308 PR ada/26318
6309 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6310 kind.
6311
6312 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6313
6314 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6315
6316 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6317
6318 * breakpoint.c (set_breakpoint_condition): Update the condition
6319 expressions after checking that the input condition string parses
6320 successfully and does not contain junk at the end.
6321
6322 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6323
6324 * breakpoint.c (set_breakpoint_condition): Update the
6325 condition string after parsing the new condition successfully.
6326
6327 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6328
6329 * proc-api.c (_STRUCTURED_PROC): Don't define.
6330 * proc-events.c: Likewise.
6331 * proc-flags.c: Likewise.
6332 * proc-why.c: Likewise.
6333 * procfs.c: Likewise.
6334
6335 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6336 * configure, config.in: Regenerate.
6337
6338 2020-07-30 Tom de Vries <tdevries@suse.de>
6339
6340 PR build/26320
6341 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6342 m_red/m_green/m_blue in a union.
6343
6344 2020-07-29 Tom de Vries <tdevries@suse.de>
6345
6346 PR tdep/26280
6347 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6348
6349 2020-07-28 Tom Tromey <tromey@adacore.com>
6350
6351 PR symtab/26270:
6352 * symtab.h (find_pc_partial_function_sym): Declare.
6353 * cli/cli-cmds.c (disassemble_command): Use
6354 find_pc_partial_function_sym. Check asm_demangle.
6355 * blockframe.c (cache_pc_function_sym): New global.
6356 (cache_pc_function_name): Remove.
6357 (clear_pc_function_cache): Update.
6358 (find_pc_partial_function_sym): New function, from
6359 find_pc_partial_function.
6360 (find_pc_partial_function): Rewrite using
6361 find_pc_partial_function_sym.
6362
6363 2020-07-28 Tom Tromey <tromey@adacore.com>
6364
6365 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6366 help. Add usage.
6367
6368 2020-07-28 Tom Tromey <tromey@adacore.com>
6369
6370 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6371 <DW_OP_GNU_variable_value>: Cast to address type.
6372
6373 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6374
6375 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6376 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6377 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6378 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6379 (nbsd_get_siginfo_type): New.
6380 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6381 (_initialize_nbsd_tdep): New.
6382
6383 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6384
6385 PR binutils/26301
6386 * configure: Regenerated.
6387
6388 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6389
6390 PR binutils/26301
6391 * configure: Regenerated.
6392
6393 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6394
6395 * python/py-frame.c: Remove 'user-regs.h' include.
6396 (frapy_read_register): Rewrite to make use of
6397 gdbpy_parse_register_id.
6398 * python/py-registers.c (gdbpy_parse_register_id): New function,
6399 moved here from python/py-unwind.c. Updated the return type, and
6400 also accepts register descriptor objects.
6401 * python/py-unwind.c: Remove 'user-regs.h' include.
6402 (pyuw_parse_register_id): Moved to python/py-registers.c.
6403 (unwind_infopy_add_saved_register): Update to use
6404 gdbpy_parse_register_id.
6405 (pending_framepy_read_register): Likewise.
6406 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6407
6408 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6409
6410 * python/py-registers.c: Add 'user-regs.h' include.
6411 (register_descriptor_iter_find): New function.
6412 (register_descriptor_iterator_object_methods): New static global
6413 methods array.
6414 (register_descriptor_iterator_object_type): Add pointer to methods
6415 array.
6416
6417 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6418
6419 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6420 for all architectures on FreeBSD 11.3 and later.
6421
6422 2020-07-27 Tom Tromey <tromey@adacore.com>
6423
6424 * gcore.h (load_corefile): Don't declare.
6425
6426 2020-07-27 Tom de Vries <tdevries@suse.de>
6427
6428 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6429 * config.in: Regenerate.
6430 * configure: Regenerate.
6431
6432 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6433
6434 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6435 ws2tcpip.h. When checking whether socklen_t type is defined, use
6436 ws2tcpip.h if it is available and sys/socket.h isn't.
6437 * configure: Regenerate.
6438 * config.in: Regenerate.
6439
6440 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6441
6442 PR fortran/23051
6443 PR fortran/26139
6444 * valops.c (value_ind): Pass address to
6445 readjust_indirect_value_type.
6446 * value.c (readjust_indirect_value_type): Make parameter
6447 non-const, and add extra address parameter. Resolve original type
6448 before using it.
6449 * value.h (readjust_indirect_value_type): Update function
6450 signature and comment.
6451
6452 2020-07-25 Tom de Vries <tdevries@suse.de>
6453
6454 PR symtab/26243
6455 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6456 entries.
6457
6458 2020-07-24 Aaron Merey <amerey@redhat.com>
6459
6460 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6461 * configure: Rebuild.
6462
6463 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6464
6465 PR corefiles/26294
6466 * corelow.c (_initialize_corelow): Add period to help text
6467 for "maintenance print core-file-backed-mappings".
6468
6469 2020-07-23 Pedro Alves <pedro@palves.net>
6470
6471 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6472 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6473 meanwhile.
6474 * frame.c (frame_cache_generation, get_frame_cache_generation):
6475 New.
6476 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6477 (get_prev_frame_if_no_cycle): On exception, don't touch
6478 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6479 * frame.h (get_frame_cache_generation): Declare.
6480
6481 2020-07-23 Tom de Vries <tdevries@suse.de>
6482
6483 PR tui/26282
6484 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6485 New default constructor.
6486
6487 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6488
6489 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6490 exclude non-statement entries.
6491
6492 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6493
6494 * NEWS (New commands): Mention new command
6495 "maintenance print core-file-backed-mappings".
6496
6497 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6498
6499 * corelow.c (gdbcmd.h): Include.
6500 (core_target::info_proc_mappings): New method.
6501 (get_current_core_target): New function.
6502 (maintenance_print_core_file_backed_mappings): New function.
6503 (_initialize_corelow): Add core-file-backed-mappings to
6504 "maint print" commands.
6505
6506 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6507
6508 * linux-tdep.c (dump_note_entry_p): New function.
6509 (linux_dump_mapping_p_ftype): New typedef.
6510 (linux_find_memory_regions_full): Add new parameter,
6511 should_dump_mapping_p.
6512 (linux_find_memory_regions): Adjust call to
6513 linux_find_memory_regions_full.
6514 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6515 call to linux_find_memory_regions_full.
6516
6517 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6518
6519 * corelow.c (solist.h, unordered_map): Include.
6520 (class core_target): Add field m_core_file_mappings and
6521 method build_file_mappings.
6522 (core_target::core_target): Call build_file_mappings.
6523 (core_target::~core_target): Free memory associated with
6524 m_core_file_mappings.
6525 (core_target::build_file_mappings): New method.
6526 (core_target::xfer_partial): Use m_core_file_mappings
6527 for memory transfers.
6528 * linux-tdep.c (linux_read_core_file_mappings): New
6529 function.
6530 (linux_core_info_proc_mappings): Rewrite to use
6531 linux_read_core_file_mappings.
6532 (linux_init_abi): Register linux_read_core_file_mappings.
6533
6534 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6535
6536 * arch-utils.c (default_read_core_file_mappings): New function.
6537 * arch-utils.c (default_read_core_file_mappings): Declare.
6538 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6539 * gdbarch.h, gdbarch.c: Regenerate.
6540
6541 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6542
6543 PR corefiles/25631
6544 * corelow.c (core_target:xfer_partial): Revise
6545 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6546 case after first checking the stratum beneath the core
6547 target.
6548 (has_all_memory): Return true.
6549 * target.c (raw_memory_xfer_partial): Revise comment
6550 regarding use of has_all_memory.
6551
6552 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6553
6554 * exec.h (section_table_xfer_memory): Revise declaration,
6555 replacing section name parameter with an optional callback
6556 predicate.
6557 * exec.c (section_table_xfer_memory): Likewise.
6558 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6559 of section_table_xfer_memory.
6560
6561 2020-07-22 Tom Tromey <tromey@adacore.com>
6562
6563 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6564 lookup_symbol_search_name.
6565
6566 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6567
6568 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6569 redundant local variable.
6570 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6571 reference, not pointer, update code accordingly.
6572
6573 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6574 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6575
6576 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6577 * jit.c (jit_breakpoint_re_set_internal): Use the
6578 `skip_jit_symbol_lookup` field.
6579
6580 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6581 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6582
6583 * jit.c (jit_read_descriptor): Define the descriptor address once,
6584 use twice.
6585 (jit_breakpoint_deleted): Move the declaration of the loop variable
6586 `iter` into the loop header.
6587 (jit_breakpoint_re_set_internal): Move the declaration of the local
6588 variable `objf_data` to the first point of definition.
6589 (jit_event_handler): Move the declaration of local variables
6590 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6591 Rename `objf` to `jited`.
6592
6593 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6594
6595 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6596 Remove.
6597 * jit.c (get_jiter_objfile_data): Update.
6598
6599 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6600 Simon Marchi <simon.marchi@polymtl.ca>
6601
6602 * jit.c (struct jit_program_space_data): Remove.
6603 (jit_program_space_key): Remove.
6604 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6605 stuff.
6606 (get_jit_program_space_data): Remove.
6607 (jit_breakpoint_deleted): Iterate on all of the program space's
6608 objfiles.
6609 (jit_inferior_init): Likewise.
6610 (jit_breakpoint_re_set_internal): Likewise. Also change return
6611 type to void.
6612 (jit_breakpoint_re_set): Pass current_program_space to
6613 jit_breakpoint_re_set_internal.
6614
6615 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6616
6617 * jit.h (struct jiter_objfile_data) <cached_code_address,
6618 jit_breakpoint>: Move to here from ...
6619 * jit.c (jit_program_space_data): ... here.
6620 (jiter_objfile_data::~jiter_objfile_data): Update.
6621 (jit_breakpoint_deleted): Update.
6622 (jit_breakpoint_re_set_internal): Update.
6623
6624 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6625
6626 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6627 checks.
6628 (jit_read_descriptor): Remove NULL check.
6629 (jit_event_handler): Add an assertion.
6630
6631 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6632
6633 * jit.h (struct jit_objfile_data): Split into...
6634 (struct jiter_objfile_data): ... this ...
6635 (struct jited_objfile_data): ... and this.
6636 * objfiles.h (struct objfile) <jit_data>: Remove.
6637 <jiter_data, jited_data>: New fields.
6638 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6639 (jiter_objfile_data::~jiter_objfile_data): ... this.
6640 (get_jit_objfile_data): Rename to ...
6641 (get_jiter_objfile_data): ... this.
6642 (add_objfile_entry): Update.
6643 (jit_read_descriptor): Use get_jiter_objfile_data.
6644 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6645 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6646 (jit_inferior_exit_hook): Use objfile's jited_data field.
6647
6648 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6649
6650 * jit.h: Forward-declare `struct minimal_symbol`.
6651 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6652 constructor, destructor, and an objfile* field.
6653 * jit.c (jit_objfile_data): Remove.
6654 (struct jit_objfile_data): Migrate from here to jit.h.
6655 (jit_objfile_data::~jit_objfile_data): New destructor
6656 implementation with code moved from free_objfile_data.
6657 (free_objfile_data): Delete.
6658 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6659 (jit_find_objf_with_entry_addr): Ditto.
6660 (jit_inferior_exit_hook): Ditto.
6661 (_initialize_jit): Remove the call to
6662 register_objfile_data_with_cleanup.
6663 * objfiles.h (struct objfile) <jit_data>: New field.
6664
6665 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6666
6667 * jit.h: Forward-declare `struct objfile`.
6668 (jit_event_handler): Add a second parameter, the JITer objfile.
6669 * jit.c (jit_read_descriptor): Change the signature to take the
6670 JITer objfile as an argument instead of the jit_program_space_data.
6671 (jit_inferior_init): Update the call to jit_read_descriptor.
6672 (jit_event_handler): Use the new JITer objfile argument when calling
6673 jit_read_descriptor.
6674 * breakpoint.c (handle_jit_event): Update the call to
6675 jit_event_handler to pass the JITer objfile.
6676
6677 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6678
6679 * gdbarch.c: Regenerate.
6680 * gdbarch.h: Regenerate.
6681 * gdbarch.sh (handle_segmentation_fault): Remove method.
6682 * infrun.c (handle_segmentation_fault): Remove.
6683 (print_signal_received_reason): Remove call to
6684 handle_segmentation_fault.
6685
6686 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6687
6688 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6689 Rename to sparc64_linux_report_signal_info and add siggnal
6690 argument.
6691 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6692 instead of sparc64_linux_handle_segmentation_fault.
6693
6694 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6695
6696 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6697 i386_linux_report_signal_info instead of
6698 i386_linux_handle_segmentation_fault.
6699 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6700 to i386_linux_report_signal_info and add siggnal argument.
6701 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6702 of i386_linux_handle_segmentation_fault.
6703 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6704 to i386_linux_report_signal_info and add siggnal argument.
6705
6706 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6707
6708 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6709 hook if present.
6710
6711 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6712
6713 * gdbarch.c: Regenerate.
6714 * gdbarch.h: Regenerate.
6715 * gdbarch.sh (report_signal_info): New method.
6716 * infrun.c (print_signal_received_reason): Invoke gdbarch
6717 report_signal_info hook if present.
6718
6719 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6720
6721 * python/py-registers.c : Add 'unordered_map' include.
6722 (gdbpy_new_reggroup): Renamed to...
6723 (gdbpy_get_reggroup): ...this. Update to only create register
6724 group descriptors when needed.
6725 (gdbpy_reggroup_iter_next): Update.
6726
6727 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6728
6729 * python/py-registers.c (gdbpy_register_object_data): New static
6730 global.
6731 (gdbpy_register_object_data_init): New function.
6732 (gdbpy_new_register_descriptor): Renamed to...
6733 (gdbpy_get_register_descriptor): ...this, and update to reuse
6734 existing register descriptors where possible.
6735 (gdbpy_register_descriptor_iter_next): Update.
6736 (gdbpy_initialize_registers): Register new gdbarch data.
6737
6738 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6739
6740 * linux-nat.c (stopped_pids): Make static.
6741
6742 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6743
6744 PR ada/26235
6745 * gdbtypes.c (ada_discrete_type_low_bound,
6746 ada_discrete_type_high_bound): Handle undefined bounds.
6747
6748 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6749
6750 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6751 declaration.
6752 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6753 function.
6754
6755 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6756
6757 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6758 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6759 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6760 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6761 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6762 method.
6763
6764 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6765
6766 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6767 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6768 which are deprecated in Guile 3.0.
6769 * configure.ac (try_guile_versions): Add "guile-3.0".
6770 * configure (try_guile_versions): Regenerate.
6771 * NEWS: Update entry.
6772
6773 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6774 Doug Evans <dje@google.com>
6775
6776 PR gdb/21104
6777 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6778 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6779 USING_GUILE_BEFORE_2_2.
6780 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6781 Change type to 'scm_t_port_type *'.
6782 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6783 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6784 parameter and honor it. Update callers.
6785 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6786 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6787 functions.
6788 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6789 USING_GUILE_BEFORE_2_2.
6790 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6791 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6792 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6793 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6794 and 'SCM_PORT_TYPE'.
6795 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6796 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6797 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6798 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6799 [!USING_GUILE_BEFORE_2_2]: New functions.
6800 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6801 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6802 'gdbscm_memory_port_read'.
6803 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6804 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6805 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6806 function.
6807 (ioscm_init_memory_port): Remove.
6808 (ioscm_init_memory_port_stream): New function
6809 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6810 function.
6811 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6812 Return scm_from_uint (0).
6813 (gdbscm_set_memory_port_read_buffer_size_x)
6814 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6815 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6816 Return scm_from_uint (0).
6817 (gdbscm_set_memory_port_write_buffer_size_x)
6818 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6819 * configure.ac (try_guile_versions): Add "guile-2.2".
6820 * configure: Regenerate.
6821 * NEWS: Add entry.
6822
6823 2020-07-18 Tom Tromey <tom@tromey.com>
6824
6825 * linux-nat.c (linux_multi_process): Remove.
6826 (linux_nat_target::supports_multi_process): Return true.
6827
6828 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6829
6830 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6831 (riscv_lookup_target_description): Return pointer out of
6832 unique_ptr.
6833 * target-descriptions.c (allocate_target_description): Add
6834 comment.
6835 (target_desc_deleter::operator()): Likewise.
6836 * target-descriptions.h (struct target_desc_deleter): Moved to
6837 gdbsupport/tdesc.h.
6838 (target_desc_up): Likewise.
6839
6840 2020-07-17 Tom Tromey <tromey@adacore.com>
6841
6842 * linux-nat.c (linux_nat_target::supports_non_stop)
6843 (linux_nat_target::always_non_stop_p): Use "true".
6844 (linux_nat_target::supports_disable_randomization): Use "true" and
6845 "false".
6846
6847 2020-07-16 Caroline Tice <cmtice@google.com>
6848
6849 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6850 (RNGLIST_HEADER_SIZE64): New constant definition.
6851 (struct dwop_section_names): Add rnglists_dwo.
6852 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6853 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6854 (struct dwo_sections): Add rnglists field.
6855 (read_attribut_reprocess): Add tag parameter.
6856 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6857 (cu_debug_rnglists_section): New function (decl & definition).
6858 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6859 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6860 die whose range is being checked; get rnglist section from
6861 cu_debug_rnglists_section, to get from either objfile or dwo file as
6862 appropriate. Add cases for DW_RLE_base_addressx,
6863 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6864 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6865 test inside if-condition and updating complaint message.
6866 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6867 dwarf2_rnglists_process.
6868 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6869 dwarf2_ranges_process.
6870 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6871 need_ranges_base and update comment appropriately. Also pass die tag
6872 to dwarf2_ranges_read.
6873 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6874 need_ranges_base and update comment appropriately. Also pass die tag
6875 to dwarf2_ranges_process.
6876 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6877 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6878 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6879 need_ranges_base and update comment appropriately. Also pass die tag
6880 to read_attribute_reprocess and dwarf2_ranges_read.
6881 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6882 and update function comment appropriately.
6883 (read_loclist_index): Call read_loclists_rnglists_header instead of
6884 read_loclist_header.
6885 (read_rnglist_index): New function.
6886 (read_attribute_reprocess): Add tag parameter. Add code for
6887 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6888 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6889
6890 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6891
6892 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6893 being resolved.
6894
6895 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6896
6897 * arch-utils.c (show_architecture): Update formatting of messages.
6898
6899 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6900
6901 * gdbtypes.h (struct type) <bounds>: Handle array and string
6902 types.
6903 * ada-lang.c (assign_aggregate): Use type::bounds on
6904 array/string type.
6905 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6906 * c-varobj.c (c_number_of_children): Likewise.
6907 (c_describe_child): Likewise.
6908 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6909 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6910 (f_type_print_base): Likewise.
6911 * f-valprint.c (f77_array_offset_tbl): Likewise.
6912 (f77_get_upperbound): Likewise.
6913 (f77_print_array_1): Likewise.
6914 * guile/scm-type.c (gdbscm_type_range): Likewise.
6915 * m2-typeprint.c (m2_array): Likewise.
6916 (m2_is_long_set_of_type): Likewise.
6917 * m2-valprint.c (get_long_set_bounds): Likewise.
6918 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6919 * python/py-type.c (typy_range): Likewise.
6920 * rust-lang.c (rust_internal_print_type): Likewise.
6921 * type-stack.c (type_stack::follow_types): Likewise.
6922 * valarith.c (value_subscripted_rvalue): Likewise.
6923 * valops.c (value_cast): Likewise.
6924
6925 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6926
6927 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6928 callers to use the equivalent accessor methods.
6929
6930 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6931
6932 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6933 (struct type) <bit_stride>: New method.
6934 (TYPE_BIT_STRIDE): Remove.
6935 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6936
6937 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6938
6939 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6940 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6941 callers to use the equivalent accessor methods instead.
6942
6943 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6944
6945 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6946 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6947 callers to use the equivalent accessor methods instead.
6948
6949 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6950
6951 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6952 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6953 to use dynamic_prop::kind.
6954
6955 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6956
6957 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6958 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6959 to get the bound property's kind and check against
6960 PROP_UNDEFINED.
6961
6962 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6963
6964 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6965 all callers to use type::range_bounds followed by
6966 dynamic_prop::{low,high}.
6967
6968 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6969
6970 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6971 const_val, set_const_val, baton, set_locexpr, set_loclist,
6972 set_addr_offset, variant_parts, set_variant_parts,
6973 original_type, set_original_type>: New methods.
6974 <kind>: Rename to...
6975 <m_kind>: ... this. Update all users to use the new methods
6976 instead.
6977 <data>: Rename to...
6978 <m_data>: ... this. Update all users to use the new methods
6979 instead.
6980
6981 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6982
6983 * gdbtypes.c (get_discrete_bounds): Return failure if
6984 the range type's bounds are not both defined and constant
6985 values.
6986 (get_array_bounds): Update comment. Remove undefined bound check.
6987
6988 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6989
6990 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6991 the type::bounds method directly.
6992
6993 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6994
6995 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6996 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6997 are used to set the range type's bounds to use set_bounds.
6998
6999 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7000
7001 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7002
7003 2020-07-10 Pedro Alves <pedro@palves.net>
7004
7005 * gdbthread.h (inferior_ref): Define.
7006 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7007 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7008 * thread.c
7009 (scoped_restore_current_thread::restore):
7010 Adjust to gdb::ref_ptr.
7011 (scoped_restore_current_thread::~scoped_restore_current_thread):
7012 Remove manual decref handling.
7013 (scoped_restore_current_thread::scoped_restore_current_thread):
7014 Adjust to use
7015 inferior_ref::new_reference/thread_info_ref::new_reference.
7016 Incref the thread before calling get_frame_id instead of after.
7017 Let TARGET_CLOSE_ERROR propagate.
7018
7019 2020-07-10 Pedro Alves <pedro@palves.net>
7020
7021 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7022 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7023 NOT_AVAILABLE_ERROR.
7024 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7025 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7026
7027 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7028 Pedro Alves <pedro@palves.net>
7029
7030 PR gdb/26199
7031 * infrun.c (threads_are_resumed_pending_p): Delete.
7032 (do_target_wait): Remove threads_are_executing and
7033 threads_are_resumed_pending_p checks from the inferior_matches
7034 lambda. Update comments.
7035
7036 2020-07-10 Pedro Alves <pedro@palves.net>
7037
7038 PR gdb/26199
7039 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7040 executing threads.
7041
7042 2020-07-10 Pedro Alves <pedro@palves.net>
7043
7044 PR gdb/26199
7045 * infrun.c (handle_no_resumed): Handle multiple targets.
7046
7047 2020-07-10 Pedro Alves <pedro@palves.net>
7048
7049 PR gdb/26199
7050 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7051 target_is_async_p.
7052
7053 2020-07-10 Pedro Alves <pedro@palves.net>
7054
7055 PR gdb/26199
7056 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7057 threads, not all threads.
7058
7059 2020-07-10 Pedro Alves <pedro@palves.net>
7060
7061 PR gdb/26199
7062 * remote.c (remote_target::open_1): Pass remote target pointer as
7063 data to create_async_event_handler.
7064 (remote_async_inferior_event_handler): Mark async event handler
7065 before returning if the remote target still has either pending
7066 events or unacknowledged notifications.
7067
7068 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7069
7070 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7071 declaration.
7072 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7073 function.
7074
7075 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7076
7077 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7078 inferior_ptid.
7079
7080 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7081
7082 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7083 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7084 AT_FREEBSD_PS_STRINGS.
7085
7086 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7087
7088 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7089 of debugfile path on Windows.
7090
7091 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7092
7093 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7094 argument to 'data'.
7095
7096 2020-07-08 Tom Tromey <tromey@adacore.com>
7097
7098 * ada-lang.c (ada_exception_message_1): Use read_memory.
7099
7100 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7101
7102 PR python/22748
7103 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7104 special handling for inline frames.
7105 * findvar.c (value_of_register_lazy): Skip inline frames when
7106 creating lazy register values.
7107 * frame.c (frame_id_computed_p): Delete definition.
7108 * frame.h (frame_id_computed_p): Delete declaration.
7109
7110 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7111
7112 * NEWS: Mention additions to Python API.
7113 * python/py-arch.c (archpy_register_groups): New function.
7114 (arch_object_methods): Add 'register_groups' method.
7115 * python/py-registers.c (reggroup_iterator_object): New struct.
7116 (reggroup_object): New struct.
7117 (gdbpy_new_reggroup): New function.
7118 (gdbpy_reggroup_to_string): New function.
7119 (gdbpy_reggroup_name): New function.
7120 (gdbpy_reggroup_iter): New function.
7121 (gdbpy_reggroup_iter_next): New function.
7122 (gdbpy_new_reggroup_iterator): New function
7123 (gdbpy_initialize_registers): Register new types.
7124 (reggroup_iterator_object_type): Define new Python type.
7125 (gdbpy_reggroup_getset): New static global.
7126 (reggroup_object_type): Define new Python type.
7127 * python/python-internal.h
7128
7129 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7130
7131 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7132 * python/py-arch.c (archpy_registers): New function.
7133 (arch_object_methods): Add 'registers' method.
7134 * python/py-registers.c: New file.
7135 * python/python-internal.h
7136 (gdbpy_new_register_descriptor_iterator): Declare.
7137 (gdbpy_initialize_registers): Declare.
7138 * python/python.c (do_start_initialization): Call
7139 gdbpy_initialize_registers.
7140 * NEWS: Mention additions to the Python API.
7141
7142 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7143
7144 * NEWS: Mention new Python API method.
7145 * python/py-unwind.c (pending_framepy_architecture): New function.
7146 (pending_frame_object_methods): Add architecture method.
7147
7148 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7149
7150 * gdbarch.c: Regenerate.
7151 * gdbarch.h: Regenerate.
7152 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7153 (gdbarch_data): Use internal_error for the case where
7154 deprecated_set_gdbarch_data was originally needed.
7155 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7156 and use passed in obstack.
7157 (libunwind_frame_set_descr): Should no longer get back NULL from
7158 gdbarch_data.
7159 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7160 type.
7161 * user-regs.c (user_regs_init): Update parameters, and use passed
7162 in obstack.
7163 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7164 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7165
7166 2020-07-06 Tom de Vries <tdevries@suse.de>
7167
7168 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7169 End-Of-Sequence in lte_is_less_than.
7170 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7171 "gdb: Don't reorder line table entries too much when sorting".
7172
7173 2020-07-06 Tom de Vries <tdevries@suse.de>
7174
7175 PR tui/26205
7176 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7177
7178 2020-07-05 Tom de Vries <tdevries@suse.de>
7179
7180 PR build/26187
7181 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7182 std::uncaught_exceptions instead of deprecated
7183 std::uncaught_exception.
7184
7185 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7186
7187 * macroexp.h (macro_stringify): Return
7188 gdb::unique_xmalloc_ptr<char>.
7189 * macroexp.c (macro_stringify): Likewise.
7190 * macrotab.c (fixup_definition): Update.
7191
7192 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7193
7194 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7195 (lex_one_token): Update.
7196 * macroexp.c (struct macro_buffer) <release>: Return
7197 gdb::unique_xmalloc_ptr<char>.
7198 (macro_stringify): Update.
7199 (macro_expand): Update.
7200 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7201 * macroexp.h (macro_expand_next): Likewise.
7202
7203 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7204
7205 * macroexp.h (macro_lookup_ftype): Remove.
7206 (macro_expand, macro_expand_once, macro_expand_next): Remove
7207 lookup function parameters, add scope parameter.
7208 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7209 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7210 * macroscope.h (standard_macro_lookup): Change parameter type
7211 to macro_scope.
7212 * macroscope.c (standard_macro_lookup): Likewise.
7213 * c-exp.y (lex_one_token): Update.
7214 * macrocmd.c (macro_expand_command): Likewise.
7215 (macro_expand_once_command): Likewise.
7216
7217 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7218
7219 * inf-loop.c (inferior_event_handler): Remove client_data param.
7220 * inf-loop.h (inferior_event_handler): Likewise.
7221 * infcmd.c (step_1): Adjust.
7222 * infrun.c (proceed): Adjust.
7223 (fetch_inferior_event): Remove client_data param.
7224 (infrun_async_inferior_event_handler): Adjust.
7225 * infrun.h (fetch_inferior_event): Remove `void *` param.
7226 * linux-nat.c (handle_target_event): Adjust.
7227 * record-btrace.c (record_btrace_handle_async_inferior_event):
7228 Adjust.
7229 * record-full.c (record_full_async_inferior_event_handler):
7230 Adjust.
7231 * remote.c (remote_async_inferior_event_handler): Adjust.
7232
7233 2020-07-01 Tom Tromey <tom@tromey.com>
7234
7235 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7236 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7237
7238 2020-07-01 Tom Tromey <tom@tromey.com>
7239
7240 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7241 tui_gen_win_info.
7242 (tui_win_info::make_window): Merge with
7243 tui_gen_win_info::make_window.
7244 (tui_win_info::make_visible): Move from tui_gen_win_info.
7245 * tui/tui-win.c (tui_win_info::max_width): Move from
7246 tui_gen_win_info.
7247 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7248 type.
7249 <window_factory>: Likewise.
7250 * tui/tui-layout.c (tui_win_info::resize): Move from
7251 tui_gen_win_info.
7252 (make_standard_window): Change return type.
7253 (get_locator_window, tui_get_window_by_name): Likewise.
7254 (tui_layout_window::apply): Remove a cast.
7255 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7256 (struct tui_win_info): Merge with tui_gen_win_info.
7257 (struct tui_gen_win_info): Remove.
7258
7259 2020-07-01 Tom Tromey <tom@tromey.com>
7260
7261 * tui/tui-stack.h (struct tui_locator_window): Derive from
7262 tui_win_info.
7263 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7264 <can_box>: New method.
7265
7266 2020-07-01 Tom Tromey <tom@tromey.com>
7267
7268 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7269
7270 2020-07-01 Tom Tromey <tom@tromey.com>
7271
7272 * tui/tui-regs.c (tui_data_window::display_registers_from)
7273 (tui_data_window::display_registers_from)
7274 (tui_data_window::first_data_item_displayed)
7275 (tui_data_window::delete_data_content_windows): Update.
7276 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7277 Remove.
7278 (tui_data_window::check_register_values): Update.
7279 (tui_data_item_window::rerender): Add parameters. Update.
7280 (tui_data_item_window::refresh_window): Remove.
7281 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7282 virtual.
7283 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7284 tui_gen_win_info.
7285 <refresh_window, max_height, min_height>: Remove.
7286 <rerender>: Add parameters.
7287 <x, y, visible>: New members.
7288 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7289 <m_item_width>: New member.
7290
7291 2020-07-01 Tom Tromey <tom@tromey.com>
7292
7293 * tui/tui-regs.c (tui_data_window::show_register_group)
7294 (tui_data_window::check_register_values): Update.
7295 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7296 from item_no.
7297
7298 2020-07-01 Tom Tromey <tom@tromey.com>
7299
7300 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7301 useless "if".
7302
7303 2020-07-01 Tom Tromey <tom@tromey.com>
7304
7305 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7306 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7307
7308 2020-07-01 Tom Tromey <tom@tromey.com>
7309
7310 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7311 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7312 (struct tui_line_or_address): Move from tui-data.h.
7313 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7314 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7315 (tui_cmd_window, tui_source_window_base, tui_source_window)
7316 (tui_disasm_window): Don't declare.
7317 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7318 to tui-winsource.h.
7319 (SINGLE_KEY): Move to tui-stack.c.
7320
7321 2020-07-01 Tom Tromey <tom@tromey.com>
7322
7323 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7324 std::string.
7325 * tui/tui-regs.c (class tab_expansion_file): New.
7326 (tab_expansion_file::write): New method.
7327 (tui_register_format): Change return type. Use
7328 tab_expansion_file.
7329 (tui_get_register, tui_data_window::display_registers_from)
7330 (tui_data_item_window::rerender): Update.
7331 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7332 * tui/tui-io.c (tui_expand_tabs): Remove.
7333
7334 2020-07-01 Tom Tromey <tom@tromey.com>
7335
7336 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7337
7338 2020-07-01 Fangrui Song <maskray@google.com>
7339
7340 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7341
7342 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7343
7344 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7345 forms for DW_AT_associated and DW_AT_allocated attributes,
7346 which is already checked in function attr_to_dynamic_prop.
7347
7348 2020-06-30 Tom Tromey <tromey@adacore.com>
7349
7350 * dwarf2/read.c (quirk_rust_enum): Correctly call
7351 alloc_rust_variant for default-less enum.
7352
7353 2020-06-30 Tom Tromey <tromey@adacore.com>
7354
7355 PR build/26183:
7356 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7357 gdb::to_string.
7358
7359 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7360
7361 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7362 * gdbarch.h: Re-generate.
7363
7364 2020-06-28 Tom Tromey <tom@tromey.com>
7365
7366 * command.h (cmd_types): Remove.
7367 (cmd_type): Don't declare.
7368 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7369 typedef.
7370 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7371 * cli/cli-decode.c (cmd_type): Remove.
7372
7373 2020-06-27 Pedro Alves <palves@redhat.com>
7374
7375 * fork-child.c (prefork_hook): Adjust.
7376 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7377 Delete.
7378 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7379 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7380 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7381 Remove declarations.
7382 (struct inferior) <set_tty, tty>: New methods.
7383 (struct inferior) <terminal>: Rename to ...
7384 (struct inferior) <m_terminal>: ... this and make private.
7385 * main.c (captured_main_1): Adjust.
7386 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7387 (mi_cmd_inferior_tty_show): Adjust.
7388 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7389 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7390
7391 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7392
7393 * configure.ac: Add --enable-libctf: handle --disable-static
7394 properly.
7395 * acinclude.m4: sinclude ../config/enable.m4.
7396 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7397 (LIBCTF): Substitute in.
7398 (CTF_DEPS): New, likewise.
7399 (CLIBS): libctf needs symbols from libbfd: move earlier.
7400 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7401 flags.
7402 * ctfread.c: Surround in ENABLE_LIBCTF.
7403 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7404 * configure: Regenerate.
7405 * config.in: Likewise.
7406
7407 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7408
7409 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7410
7411 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7412
7413 * inferior.h (struct inferior) <terminal>: Change type to
7414 gdb::unique_xmalloc_ptr<char>.
7415 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7416 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7417 field, adjust to unique pointer.
7418 (get_inferior_io_terminal): Adjust to unique pointer.
7419
7420 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7421
7422 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7423 registers, not just the known core set of registers.
7424
7425 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7426
7427 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7428 fflags, frm, and fcsr registers.
7429 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7430 restore groups.
7431 (riscv_tdesc_unknown_reg): New function.
7432 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7433 tdesc_use_registers.
7434 * riscv-tdep.h (struct gdbarch_tdep): Add
7435 unknown_csrs_first_regnum, unknown_csrs_count,
7436 duplicate_fflags_regnum, duplicate_frm_regnum, and
7437 duplicate_fcsr_regnum fields.
7438
7439 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7440
7441 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7442 callback, use the callback (when not null) to help number unknown
7443 registers.
7444 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7445 (tdesc_use_registers): Add extra parameter to declaration.
7446
7447 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7448
7449 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7450 in the file.
7451 (class riscv_pending_register_alias): Likewise.
7452 (riscv_register_feature::register_info): Change 'required_p' field
7453 to 'required', and change its type. Add 'check' member function.
7454 (riscv_register_feature::register_info::check): Define new member
7455 function.
7456 (riscv_xreg_feature): Change initialisation of 'required' field.
7457 (riscv_freg_feature): Likewise.
7458 (riscv_virtual_feature): Likewise.
7459 (riscv_csr_feature): Likewise.
7460 (riscv_check_tdesc_feature): Take extra parameter, the csr
7461 tdesc_feature, rewrite the function to use the new
7462 riscv_register_feature::register_info::check function.
7463 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7464
7465 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7466
7467 * features/Makefile: Remove all references to the deleted files
7468 below.
7469 * features/riscv/32bit-csr.c: Deleted.
7470 * features/riscv/32bit-csr.xml: Deleted.
7471 * features/riscv/64bit-csr.c: Deleted.
7472 * features/riscv/64bit-csr.xml: Deleted.
7473 * features/riscv/rebuild-csr-xml.sh: Deleted.
7474
7475 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7476
7477 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7478 whitespace error for declaration of names member variable.
7479 (struct riscv_register_feature): Add new prefer_first_name member
7480 variable, and fix whitespace error in declaration of registers.
7481 (riscv_xreg_feature): Initialize prefer_first_name field.
7482 (riscv_freg_feature): Likewise.
7483 (riscv_virtual_feature): Likewise.
7484 (riscv_csr_feature): Likewise.
7485 (riscv_register_name): Expand on comments. Remove register name
7486 modifications for CSR and virtual registers.
7487
7488 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7489
7490 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7491 errors.
7492
7493 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7494
7495 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7496 riscv-opc.h.
7497 (class riscv_pending_register_alias): New class.
7498 (riscv_check_tdesc_feature): Take vector of pending aliases and
7499 populate it as appropriate.
7500 (riscv_setup_register_aliases): Delete.
7501 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7502 to riscv_check_tdesc_feature in all cases. Use the vector to
7503 create the register aliases.
7504
7505 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7506
7507 * sol2-tdep.c (sol2_static_transform_name): Remove.
7508 (sol2_init_abi): Don't register it.
7509 * gdbarch.sh (static_transform_name): Remove.
7510 * gdbarch.c, gdbarch.h: Regenerate.
7511
7512 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7513 gdbarch_static_transform_name.
7514 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7515 * stabsread.c (define_symbol) <'X'>: Remove.
7516 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7517 handling.
7518 <'V'>: Likewise.
7519 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7520 <'S'>: Remove call to gdbarch_static_transform_name.
7521
7522 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7523
7524 * procfs.c (procfs_pre_trace): New function.
7525 (procfs_target::create_inferior): Pass it to fork_inferior.
7526
7527 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7528
7529 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7530 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7531 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7532 sol2-tdep.o, sparc-sol2-tdep.o.
7533 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7534 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7535 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7536 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7537
7538 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7539
7540 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7541 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7542 Call sol2_init_abi.
7543 Remove calls to set_gdbarch_skip_solib_resolver,
7544 set_gdbarch_core_pid_to_str.
7545 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7546 (i386_sol2_static_transform_name): Remove.
7547 (i386_sol2_init_abi): Call sol2_init_abi.
7548 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7549 set_gdbarch_static_transform_name,
7550 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7551 Use sol2_sigtramp_p.
7552 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7553 (sol2_sigtramp_p): New function.
7554 (sol2_static_transform_name): New function.
7555 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7556 (sol2_init_abi): New function.
7557 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7558 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7559 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7560 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7561 (sparc_sol2_static_transform_name): Remove.
7562 (sparc32_sol2_init_abi): Call sol2_init_abi.
7563 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7564 set_gdbarch_static_transform_name,
7565 set_gdbarch_skip_solib_resolver,
7566 set_gdbarch_core_pid_to_str.
7567 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7568 (sparc_sol2_static_transform_name): Remove
7569 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7570 call sol2_sigtramp_p.
7571 (sparc64_sol2_init_abi): Call sol2_init_abi.
7572 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7573 set_gdbarch_static_transform_name,
7574 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7575
7576 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7577
7578 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7579 * exec.c (validate_exec_file): If from_tty, set both
7580 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7581 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7582 and from_tty, unconditionally ask a confirmation.
7583
7584 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7585
7586 * target-descriptions.c (tdesc_architecture_name): Protect against
7587 NULL pointer dereference.
7588 (maint_print_xml_tdesc_cmd): New function.
7589 (_initialize_target_descriptions): Register new 'maint print
7590 xml-tdesc' command and give it the filename completer.
7591 * NEWS: Mention new 'maint print xml-tdesc' command.
7592
7593 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7594
7595 * target-descriptions.c (class tdesc_compatible_info): New class.
7596 (struct target_desc): Change type of compatible vector.
7597 (tdesc_compatible_p): Update for change in type of
7598 target_desc::compatible.
7599 (tdesc_compatible_info_list): New function.
7600 (tdesc_compatible_info_arch_name): New function.
7601 (tdesc_add_compatible): Update for change in type of
7602 target_desc::compatible.
7603 (print_c_tdesc::visit_pre): Likewise.
7604
7605 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7606
7607 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7608 whitespace to underscore.
7609 (maint_print_c_tdesc_cmd): Use fake filename for target
7610 descriptions that came from the target.
7611 (_initialize_target_descriptions): Add filename command completion
7612 for 'maint print c-tdesc'.
7613
7614 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7615
7616 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7617 lines.
7618
7619 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7620
7621 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7622 lines.
7623 (dwarf2_find_location_expression): Likewise.
7624 (call_site_parameter_matches): Likewise.
7625 (dwarf2_compile_expr_to_ax): Likewise.
7626 (disassemble_dwarf_expression): Likewise.
7627 (loclist_describe_location): Likewise.
7628
7629 2020-06-23 Pedro Alves <palves@redhat.com>
7630
7631 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7632 progspace-and-thread.h. Include scoped-mock-context.h instead.
7633 (register_to_value_test): Use scoped_mock_context.
7634 * regcache.c: Include "scoped-mock-context.h".
7635 (cooked_read_test): Don't error out if a target is already pushed.
7636 Use scoped_mock_context. Adjust.
7637 * scoped-mock-context.h: New file.
7638
7639 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7640
7641 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7642 initializer.
7643 (ada_language::is_string_type_p): New member function.
7644 * c-lang.c (c_language_data): Delete la_is_string_type_p
7645 initializer.
7646 (cplus_language_data): Likewise.
7647 (asm_language_data): Likewise.
7648 (minimal_language_data): Likewise.
7649 * d-lang.c (d_language_data): Likewise.
7650 * f-lang.c (f_is_string_type_p): Delete function, implementation
7651 moved to f_language::is_string_type_p.
7652 (f_language_data): Delete la_is_string_type_p initializer.
7653 (f_language::is_string_type_p): New member function,
7654 implementation from f_is_string_type_p.
7655 * go-lang.c (go_is_string_type_p): Delete function, implementation
7656 moved to go_language::is_string_type_p.
7657 (go_language_data): Delete la_is_string_type_p initializer.
7658 (go_language::is_string_type_p): New member function,
7659 implementation from go_is_string_type_p.
7660 * language.c (language_defn::is_string_type_p): Define new member
7661 function.
7662 (default_is_string_type_p): Make static, add comment copied from
7663 header file.
7664 (unknown_language_data): Delete la_is_string_type_p initializer.
7665 (unknown_language::is_string_type_p): New member function.
7666 (auto_language_data): Delete la_is_string_type_p initializer.
7667 (auto_language::is_string_type_p): New member function.
7668 * language.h (language_data): Delete la_is_string_type_p field.
7669 (language_defn::is_string_type_p): Declare new function.
7670 (default_is_string_type_p): Delete desclaration, move comment to
7671 definition.
7672 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7673 moved to m2_language::is_string_type_p.
7674 (m2_language_data): Delete la_is_string_type_p initializer.
7675 (m2_language::is_string_type_p): New member function,
7676 implementation from m2_is_string_type_p.
7677 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7678 initializer.
7679 * opencl-lang.c (opencl_language_data): Likewise.
7680 * p-lang.c (pascal_is_string_type_p): Delete function,
7681 implementation moved to pascal_language::is_string_type_p.
7682 (pascal_language_data): Delete la_is_string_type_p initializer.
7683 (pascal_language::is_string_type_p): New member function,
7684 implementation from pascal_is_string_type_p.
7685 * rust-lang.c (rust_is_string_type_p): Delete function,
7686 implementation moved to rust_language::is_string_type_p.
7687 (rust_language_data): Delete la_is_string_type_p initializer.
7688 (rust_language::is_string_type_p): New member function,
7689 implementation from rust_is_string_type_p.
7690 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7691 is_string_type_p.
7692
7693 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7694
7695 * ada-lang.c (ada_language_data): Delete la_print_typedef
7696 initializer.
7697 (ada_language::print_typedef): New member function.
7698 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7699 (cplus_language_data): Likewise.
7700 (asm_language_data): Likewise.
7701 (minimal_language_data): Likewise.
7702 * d-lang.c (d_language_data): Likewise.
7703 * f-lang.c (f_language_data): Likewise.
7704 (f_language::print_typedef): New member function.
7705 * go-lang.c (go_language_data): Delete la_print_typedef
7706 initializer.
7707 * language.c (language_defn::print_typedef): Define member
7708 function.
7709 (unknown_language_data): Delete la_print_typedef initializer.
7710 (unknown_language::print_typedef): New member function.
7711 (auto_language_data): Delete la_print_typedef initializer.
7712 (auto_language::print_typedef): New member function.
7713 * language.h (language_data): Delete la_print_typedef field.
7714 (language_defn::print_typedef): Declare new member function.
7715 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7716 (default_print_typedef): Delete declaration.
7717 * m2-lang.c (m2_language_data): Delete la_print_typedef
7718 initializer.
7719 (m2_language::print_typedef): New member function.
7720 * objc-lang.c (objc_language_data): Delete la_print_typedef
7721 initializer.
7722 * opencl-lang.c (opencl_language_data): Likewise.
7723 * p-lang.c (pascal_language_data): Likewise.
7724 (pascal_language::print_typedef): New member function.
7725 * rust-lang.c (rust_print_typedef): Delete function,
7726 implementation moved to rust_language::print_typedef.
7727 (rust_language): Delete la_print_typedef initializer.
7728 (rust_language::print_typedef): New member function,
7729 implementation from rust_print_typedef.
7730 * typeprint.c (default_print_typedef): Delete.
7731
7732 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7733
7734 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7735 (ada_language::printstr): New member function.
7736 * c-lang.c (c_language_data): Delete la_printstr initializer.
7737 (cplus_language_data): Likewise.
7738 (asm_language_data): Likewise.
7739 (minimal_language_data): Likewise.
7740 * d-lang.c (d_language_data): Likewise.
7741 * f-lang.c (f_printstr): Rename to f_language::printstr.
7742 (f_language_data): Delete la_printstr initializer.
7743 (f_language::printstr): New member function, implementation from
7744 f_printstr.
7745 * go-lang.c (go_language_data): Delete la_printstr initializer.
7746 * language.c (language_defn::printstr): Define new member
7747 function.
7748 (unk_lang_printstr): Delete.
7749 (unknown_language_data): Delete la_printstr initializer.
7750 (unknown_language::printstr): New member function.
7751 (auto_language_data): Delete la_printstr initializer.
7752 (auto_language::printstr): New member function.
7753 * language.h (language_data): Delete la_printstr field.
7754 (language_defn::printstr): Declare new member function.
7755 (LA_PRINT_STRING): Update call to printstr.
7756 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7757 (m2_language_data): Delete la_printstr initializer.
7758 (m2_language::printstr): New member function, implementation from
7759 m2_printstr.
7760 * objc-lang.c (objc_language_data): Delete la_printstr
7761 initializer.
7762 * opencl-lang.c (opencl_language_data): Likewise.
7763 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7764 (pascal_language_data): Delete la_printstr initializer.
7765 (pascal_language::printstr): New member function, implementation
7766 from pascal_printstr.
7767 * p-lang.h (pascal_printstr): Delete declaration.
7768 * rust-lang.c (rust_printstr): Update header comment.
7769 (rust_language_data): Delete la_printstr initializer.
7770 (rust_language::printstr): New member function.
7771
7772 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7773
7774 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7775 (ada_language::printchar): New member function.
7776 * c-lang.c (c_language_data): Delete la_printchar initializer.
7777 (cplus_language_data): Likewise.
7778 (asm_language_data): Likewise.
7779 (minimal_language_data): Likewise.
7780 * d-lang.c (d_language_data): Likewise.
7781 * f-lang.c (f_printchar): Rename to f_language::printchar.
7782 (f_language_data): Delete la_printchar initializer.
7783 (f_language::printchar): New member function, implementation from
7784 f_printchar.
7785 * go-lang.c (go_language_data): Delete la_printchar initializer.
7786 * language.c (unk_lang_printchar): Delete.
7787 (language_defn::printchar): Define new member function.
7788 (unknown_language_data): Delete la_printchar initializer.
7789 (unknown_language::printchar): New member function.
7790 (auto_language_data): Delete la_printchar initializer.
7791 (auto_language::printchar): New member function.
7792 * language.h (language_data): Delete la_printchar field.
7793 (language_defn::printchar): Declare new member function.
7794 (LA_PRINT_CHAR): Update call to printchar.
7795 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7796 (m2_language::printchar): New member function.
7797 * objc-lang.c (objc_language_data): Delete la_printchar
7798 initializer.
7799 * opencl-lang.c (opencl_language_data): Likewise.
7800 * p-lang.c (pascal_language_data): Delete la_printchar
7801 initializer.
7802 (pascal_language::printchar): New member function.
7803 * rust-lang.c (rust_printchar): Rename to
7804 rust_language::printchar.
7805 (rust_language_data): Delete la_printchar initializer.
7806 (rust_language::printchar): New member function, implementation
7807 from rust_printchar.
7808
7809 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7810
7811 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7812 (ada_language_data): Delete la_emitchar initializer.
7813 (ada_language::emitchar): New member function, implementation from
7814 emit_char.
7815 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7816 (cplus_language_data): Likewise.
7817 (asm_language_data): Likewise.
7818 (minimal_language_data): Likewise.
7819 * d-lang.c (d_language_data): Likewise.
7820 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7821 (f_language_data): Delete la_emitchar initializer.
7822 (f_language::emitchar): New member function, implementation from
7823 f_emit_char.
7824 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7825 * language.c (unk_lang_emit_char): Delete.
7826 (language_defn::emitchar): New member function definition.
7827 (unknown_language_data): Delete la_emitchar initializer.
7828 (unknown_language::emitchar): New member function.
7829 (auto_language_data): Delete la_emitchar initializer.
7830 (auto_language::emitchar): New member function.
7831 * language.h (language_data): Delete la_emitchar field.
7832 (language_defn::emitchar): New member field declaration.
7833 (LA_EMIT_CHAR): Update call to emitchar.
7834 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7835 (m2_language_data): Delete la_emitchar initializer.
7836 (m2_language::emitchar): New member function, implementation from
7837 m2_emit_char.
7838 * objc-lang.c (objc_language_data): Delete la_emitchar
7839 initializer.
7840 * opencl-lang.c (opencl_language_data): Likewise.
7841 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7842 (pascal_language_data): Delete la_emitchar initializer.
7843 (pascal_language::emitchar): New member function, implementation
7844 from pascal_emit_char.
7845 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7846 (rust_language_data): Delete la_emitchar initializer.
7847 (rust_language::emitchar): New member function, implementation
7848 from rust_emitchar.
7849
7850 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7851
7852 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7853 (ada_language_data): Delete la_post_parser initializer.
7854 (ada_language::post_parser): New member function.
7855 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7856 (cplus_language_data): Likewise.
7857 (asm_language_data): Likewise.
7858 (minimal_language_data): Likewise.
7859 * d-lang.c (d_language_data): Likewise.
7860 * f-lang.c (f_language_data): Likewise.
7861 * go-lang.c (go_language_data): Likewise.
7862 * language.c (unknown_language_data): Likewise.
7863 (auto_language_data): Likewise.
7864 * language.h (language_data): Delete la_post_parser field.
7865 (language_defn::post_parser): New member function.
7866 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7867 * objc-lang.c (objc_language_data): Likewise.
7868 * opencl-lang.c (opencl_language_data): Likewise.
7869 * p-lang.c (pascal_language_data): Likewise.
7870 * parse.c (parse_exp_in_context): Update call to post_parser.
7871 (null_post_parser): Delete definition.
7872 * parser-defs.h (null_post_parser): Delete declaration.
7873 * rust-lang.c (rust_language_data): Delete la_post_parser
7874 initializer.
7875
7876 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * ada-lang.c (parse): Rename to ada_language::parser.
7879 (ada_language_data): Delete la_parser initializer.
7880 (ada_language::parser): New member function, implementation from
7881 parse.
7882 * c-lang.c (c_language_data): Delete la_parser initializer.
7883 (cplus_language_data): Likewise.
7884 (asm_language_data): Likewise.
7885 (minimal_language_data): Likewise.
7886 * d-lang.c (d_language_data): Likewise.
7887 (d_language::parser): New member function.
7888 * f-lang.c (f_language_data): Delete la_parser initializer.
7889 (f_language::parser): New member function.
7890 * go-lang.c (go_language_data): Delete la_parser initializer.
7891 (go_language::parser): New member function.
7892 * language.c (unk_lang_parser): Delete.
7893 (language_defn::parser): Define new member function.
7894 (unknown_language_data): Delete la_parser initializer.
7895 (unknown_language::parser): New member function.
7896 (auto_language_data): Delete la_parser initializer.
7897 (auto_language::parser): New member function.
7898 * language.h (language_data): Delete la_parser field.
7899 (language_defn::parser): Declare new member function.
7900 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7901 (m2_language::parser): New member function.
7902 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7903 * opencl-lang.c (opencl_language_data): Likewise.
7904 * p-lang.c (pascal_language_data): Likewise.
7905 (pascal_language::parser): New member function.
7906 * parse.c (parse_exp_in_context): Update call to parser.
7907 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7908 (rust_language::parser): New member function.
7909
7910 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7911
7912 * top.c (print_gdb_configuration): Print --with-python-libdir
7913 configuration value.
7914
7915 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7916
7917 * NEWS: Mention change to the alias command.
7918
7919 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7920
7921 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7922 (alias_command_completer)
7923 (make_alias_options_def_group): New functions.
7924 (alias_opts, alias_option_defs): New struct and array.
7925 (alias_usage_error): Update usage.
7926 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7927 Use option framework.
7928 (_initialize_cli_cmds): Update alias command help.
7929 Update aliases command help.
7930 (show_user):
7931 Add NULL for new default_args lookup_cmd argument.
7932 (valid_command_p): Rename to validate_aliased_command.
7933 Add NULL for new default_args lookup_cmd argument. Verify that the
7934 aliased_command has no default args.
7935 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7936 (lookup_cmd_1, lookup_cmd): New argument default_args.
7937 (add_alias_cmd):
7938 Add NULL for new default_args lookup_cmd argument.
7939 (print_help_for_command): Show default args under the layout
7940 alias some_alias = some_aliased_cmd some_alias_default_arg.
7941 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7942 xfree default_args in destructor.
7943 * cli/cli-script.c (process_next_line, do_define_command):
7944 Add NULL for new default_args lookup_cmd argument.
7945 * command.h: Declare new default_args argument in lookup_cmd
7946 and lookup_cmd_1.
7947 * completer.c (complete_line_internal_1):
7948 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7949 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7950 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7951 Likewise.
7952 * infcmd.c (_initialize_infcmd): Likewise.
7953 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7954 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7955 * python/py-param.c (add_setshow_generic): Likewise.
7956 * remote.c (_initialize_remote): Likewise.
7957 * top.c (execute_command): Prepend default_args if command has some.
7958 (set_verbose):
7959 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7960 * tracepoint.c (validate_actionline, encode_actions_1):
7961 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7962
7963 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7964
7965 * jit.c (jit_read_descriptor): Use bool as the return type.
7966 (jit_breakpoint_re_set_internal): Use bool as the return type.
7967 Invert the return value logic; return true if the jit breakpoint
7968 has been successfully initialized.
7969 (jit_inferior_init): Update the call to
7970 jit_breakpoint_re_set_internal.
7971
7972 2020-06-22 Pedro Alves <palves@redhat.com>
7973
7974 PR gdb/25939
7975 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7976 Use the current inferior instead. Don't return
7977 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7978 wait again.
7979 * sol-thread.c (sol_thread_target::wait): Don't reference
7980 inferior_ptid.
7981 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7982 (sol_update_thread_list_callback): Use the current inferior's pid
7983 instead of inferior_ptid.
7984
7985 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7986
7987 * procfs.c: Cleanup many comments.
7988
7989 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7990 (AFTER_WATCHFLAG): Replace by value.
7991
7992 (MAIN_PROC_NAME_FORMAT): Inline ...
7993 (create_procinfo): ... here.
7994
7995 (procfs_debug_inferior): Remove SYS_exec handling.
7996 (syscall_is_exec): Likewise.
7997 (procfs_set_exec_trap): Likewise.
7998
7999 (syscall_is_lwp_exit): Inline in callers.
8000 (syscall_is_exit): Likewise.
8001 (syscall_is_exec): Likewise.
8002 (syscall_is_lwp_create): Likewise.
8003
8004 (invalidate_cache): Remove #if 0 code.
8005
8006 (make_signal_thread_runnable): Remove.
8007 (procfs_target::resume): Remove #if 0 code.
8008
8009 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8010
8011 PR gdb/25939
8012 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8013 call ...
8014 (procfs_target::create_inferior): ... here.
8015
8016 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8017
8018 * exec.c (validate_exec_file): Ensure the build-id is up to
8019 date by calling reopen_exec_file (that checks file timestamp
8020 to decide to re-read the file).
8021
8022 2020-06-18 Pedro Alves <palves@redhat.com>
8023
8024 PR gdb/25412
8025 * gdbthread.h (delete_thread, delete_thread_silent)
8026 (find_thread_ptid): Update comments.
8027 * thread.c (current_thread_): New global.
8028 (is_current_thread): Move higher, and reimplement.
8029 (inferior_thread): Reimplement.
8030 (set_thread_exited): Use bool. Add assertions.
8031 (add_thread_silent): Simplify thread-reuse handling by always
8032 calling delete_thread.
8033 (delete_thread): Remove intro comment.
8034 (find_thread_ptid): Skip exited threads.
8035 (switch_to_thread_no_regs): Write to current_thread_.
8036 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8037 INFERIOR_PTID. Clear current_thread_.
8038
8039 2020-06-18 Pedro Alves <palves@redhat.com>
8040
8041 * aix-thread.c (pd_update): Use switch_to_thread.
8042
8043 2020-06-18 Pedro Alves <palves@redhat.com>
8044
8045 * ravenscar-thread.c (ravenscar_thread_target): Update.
8046 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8047 (ravenscar_thread_target::add_active_thread): ... this. Don't
8048 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8049 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8050
8051 2020-06-18 Pedro Alves <palves@redhat.com>
8052
8053 * nat/windows-nat.c (current_windows_thread): Remove.
8054 * nat/windows-nat.h (current_windows_thread): Remove.
8055 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8056 Adjust.
8057 (display_selectors): Adjust to fetch the current
8058 windows_thread_info based on inferior_ptid.
8059 (fake_create_process): No longer write to current_windows_thread.
8060 (windows_nat_target::get_windows_debug_event):
8061 Don't set inferior_ptid or current_windows_thread.
8062 (windows_nat_target::wait): Adjust to not rely on
8063 current_windows_thread.
8064 (do_initial_windows_stuff): Now a method of windows_nat_target.
8065 Switch to the last_ptid thread.
8066 (windows_nat_target::attach): Adjust.
8067 (windows_nat_target::detach): Use switch_to_no_thread instead of
8068 writing to inferior_ptid directly.
8069 (windows_nat_target::create_inferior): Adjust.
8070
8071 2020-06-18 Pedro Alves <palves@redhat.com>
8072
8073 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8074
8075 2020-06-18 Pedro Alves <palves@redhat.com>
8076
8077 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8078 after creating it, instead of writing to inferior_ptid. Don't
8079 write to inferior_ptid.
8080
8081 2020-06-18 Pedro Alves <palves@redhat.com>
8082
8083 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8084
8085 2020-06-18 Pedro Alves <palves@redhat.com>
8086
8087 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8088 it, instead of writing to inferior_ptid.
8089
8090 2020-06-18 Pedro Alves <palves@redhat.com>
8091
8092 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8093 to inferior_ptid.
8094
8095 2020-06-18 Pedro Alves <palves@redhat.com>
8096
8097 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8098 instead of writing to inferior_ptid directly.
8099
8100 2020-06-18 Pedro Alves <palves@redhat.com>
8101
8102 * corelow.c (core_target::close): Use switch_to_no_thread instead
8103 of writing to inferior_ptid directly.
8104 (add_to_thread_list, core_target_open): Use switch_to_thread
8105 instead of writing to inferior_ptid directly.
8106
8107 2020-06-18 Pedro Alves <palves@redhat.com>
8108
8109 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8110 inferior_ptid.
8111 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8112 inferior_ptid.
8113 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8114 inferior_ptid directly.
8115 (darwin_nat_target::init_thread_list): Switch to thread, instead
8116 of writing to inferior_ptid.
8117 (darwin_nat_target::attach): Don't write to inferior_ptid.
8118 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8119
8120 2020-06-18 Pedro Alves <palves@redhat.com>
8121
8122 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8123 thread.
8124 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8125 Instead use switch_to_thread.
8126 (gnu_nat_target::detach): Use switch_to_no_thread
8127 instead of writing to inferior_ptid directly. Used passed-in
8128 inferior instead of looking up the inferior by pid.
8129
8130 2020-06-18 Pedro Alves <palves@redhat.com>
8131
8132 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8133 inferior_ptid.
8134
8135 2020-06-18 Pedro Alves <palves@redhat.com>
8136
8137 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8138 inferior_ptid.
8139 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8140 thread.
8141 (nto_procfs_target::detach): Avoid referencing
8142 inferior_ptid. Use switch_to_no_thread instead of writing to
8143 inferior_ptid directly.
8144 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8145 instead of writing to inferior_ptid directly.
8146 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8147 to thread.
8148
8149 2020-06-18 Pedro Alves <palves@redhat.com>
8150
8151 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8152 after creating it, instead of writing to inferior_ptid.
8153 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8154 to inferior_ptid directly.
8155 (gdbsim_target::wait): Don't write to inferior_ptid.
8156
8157 2020-06-18 Pedro Alves <palves@redhat.com>
8158
8159 * remote.c (remote_target::remote_notice_new_inferior): Use
8160 switch_to_thread instead of writing to inferior_ptid directly.
8161 (remote_target::add_current_inferior_and_thread): Use
8162 switch_to_no_thread instead of writing to inferior_ptid directly.
8163 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8164 and switch_to_thread instead of using set_current_inferior or
8165 writing to inferior_ptid directly.
8166
8167 2020-06-18 Pedro Alves <palves@redhat.com>
8168
8169 * tracectf.c (ctf_target_open): Switch to added thread instead of
8170 writing to inferior_ptid directly.
8171 (ctf_target::close): Use switch_to_no_thread instead of writing to
8172 inferior_ptid directly.
8173
8174 2020-06-18 Pedro Alves <palves@redhat.com>
8175
8176 * tracefile-tfile.c (tfile_target_open): Don't write to
8177 inferior_ptid directly, instead switch to added thread.
8178 (tfile_target::close): Use switch_to_no_thread instead of writing
8179 to inferior_ptid directly.
8180
8181 2020-06-18 Pedro Alves <palves@redhat.com>
8182
8183 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8184 (procfs_target::detach): Use switch_to_no_thread
8185 instead of writing to inferior_ptid directly.
8186 (do_attach): Change return type to void. Switch to the added
8187 thread.
8188 (procfs_target::create_inferior): Switch to the added thread.
8189 (procfs_do_thread_registers): Don't write to inferior_ptid.
8190
8191 2020-06-18 Pedro Alves <palves@redhat.com>
8192
8193 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8194 of writing to inferior_ptid.
8195 (scoped_restore_exited_inferior): Delete.
8196 (handle_vfork_child_exec_or_exit): Simplify using
8197 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8198 instead of writing to inferior_ptid.
8199 (THREAD_STOPPED_BY): Delete.
8200 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8201 (thread_stopped_by_hw_breakpoint): Delete.
8202 (save_waitstatus): Use
8203 scoped_restore_current_thread+switch_to_thread, and call
8204 target_stopped_by_watchpoint instead of
8205 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8206 instead of thread_stopped_by_sw_breakpoint, and
8207 target_stopped_by_hw_breakpoint instead of
8208 thread_stopped_by_hw_breakpoint.
8209 (handle_inferior_event)
8210 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8211 inferior_ptid directly, nor
8212 set_current_inferior/set_current_program_space. Use
8213 switch_to_thread / switch_to_inferior_no_thread instead.
8214
8215 2020-06-18 Pedro Alves <palves@redhat.com>
8216
8217 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8218 instead of writing to inferior_ptid.
8219
8220 2020-06-18 Pedro Alves <palves@redhat.com>
8221
8222 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8223 added thread.
8224 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8225 to the added thread.
8226 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8227 instead of writing to inferior_ptid.
8228
8229 2020-06-18 Pedro Alves <palves@redhat.com>
8230
8231 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8232 (register_to_value_test): Mock a program_space too. Heap-allocate
8233 the address space. Don't write to inferior_ptid. Use
8234 switch_to_thread instead.
8235
8236 2020-06-18 Pedro Alves <palves@redhat.com>
8237
8238 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8239 Delete.
8240 (find_signalled_thread()): New, factored out from
8241 linux_make_corefile_notes and adjusted to handle exited threads.
8242 (linux_make_corefile_notes): Adjust to use the new
8243 find_signalled_thread.
8244
8245 2020-06-18 Pedro Alves <palves@redhat.com>
8246
8247 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8248 of saving/restoring inferior_ptid.
8249
8250 2020-06-17 Tom Tromey <tom@tromey.com>
8251
8252 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8253 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8254 declare.
8255 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8256
8257 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8258
8259 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8260 of partial symtabs.
8261
8262 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8263
8264 * regformats/reg-arm.dat: Remove.
8265 * regformats/reg-bfin.dat: Remove.
8266 * regformats/reg-cris.dat: Remove.
8267 * regformats/reg-crisv32.dat: Remove.
8268 * regformats/reg-m32r.dat: Remove.
8269 * regformats/reg-tilegx.dat: Remove.
8270 * regformats/reg-tilegx32.dat: Remove.
8271
8272 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8273
8274 * features/Makefile (WHICH): Remove arm files.
8275 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8276 * regformats/arm/arm-with-neon.dat: Remove.
8277 * regformats/arm/arm-with-vfpv2.dat: Remove.
8278 * regformats/arm/arm-with-vfpv3.dat: Remove.
8279
8280 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8281
8282 * features/Makefile (XMLTOC): Remove rx.xml.
8283
8284 2020-06-17 Pedro Alves <palves@redhat.com>
8285
8286 * gdbthread.h (thread_control_state) <trap_expected> Update
8287 comments.
8288
8289 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8290
8291 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8292 ada_language::lookup_symbol_nonlocal.
8293 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8294 (ada_language::lookup_symbol_nonlocal): New member function,
8295 implementation from ada_lookup_symbol_nonlocal.
8296 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8297 initializer.
8298 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8299 initializer.
8300 (cplus_language::lookup_symbol_nonlocal): New member function.
8301 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8302 (minimal_language_data) Likewise.
8303 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8304 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8305 initializer.
8306 (d_language::lookup_symbol_nonlocal): New member function.
8307 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8308 initializer.
8309 (f_language::lookup_symbol_nonlocal): New member function.
8310 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8311 initializer.
8312 * language.c (unknown_language_data): Likewise.
8313 (auto_language_data): Likewise.
8314 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8315 field.
8316 (language_defn::lookup_symbol_nonlocal): New member function.
8317 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8318 initializer.
8319 * objc-lang.c (objc_language_data): Likewise.
8320 * opencl-lang.c (opencl_language_data): Likewise.
8321 * p-lang.c (pascal_language_data): Likewise.
8322 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8323 rust_language::lookup_symbol_nonlocal.
8324 (rust_language_data): Delete la_lookup_symbol_nonlocal
8325 initializer.
8326 (rust_language::lookup_symbol_nonlocal): New member function,
8327 implementation from rust_lookup_symbol_nonlocal.
8328 * symtab.c (lookup_symbol_aux): Update call to
8329 lookup_symbol_nonlocal.
8330 (basic_lookup_symbol_nonlocal): Rename to...
8331 (language_defn::lookup_symbol_nonlocal): ...this, and update
8332 header comment. Remove language_defn parameter, and replace with
8333 uses of `this'.
8334 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8335
8336 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8337
8338 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8339 initializer.
8340 (ada_language::value_print_inner): New member function.
8341 * c-lang.c (c_language_data): Delete la_value_print_inner
8342 initializer.
8343 (cplus_language_data): Likewise.
8344 (asm_language_data): Likewise.
8345 (minimal_language_data): Likewise.
8346 * d-lang.c (d_language_data): Likewise.
8347 (d_language::value_print_inner): New member function.
8348 * f-lang.c (f_language_data): Delete la_value_print_inner
8349 initializer.
8350 (f_language::value_print_inner): New member function.
8351 * f-lang.h (f_value_print_innner): Rename to...
8352 (f_value_print_inner): ...this (note spelling of 'inner').
8353 * f-valprint.c (f_value_print_innner): Rename to...
8354 (f_value_print_inner): ...this (note spelling of 'inner').
8355 * go-lang.c (go_language_data): Delete la_value_print_inner
8356 initializer.
8357 (go_language::value_print_inner): New member function.
8358 * language.c (language_defn::value_print_inner): Define new member
8359 function.
8360 (unk_lang_value_print_inner): Delete.
8361 (unknown_language_data): Delete la_value_print_inner initializer.
8362 (unknown_language::value_print_inner): New member function.
8363 (auto_language_data): Delete la_value_print_inner initializer.
8364 (auto_language::value_print_inner): New member function.
8365 * language.h (language_data): Delete la_value_print_inner field.
8366 (language_defn::value_print_inner): Delcare new member function.
8367 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8368 initializer.
8369 (m2_language::value_print_inner): New member function.
8370 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8371 initializer.
8372 * opencl-lang.c (opencl_language_data): Likewise.
8373 * p-lang.c (pascal_language_data): Likewise.
8374 (pascal_language::value_print_inner): New member function.
8375 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8376 initializer.
8377 (rust_language::value_print_inner): New member function.
8378 * valprint.c (do_val_print): Update call to value_print_inner.
8379
8380 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8381
8382 * ada-lang.c (ada_language_data): Delete la_value_print
8383 initializer.
8384 (ada_language::value_print): New member function.
8385 * c-lang.c (c_language_data): Delete la_value_print initializer.
8386 (cplus_language_data): Likewise.
8387 (asm_language_data): Likewise.
8388 (minimal_language_data): Likewise.
8389 * d-lang.c (d_language_data): Likewise.
8390 * f-lang.c (f_language_data): Likewise.
8391 * go-lang.c (go_language_data): Likewise.
8392 * language.c (unk_lang_value_print): Delete.
8393 (language_defn::value_print): Define new member function.
8394 (unknown_language_data): Delete la_value_print initializer.
8395 (unknown_language::value_print): New member function.
8396 (auto_language_data): Delete la_value_print initializer.
8397 (auto_language::value_print): New member function.
8398 * language.h (language_data): Delete la_value_print field.
8399 (language_defn::value_print): Declare new member function.
8400 (LA_VALUE_PRINT): Update call to value_print.
8401 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8402 * objc-lang.c (objc_language_data): Likewise.
8403 * opencl-lang.c (opencl_language_data): Likewise.
8404 * p-lang.c (pascal_language_data): Likewise.
8405 (pascal_language::value_print): New member function.
8406 * rust-lang.c (rust_language_data): Delete la_value_print
8407 initializer.
8408
8409 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8410
8411 * ada-lang.c (ada_watch_location_expression): Rename to
8412 ada_language::watch_location_expression.
8413 (ada_language_data): Delete la_watch_location_expression
8414 initializer.
8415 (ada_language::watch_location_expression): New member function,
8416 implementation from ada_watch_location_expression.
8417 * breakpoint.c (watch_command_1): Update call to
8418 watch_location_expression.
8419 * c-lang.c (c_watch_location_expression): Rename to
8420 language_defn::watch_location_expression.
8421 (c_language_data): Delete la_watch_location_expression
8422 initializer.
8423 (cplus_language_data): Likewise.
8424 (asm_language_data): Likewise.
8425 (minimal_language_data): Likewise.
8426 * c-lang.h (c_watch_location_expression): Delete declaration.
8427 * d-lang.c (d_language_data): Delete la_watch_location_expression
8428 initializer.
8429 * f-lang.c (f_language_data): Likewise.
8430 * go-lang.c (go_language_data): Likewise.
8431 * language.c (language_defn::watch_location_expression): Member
8432 function implementation from c_watch_location_expression.
8433 (unknown_language_data): Delete la_watch_location_expression
8434 initializer.
8435 (auto_language_data): Likewise.
8436 * language.h (language_data): Delete la_watch_location_expression
8437 field.
8438 (language_defn::watch_location_expression): Declare new member
8439 function.
8440 * m2-lang.c (m2_language_data): Delete
8441 la_watch_location_expression initializer.
8442 * objc-lang.c (objc_language_data): Likewise.
8443 * opencl-lang.c (opencl_language_data): Likewise.
8444 * p-lang.c (pascal_language_data): Likewise.
8445 * rust-lang.c (rust_watch_location_expression): Rename to
8446 rust_language::watch_location_expression.
8447 (rust_language_data): Delete la_watch_location_expression
8448 initializer.
8449 (rust_language::watch_location_expression): New member function,
8450 implementation from rust_watch_location_expression.
8451
8452 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8453
8454 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8455 ada_language::collect_symbol_completion_matches.
8456 (ada_language_data): Delete la_collect_symbol_completion_matches
8457 initializer.
8458 (ada_language::collect_symbol_completion_matches): New member
8459 function, implementation from
8460 ada_collect_symbol_completion_matches.
8461 * c-lang.c (c_language_data): Delete
8462 la_collect_symbol_completion_matches initializer.
8463 (cplus_language_data): Likewise.
8464 (asm_language_data): Likewise.
8465 (minimal_language_data): Likewise.
8466 * d-lang.c (d_language_data): Likewise.
8467 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8468 f_language::collect_symbol_completion_matches.
8469 (f_language_data): Delete la_collect_symbol_completion_matches
8470 initializer.
8471 (f_language::collect_symbol_completion_matches) New member
8472 function, implementation from f_collect_symbol_completion_matches.
8473 * go-lang.c (go_language_data): Delete
8474 la_collect_symbol_completion_matches initializer.
8475 * language.c (unknown_language_data): Likewise.
8476 (auto_language_data): Likewise.
8477 * language.h (language_data): Delete
8478 la_collect_symbol_completion_matches field.
8479 (language_defn::collect_symbol_completion_matches): New member
8480 function.
8481 * m2-lang.c (m2_language_data): Delete
8482 la_collect_symbol_completion_matches initializer.
8483 * objc-lang.c (objc_language_data): Likewise.
8484 * opencl-lang.c (opencl_language_data): Likewise.
8485 * p-lang.c (pascal_language_data): Likewise.
8486 * rust-lang.c (rust_language_data): Likewise.
8487 * symtab.c (default_collect_symbol_completion_matches): Delete.
8488 (collect_symbol_completion_matches): Update call to
8489 collect_symbol_completion_matches.
8490 (collect_symbol_completion_matches_type): Likewise.
8491 * symtab.h (default_collect_symbol_completion_matches): Delete
8492 declaration.
8493
8494 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8495
8496 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8497 (ada_language_data): Delete la_word_break_characters initializer.
8498 (ada_language::word_break_characters): New member function.
8499 * c-lang.c (c_language_data): Delete la_word_break_characters
8500 initializer.
8501 (cplus_language_data): Likewise.
8502 (asm_language_data): Likewise.
8503 (minimal_language_data): Likewise.
8504 * completer.c: Update global comment.
8505 (advance_to_expression_complete_word_point): Update call to
8506 word_break_characters.
8507 (complete_files_symbols): Likewise.
8508 (complete_line_internal_1): Likewise.
8509 (default_completer_handle_brkchars): Likewise.
8510 (skip_quoted_chars): Likewise.
8511 * d-lang.c (d_language_data): Delete la_word_break_characters
8512 initializer.
8513 * f-lang.c (f_word_break_characters): Delete.
8514 (f_language_data): Delete la_word_break_characters initializer.
8515 (f_language::word_break_characters): New member function.
8516 * go-lang.c (go_language_data): Delete la_word_break_characters
8517 initializer.
8518 * language.c (unknown_language_data): Likewise.
8519 (auto_language_data): Likewise.
8520 * language.h (default_word_break_characters): Move declaration to
8521 earlier in the file.
8522 (language_data): Delete la_word_break_characters field.
8523 (language_defn::word_break_characters): New member function.
8524 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8525 initializer.
8526 * objc-lang.c (objc_language_data): Likewise.
8527 * opencl-lang.c (opencl_language_data): Likewise.
8528 * p-lang.c (pascal_language_data): Likewise.
8529 * rust-lang.c (rust_language_data): Likewise.
8530
8531 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8532
8533 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8534 (ada_language_data): Delete la_get_symbol_name_matcher
8535 initializer.
8536 (language_defn::get_symbol_name_matcher_inner): New member
8537 function.
8538 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8539 initializer.
8540 (cplus_language_data): Likewise.
8541 (cplus_language::get_symbol_name_matcher_inner): New member
8542 function.
8543 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8544 (minimal_language_data): Likewise.
8545 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8546 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8547 initializer.
8548 * dictionary.c (iter_match_first_hashed): Update call to
8549 get_symbol_name_matcher.
8550 (iter_match_next_hashed): Likewise.
8551 (iter_match_next_linear): Likewise.
8552 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8553 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8554 initializer.
8555 (f_language::get_symbol_name_matcher_inner): New member function.
8556 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8557 initializer.
8558 * language.c (default_symbol_name_matcher): Update header comment,
8559 make static.
8560 (language_defn::get_symbol_name_matcher): New definition.
8561 (language_defn::get_symbol_name_matcher_inner): Likewise.
8562 (get_symbol_name_matcher): Delete.
8563 (unknown_language_data): Delete la_get_symbol_name_matcher
8564 initializer.
8565 (auto_language_data): Likewise.
8566 * language.h (language_data): Delete la_get_symbol_name_matcher
8567 field.
8568 (language_defn::get_symbol_name_matcher): New member function.
8569 (language_defn::get_symbol_name_matcher_inner): Likewise.
8570 (default_symbol_name_matcher): Delete declaration.
8571 * linespec.c (find_methods): Update call to
8572 get_symbol_name_matcher.
8573 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8574 initializer.
8575 * minsyms.c (lookup_minimal_symbol): Update call to
8576 get_symbol_name_matcher.
8577 (iterate_over_minimal_symbols): Likewise.
8578 * objc-lang.c (objc_language_data): Delete
8579 la_get_symbol_name_matcher initializer.
8580 * opencl-lang.c (opencl_language_data): Likewise.
8581 * p-lang.c (pascal_language_data): Likewise.
8582 * psymtab.c (psymbol_name_matches): Update call to
8583 get_symbol_name_matcher.
8584 * rust-lang.c (rust_language_data): Delete
8585 la_get_symbol_name_matcher initializer.
8586 * symtab.c (symbol_matches_search_name): Update call to
8587 get_symbol_name_matcher.
8588 (compare_symbol_name): Likewise.
8589
8590 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8591
8592 * ada-lang.c (ada_language_data): Delete la_compute_program
8593 initializer.
8594 * c-lang.c (c_language_data): Likewise.
8595 (c_language::compute_program): New member function.
8596 (cplus_language_data): Delete la_compute_program initializer.
8597 (cplus_language::compute_program): New member function.
8598 (asm_language_data): Delete la_compute_program initializer.
8599 (minimal_language_data): Likewise.
8600 * c-lang.h (c_compute_program): Update comment.
8601 (cplus_compute_program): Likewise.
8602 * compile/compile-c-support.c (c_compute_program): Likewise.
8603 (cplus_compute_program): Likewise.
8604 * compile/compile.c (compile_to_object): Update call to
8605 la_compute_program.
8606 * d-lang.c (d_language_data): Delete la_compute_program
8607 initializer.
8608 * f-lang.c (f_language_data): Likewise.
8609 * go-lang.c (go_language_data): Likewise.
8610 * language.c (unknown_language_data): Likewise.
8611 (auto_language_data): Likewise.
8612 * language.h (language_data): Delete la_compute_program field.
8613 (language_defn::compute_program): New member function.
8614 * m2-lang.c (m2_language_data): Delete la_compute_program
8615 initializer.
8616 * objc-lang.c (objc_language_data): Likewise.
8617 * opencl-lang.c (opencl_language_data): Likewise.
8618 * p-lang.c (pascal_language_data): Likewise.
8619 * rust-lang.c (rust_language_data): Likewise.
8620
8621 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8622
8623 * ada-lang.c (ada_language_data) Delete
8624 la_class_name_from_physname initializer.
8625 * c-lang.c (c_language_data): Likewise.
8626 (cplus_language_data): Likewise.
8627 (cplus_language::class_name_from_physname): New member function.
8628 (asm_language_data): Delete la_class_name_from_physname
8629 initializer.
8630 (minimal_language_data): Likewise.
8631 * d-lang.c (d_language_data): Likewise.
8632 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8633 method on language_defn class.
8634 (guess_full_die_structure_name): Likewise.
8635 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8636 initializer.
8637 * go-lang.c (go_language_data): Likewise.
8638 * language.c (language_class_name_from_physname): Delete.
8639 (unk_lang_class_name): Delete.
8640 (unknown_language_data): Delete la_class_name_from_physname
8641 initializer.
8642 (auto_language_data): Likewise.
8643 * language.h (language_data): Delete la_class_name_from_physname
8644 field.
8645 (language_defn::class_name_from_physname): New function.
8646 (language_class_name_from_physname): Delete declaration.
8647 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8648 initializer.
8649 * objc-lang.c (objc_language_data): Likewise.
8650 * opencl-lang.c (opencl_language_data): Likewise.
8651 * p-lang.c (pascal_language_data): Likewise.
8652 * rust-lang.c (rust_language_data): Likewise.
8653
8654 2020-06-16 Tom Tromey <tom@tromey.com>
8655
8656 * tui/tui-data.h (STATUS_NAME): New macro.
8657 * tui/tui-layout.c (tui_remove_some_windows)
8658 (initialize_known_windows, tui_register_window)
8659 (tui_layout_split::remove_windows, initialize_layouts)
8660 (tui_new_layout_command): Don't use hard-coded window names.
8661
8662 2020-06-16 Tom Tromey <tom@tromey.com>
8663
8664 PR tui/25348:
8665 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8666 tui_initialize_readline. Only run once. Call rl_initialize.
8667 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8668 tui_initialize_readline.
8669 * tui/tui-io.c (tui_setup_io): Call
8670 tui_ensure_readline_initialized.
8671 * tui/tui-interp.c (tui_interp::init): Update.
8672
8673 2020-06-16 Tom Tromey <tom@tromey.com>
8674
8675 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8676 Also preserve the status window.
8677
8678 2020-06-16 Tom Tromey <tom@tromey.com>
8679
8680 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8681 where m_window==nullptr.
8682
8683 2020-06-15 Tom Tromey <tromey@adacore.com>
8684
8685 * windows-nat.c (windows_nat::handle_output_debug_string):
8686 Update.
8687 (windows_nat::handle_ms_vc_exception): Update.
8688 * target.h (target_read_string): Change API.
8689 * target.c (target_read_string): Change API.
8690 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8691 Update.
8692 * solib-frv.c (frv_current_sos): Update.
8693 * solib-dsbt.c (dsbt_current_sos): Update.
8694 * solib-darwin.c (darwin_current_sos): Update.
8695 * linux-thread-db.c (inferior_has_bug): Update.
8696 * expprint.c (print_subexp_standard): Update.
8697 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8698 (ada_exception_message_1): Update.
8699
8700 2020-06-15 Tom Tromey <tromey@adacore.com>
8701
8702 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8703
8704 2020-06-15 Tom Tromey <tromey@adacore.com>
8705
8706 * valprint.c (read_string): Update comment.
8707 * target.c (MIN): Remove.
8708 (target_read_string): Rewrite.
8709
8710 2020-06-15 Tom Tromey <tromey@adacore.com>
8711
8712 * corefile.c (read_memory_string): Remove.
8713 * ada-valprint.c (ada_value_print_ptr): Update.
8714 * ada-lang.h (ada_tag_name): Change return type.
8715 * ada-lang.c (type_from_tag): Update.
8716 (ada_tag_name_from_tsd): Change return type. Use
8717 target_read_string.
8718 (ada_tag_name): Likewise.
8719 * gdbcore.h (read_memory_string): Don't declare.
8720
8721 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8722
8723 * symtab.c (rbreak_command): Ignore Windows drive colon.
8724
8725 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8726
8727 * NEWS: Mention removed GDBserver host support.
8728
8729 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8730
8731 * features/riscv/rebuild-csr-xml.sh: Updated.
8732
8733 2020-06-11 Tom Tromey <tom@tromey.com>
8734
8735 PR gdb/18318:
8736 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8737
8738 2020-06-09 Jonny Grant <jg@jguk.org>
8739 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8740
8741 * main.c (captured_main_1): Don't print new line after help.
8742 (print_gdb_help): add mailing list and IRC channel information
8743 to --help. Add new lines between items in the footer. Remove
8744 quotes around bug url.
8745
8746 2020-06-11 Keith Seitz <keiths@redhat.com>
8747
8748 PR gdb/21356
8749 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8750 Resolve typedefs for type length calculations.
8751
8752 2020-06-10 Tom de Vries <tdevries@suse.de>
8753
8754 PR ada/24713
8755 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8756 (write_psymbols): Enable .gdb_index for ada.
8757 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8758 ada.
8759
8760 2020-06-10 Tom de Vries <tdevries@suse.de>
8761
8762 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8763 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8764 namei" instead of "const char *name" argument.
8765 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8766 dw2_symtab_iter_init.
8767
8768 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8769
8770 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8771 to use type::field and field::type instead.
8772
8773 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8774
8775 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8776 to use field::type instead.
8777
8778 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8779
8780 * gdbtypes.h (struct field) <type, set_type>: New methods.
8781 Rename `type` field to...
8782 <m_type>: ... this. Change references throughout to use type or
8783 set_type methods.
8784 (FIELD_TYPE): Use field::type. Change call sites that modify
8785 the field's type to use field::set_type instead.
8786
8787 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8788
8789 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8790 to use type::index_type instead.
8791
8792 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8793
8794 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8795 methods.
8796 (TYPE_INDEX_TYPE): Use type::index_type.
8797 * gdbtypes.c (create_array_type_with_stride): Likewise.
8798
8799 2020-06-07 Tom Tromey <tom@tromey.com>
8800
8801 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8802 parameter.
8803 (generic_value_print): Update.
8804
8805 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8806
8807 Revert commit 982a38f60b0.
8808 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8809
8810 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8811
8812 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8813 avoid use after free.
8814
8815 2020-06-05 Tom de Vries <tdevries@suse.de>
8816
8817 * NEWS: Fix typos.
8818
8819 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8820
8821 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8822 the per_bfd object.
8823 (dwarf2_read_debug_names): Likewise.
8824 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8825 object when re-using a per_bfd object with an index.
8826
8827 2020-06-03 Tom de Vries <tdevries@suse.de>
8828
8829 PR symtab/26046
8830 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8831 children for C++.
8832 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8833 DW_TAG_subprogram.
8834
8835 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8836
8837 * ada-lang.c (ada_language_data): Delete skip_trampoline
8838 initializer.
8839 * c-lang.c (c_language_data): Likewise.
8840 (cplus_language_data): Likewise.
8841 (cplus_language::skip_trampoline): New member function.
8842 (asm_language_data): Delete skip_trampoline initializer.
8843 (minimal_language_data): Likewise.
8844 * d-lang.c (d_language_data): Likewise.
8845 * f-lang.c (f_language_data): Likewise.
8846 * go-lang.c (go_language_data): Likewise.
8847 * language.c (unk_lang_trampoline): Delete function.
8848 (skip_language_trampoline): Update.
8849 (unknown_language_data): Delete skip_trampoline initializer.
8850 (auto_language_data): Likewise.
8851 * language.h (language_data): Delete skip_trampoline field.
8852 (language_defn::skip_trampoline): New function.
8853 * m2-lang.c (m2_language_data): Delete skip_trampoline
8854 initializer.
8855 * objc-lang.c (objc_skip_trampoline): Delete function, move
8856 implementation to objc_language::skip_trampoline.
8857 (objc_language_data): Delete skip_trampoline initializer.
8858 (objc_language::skip_trampoline): New member function with
8859 implementation from objc_skip_trampoline.
8860 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8861 initializer.
8862 * p-lang.c (pascal_language_data): Likewise.
8863 * rust-lang.c (rust_language_data): Likewise.
8864
8865 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8866
8867 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8868 (ada_language::demangle): New member function.
8869 * c-lang.c (c_language_data): Delete la_demangle initializer.
8870 (cplus_language_data): Delete la_demangle initializer.
8871 (cplus_language::demangle): New member function.
8872 (asm_language_data): Delete la_demangle initializer.
8873 (minimal_language_data): Delete la_demangle initializer.
8874 * d-lang.c (d_language_data): Delete la_demangle initializer.
8875 (d_language::demangle): New member function.
8876 * f-lang.c (f_language_data): Delete la_demangle initializer.
8877 (f_language::demangle): New member function.
8878 * go-lang.c (go_language_data): Delete la_demangle initializer.
8879 (go_language::demangle): New member function.
8880 * language.c (language_demangle): Update.
8881 (unk_lang_demangle): Delete.
8882 (unknown_language_data): Delete la_demangle initializer.
8883 (unknown_language::demangle): New member function.
8884 (auto_language_data): Delete la_demangle initializer.
8885 (auto_language::demangle): New member function.
8886 * language.h (language_data): Delete la_demangle field.
8887 (language_defn::demangle): New function.
8888 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8889 * objc-lang.c (objc_language_data): Delete la_demangle
8890 initializer.
8891 (objc_language::demangle): New member function.
8892 * opencl-lang.c (opencl_language_data): Delete la_demangle
8893 initializer.
8894 * p-lang.c (pascal_language_data): Likewise.
8895 * rust-lang.c (rust_language_data): Likewise.
8896 (rust_language::demangle): New member function.
8897
8898 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8899
8900 * ada-lang.c (ada_language_data): Delete la_print_type
8901 initializer.
8902 (ada_language::print_type): New member function.
8903 * c-lang.c (c_language_data): Delete la_print_type initializer.
8904 (c_language::print_type): New member function.
8905 (cplus_language_data): Delete la_print_type initializer.
8906 (cplus_language::print_type): New member function.
8907 (asm_language_data): Delete la_print_type initializer.
8908 (asm_language::print_type): New member function.
8909 (minimal_language_data): Delete la_print_type initializer.
8910 (minimal_language::print_type): New member function.
8911 * d-lang.c (d_language_data): Delete la_print_type initializer.
8912 (d_language::print_type): New member function.
8913 * f-lang.c (f_language_data): Delete la_print_type initializer.
8914 (f_language::print_type): New member function.
8915 * go-lang.c (go_language_data): Delete la_print_type initializer.
8916 (go_language::print_type): New member function.
8917 * language.c (unk_lang_print_type): Delete.
8918 (unknown_language_data): Delete la_print_type initializer.
8919 (unknown_language::print_type): New member function.
8920 (auto_language_data): Delete la_print_type initializer.
8921 (auto_language::print_type): New member function.
8922 * language.h (language_data): Delete la_print_type field.
8923 (language_defn::print_type): New function.
8924 (LA_PRINT_TYPE): Update.
8925 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8926 (m2_language::print_type): New member function.
8927 * objc-lang.c (objc_language_data): Delete la_print_type
8928 initializer.
8929 (objc_language::print_type): New member function.
8930 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8931 to opencl_language::print_type.
8932 (opencl_language_data): Delete la_print_type initializer.
8933 (opencl_language::print_type): New member function, implementation
8934 from opencl_print_type.
8935 * p-lang.c (pascal_language_data): Delete la_print_type
8936 initializer.
8937 (pascal_language::print_type): New member function.
8938 * rust-lang.c (rust_print_type): Delete, implementation moved to
8939 rust_language::print_type.
8940 (rust_language_data): Delete la_print_type initializer.
8941 (rust_language::print_type): New member function, implementation
8942 from rust_print_type.
8943
8944 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8945
8946 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8947 implementation moves to...
8948 (ada_language::sniff_from_mangled_name): ...here. Update return
8949 type.
8950 (ada_language_data): Delete la_sniff_from_mangled_name
8951 initializer.
8952 * c-lang.c (c_language_data): Likewise.
8953 (cplus_language_data): Likewise.
8954 (cplus_language::sniff_from_mangled_name): New member function,
8955 implementation taken from gdb_sniff_from_mangled_name.
8956 (asm_language_data): Delete la_sniff_from_mangled_name
8957 initializer.
8958 (minimal_language_data): Likewise.
8959 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8960 implementation moves to cplus_language::sniff_from_mangled_name.
8961 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8962 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8963 moves to...
8964 (d_language::sniff_from_mangled_name): ...here.
8965 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8966 * f-lang.c (f_language_data): Likewise.
8967 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8968 moves to...
8969 (go_language::sniff_from_mangled_name): ...here.
8970 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8971 * language.c (language_sniff_from_mangled_name): Delete.
8972 (unknown_language_data): Delete la_sniff_from_mangled_name
8973 initializer.
8974 (auto_language_data): Likewise.
8975 * language.h (language_data): Delete la_sniff_from_mangled_name
8976 field.
8977 (language_defn::sniff_from_mangled_name): New function.
8978 (language_sniff_from_mangled_name): Delete declaration.
8979 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8980 field.
8981 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8982 implementation moves to...
8983 (objc_language::sniff_from_mangled_name): ...here.
8984 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8985 * opencl-lang.c (opencl_language_data): Likewise.
8986 * p-lang.c (pascal_language_data): Likewise.
8987 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8988 implementation moves to...
8989 (rust_language::sniff_from_mangled_name): ...here.
8990 (rust_language_data): Delete la_sniff_from_mangled_name
8991 initializer.
8992 * symtab.c (symbol_find_demangled_name): Call
8993 sniff_from_mangled_name member function.
8994
8995 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8996
8997 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8998 initializer.
8999 * c-lang.c (c_language_data): Likewise.
9000 (cplus_language_data): Likewise.
9001 (cplus_language::search_name_hash): New member function.
9002 (asm_language_data): Delete la_search_name_hash initializer.
9003 (minimal_language_data): Likewise.
9004 * d-lang.c (d_language_data): Likewise.
9005 * dictionary.c (default_search_name_hash): Rename to...
9006 (language_defn::search_name_hash): ...this.
9007 * f-lang.c (f_language_data): Likewise.
9008 (f_language::search_name_hash): New member function.
9009 * go-lang.c (go_language_data): Delete la_search_name_hash
9010 initializer.
9011 * language.c (unknown_language_data): Likewise.
9012 (auto_language_data): Likewise.
9013 * language.h (struct language_data): Delete la_search_name_hash
9014 field.
9015 (language_defn::search_name_hash): Declare new member function.
9016 (default_search_name_hash): Delete declaration.
9017 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9018 initializer.
9019 * objc-lang.c (objc_language_data): Likewise.
9020 * opencl-lang.c (opencl_language_data): Likewise.
9021 * p-lang.c (pascal_language_data): Likewise.
9022 * rust-lang.c (rust_language_data): Likewise.
9023 * symtab.c (search_name_hash): Update call.
9024
9025 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9026
9027 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9028 initializer.
9029 * c-lang.c (class compile_instance): Declare.
9030 (c_language_data): Delete la_get_compile_instance initializer.
9031 (c_language::get_compile_instance): New member function.
9032 (cplus_language_data): Delete la_get_compile_instance initializer.
9033 (cplus_language::get_compile_instance): New member function.
9034 (asm_language_data): Delete la_get_compile_instance initializer.
9035 (minimal_language_data): Likewise.
9036 * c-lang.h (c_get_compile_context): Update comment.
9037 (cplus_get_compile_context): Update comment.
9038 * compile/compile.c (compile_to_object): Update calls, don't rely
9039 on function pointer being NULL.
9040 * d-lang.c (d_language_data): Delete la_get_compile_instance
9041 initializer.
9042 * f-lang.c (f_language_data): Likewise.
9043 * go-lang.c (go_language_data): Likewise.
9044 * language.c (unknown_language_data): Likewise.
9045 (auto_language_data): Likewise.
9046 * language.h (language_data): Delete la_get_compile_instance field.
9047 (language_defn::get_compile_instance): New member function.
9048 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9049 initializer.
9050 * objc-lang.c (objc_language_data): Likewise.
9051 * opencl-lang.c (opencl_language_data): Likewise.
9052 * p-lang.c (pascal_language_data): Likewise.
9053 * rust-lang.c (rust_language_data): Likewise.
9054
9055 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9056
9057 * ada-lang.c (ada_add_all_symbols): Update comment.
9058 (ada_iterate_over_symbols): Delete, move implementation to...
9059 (ada_language::iterate_over_symbols): ...here, a new member
9060 function, rewrite to use range based for loop.
9061 (ada_language_data): Delete la_iterate_over_symbols initializer.
9062 * c-lang.c (c_language_data): Likewise.
9063 (cplus_language_data): Likewise.
9064 (asm_language_data): Likewise.
9065 (minimal_language_data): Likewise.
9066 * d-lang.c (d_language_data): Likewise.
9067 * f-lang.c (f_language_data): Likewise.
9068 * go-lang.c (go_language_data): Likewise.
9069 * language.c (unknown_language_data): Likewise.
9070 (auto_language_data): Likewise.
9071 * language.h (language_data): Delete la_iterate_over_symbols field.
9072 (language_defn::iterate_over_symbols): New member function.
9073 (LA_ITERATE_OVER_SYMBOLS): Update.
9074 * linespec.c (iterate_over_all_matching_symtabs): Update.
9075 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9076 initializer.
9077 * objc-lang.c (objc_language_data): Likewise.
9078 * opencl-lang.c (opencl_language_data): Likewise.
9079 * p-lang.c (pascal_language_data): Likewise.
9080 * rust-lang.c (rust_language_data): Likewise.
9081
9082 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9083
9084 * ada-lang.c (ada_language_data): Delete
9085 la_lookup_transparent_type initializer.
9086 * c-lang.c (c_language_data): Likewise.
9087 (cplus_language_data): Likewise.
9088 (cplus_language::lookup_transparent_type): New member function.
9089 (asm_language_data): Delete la_lookup_transparent_type
9090 initializer.
9091 (minimal_language_data): Likewise.
9092 * d-lang.c (d_language_data): Likewise.
9093 * f-lang.c (f_language_data): Likewise.
9094 * go-lang.c (go_language_data): Likewise.
9095 * language.c (unknown_language_data): Likewise.
9096 (auto_language_data): Likewise.
9097 * language.h (struct language_data): Delete
9098 la_lookup_transparent_type field.
9099 (language_defn::lookup_transparent_type): New member function.
9100 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9101 initializer.
9102 * objc-lang.c (objc_language_data): Likewise.
9103 * opencl-lang.c (opencl_language_data): Likewise.
9104 * p-lang.c (pascal_language_data): Likewise.
9105 * rust-lang.c (rust_language_data): Likewise.
9106 * symtab.c (symbol_matches_domain): Update call.
9107
9108 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9109
9110 * ada-lang.c (ada_language_arch_info): Delete function, move
9111 implementation to...
9112 (ada_language::language_arch_info): ...here, a new member
9113 function.
9114 (ada_language_data): Delete la_language_arch_info.
9115 * c-lang.c (c_language_data): Likewise.
9116 (c_language::language_arch_info): New member function.
9117 (cplus_language_arch_info): Delete function, move
9118 implementation to...
9119 (cplus_language::language_arch_info): ...here, a new member
9120 function.
9121 (cplus_language_data): Delete la_language_arch_info.
9122 (asm_language_data): Likewise.
9123 (asm_language::language_arch_info): New member function.
9124 (minimal_language_data): Delete la_language_arch_info.
9125 (minimal_language::language_arch_info): New member function.
9126 * d-lang.c (d_language_arch_info): Delete function, move
9127 implementation to...
9128 (d_language::language_arch_info): ...here, a new member
9129 function.
9130 (d_language_data): Delete la_language_arch_info.
9131 * f-lang.c (f_language_arch_info): Delete function, move
9132 implementation to...
9133 (f_language::language_arch_info): ...here, a new member
9134 function.
9135 (f_language_data): Delete la_language_arch_info.
9136 * go-lang.c (go_language_arch_info): Delete function, move
9137 implementation to...
9138 (go_language::language_arch_info): ...here, a new member
9139 function.
9140 (go_language_data): Delete la_language_arch_info.
9141 * language.c (unknown_language_data): Likewise.
9142 (unknown_language::language_arch_info): New member function.
9143 (auto_language_data): Delete la_language_arch_info.
9144 (auto_language::language_arch_info): New member function.
9145 (language_gdbarch_post_init): Update call to
9146 la_language_arch_info.
9147 * language.h (language_data): Delete la_language_arch_info
9148 function pointer.
9149 (language_defn::language_arch_info): New function.
9150 * m2-lang.c (m2_language_arch_info): Delete function, move
9151 implementation to...
9152 (m2_language::language_arch_info): ...here, a new member
9153 function.
9154 (m2_language_data): Delete la_language_arch_info.
9155 * objc-lang.c (objc_language_arch_info): Delete function, move
9156 implementation to...
9157 (objc_language::language_arch_info): ...here, a new member
9158 function.
9159 (objc_language_data): Delete la_language_arch_info.
9160 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9161 implementation to...
9162 (opencl_language::language_arch_info): ...here, a new member
9163 function.
9164 (opencl_language_data): Delete la_language_arch_info.
9165 * p-lang.c (pascal_language_arch_info): Delete function, move
9166 implementation to...
9167 (pascal_language::language_arch_info): ...here, a new member
9168 function.
9169 (pascal_language_data): Delete la_language_arch_info.
9170 * rust-lang.c (rust_language_arch_info): Delete function, move
9171 implementation to...
9172 (rust_language::language_arch_info): ...here, a new member
9173 function.
9174 (rust_language_data): Delete la_language_arch_info.
9175
9176 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9177
9178 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9179 initializer.
9180 * c-lang.c (c_language_data): Likewise.
9181 (cplus_language_data): Likewise.
9182 (cplus_language::pass_by_reference_info): New method.
9183 (asm_language_data): Delete la_pass_by_reference initializer.
9184 (minimal_language_data): Likewise.
9185 * cp-abi.c (cp_pass_by_reference): Remove use of
9186 default_pass_by_reference.
9187 * d-lang.c (d_language_data): Likewise.
9188 * f-lang.c (f_language_data): Likewise.
9189 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9190 default_pass_by_reference.
9191 * go-lang.c (go_language_data): Likewise.
9192 * language.c (language_pass_by_reference): Update.
9193 (default_pass_by_reference): Delete.
9194 (unknown_language_data): Delete la_pass_by_reference
9195 initializer.
9196 (auto_language_data): Likewise.
9197 * language.h (struct language_data): Delete la_pass_by_reference
9198 field.
9199 (language_defn::pass_by_reference_info): New member function.
9200 (default_pass_by_reference): Delete declaration.
9201 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9202 initializer.
9203 * objc-lang.c (objc_language_data): Likewise.
9204 * opencl-lang.c (opencl_language_data): Likewise.
9205 * p-lang.c (pascal_language_data): Likewise.
9206 * rust-lang.c (rust_language_data): Likewise.
9207
9208 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9209
9210 * ada-lang.c (ada_read_var_value): Delete function, move
9211 implementation to...
9212 (ada_language::read_var_value): ...here.
9213 (ada_language_data): Delete la_read_var_value initializer.
9214 * c-lang.c (c_language_data): Likewise.
9215 (cplus_language_data): Likewise.
9216 (minimal_language_data): Likewise.
9217 * d-lang.c (d_language_data): Likewise.
9218 * f-lang.c (f_language_data): Likewise.
9219 * findvar.c (default_read_var_value): Rename to...
9220 (language_defn::read_var_value): ...this.
9221 * findvar.c (read_var_value): Update header comment, and change to
9222 call member function instead of function pointer.
9223 * go-lang.c (go_language_data): Likewise.
9224 * language.c (unknown_language_data): Delete la_read_var_value
9225 initializer.
9226 (auto_language_data): Likewise.
9227 * language.h (struct language_data): Delete la_read_var_value
9228 field.
9229 (language_defn::read_var_value): New member function.
9230 (default_read_var_value): Delete declaration.
9231 * m2-lang.c (m2_language_data): Delete la_read_var_value
9232 initializer.
9233 * objc-lang.c (objc_language_data): Likewise.
9234 * opencl-lang.c (opencl_language_data): Likewise.
9235 * p-lang.c (pascal_language_data): Likewise.
9236 * rust-lang.c (rust_language_data): Likewise.
9237 * value.h (default_read_var_value): Delete declaration.
9238
9239 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9240
9241 * ada-lang.c (ada_print_array_index): Delete function, move
9242 implementation to...
9243 (ada_language::print_array_index): ...here.
9244 (ada_language_data): Delete la_print_array_index initializer.
9245 * c-lang.c (c_language_data): Likewise.
9246 (cplus_language_data): Likewise.
9247 (minimal_language_data): Likewise.
9248 * d-lang.c (d_language_data): Likewise.
9249 * f-lang.c (f_language_data): Likewise.
9250 * go-lang.c (go_language_data): Likewise.
9251 * language.c (default_print_array_index): Delete function, move
9252 implementation to...
9253 (language_defn::print_array_index): ...here.
9254 (unknown_language_data): Delete la_print_array_index initializer.
9255 (auto_language_data): Likewise.
9256 * language.h (struct language_data): Delete la_print_array_index
9257 field.
9258 (language_defn::print_array_index): New member function.
9259 (LA_PRINT_ARRAY_INDEX): Update.
9260 (default_print_array_index): Delete declaration.
9261 * m2-lang.c (m2_language_data): Delete la_print_array_index
9262 initializer.
9263 * objc-lang.c (objc_language_data): Likewise.
9264 * opencl-lang.c (opencl_language_data): Likewise.
9265 * p-lang.c (pascal_language_data): Likewise.
9266 * rust-lang.c (rust_language_data): Likewise.
9267
9268 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9269
9270 * gdb/ada-lang.c (ada_language_defn): Convert to...
9271 (ada_language_data): ...this.
9272 (class ada_language): New class.
9273 (ada_language_defn): New static global.
9274 * gdb/c-lang.c (c_language_defn): Convert to...
9275 (c_language_data): ...this.
9276 (class c_language): New class.
9277 (c_language_defn): New static global.
9278 (cplus_language_defn): Convert to...
9279 (cplus_language_data): ...this.
9280 (class cplus_language): New class.
9281 (cplus_language_defn): New static global.
9282 (asm_language_defn): Convert to...
9283 (asm_language_data): ...this.
9284 (class asm_language): New class.
9285 (asm_language_defn): New static global.
9286 (minimal_language_defn): Convert to...
9287 (minimal_language_data): ...this.
9288 (class minimal_language): New class.
9289 (minimal_language_defn): New static global.
9290 * gdb/d-lang.c (d_language_defn): Convert to...
9291 (d_language_data): ...this.
9292 (class d_language): New class.
9293 (d_language_defn): New static global.
9294 * gdb/f-lang.c (f_language_defn): Convert to...
9295 (f_language_data): ...this.
9296 (class f_language): New class.
9297 (f_language_defn): New static global.
9298 * gdb/go-lang.c (go_language_defn): Convert to...
9299 (go_language_data): ...this.
9300 (class go_language): New class.
9301 (go_language_defn): New static global.
9302 * gdb/language.c (unknown_language_defn): Remove declaration.
9303 (current_language): Initialize to nullptr, real initialization is
9304 moved to _initialize_language.
9305 (languages): Delete global.
9306 (language_defn::languages): Define.
9307 (set_language_command): Use language_defn::languages.
9308 (set_language): Likewise.
9309 (range_error): Likewise.
9310 (language_enum): Likewise.
9311 (language_def): Likewise.
9312 (add_set_language_command): Use language_def::languages for the
9313 language list, and language_def to lookup language pointers.
9314 (skip_language_trampoline): Use language_defn::languages.
9315 (unknown_language_defn): Convert to...
9316 (unknown_language_data): ...this.
9317 (class unknown_language): New class.
9318 (unknown_language_defn): New static global.
9319 (auto_language_defn): Convert to...
9320 (auto_language_data): ...this.
9321 (class auto_language): New class.
9322 (auto_language_defn): New static global.
9323 (language_gdbarch_post_init): Use language_defn::languages.
9324 (_initialize_language): Initialize current_language.
9325 * gdb/language.h (struct language_defn): Rename to...
9326 (struct language_data): ...this.
9327 (struct language_defn): New.
9328 (auto_language_defn): Delete.
9329 (unknown_language_defn): Delete.
9330 (minimal_language_defn): Delete.
9331 (ada_language_defn): Delete.
9332 (asm_language_defn): Delete.
9333 (c_language_defn): Delete.
9334 (cplus_language_defn): Delete.
9335 (d_language_defn): Delete.
9336 (f_language_defn): Delete.
9337 (go_language_defn): Delete.
9338 (m2_language_defn): Delete.
9339 (objc_language_defn): Delete.
9340 (opencl_language_defn): Delete.
9341 (pascal_language_defn): Delete.
9342 (rust_language_defn): Delete.
9343 * gdb/m2-lang.c (m2_language_defn): Convert to...
9344 (m2_language_data): ...this.
9345 (class m2_language): New class.
9346 (m2_language_defn): New static global.
9347 * gdb/objc-lang.c (objc_language_defn): Convert to...
9348 (objc_language_data): ...this.
9349 (class objc_language): New class.
9350 (objc_language_defn): New static global.
9351 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9352 (opencl_language_data): ...this.
9353 (class opencl_language): New class.
9354 (opencl_language_defn): New static global.
9355 * gdb/p-lang.c (pascal_language_defn): Convert to...
9356 (pascal_language_data): ...this.
9357 (class pascal_language): New class.
9358 (pascal_language_defn): New static global.
9359 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9360 language pointer, update comment format.
9361 * gdb/rust-lang.c (rust_language_defn): Convert to...
9362 (rust_language_data): ...this.
9363 (class rust_language): New class.
9364 (rust_language_defn): New static global.
9365
9366 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9367
9368 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9369 member variable.
9370 <m_stmt_at_address>: New member variable.
9371 (lnp_state_machine::record_line): Don't record some lines, update
9372 tracking of is_stmt at the same address.
9373 (lnp_state_machine::lnp_state_machine): Initialise new member
9374 variables.
9375
9376 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9377
9378 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9379 "-include gnu-nat-mig.h".
9380 * gnu-nat-mig.h: New file.
9381 * gnu-nat.c: Include "gnu-nat-mig.h".
9382 (exc_server, msg_reply_server, notify_server,
9383 process_reply_server): Remove declarations.
9384
9385 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9386
9387 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9388 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9389 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9390 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9391 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9392 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9393 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9394 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9395 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9396 to gnu_nat_target class.
9397 * gnu-nat.c: Likewise.
9398 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9399 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9400 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9401 object.
9402 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9403 instead of `gnu_target'.
9404
9405 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9406
9407 * i386-gnu-tdep.c: Include "gdbcore.h"
9408 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9409 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9410 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9411 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9412 i386_gnu_sigcontext_addr): New functions
9413 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9414 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9415 tdep.
9416
9417 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9418
9419 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9420 before fork_inferior call. Avoid calling it if target_is_pushed returns
9421 true.
9422
9423 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9424
9425 * gnu-nat.h (gnu_target): New variable declaration.
9426 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9427 gnu_target.
9428 * gnu-nat.c (gnu_target): New variable.
9429 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9430 add_thread_silent, and add_thread calls.
9431 (gnu_nat_target::create_inferior): Pass gnu_target to
9432 add_thread_silent, thread_change_ptid call.
9433 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9434 call.
9435
9436 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9437
9438 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9439 (gnu_nat_target::find_memory_regions): Remove unused
9440 `old_address' variable.
9441
9442 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9443
9444 * gnu-nat.c: Include "gdbarch.h".
9445
9446 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9447
9448 * reply_mig_hack.awk (Error return): Cast function through
9449 void *, to bypass compiler function call check.
9450
9451 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9452
9453 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9454 $(srcdir)/reply_mig_hack.awk.
9455
9456 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9457
9458 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9459
9460 2020-05-30 Jonny Grant <jg@jguk.org>
9461
9462 * configure.ac (ACX_BUGURL): change bug URL to https.
9463
9464 2020-05-30 Pedro Alves <palves@redhat.com>
9465
9466 * cp-support.c (replace_typedefs_template): New.
9467 (replace_typedefs_qualified_name): Handle
9468 DEMANGLE_COMPONENT_TEMPLATE.
9469
9470 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9471
9472 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9473 dwarf2/index-cache.h, dwarf2/index-write.c,
9474 dwarf2/index-write.h, dwarf2/line-header.c,
9475 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9476 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9477 variables and fields from `dwarf2_per_objfile` to just
9478 `per_objfile` throughout.
9479
9480 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9481
9482 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9483 <push_dwarf_reg_entry_value>: Add comment.
9484
9485 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9486 Keith Seitz <keiths@redhat.com>
9487
9488 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9489 instead of PyEval_ReleaseLock.
9490 (class gdbpy_gil): Move to earlier in file.
9491 (finalize_python): Set gdb_python_initialized.
9492 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9493 when not initialized.
9494
9495 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9496
9497 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9498 <push_dwarf_reg_entry_value>: Remove assert. Override
9499 per_objfile with caller_per_objfile.
9500
9501 2020-05-28 Tom de Vries <tdevries@suse.de>
9502
9503 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9504 PR gold/15646 workaround to symbol kind "type".
9505
9506 2020-05-27 Tom Tromey <tromey@adacore.com>
9507
9508 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9509
9510 2020-05-27 Tom Tromey <tromey@adacore.com>
9511
9512 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9513 Use htab_find_with_hash.
9514 <add_abbrev>: Remove "abbrev_number" parameter.
9515 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9516 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9517 (hash_abbrev): Add comment.
9518 (abbrev_table::lookup_abbrev): Move to header file.
9519 (abbrev_table::read): Update.
9520
9521 2020-05-27 Tom Tromey <tromey@adacore.com>
9522
9523 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9524 method.
9525 <canonical_name>: New member.
9526 <raw_name>: Rename from "name".
9527 (partial_die_info): Initialize canonical_name.
9528 (scan_partial_symbols): Check raw_name.
9529 (partial_die_parent_scope, partial_die_full_name)
9530 (add_partial_symbol, add_partial_subprogram)
9531 (add_partial_enumeration, load_partial_dies): Use "name" method.
9532 (partial_die_info::name): New method.
9533 (partial_die_info::read, guess_partial_die_structure_name)
9534 (partial_die_info::fixup): Update.
9535
9536 2020-05-27 Tom Tromey <tromey@adacore.com>
9537
9538 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9539 <get_ref_die_offset>: Inline.
9540 <get_ref_die_offset_complaint>: New method.
9541 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9542 (attribute::get_ref_die_offset_complaint): Rename from
9543 get_ref_die_offset. Just issue complaint.
9544
9545 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9546
9547 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9548
9549 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9550
9551 * exec.c (exec_file_attach): Use errno value of first openp failure.
9552
9553 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9554
9555 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9556 Don't close thread handle.
9557
9558 2020-05-27 Tom Tromey <tom@tromey.com>
9559 Simon Marchi <simon.marchi@efficios.com>
9560
9561 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9562 shared_ptr.
9563 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9564 member.
9565 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9566 dwarf2_per_bfd_objfile_data_key>: New globals.
9567 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9568 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9569 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9570 shared.
9571 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9572 short-circuit when sharing.
9573 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9574 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9575
9576 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9577
9578 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9579 to...
9580 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9581 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9582
9583 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9584
9585 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9586 build_name_components, find_name_components_bounds>:
9587 Add per_objfile parameter.
9588 (struct mapped_index) <symbol_name_at>: Likewise.
9589 (struct mapped_debug_names): Remove constructor.
9590 <dwarf2_per_objfile>: Remove field.
9591 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9592 (mapped_index_base::find_name_components_bounds,
9593 mapped_index_base::build_name_components,
9594 dw2_expand_symtabs_matching_symbol): Likewise.
9595 (class mock_mapped_index) <symbol_name_at>: Likewise.
9596 (check_match): Likewise.
9597 (check_find_bounds_finds): Likewise.
9598 (test_mapped_index_find_name_component_bounds): Update.
9599 (CHECK_MATCH): Update.
9600 (dw2_expand_symtabs_matching): Update.
9601 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9602 per_objfile parameter.
9603 <find_vec_in_debug_names>: Likewise.
9604 <m_per_objfile>: New field.
9605 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9606 parameter.
9607 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9608 (dw2_debug_names_iterator::next): Update.
9609 (dw2_debug_names_lookup_symbol): Update.
9610 (dw2_debug_names_expand_symtabs_for_function): Update.
9611 (dw2_debug_names_map_matching_symbols): Update.
9612 (dw2_debug_names_expand_symtabs_matching): Update.
9613 (dwarf2_read_debug_names): Update.
9614
9615 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9616
9617 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9618 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9619 move to dwarf2_per_objfile.
9620 <read_in_chain>: Remove.
9621 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9622 remove_all_cus, age_comp_units>: New methods.
9623 <m_dwarf2_cus>: New member.
9624 (struct dwarf2_per_cu_data) <cu>: Remove.
9625 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9626 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9627 moved to methods of dwarf2_per_objfile.
9628 (dwarf2_clear_marks): Remove.
9629 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9630 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9631 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9632 (dwarf2_per_objfile::remove_all_cus): New.
9633 (class free_cached_comp_units) <~free_cached_comp_units>:
9634 Update.
9635 (load_cu): Update.
9636 (dw2_do_instantiate_symtab): Adjust.
9637 (fill_in_sig_entry_from_dwo_entry): Adjust.
9638 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9639 (cutu_reader::cutu_reader): Likewise.
9640 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9641 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9642 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9643 and dwarf2_per_objfile::age_comp_units.
9644 (load_partial_comp_unit): Update.
9645 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9646 (process_queue): Likewise.
9647 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9648 backlink.
9649 (dwarf2_read_addr_index): Likewise.
9650 (follow_die_offset): Likewise.
9651 (dwarf2_fetch_die_loc_sect_off): Likewise.
9652 (dwarf2_fetch_constant_bytes): Likewise.
9653 (dwarf2_fetch_die_type_sect_off): Likewise.
9654 (follow_die_sig_1): Likewise.
9655 (load_full_type_unit): Likewise.
9656 (read_signatured_type): Likewise.
9657 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9658 (dwarf2_cu::~dwarf2_cu): Remove.
9659 (dwarf2_per_objfile::get_cu): New.
9660 (dwarf2_per_objfile::set_cu): New.
9661 (age_cached_comp_units): Rename to...
9662 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9663 to std::unordered_map.
9664 (free_one_cached_comp_unit): Rename to...
9665 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9666 to std::unordered_map.
9667 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9668 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9669 a dwarf2_per_objfile in data.
9670 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9671 (dwarf2_clear_marks): Remove.
9672
9673 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9674
9675 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9676 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9677 (init_tu_and_read_dwo_dies): Likewise.
9678 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9679 (cutu_reader::cutu_reader): Likewise.
9680 (load_partial_comp_unit): Likewise.
9681 (process_psymtab_comp_unit): Update.
9682 (build_type_psymtabs_1): Update.
9683 (process_skeletonless_type_unit): Update.
9684 (load_full_comp_unit): Update.
9685 (find_partial_die): Update.
9686 (dwarf2_read_addr_index): Update.
9687 (read_signatured_type): Update.
9688
9689 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9690
9691 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9692 m_header_read_in>: New fields.
9693 <get_header>: New method.
9694 * dwarf2/read.c (per_cu_header_read_in): Remove.
9695 (dwarf2_per_cu_data::get_header): New.
9696 (dwarf2_per_cu_data::addr_size): Update.
9697 (dwarf2_per_cu_data::offset_size): Update.
9698 (dwarf2_per_cu_data::ref_addr_size): Update.
9699
9700 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9701
9702 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9703 (dw2_do_instantiate_symtab): Update.
9704 (queue_and_load_all_dwo_tus): Change parameter from
9705 dwarf2_per_cu_data to dwarf2_cu.
9706 (dwarf2_fetch_die_loc_sect_off): Update.
9707 (dwarf2_fetch_constant_bytes): Update.
9708 (dwarf2_fetch_die_type_sect_off): Update.
9709
9710 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9711
9712 * dwarf2/read.c (process_full_comp_unit,
9713 process_full_type_unit): Remove per_cu, per_objfile paramters.
9714 Add dwarf2_cu parameter.
9715 (process_queue): Update.
9716
9717 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9718
9719 * dwarf2/read.c (create_cu_from_index_list): Replace
9720 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9721 (create_cus_from_index_list): Likewise.
9722 (create_cus_from_index): Likewise.
9723 (create_signatured_type_table_from_index): Likewise.
9724 (create_cus_from_debug_names_list): Likewise.
9725 (create_cus_from_debug_names): Likewise.
9726 (dwarf2_read_gdb_index): Update.
9727 (dwarf2_read_debug_names): Update.
9728
9729 2020-05-27 Tom Tromey <tom@tromey.com>
9730 Simon Marchi <simon.marchi@efficios.com>
9731
9732 * dwarf2/read.h (struct dwarf2_per_objfile)
9733 <get_type_for_signatured_type, set_type_for_signatured_type>:
9734 New methods.
9735 <m_type_map>: New member.
9736 (struct signatured_type) <type>: Remove.
9737 * dwarf2/read.c
9738 (dwarf2_per_objfile::get_type_for_signatured_type,
9739 dwarf2_per_objfile::set_type_for_signatured_type): New.
9740 (get_signatured_type): Use new methods.
9741
9742 2020-05-27 Tom Tromey <tom@tromey.com>
9743 Simon Marchi <simon.marchi@efficios.com>
9744
9745 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9746 (struct dwarf2_per_objfile) <type_units>: New member.
9747 <get_type_unit_group_unshareable>: New method.
9748 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9749 num_symtabs, symtabs>: Remove; move to
9750 type_unit_group_unshareable.
9751 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9752 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9753 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9754
9755 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9756
9757 * dwarf2/read.h (struct dwarf2_per_cu_data):
9758 <dwarf2_per_objfile>: Remove.
9759 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9760 dwarf2_per_objfile.
9761 (create_signatured_type_table_from_index): Likewise.
9762 (create_signatured_type_table_from_debug_names): Likewise.
9763 (create_debug_type_hash_table): Likewise.
9764 (fill_in_sig_entry_from_dwo_entry): Likewise.
9765 (create_type_unit_group): Likewise.
9766 (read_comp_units_from_section): Likewise.
9767 (create_cus_hash_table): Likewise.
9768
9769 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9770
9771 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9772 dwarf2_per_cu_data::dwarf2_per_objfile.
9773 (compute_compunit_symtab_includes): Likewise.
9774 (dwarf2_cu::start_symtab): Likewise.
9775
9776 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9777
9778 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9779 parameter.
9780 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9781 (read_namespace_alias): Update.
9782 (lookup_die_type): Update.
9783 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9784 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9785 Update.
9786 (disassemble_dwarf_expression): Update.
9787
9788 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9789
9790 * dwarf2/read.h (struct dwarf2_queue_item): Add
9791 dwarf2_per_objfile parameter, assign new parameter.
9792 <per_objfile>: New field.
9793 * dwarf2/read.c (free_one_cached_comp_unit): Add
9794 dwarf2_per_objfile parameter.
9795 (queue_comp_unit): Likewise.
9796 (dw2_do_instantiate_symtab): Update.
9797 (process_psymtab_comp_unit): Update.
9798 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9799 (process_imported_unit_die): Update.
9800 (queue_and_load_dwo_tu): Update.
9801 (follow_die_offset): Update.
9802 (follow_die_sig_1): Update.
9803
9804 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9805
9806 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9807 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9808 (read_call_site_scope): Assign per_objfile.
9809 (dwarf2_per_cu_data::objfile): Remove.
9810 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9811 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9812 dwarf2_per_objfile parameter.
9813 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9814 dwarf2_per_objfile parameter.
9815 (dwarf_expr_reg_to_entry_parameter): Add output
9816 dwarf2_per_objfile parameter.
9817 (locexpr_get_frame_base): Update.
9818 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9819 <push_dwarf_reg_entry_value>: Update.
9820 <call_site_to_target_addr>: Update.
9821 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9822 parameter.
9823 (value_of_dwarf_reg_entry): Update.
9824 (rw_pieced_value): Update.
9825 (indirect_synthetic_pointer): Update.
9826 (dwarf2_evaluate_property): Update.
9827 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9828 parameter.
9829 (locexpr_read_variable): Update.
9830 (locexpr_get_symbol_read_needs): Update.
9831 (loclist_read_variable): Update.
9832
9833 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9834
9835 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9836 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9837 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9838 parameter.
9839 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9840 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9841 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9842 parameter.
9843 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9844 sect_variable_value): Add dwarf2_per_objfile parameter.
9845 (class dwarf_evaluate_loc_desc) <dwarf_call,
9846 dwarf_variable_value>: Update.
9847 (fetch_const_value_from_synthetic_pointer): Add
9848 dwarf2_per_objfile parameter.
9849 (fetch_const_value_from_synthetic_pointer): Update.
9850 (coerced_pieced_ref): Update.
9851 (class symbol_needs_eval_context) <dwarf_call,
9852 dwarf_variable_value>: Update.
9853 (dwarf2_compile_expr_to_ax): Update.
9854
9855 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9856
9857 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9858 parameter.
9859 (dwarf2_evaluate_loc_desc_full): Update.
9860
9861 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9862
9863 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9864 parameter.
9865 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9866 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9867 dwarf2_per_objfile parameter.
9868 (decode_debug_loc_dwo_addresses): Likewise.
9869 (dwarf2_find_location_expression): Update.
9870 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9871 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9872 parameter.
9873 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9874 parameter.
9875 (locexpr_describe_location_1): Likewise.
9876 (locexpr_describe_location): Update.
9877
9878 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9879
9880 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9881 Remove.
9882 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9883 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9884 (dwarf2_compile_property_to_c): Update.
9885 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9886 use text offset from objfile.
9887 (locexpr_tracepoint_var_ref): Update.
9888 (locexpr_generate_c_location): Update.
9889 (loclist_describe_location): Update.
9890 (loclist_tracepoint_var_ref): Update.
9891 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9892 dwarf2_per_objfile parameter.
9893 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9894 use text offset from objfile.
9895 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9896
9897 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9898
9899 * dwarf2/expr.h (struct dwarf_expr_context)
9900 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9901 <offset>: Remove.
9902 <per_objfile>: New member.
9903 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9904 dwarf2_per_objfile parameter. Don't set offset, set
9905 per_objfile.
9906 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9907 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9908 a dwarf2_per_objfile object instead of an offset.
9909 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9910 constructor.
9911 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9912 to dwarf2_expr_executor constructor. Don't set offset.
9913 (dwarf2_fetch_cfa_info): Update.
9914 (struct dwarf2_frame_cache) <text_offset>: Remove.
9915 <per_objfile>: New field.
9916 (dwarf2_frame_cache): Update.
9917 (dwarf2_frame_prev_register): Update.
9918 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9919 <dwarf_evaluate_loc_desc>: Add constructor.
9920 (dwarf2_evaluate_loc_desc_full): Update.
9921 (dwarf2_locexpr_baton_eval): Update.
9922 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9923 Add constructor.
9924 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9925
9926 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9927
9928 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9929 addr_sized_int_type>: Move to dwarf2_cu.
9930 <int_type>: Move to dwarf2_per_objfile.
9931 (struct dwarf2_per_objfile) <int_type>: Move here.
9932 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9933 addr_sized_int_type>: Move here.
9934 (read_func_scope): Update.
9935 (read_array_type): Update.
9936 (read_tag_string_type): Update.
9937 (attr_to_dynamic_prop): Update.
9938 (dwarf2_per_cu_data::int_type): Rename to...
9939 (dwarf2_per_objfile::int_type): ... this.
9940 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9941 (dwarf2_cu::addr_sized_int_type): ... this.
9942 (read_subrange_type): Update.
9943 (dwarf2_per_cu_data::addr_type): Rename to...
9944 (dwarf2_cu::addr_type): ... this.
9945 (set_die_type): Update.
9946
9947 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9948
9949 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9950 data through per_cu->cu.
9951
9952 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9953
9954 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9955 dwarf2_per_cu_data parameter fo dwarf2_cu.
9956 (lookup_dwo_type_unit): Likewise.
9957 (read_cutu_die_from_dwo): Likewise.
9958 (lookup_dwo_unit): Likewise.
9959 (open_and_init_dwo_file): Likewise.
9960 (lookup_dwo_cutu): Likewise.
9961 (lookup_dwo_comp_unit): Likewise.
9962 (lookup_dwo_type_unit): Likewise.
9963 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9964 (cutu_reader::cutu_reader): Update.
9965
9966 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9967
9968 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9969 parameter.
9970 (process_full_type_unit): Likewise.
9971 (process_queue): Update.
9972
9973 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9974
9975 * dwarf2/read.c (recursively_compute_inclusions): Add
9976 dwarf2_per_objfile parameter.
9977 (compute_compunit_symtab_includes): Likewise.
9978 (process_cu_includes): Update.
9979
9980 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9981
9982 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9983 parameter.
9984 (create_type_unit_group): Update.
9985 (process_psymtab_comp_unit_reader): Update.
9986 (build_type_psymtabs_reader): Update.
9987
9988 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9989
9990 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9991 object through m_this_cu->cu.
9992
9993 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9994
9995 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9996 the info parameter.
9997 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9998
9999 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10000
10001 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10002 per_objfile parameter.
10003 (load_full_type_unit): Add per_objfile parameter.
10004 (read_signatured_type): Likewise.
10005 (load_full_comp_unit): Likewise.
10006 (load_cu): Likewise.
10007 (dw2_do_instantiate_symtab): Likewise.
10008 (dw2_get_file_names): Likewise.
10009 (dw2_map_symtabs_matching_filename): Update.
10010 (dw_expand_symtabs_matching_file_matcher): Update.
10011 (dw2_map_symbol_filenames): Update.
10012 (process_psymtab_comp_unit): Add per_objfile parameter.
10013 (build_type_psymtabs_1): Update.
10014 (process_skeletonless_type_unit): Update.
10015 (dwarf2_build_psymtabs_hard): Update.
10016 (load_partial_comp_unit): Add per_objfile parameter.
10017 (scan_partial_symbols): Update.
10018 (load_full_comp_unit): Add per_objfile parameter.
10019 (process_imported_unit_die): Update.
10020 (create_cus_hash_table): Update.
10021 (find_partial_die): Update.
10022 (dwarf2_read_addr_index): Update.
10023 (follow_die_offset): Update.
10024 (dwarf2_fetch_die_loc_sect_off): Update.
10025 (dwarf2_fetch_constant_bytes): Update.
10026 (dwarf2_fetch_die_type_sect_off): Update.
10027 (follow_die_sig_1): Update.
10028 (load_full_type_unit): Add per_objfile parameter.
10029 (read_signatured_type): Likewise.
10030
10031 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10032
10033 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10034 of objfile_name.
10035
10036 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10037
10038 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10039 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10040 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10041 field.
10042 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10043 (create_cus_from_index): Update.
10044 (dwarf2_read_gdb_index): Update.
10045 (create_cus_from_debug_names): Update.
10046 (dwarf2_read_debug_names): Update.
10047 (get_abbrev_section_for_cu): Update.
10048 (create_all_comp_units): Update.
10049 (read_attribute_value): Update.
10050 (get_debug_line_section): Update.
10051 * dwarf2/index-cache.c (index_cache::store): Update.
10052 * dwarf2/index-write.c (save_gdb_index_command): Update.
10053 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10054
10055 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10056
10057 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10058 member.
10059 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10060 dwarf2_per_cu_data::per_bfd.
10061 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10062 (create_type_unit_group): Likewise.
10063 (queue_comp_unit): Remove reference to
10064 per_cu->dwarf2_per_objfile.
10065 (maybe_queue_comp_unit): Likewise.
10066 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10067 (create_cus_hash_table): Assign new field.
10068
10069 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10070
10071 * dwarf2/read.c: Replace
10072 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10073 dwarf2_cu->per_objfile throughout.
10074
10075 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10076
10077 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10078 parameter, don't use per_cu->dwarf2_per_objfile.
10079 (dw2_instantiate_symtab): Likewise.
10080 (dw2_find_last_source_symtab): Update.
10081 (dw2_map_expand_apply): Update.
10082 (dw2_lookup_symbol): Update.
10083 (dw2_expand_symtabs_for_function): Update.
10084 (dw2_expand_all_symtabs): Update.
10085 (dw2_expand_symtabs_with_fullname): Update.
10086 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10087 don't use per_cu->dwarf2_per_objfile.
10088 (dw2_expand_marked_cus): Update.
10089 (dw2_find_pc_sect_compunit_symtab): Update.
10090 (dw2_debug_names_lookup_symbol): Update.
10091 (dw2_debug_names_expand_symtabs_for_function): Update.
10092 (dw2_debug_names_map_matching_symbols): Update.
10093 (dwarf2_psymtab::expand_psymtab): Update.
10094
10095 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10096
10097 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10098 <per_objfile>: New member.
10099 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10100 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10101 call to dwarf2_cu.
10102 (cutu_reader::cutu_reader): Update.
10103 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10104
10105 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10106
10107 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10108 struct dwarf2_per_objfile.
10109 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10110 dwarf2_per_bfd.
10111 * dwarf2/read.c (set_die_type): Update.
10112 (get_die_type_at_offset): Update.
10113
10114 2020-05-27 Tom Tromey <tom@tromey.com>
10115 Simon Marchi <simon.marchi@efficios.com>
10116
10117 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10118 method.
10119 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10120 get_symtab, set_symtab>: New methods.
10121 <m_symtabs>: New field.
10122 (struct dwarf2_psymtab): Derive from partial_symtab.
10123 <readin_p, get_compunit_symtab>: Declare methods.
10124 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10125 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10126 New methods.
10127 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10128 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10129 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10130 (dw2_symtab_iter_next, dw2_print_stats)
10131 (dw2_expand_symtabs_with_fullname)
10132 (dw2_expand_symtabs_matching_one)
10133 (dw_expand_symtabs_matching_file_matcher)
10134 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10135 (dw2_debug_names_iterator::next)
10136 (dw2_debug_names_map_matching_symbols)
10137 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10138 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10139 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10140 New methods.
10141 (get_compunit_symtab, process_full_comp_unit)
10142 (process_full_type_unit): Update.
10143 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10144
10145 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10146
10147 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10148 then introduce a new dwarf2_per_objfile type.
10149 <read_line_string>: Move to the new dwarf2_per_objfile type.
10150 <objfile>: Likewise.
10151 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10152 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10153 dwarf2_per_objfile->per_bfd.
10154 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10155 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10156 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10157 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10158 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10159 (dwarf2_per_objfile::locate_sections): Rename to...
10160 (dwarf2_per_bfd::locate_sections): ... this.
10161 (dwarf2_per_objfile::get_cutu): Rename to...
10162 (dwarf2_per_bfd::get_cutu): ... this.
10163 (dwarf2_per_objfile::get_cu): Rename to...
10164 (dwarf2_per_bfd::get_cu): ... this.
10165 (dwarf2_per_objfile::get_tu): Rename to...
10166 (dwarf2_per_bfd::get_tu): ... this.
10167 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10168 (dwarf2_per_bfd::allocate_per_cu): ... this.
10169 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10170 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10171 (get_gdb_index_contents_ftype): Change parameter from
10172 dwarf2_per_objfile to dwarf2_per_bfd.
10173 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10174 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10175
10176 2020-05-27 Tom Tromey <tom@tromey.com>
10177 Simon Marchi <simon.marchi@efficios.com>
10178
10179 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10180 (allocate_piece_closure): Set "per_objfile" member.
10181 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10182 (locexpr_describe_location, loclist_describe_location): Use new
10183 member.
10184 * dwarf2/read.c (read_call_site_scope)
10185 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10186 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10187 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10188 handle_data_member_location): Set per_objfile member.
10189 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10190 member.
10191 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10192
10193 2020-05-27 Tom Tromey <tom@tromey.com>
10194
10195 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10196 allocate_signatured_type>: Declare new methods.
10197 <m_num_psymtabs>: New member.
10198 (struct dwarf2_per_cu_data) <index>: New member.
10199 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10200 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10201 (create_cu_from_index_list): Use allocate_per_cu.
10202 (create_signatured_type_table_from_index)
10203 (create_signatured_type_table_from_debug_names)
10204 (create_debug_type_hash_table, add_type_unit)
10205 (read_comp_units_from_section): Use allocate_signatured_type.
10206
10207 2020-05-27 Tom Tromey <tom@tromey.com>
10208
10209 * psymtab.c (partial_map_expand_apply)
10210 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10211 (psym_lookup_global_symbol_language)
10212 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10213 (psym_print_stats, psym_expand_symtabs_for_function)
10214 (psym_map_symbol_filenames, psym_map_matching_symbols)
10215 (psym_expand_symtabs_matching)
10216 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10217 (maintenance_check_psymtabs): Update.
10218 * psympriv.h (struct partial_symtab) <readin_p,
10219 get_compunit_symtab>: Add objfile parameter.
10220 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10221 Likewise.
10222 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10223 get_compunit_symtab>: Likewise.
10224 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10225
10226 2020-05-27 Tom Tromey <tom@tromey.com>
10227
10228 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10229 member.
10230 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10231 (create_cu_from_index_list)
10232 (create_signatured_type_table_from_index)
10233 (create_signatured_type_table_from_debug_names)
10234 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10235 (dwarf2_create_include_psymtab)
10236 (create_debug_type_hash_table, add_type_unit)
10237 (create_type_unit_group, read_comp_units_from_section)
10238 (dwarf2_compute_name, create_cus_hash_table)
10239 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10240 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10241 obstack.
10242 (dw2_get_real_path): Likewise. Change argument to
10243 dwarf2_per_objfile.
10244
10245 2020-05-27 Luis Machado <luis.machado@linaro.org>
10246
10247 PR tdep/26000
10248 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10249 for ldrd (immediate).
10250
10251 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10252
10253 * command.h: Add comment giving the name of class_tui.
10254 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10255 create the fake command for the help for class_tui.
10256
10257 2020-05-26 Tom Tromey <tromey@adacore.com>
10258
10259 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10260 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10261 (val_atr): New function.
10262 (value_val_atr): Use it.
10263 * ada-valprint.c (print_optional_low_bound): Change low bound
10264 handling for enums.
10265 (val_print_packed_array_elements): Don't call discrete_position.
10266 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10267 discrete_position for enum types.
10268 * language.c (default_print_array_index): Change type.
10269 * language.h (struct language_defn) <la_print_array_index>: Add
10270 index_type parameter, change type of index_value.
10271 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10272 (default_print_array_index): Update.
10273 * valprint.c (maybe_print_array_index): Don't call
10274 value_from_longest. Update.
10275 (value_print_array_elements): Don't call discrete_position.
10276
10277 2020-05-26 Tom Tromey <tromey@adacore.com>
10278
10279 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10280 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10281
10282 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10283
10284 PR gdb/13519
10285 * avr-tdep.c (avr_integer_to_address): Return data or code
10286 address accordingly to the second 'type' argument of the
10287 function.
10288
10289 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10290
10291 * infcmd.c, inferior.h: (construct_inferior_arguments):
10292 Moved function from here to gdbsupport/common-inferior.{h,cc}
10293
10294 2020-05-23 Tom Tromey <tom@tromey.com>
10295
10296 Revert commit eca1f90c:
10297 * NEWS: Remove entry for completion styling.
10298 * completer.c (_rl_completion_prefix_display_length): Move
10299 declaration later.
10300 (gdb_fnprint): Revert.
10301 (gdb_display_match_list_1): Likewise.
10302 * cli/cli-style.c (completion_prefix_style)
10303 (completion_difference_style, completion_suffix_style): Remove.
10304 (_initialize_cli_style): Revert.
10305 * cli/cli-style.h (completion_prefix_style)
10306 (completion_difference_style, completion_suffix_style): Don't
10307 declare.
10308
10309 2020-05-24 Pedro Alves <palves@redhat.com>
10310
10311 * symtab.c (completion_list_add_name): Return boolean indication
10312 of whether the symbol matched.
10313 (completion_list_add_symbol): Don't try to remove C++ aliases if
10314 the symbol didn't match in the first place.
10315 * symtab.h (completion_list_add_name): Return bool.
10316
10317 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10318
10319 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10320 type::field.
10321
10322 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10323
10324 GDB 9.2 released.
10325
10326 2020-05-23 Tom Tromey <tom@tromey.com>
10327
10328 * NEWS: Add entry for completion styling.
10329 * completer.c (_rl_completion_prefix_display_length): Move
10330 declaration earlier.
10331 (gdb_fnprint): Use completion_style.
10332 (gdb_display_match_list_1): Likewise.
10333 * cli/cli-style.c (completion_prefix_style)
10334 (completion_difference_style, completion_suffix_style): New
10335 globals.
10336 (_initialize_cli_style): Register new globals.
10337 * cli/cli-style.h (completion_prefix_style)
10338 (completion_difference_style, completion_suffix_style): Declare.
10339
10340 2020-05-23 Pedro Alves <palves@redhat.com>
10341
10342 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10343 (parse_escape): Use ISDIGIT instead of isdigit.
10344 (puts_debug): Use gdb_isprint instead of isprint.
10345 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10346 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10347 ISSPACE instead of isspace.
10348 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10349 instead of isspace.
10350 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10351 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10352 instead of isxdigit and ISDIGIT instead of isdigit.
10353
10354 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10355
10356 * gdbtypes.h (struct type) <field>: New method.
10357 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10358 or type::field.
10359
10360 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10361
10362 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10363 (TYPE_FIELDS): Use type::fields. Change all call sites that
10364 modify the propery to use type::set_fields instead.
10365
10366 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10367
10368 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10369 type::num_fields instead.
10370
10371 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10372
10373 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10374 methods.
10375 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10376 that modify the number of fields to use type::set_num_fields
10377 instead.
10378
10379 2020-05-22 Tom Tromey <tromey@adacore.com>
10380
10381 * compile/compile-object-load.h (munmap_list_free): Don't
10382 declare.
10383
10384 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10385
10386 * annotate.c (annotate_source_line): Update return type, add call
10387 to update current symtab and line.
10388 * annotate.h (annotate_source_line): Update return type, and
10389 extend header comment.
10390 * source.c (info_line_command): Check annotation_level before
10391 calling annotate_source_line.
10392 * stack.c (print_frame_info): If calling annotate_source_line
10393 returns true, then don't print any other source line information.
10394
10395 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10396
10397 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10398
10399 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10400
10401 * coffread.c (patch_type): Remove NULL check before xfree.
10402 * corefile.c (set_gnutarget): Likewise.
10403 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10404 * exec.c (build_section_table): Likewise.
10405 * remote.c (remote_target::pass_signals): Likewise.
10406 * utils.c (n_spaces): Likewise.
10407 * cli/cli-script.c (document_command): Likewise.
10408 * i386-windows-tdep.c (core_process_module_section): Likewise.
10409 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10410
10411 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10412
10413 * symfile.c (reread_symbols): Clear objfile's section_offsets
10414 vector and section indices, re-compute them by calling
10415 sym_offsets.
10416
10417 2020-05-20 Tom Tromey <tromey@adacore.com>
10418
10419 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10420 (desc_one_bound, desc_index_type): Compute field name.
10421
10422 2020-05-20 Tom de Vries <tdevries@suse.de>
10423
10424 PR symtab/25833
10425 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10426
10427 2020-05-20 Alan Modra <amodra@gmail.com>
10428
10429 PR 25993
10430 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10431 bfd_set_filename.
10432 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10433 passed to bfd_set_filename.
10434 * symfile-mem.c (add_vsyscall_page): Likewise for string
10435 passed to symbol_file_add_from_memory.
10436 (symbol_file_add_from_memory): Make name param a const char* and
10437 don't strdup.
10438
10439 2020-05-20 Alan Modra <amodra@gmail.com>
10440
10441 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10442 rather than accessing bfd->filename directly.
10443 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10444 and use bfd_section_name.
10445 * dwarf2/frame.c (decode_frame_entry): Likewise.
10446 * exec.c (exec_set_section_address): Likewise.
10447 * solib-aix.c (solib_aix_bfd_open): Likewise.
10448 * stap-probe.c (get_stap_base_address): Likewise.
10449 * symfile.c (reread_symbols): Likewise.
10450
10451 2020-05-19 Tom Tromey <tromey@adacore.com>
10452
10453 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10454
10455 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10456
10457 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10458
10459 2020-05-19 Pedro Alves <palves@redhat.com>
10460
10461 * NEWS (set exec-file-mismatch): Adjust entry.
10462 * exec.c: Include "build-id.h".
10463 (validate_exec_file): Try to match build IDs instead of filenames.
10464 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10465 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10466 and pass down 'warn_if_slow'.
10467 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10468 gdb_bfd_open_closure to pass it down.
10469 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10470
10471 2020-05-19 Pedro Alves <palves@redhat.com>
10472
10473 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10474 * target.c (target_fileio_open_1): Rename to target_fileio_open
10475 and make extern. Use bool.
10476 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10477 (target_fileio_read_alloc_1): Adjust.
10478 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10479 (target_fileio_open_warn_if_slow): Delete declaration.
10480
10481 2020-05-19 Pedro Alves <palves@redhat.com>
10482
10483 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10484 Adjust all callers.
10485
10486 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10487
10488 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10489 whether disp is negative.
10490
10491 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10492
10493 * symfile.h (struct symfile_segment_data)
10494 <~symfile_segment_data>: Remove.
10495 <segment_info>: Change to std::vector.
10496 * symfile.c (default_symfile_segments): Update.
10497 * elfread.c (elf_symfile_segments): Update.
10498
10499 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10500
10501 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10502 <segments>: New.
10503 <segment_bases, segment_sizes>: Remove.
10504 * symfile.c (default_symfile_segments): Update.
10505 * elfread.c (elf_symfile_segments): Update.
10506 * remote.c (remote_target::get_offsets): Update.
10507 * solib-target.c (solib_target_relocate_section_addresses):
10508 Update.
10509
10510 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10511
10512 * symfile.h (struct symfile_segment_data): Initialize fields.
10513 <~symfile_segment_data>: Add.
10514 (symfile_segment_data_up): New.
10515 (struct sym_fns) <sym_segments>: Return a
10516 symfile_segment_data_up.
10517 (default_symfile_segments): Return a symfile_segment_data_up.
10518 (free_symfile_segment_data): Remove.
10519 (get_symfile_segment_data): Return a symfile_segment_data_up.
10520 * symfile.c (default_symfile_segments): Likewise.
10521 (get_symfile_segment_data): Likewise.
10522 (free_symfile_segment_data): Remove.
10523 (symfile_find_segment_sections): Update.
10524 * elfread.c (elf_symfile_segments): Return a
10525 symfile_segment_data_up.
10526 * remote.c (remote_target::get_offsets): Update.
10527 * solib-target.c (solib_target_relocate_section_addresses):
10528 Update.
10529 * symfile-debug.c (debug_sym_segments): Return a
10530 symfile_segment_data_up.
10531
10532 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10533
10534 PR build/25981
10535 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10536 Hardcode register numbers.
10537
10538 PR build/25981
10539 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10540 procfs_find_LDT_entry): Remove.
10541 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10542 procfs_find_LDT_entry): Remove.
10543 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10544 Remove.
10545
10546 2020-05-17 Pedro Alves <palves@redhat.com>
10547 Andrew Burgess <andrew.burgess@embecosm.com>
10548 Keno Fischer <keno@juliacomputing.com>
10549
10550 PR gdb/25741
10551 * breakpoint.c (build_target_condition_list): Update comments.
10552 (build_target_command_list): Update comments and skip matching
10553 locations.
10554 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10555 a separate function. Simplify "set breakpoint auto-hw off"
10556 handling.
10557 (insert_breakpoints): Update comment.
10558 (tracepoint_locations_match): New parameter. For breakpoints,
10559 compare location types too, if the caller wants to.
10560 (handle_automatic_hardware_breakpoints): New functions.
10561 (bp_location_is_less_than): Also sort by location type and
10562 hardware breakpoint length.
10563 (update_global_location_list): Handle "set breakpoint auto-hw on"
10564 here.
10565 (update_breakpoint_locations): Ask breakpoint_locations_match to
10566 ignore location types.
10567
10568 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10569
10570 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10571 type::name instead.
10572
10573 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10574
10575 * gdbtypes.h (struct type) <name, set_name>: New methods.
10576 (TYPE_CODE): Use type::name. Change all call sites used to set
10577 the name to use type::set_name instead.
10578
10579 2020-05-16 Tom Tromey <tom@tromey.com>
10580
10581 * top.c (quit_force): Update.
10582 * infrun.c (handle_no_resumed): Update.
10583 * top.h (all_uis): New function.
10584 (ALL_UIS): Remove.
10585
10586 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10587
10588 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10589
10590 2020-05-16 Pedro Alves <palves@redhat.com>
10591
10592 * ia64-linux-nat.c
10593 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10594 Declare method.
10595 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10596
10597 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10598
10599 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10600 (sparc64_adi_info): Likewise.
10601
10602 2020-05-15 Tom Tromey <tom@tromey.com>
10603
10604 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10605 block_objfile.
10606 (lookup_objfile_from_block): Remove.
10607 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10608 (lookup_global_symbol): Use block_objfile.
10609 * symtab.h (lookup_objfile_from_block): Don't declare.
10610 * printcmd.c (clear_dangling_display_expressions): Use
10611 block_objfile.
10612 * parse.c (operator_check_standard): Use block_objfile.
10613
10614 2020-05-15 Tom Tromey <tom@tromey.com>
10615
10616 * language.c (language_alloc_type_symbol): Set
10617 SYMBOL_SECTION.
10618 * symtab.c (initialize_objfile_symbol): Remove.
10619 (allocate_symbol): Remove.
10620 (allocate_template_symbol): Remove.
10621 * dwarf2/read.c (fixup_go_packaging): Use "new".
10622 (new_symbol): Use "new".
10623 (read_variable): Don't call initialize_objfile_symbol. Use
10624 "new".
10625 (read_func_scope): Use "new".
10626 * xcoffread.c (process_xcoff_symbol): Don't call
10627 initialize_objfile_symbol.
10628 (SYMBOL_DUP): Remove.
10629 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10630 "new".
10631 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10632 (allocate_template_symbol): Don't declare.
10633 (struct symbol): Add copy constructor. Change defaults.
10634 * jit.c (finalize_symtab): Use "new".
10635 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10636 Use "new".
10637 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10638 (common_block_end): Use "new".
10639 * mdebugread.c (parse_symbol): Use "new".
10640 (new_symbol): Likewise.
10641
10642 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10643
10644 * NEWS: Mention changes to help and apropos.
10645
10646 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10647
10648 * command.h (enum command_class): Improve comments, document
10649 that class_alias is for user-defined aliases, give the class
10650 name for each class, remove unused class_xdb.
10651 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10652 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10653 by a precise class.
10654 * infcmd.c (_initialize_infcmd): Likewise.
10655 * reverse.c (_initialize_reverse): Likewise.
10656 * stack.c (_initialize_stack): Likewise.
10657 * symfile.c (_initialize_symfile): Likewise.
10658 * tracepoint.c (_initialize_tracepoint): Likewise.
10659
10660 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10661
10662 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10663 when their aliased command is traversed.
10664 (help_cmd): Add fput_command_names_styled call to
10665 output command name and aliases when command has an alias.
10666
10667 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10668
10669 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10670 * cli/cli-decode.c (help_cmd_list): Declare as static,
10671 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10672 a command together with the command.
10673 (fput_command_name_styled, fput_command_names_styled): New functions.
10674 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10675 fput_command_name_styled.
10676 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10677 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10678
10679 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10680
10681 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10682 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10683 * command.h (cmd_show_list): Likewise.
10684 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10685 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10686
10687 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10688
10689 * unittests/command-def-selftests.c (traverse_command_structure):
10690 Verify all commands of a list have the same prefix command and
10691 that only the top cmdlist commands have a null prefix.
10692
10693 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10694
10695 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10696 as prefix, not one of its aliases.
10697 (set_cmd_prefix): Remove.
10698 (do_add_cmd): Centralize the setting of the prefix of a command, when
10699 command is defined after its full chain of prefix commands.
10700 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10701 (add_setshow_cmd_full): Likewise.
10702 (update_prefix_field_of_prefixed_commands): New function.
10703 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10704 update_prefix_field_of_prefixed_commands.
10705 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10706 addresses of remote_set_cmdlist and remote_show_cmdlist given
10707 as argument, not the address of an argument.
10708 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10709 * gdb/remote.c (_initialize_remote): Likewise.
10710
10711 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10712
10713 * cli/cli-cmds.c (alias_command): Check for an existing alias
10714 using lookup_cmd_composition, as valid_command_p is too strict
10715 and forbids aliases that are the prefix of an existing alias
10716 or command.
10717 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10718 command is properly recognised as a valid command.
10719
10720 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10721
10722 * unittests/help-doc-selftests.c: Rename to
10723 unittests/command-def-selftests.c
10724 * unittests/command-def-selftests.c (help_doc_tests): Update some
10725 comments.
10726 (command_structure_tests, traverse_command_structure): New namespace
10727 and function.
10728 (command_structure_invariants_tests): New function.
10729 (_initialize_command_def_selftests) Renamed from
10730 _initialize_help_doc_selftests, register command_structure_invariants
10731 selftest.
10732
10733 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10734
10735 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10736 an alias of 'show'.
10737
10738 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10739
10740 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10741 ada_is_fixed_point_type. Update all callers.
10742 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10743 all callers.
10744 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10745 Update all callers.
10746 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10747 print_fixed_point_type. Update all callers.
10748 * ada-valprint.c (ada_value_print_num): Replace call to
10749 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10750
10751 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10752
10753 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10754 processors.
10755 (cpu_supports_bts): Add CV_AMD case.
10756
10757 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10758 Simon Marchi <simon.marchi@efficios.com>
10759
10760 * infrun.c (stop_all_threads): Collect multiple wait events at
10761 each pass.
10762
10763 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10764
10765 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10766 type::code instead.
10767
10768 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10769
10770 * gdbtypes.h (struct type) <code, set_code>: New methods.
10771 (TYPE_CODE): Use type::code. Change all call sites used to set
10772 the code to use type::set_code instead.
10773
10774 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10775 Tom de Vries <tdevries@suse.de>
10776 Pedro Alves <palves@redhat.com>
10777
10778 PR threads/25478
10779 * infrun.c (stop_all_threads): Do NOT ignore
10780 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10781 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10782 received.
10783 (handle_no_resumed): Remove code handling a live inferior with no
10784 threads.
10785 * remote.c (has_single_non_exited_thread): New.
10786 (remote_target::update_thread_list): Do not delete a thread if is
10787 the last thread of the process.
10788 * thread.c (thread_select): Call delete_exited_threads instead of
10789 prune_threads.
10790
10791 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10792
10793 * infrun.c (stop_all_threads): Enable/disable thread events of all
10794 targets. Move a debug message denoting the end of the function
10795 into the SCOPED_EXIT block.
10796
10797 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10798
10799 * process-stratum-target.h: Include <set>.
10800 (all_non_exited_process_targets, switch_to_target_no_thread): New
10801 function declarations.
10802 * process-stratum-target.c (all_non_exited_process_targets)
10803 (switch_to_target_no_thread): New function implementations.
10804
10805 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10806
10807 * infrun.c (handle_inferior_event): Extract out a piece of code
10808 into...
10809 (mark_non_executing_threads): ...this new function.
10810
10811 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10812
10813 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10814 use.
10815
10816 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10817
10818 * regcache.c (regcache_read_pc_protected): New function
10819 implementation that returns 0 if the PC cannot read via
10820 'regcache_read_pc'.
10821 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10822 instead of 'regcache_read_pc'.
10823 (keep_going_pass_signal): Ditto.
10824
10825 2020-05-13 Tom Tromey <tromey@adacore.com>
10826
10827 * ada-lang.c (align_value): Remove.
10828 (ada_template_to_fixed_record_type_1): Use align_up.
10829
10830 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10831
10832 * async-event.c: Update the copyright year.
10833 * async-event.h: Update the copyright year.
10834
10835 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10836
10837 * objfiles.h (is_addr_in_objfile,
10838 shared_objfile_contains_address_p): Return bool.
10839 * objfile.c (is_addr_in_objfile,
10840 shared_objfile_contains_address_p): Return bool.
10841
10842 2020-05-11 Tom Tromey <tromey@adacore.com>
10843
10844 * cli/cli-cmds.c (info_command): Restore.
10845 (_initialize_cli_cmds): Use add_prefix_command for "info".
10846 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10847
10848 2020-05-11 Tom Tromey <tromey@adacore.com>
10849
10850 * ada-lang.c (ada_value_primitive_field): Now public.
10851 * ada-lang.h (ada_value_primitive_field): Declare.
10852 * ada-valprint.c (print_field_values): Use
10853 ada_value_primitive_field for wrapper fields.
10854
10855 2020-05-11 Tom de Vries <tdevries@suse.de>
10856
10857 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10858 MODULE_DOMAIN.
10859
10860 2020-05-11 Tom de Vries <tdevries@suse.de>
10861
10862 PR symtab/25941
10863 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10864 with length 0, if not gdb-produced.
10865 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10866
10867 2020-05-09 Tom de Vries <tdevries@suse.de>
10868
10869 PR gdb/25955
10870 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10871 calculation.
10872
10873 2020-05-09 Tom Tromey <tom@tromey.com>
10874
10875 * top.c (server_command): Now bool.
10876 * top.h (server_command): Now bool.
10877
10878 2020-05-08 Tom Tromey <tromey@adacore.com>
10879
10880 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10881 already being processed.
10882
10883 2020-05-08 Tom Tromey <tom@tromey.com>
10884
10885 * printcmd.c (struct display) <next>: Remove.
10886 <display>: New constructor.
10887 <exp_string>: Now a std::string.
10888 <enabled_p>: Now a bool.
10889 (display_number): Move definition earlier.
10890 (displays): Rename from display_chain. Now a std::vector.
10891 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10892 (display_command): Update.
10893 (do_one_display, disable_display)
10894 (enable_disable_display_command, do_enable_disable_display):
10895 Update.
10896 (free_display): Remove.
10897 (clear_displays): Rewrite.
10898 (delete_display): Update.
10899 (map_display_numbers): Use function_view. Remove "data"
10900 parameter. Update.
10901 (do_delete_display): Remove.
10902 (undisplay_command): Update.
10903 (do_one_display, do_displays, disable_display)
10904 (info_display_command): Update.
10905 (do_enable_disable_display): Remove.
10906 (enable_disable_display_command)
10907 (clear_dangling_display_expressions): Update.
10908
10909 2020-05-08 Tom Tromey <tom@tromey.com>
10910
10911 * symtab.c (set_symbol_cache_size)
10912 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10913 (maintenance_print_symbol_cache_statistics): Update.
10914 * symmisc.c (print_symbol_bcache_statistics)
10915 (print_objfile_statistics, maintenance_print_objfiles)
10916 (maintenance_info_symtabs, maintenance_check_symtabs)
10917 (maintenance_expand_symtabs, maintenance_info_line_tables):
10918 Update.
10919 * symfile-debug.c (set_debug_symfile): Update.
10920 * source.c (forget_cached_source_info): Update.
10921 * python/python.c (gdbpy_progspaces): Update.
10922 * psymtab.c (maintenance_info_psymtabs): Update.
10923 * probe.c (parse_probes): Update.
10924 * linespec.c (iterate_over_all_matching_symtabs)
10925 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10926 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10927 * exec.c (exec_target::close): Update.
10928 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10929 * breakpoint.c (print_one_breakpoint_location)
10930 (create_longjmp_master_breakpoint)
10931 (create_std_terminate_master_breakpoint): Update.
10932 * progspace.c (program_spaces): Now a std::vector.
10933 (maybe_new_address_space): Update.
10934 (add_program_space): Remove.
10935 (program_space::program_space): Update.
10936 (remove_program_space): Update.
10937 (number_of_program_spaces): Remove.
10938 (print_program_space, update_address_spaces): Update.
10939 * progspace.h (program_spaces): Change type.
10940 (ALL_PSPACES): Remove.
10941 (number_of_program_spaces): Don't declare.
10942 (struct program_space) <next>: Remove.
10943
10944 2020-05-08 Tom Tromey <tom@tromey.com>
10945
10946 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10947 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10948 (enable_break): Update.
10949 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10950 (frv_fdpic_find_canonical_descriptor): Update.
10951 (frv_fetch_objfile_link_map): Update.
10952 * progspace.c (program_space::free_all_objfiles): Update.
10953 (program_space::solibs): New method.
10954 * progspace.h (struct program_space) <solibs>: New method.
10955 * solist.h (master_so_list): Don't declare.
10956 (ALL_SO_LIBS): Remove.
10957 * solib.h (so_list_head): Remove.
10958 (update_solib_list): Update comment.
10959 * solib.c (master_so_list): Remove.
10960 (solib_used, update_solib_list, solib_add)
10961 (info_sharedlibrary_command, clear_solib)
10962 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10963
10964 2020-05-08 Tom Tromey <tom@tromey.com>
10965
10966 * extension.c (extension_languages): Now a std::array.
10967 (ALL_EXTENSION_LANGUAGES): Remove.
10968 (get_ext_lang_defn, get_ext_lang_of_file)
10969 (eval_ext_lang_from_control_command): Update.
10970 (finish_ext_lang_initialization)
10971 (auto_load_ext_lang_scripts_for_objfile)
10972 (ext_lang_type_printers::ext_lang_type_printers)
10973 (apply_ext_lang_type_printers)
10974 (ext_lang_type_printers::~ext_lang_type_printers)
10975 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10976 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10977 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10978 (get_matching_xmethod_workers, ext_lang_colorize)
10979 (ext_lang_before_prompt): Update.
10980 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10981
10982 2020-05-08 Tom Tromey <tom@tromey.com>
10983
10984 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10985 overload.
10986 <swap_string, m_string>: Remove.
10987 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10988 Update.
10989 * stabsread.c (define_symbol, read_type): Update.
10990 * linespec.c (find_linespec_symbols): Update.
10991 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10992 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10993 * dbxread.c (read_dbx_symtab): Update.
10994 * cp-support.h (cp_canonicalize_string_full)
10995 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10996 Return unique_xmalloc_ptr.
10997 * cp-support.c (inspect_type): Update.
10998 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10999 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11000 Likewise.
11001 * c-typeprint.c (print_name_maybe_canonical): Update.
11002 * break-catch-throw.c (check_status_exception_catchpoint):
11003 Update.
11004
11005 2020-05-08 Tom de Vries <tdevries@suse.de>
11006
11007 * infrun.c (follow_fork): Copy current_line and current_symtab to
11008 child thread.
11009
11010 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11011
11012 * async-event.c (struct async_signal_handler, struct
11013 async_event_handler): Reformat, remove typedef.
11014
11015 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11016
11017 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11018 access thistype->main_type->dyn_prop_list directly.
11019
11020 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11021
11022 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11023 (remove_dyn_prop): Remove. Update all users to use
11024 type::remove_dyn_prop.
11025 * gdbtypes.c (remove_dyn_prop): Rename to...
11026 (type::remove_dyn_prop): ... this.
11027
11028 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11029
11030 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11031 (add_dyn_prop): Remove. Update all users to use
11032 type::add_dyn_prop.
11033 * gdbtypes.c (add_dyn_prop): Rename to...
11034 (type::add_dyn_prop): ... this.
11035
11036 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11037
11038 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11039 (get_dyn_prop): Remove. Update all users to use
11040 type::dyn_prop.
11041 * gdbtypes.c (get_dyn_prop): Rename to...
11042 (type::dyn_prop): ... this.
11043
11044 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11045
11046 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11047
11048 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11049
11050 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11051 instruction, skip it if it's there.
11052
11053 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11054
11055 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11056
11057 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11058
11059 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11060 * gdbtypes.c (recursive_dump_type): Remove use of
11061 TYPE_INCOMPLETE.
11062
11063 2020-05-03 Tom Tromey <tom@tromey.com>
11064
11065 * breakpoint.c (catch_command, tcatch_command): Remove.
11066 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11067 add_show_prefix_cmd.
11068 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11069 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11070 Remove.
11071 (add_internal_problem_command): Use add_basic_prefix_cmd,
11072 add_show_prefix_cmd.
11073 * mips-tdep.c (set_mipsfpu_command): Remove.
11074 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11075 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11076 (_initialize_index_cache): Use add_basic_prefix_cmd.
11077 * memattr.c (dummy_cmd): Remove.
11078 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11079 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11080 (_initialize_tui_win): Use add_basic_prefix_cmd,
11081 add_show_prefix_cmd.
11082 * cli/cli-logging.c (set_logging_command): Remove.
11083 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11084 add_show_prefix_cmd.
11085 (show_logging_command): Remove.
11086 * target.c (target_command): Remove.
11087 (add_target): Use add_basic_prefix_cmd.
11088
11089 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11090
11091 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11092
11093 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11094
11095 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11096 info_command.
11097
11098 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11099
11100 * nbsd-nat.c (nbsd_enable_proc_events)
11101 (nbsd_nat_target::post_startup_inferior): Add.
11102 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11103 (nbsd_nat_target::update_thread_list): Rewrite.
11104 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11105 "PTRACE_LWP_CREATE".
11106 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11107
11108 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11109
11110 * stack.c (_initialize_stack): Remove duplicated creation
11111 of "frame" command and "f" alias.
11112
11113 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11114
11115 PR gdb/18706
11116 * gdbtypes.c (check_typedef): Calculate size of array of
11117 stubbed type.
11118
11119 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11120
11121 PR gdb/15559
11122 * i386-tdep.c (i386_push_dummy_call): Call
11123 i386_thiscall_push_dummy_call.
11124 (i386_thiscall_push_dummy_call): New function.
11125 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11126 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11127 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11128
11129 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11130
11131 * gdbarch.sh (do_read): Add shellcheck disable directive for
11132 warning SC2162.
11133
11134 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11135
11136 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11137 "referenced but not assigned" warning.
11138
11139 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11140
11141 * gdbarch.sh: Remove code that sets fallbackdefault.
11142
11143 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11144
11145 * gdbarch.sh: Use shell operators && and || instead of
11146 -a and -o.
11147
11148 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11149
11150 * gdbarch.sh: Use $(...) instead of `...`.
11151
11152 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11153
11154 * gdbarch.sh: Use double quotes around variables.
11155
11156 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11157
11158 * gdbarch.sh: Use %s with printf, instead of variables in the
11159 format string.
11160
11161 2020-04-29 Tom Tromey <tromey@adacore.com>
11162
11163 PR ada/25875:
11164 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11165 type fields here.
11166 (read_enumeration_type): Call
11167 update_enumeration_type_from_children later. Update comments.
11168 (process_enumeration_scope): Don't create type fields.
11169
11170 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11171
11172 * nbsd-tdep.c: Include "xml-syscall.h".
11173 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11174
11175 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11176
11177 * nbsd-nat.c: Include "sys/wait.h".
11178 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11179 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11180 (nbsd_nat_target::remove_exec_catchpoint)
11181 (nbsd_nat_target::set_syscall_catchpoint): Add.
11182 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11183 (nbsd_nat_target::insert_exec_catchpoint)
11184 (nbsd_nat_target::remove_exec_catchpoint)
11185 (nbsd_nat_target::set_syscall_catchpoint): Add.
11186 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11187 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11188 `nbsd_get_syscall_number'.
11189
11190 2020-04-29 Tom Tromey <tom@tromey.com>
11191
11192 * stack.c (print_block_frame_labels): Remove.
11193
11194 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11195
11196 PR gdb/17320
11197 * ada-valprint.c (val_print_packed_array_elements): Move array
11198 end bracket to new line.
11199 (ada_val_print_string): Remove extra spaces before first array
11200 element.
11201 * c-valprint.c (c_value_print_array): Likewise.
11202 * m2-valprint.c (m2_print_array_contents): Likewise.
11203 (m2_value_print_inner): Likewise.
11204 * p-valprint.c (pascal_value_print_inner): Likewise.
11205 * valprint.c (generic_val_print_array): Likewise.
11206 (value_print_array_elements): Move first array element and array
11207 end bracket to new line.
11208
11209 2020-04-29 Tom de Vries <tdevries@suse.de>
11210
11211 PR symtab/25889
11212 * linespec.c (find_method): Fix ix calculation.
11213
11214 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11215
11216 * syscalls/update-netbsd.sh: New file.
11217 * syscalls/netbsd.xml: Regenerate.
11218 * data-directory/Makefile.in: Register `netbsd.xml' in
11219 `SYSCALLS_FILES'.
11220
11221 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11222
11223 * syscalls/update-freebsd.sh: Add double quotes.
11224
11225 2020-04-28 Tom Tromey <tom@tromey.com>
11226
11227 * NEWS: Update.
11228 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11229 (cmdpy_init): Allow class_tui.
11230
11231 2020-04-28 Mark Williams <mark@myosotissp.com>
11232
11233 PR gdb/24480
11234 * dwarf2read.c: Add missing assingments to list_in_scope when
11235 start_symtab was already called.
11236
11237 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11238
11239 PR gdb/25881
11240 * dwarf2/read.c (offset_map_type): Use
11241 gdb:hash_enum<sect_offset> as hash function.
11242
11243 2020-04-28 Tom de Vries <tdevries@suse.de>
11244
11245 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11246 with DW_AT_signature.
11247
11248 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11249
11250 * configure.ac: Remove check for fs_base/gs_base in
11251 user_regs_struct.
11252 * configure: Re-generate.
11253 * config.in: Re-generate.
11254 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11255 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11256 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11257
11258 2020-04-27 Luis Machado <luis.machado@linaro.org>
11259
11260 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11261 problematic inline frame unwinding situation.
11262 * frame.c (frame_id_computed_p): New function.
11263 * frame.h (frame_id_computed_p): New prototype.
11264
11265 2020-04-26 Tom Tromey <tom@tromey.com>
11266
11267 * command.h (enum command_class) <class_pseudo>: Remove.
11268
11269 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11270
11271 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11272 and whitespace.
11273
11274 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11275
11276 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11277 `PT_GET_PROCESS_STATE' block.
11278
11279 2020-04-24 Tom Tromey <tom@tromey.com>
11280
11281 * symtab.h (symbol_get_demangled_name): Don't declare.
11282 * symtab.c (symbol_get_demangled_name): Remove.
11283 (general_symbol_info::natural_name)
11284 (general_symbol_info::demangled_name): Update.
11285
11286 2020-04-24 Tom Tromey <tom@tromey.com>
11287
11288 PR rust/25025:
11289 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11290
11291 2020-04-24 Tom Tromey <tom@tromey.com>
11292
11293 PR symtab/12707:
11294 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11295 exists.
11296 (new_symbol): Likewise.
11297 * compile/compile-object-load.c (get_out_value_type): Use
11298 symbol_matches_search_name.
11299
11300 2020-04-24 Tom Tromey <tom@tromey.com>
11301
11302 * dwarf2/read.c (add_partial_symbol): Do not call
11303 compute_and_set_names.
11304
11305 2020-04-24 Tom Tromey <tom@tromey.com>
11306
11307 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11308 overload.
11309
11310 2020-04-24 Tom Tromey <tom@tromey.com>
11311
11312 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11313 (add_psymbol_to_list): New overload. Make old overload call new
11314 one.
11315 * psympriv.h (add_psymbol_to_list): New overload.
11316
11317 2020-04-24 Tom Tromey <tom@tromey.com>
11318
11319 * dwarf2/read.c (partial_die_info::read) <case
11320 DW_AT_linkage_name>: Use value_as_string.
11321 (dwarf2_string_attr): Use value_as_string.
11322 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11323 method.
11324 * dwarf2/attribute.c (attribute::value_as_string): New method.
11325
11326 2020-04-24 Tom Tromey <tom@tromey.com>
11327
11328 * symtab.c (general_symbol_info::natural_name)
11329 (general_symbol_info::demangled_name): Check for language_rust.
11330
11331 2020-04-24 Tom Tromey <tom@tromey.com>
11332
11333 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11334 (dwarf2_physname): ... from here.
11335 (partial_die_info::read): Add Rust "{" hack.
11336
11337 2020-04-24 Tom Tromey <tom@tromey.com>
11338
11339 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11340 method.
11341 (symbol_set_demangled_name): Don't declare.
11342 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11343 symbol_set_demangled_name.
11344 (general_symbol_info::set_language)
11345 (general_symbol_info::compute_and_set_names): Update.
11346 * minsyms.c (minimal_symbol_reader::install): Update.
11347 * dwarf2/read.c (new_symbol): Update.
11348
11349 2020-04-24 Tom Tromey <tromey@adacore.com>
11350
11351 PR python/23662:
11352 * python/py-type.c (convert_field): Handle
11353 FIELD_LOC_KIND_DWARF_BLOCK.
11354 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11355 (typy_get_dynamic): Nw function.
11356 (type_object_getset): Add "dynamic".
11357 * NEWS: Add entry.
11358
11359 2020-04-24 Tom Tromey <tromey@adacore.com>
11360
11361 * ada-typeprint.c (print_choices, print_variant_part)
11362 (print_record_field_types_dynamic): New functions.
11363 (print_record_field_types): Use print_record_field_types_dynamic.
11364
11365 2020-04-24 Tom Tromey <tromey@adacore.com>
11366
11367 * dwarf2/read.c (handle_data_member_location): New overload.
11368 (dwarf2_add_field): Use it.
11369 (decode_locdesc): Add "computed" parameter. Update comment.
11370 * gdbtypes.c (is_dynamic_type_internal): Also look for
11371 FIELD_LOC_KIND_DWARF_BLOCK.
11372 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11373 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11374 virtual base classes.
11375 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11376 FIELD_LOC_KIND_DWARF_BLOCK.
11377
11378 2020-04-24 Tom Tromey <tromey@adacore.com>
11379
11380 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11381 * gdbtypes.c (is_dynamic_type_internal): Check
11382 TYPE_HAS_DYNAMIC_LENGTH.
11383 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11384 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11385 New macros.
11386 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11387 constant.
11388
11389 2020-04-24 Tom Tromey <tromey@adacore.com>
11390
11391 * dwarf2/read.c (struct variant_field): Rewrite.
11392 (struct variant_part_builder): New.
11393 (struct nextfield): Remove "variant" field. Add "offset".
11394 (struct field_info): Add "current_variant_part" and
11395 "variant_parts".
11396 (alloc_discriminant_info): Remove.
11397 (alloc_rust_variant): New function.
11398 (quirk_rust_enum): Update.
11399 (dwarf2_add_field): Set "offset" member. Don't handle
11400 DW_TAG_variant_part.
11401 (offset_map_type): New typedef.
11402 (convert_variant_range, create_one_variant)
11403 (create_one_variant_part, create_variant_parts)
11404 (add_variant_property): New functions.
11405 (dwarf2_attach_fields_to_type): Call add_variant_property.
11406 (read_structure_type): Don't handle DW_TAG_variant_part.
11407 (handle_variant_part, handle_variant): New functions.
11408 (handle_struct_member_die): Use them.
11409 (process_structure_scope): Don't handle variant parts.
11410 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11411 (struct discriminant_info): Remove.
11412 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11413 (struct main_type) <flag_discriminated_union>: Remove.
11414 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11415 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11416 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11417 Update.
11418 * valops.c (value_union_variant): Remove.
11419 * value.h (value_union_variant): Don't declare.
11420
11421 2020-04-24 Tom Tromey <tromey@adacore.com>
11422
11423 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11424 (ada_value_primitive_packed_val): Update.
11425 * ada-valprint.c (ada_value_print_1): Update.
11426 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11427 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11428 just an address. Use evaluate_for_locexpr_baton.
11429 (dwarf2_evaluate_property): Update.
11430 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11431 array_view.
11432 * findvar.c (default_read_var_value): Update.
11433 * gdbtypes.c (compute_variant_fields_inner)
11434 (resolve_dynamic_type_internal): Update.
11435 (resolve_dynamic_type): Change type of valaddr parameter.
11436 * gdbtypes.h (resolve_dynamic_type): Update.
11437 * valarith.c (value_subscripted_rvalue): Update.
11438 * value.c (value_from_contents_and_address): Update.
11439
11440 2020-04-24 Tom Tromey <tromey@adacore.com>
11441
11442 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11443 "push_initial_value" parameter.
11444 (dwarf2_evaluate_property): Likewise.
11445 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11446
11447 2020-04-24 Tom Tromey <tromey@adacore.com>
11448
11449 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11450 (variant::matches, compute_variant_fields_recurse)
11451 (compute_variant_fields_inner, compute_variant_fields): New
11452 functions.
11453 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11454 Use resolved_type after type is made.
11455 (operator==): Add new cases.
11456 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11457 (struct discriminant_range, struct variant, struct variant_part):
11458 New.
11459 (union dynamic_prop_data) <variant_parts, original_type>: New
11460 members.
11461 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11462 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11463 constants.
11464 * value.c (unpack_bits_as_long): Now public.
11465 * value.h (unpack_bits_as_long): Declare.
11466
11467 2020-04-24 Tom Tromey <tromey@adacore.com>
11468
11469 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11470 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11471
11472 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11473
11474 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11475
11476 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11477
11478 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11479 (remove_fork_catchpoint, post_startup_inferior)
11480 (post_attach): Move...
11481 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11482 (remove_fork_catchpoint, post_startup_inferior)
11483 (post_attach): ...here.
11484 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11485 (remove_fork_catchpoint, post_startup_inferior)
11486 (post_attach): Move...
11487 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11488 (remove_fork_catchpoint, post_startup_inferior)
11489 (post_attach): ...here.
11490
11491 2020-04-24 Tom Tromey <tromey@adacore.com>
11492
11493 * nat/windows-nat.h (struct windows_thread_info)
11494 <pc_adjusted>: New member.
11495 * windows-nat.c (windows_fetch_one_register): Check
11496 pc_adjusted.
11497 (windows_nat_target::get_windows_debug_event)
11498 (windows_nat_target::wait): Set pc_adjusted.
11499
11500 2020-04-24 Tom de Vries <tdevries@suse.de>
11501
11502 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11503 Run gdb-add-index inside temp dir.
11504
11505 2020-04-23 Tom Tromey <tromey@adacore.com>
11506
11507 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11508 in loop.
11509
11510 2020-04-23 Luis Machado <luis.machado@linaro.org>
11511
11512 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11513 get_frame_register instead of gdbarch_unwind_pc.
11514
11515 2020-04-23 Tom de Vries <tdevries@suse.de>
11516
11517 * symtab.c (lookup_global_symbol): Prefer def over decl.
11518
11519 2020-04-23 Tom de Vries <tdevries@suse.de>
11520
11521 PR symtab/25807
11522 * block.c (best_symbol, better_symbol): Promote to external.
11523 * block.h (best_symbol, better_symbol): Declare.
11524 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11525 decl.
11526
11527 2020-04-23 Tom Tromey <tromey@adacore.com>
11528
11529 PR ada/25837:
11530 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11531 "const char *", not a "const std::string &".
11532 <name_and_matcher::operator==>: Update.
11533 * unittests/lookup_name_info-selftests.c: Change type of
11534 "result".
11535
11536 2020-04-23 Tom Tromey <tom@tromey.com>
11537
11538 * inferior.h (iterate_over_inferiors): Don't declare.
11539 * inferior.c (iterate_over_inferiors): Remove.
11540 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11541 Remove.
11542 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11543 use iterate_over_inferiors.
11544 (darwin_resume_inferior_it)
11545 (struct resume_inferior_threads_param)
11546 (darwin_resume_inferior_threads_it): Remove.
11547 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11548
11549 2020-04-23 Tom de Vries <tdevries@suse.de>
11550
11551 * blockframe.c (find_pc_partial_function): Use
11552 find_pc_sect_compunit_symtab rather than
11553 objfile->sf->qf->find_pc_sect_compunit_symtab.
11554
11555 2020-04-22 Tom de Vries <tdevries@suse.de>
11556
11557 PR symtab/25764
11558 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11559 in psymtabs.
11560
11561 2020-04-22 Tom de Vries <tdevries@suse.de>
11562
11563 PR symtab/25801
11564 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11565 symtabs.
11566
11567 2020-04-22 Tom de Vries <tdevries@suse.de>
11568
11569 PR symtab/25700
11570 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11571 CU if already created.
11572
11573 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11574
11575 * infrun.c (displaced_step_fixup): Switch to the event_thread
11576 before calling displaced_step_restore, not after.
11577
11578 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11579
11580 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11581 its inferior is not recorded by us.
11582 (record_btrace_target_open): Replace call to
11583 all_non_exited_threads () with call to current_inferior
11584 ()->non_exited_threads ().
11585 (record_btrace_target::stop_recording): Likewise.
11586 (record_btrace_target::close): Likewise.
11587 (record_btrace_target::wait): Likewise.
11588 (record_btrace_target::record_stop_replaying): Likewise.
11589
11590 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11591
11592 * btrace.c (btrace_enable): Throw an error on double enables and
11593 when enabling recording fails.
11594 (btrace_disable): Throw an error if the thread is not recorded.
11595
11596 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11597
11598 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11599 request if we do not have a thread_info.
11600
11601 2020-04-21 Tom de Vries <tdevries@suse.de>
11602
11603 PR gdb/25471
11604 * thread.c
11605 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11606 exception in get_frame_id.
11607
11608 2020-04-20 Tom Tromey <tromey@adacore.com>
11609
11610 * python/python.c (struct gdbpy_event): Mark move constructor as
11611 noexcept.
11612 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11613 constructor as noexcept.
11614 * completer.h (struct completion_result): Mark move constructor as
11615 noexcept.
11616 * completer.c (completion_result::completion_result): Use
11617 initialization style. Don't call reset_match_list.
11618
11619 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11620
11621 * MAINTAINERS (Write After Approval): Add myself.
11622
11623 2020-04-18 Tom Tromey <tom@tromey.com>
11624
11625 * windows-tdep.c (init_w32_command_list)
11626 (w32_prefix_command_valid): Restore.
11627 (_initialize_windows_tdep): Call init_w32_command_list.
11628
11629 2020-04-18 Tom Tromey <tom@tromey.com>
11630
11631 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11632 * value.c (value_fn_field): Update.
11633 * valops.c (find_function_in_inferior)
11634 (value_allocate_space_in_inferior): Update.
11635 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11636 Update.
11637 * tui/tui-source.c (tui_source_window::set_contents): Update.
11638 * symtab.c (lookup_global_or_static_symbol)
11639 (find_function_start_sal_1, skip_prologue_sal)
11640 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11641 * symmisc.c (dump_msymbols, dump_symtab_1)
11642 (maintenance_print_one_line_table): Update.
11643 * symfile.c (init_entry_point_info, section_is_mapped)
11644 (list_overlays_command, simple_read_overlay_table)
11645 (simple_overlay_update_1): Update.
11646 * stap-probe.c (handle_stap_probe): Update.
11647 * stabsread.c (dbx_init_float_type, define_symbol)
11648 (read_one_struct_field, read_enum_type, read_range_type): Update.
11649 * source.c (info_line_command): Update.
11650 * python/python.c (gdbpy_source_objfile_script)
11651 (gdbpy_execute_objfile_script): Update.
11652 * python/py-type.c (save_objfile_types): Update.
11653 * python/py-objfile.c (py_free_objfile): Update.
11654 * python/py-inferior.c (python_new_objfile): Update.
11655 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11656 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11657 (maintenance_check_psymtabs): Update.
11658 * printcmd.c (info_address_command): Update.
11659 * objfiles.h (struct objfile) <arch>: New method, from
11660 get_objfile_arch.
11661 (get_objfile_arch): Don't declare.
11662 * objfiles.c (get_objfile_arch): Remove.
11663 (filter_overlapping_sections): Update.
11664 * minsyms.c (msymbol_is_function): Update.
11665 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11666 (output_nondebug_symbol): Update.
11667 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11668 (mdebug_expand_psymtab): Update.
11669 * machoread.c (macho_add_oso_symfile): Update.
11670 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11671 Update.
11672 * linux-fork.c (checkpoint_command): Update.
11673 * linespec.c (convert_linespec_to_sals): Update.
11674 * jit.c (finalize_symtab): Update.
11675 * infrun.c (insert_exception_resume_from_probe): Update.
11676 * ia64-tdep.c (ia64_find_unwind_table): Update.
11677 * hppa-tdep.c (internalize_unwinds): Update.
11678 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11679 Update.
11680 * gcore.c (call_target_sbrk): Update.
11681 * elfread.c (record_minimal_symbol, elf_symtab_read)
11682 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11683 (elf_gnu_ifunc_resolve_by_got): Update.
11684 * dwarf2/read.c (create_addrmap_from_index)
11685 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11686 (read_debug_names_from_section)
11687 (process_psymtab_comp_unit_reader, add_partial_symbol)
11688 (add_partial_subprogram, process_full_comp_unit)
11689 (read_file_scope, read_func_scope, read_lexical_block_scope)
11690 (read_call_site_scope, dwarf2_ranges_read)
11691 (dwarf2_record_block_ranges, dwarf2_add_field)
11692 (mark_common_block_symbol_computed, read_tag_pointer_type)
11693 (read_tag_string_type, dwarf2_init_float_type)
11694 (dwarf2_init_complex_target_type, read_base_type)
11695 (partial_die_info::read, partial_die_info::read)
11696 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11697 (dwarf2_fetch_die_loc_sect_off): Update.
11698 * dwarf2/loc.c (dwarf2_find_location_expression)
11699 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11700 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11701 (dwarf2_loc_desc_get_symbol_read_needs)
11702 (locexpr_describe_location_piece, locexpr_describe_location_1)
11703 (loclist_describe_location): Update.
11704 * dwarf2/index-write.c (write_debug_names): Update.
11705 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11706 * dtrace-probe.c (dtrace_process_dof): Update.
11707 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11708 (process_one_symbol): Update.
11709 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11710 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11711 (coff_read_enum_type): Update.
11712 * cli/cli-cmds.c (edit_command, list_command): Update.
11713 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11714 * breakpoint.c (create_overlay_event_breakpoint)
11715 (create_longjmp_master_breakpoint)
11716 (create_std_terminate_master_breakpoint)
11717 (create_exception_master_breakpoint, get_sal_arch): Update.
11718 * block.c (block_gdbarch): Update.
11719 * annotate.c (annotate_source_line): Update.
11720
11721 2020-04-17 Tom Tromey <tromey@adacore.com>
11722
11723 * auto-load.c (show_auto_load_cmd): Remove.
11724 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11725 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11726 (maintenance_print_arc_command): Remove.
11727 * tui/tui-win.c (tui_command): Remove.
11728 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11729 * tui/tui-layout.c (tui_layout_command): Remove.
11730 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11731 * python/python.c (user_set_python, user_show_python): Remove.
11732 (_initialize_python): Use add_basic_prefix_cmd,
11733 add_show_prefix_cmd.
11734 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11735 (install_gdb_commands): Use add_basic_prefix_cmd,
11736 add_show_prefix_cmd.
11737 (info_guile_command): Remove.
11738 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11739 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11740 add_show_prefix_cmd.
11741 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11742 Remove do_set and do_show parameters.
11743 * cli/cli-style.c (set_style, show_style): Remove.
11744 (_initialize_cli_style): Use add_basic_prefix_cmd,
11745 add_show_prefix_cmd.
11746 (cli_style_option::add_setshow_commands): Remove do_set and
11747 do_show parameters.
11748 (cli_style_option::add_setshow_commands): Use
11749 add_basic_prefix_cmd, add_show_prefix_cmd.
11750 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11751 (set_style_name): Remove.
11752 * cli/cli-dump.c (dump_command, append_command): Remove.
11753 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11754 (tekhex_dump_command, binary_dump_command)
11755 (binary_append_command): Remove.
11756 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11757 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11758 (init_w32_command_list): Remove; move into ...
11759 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11760 * valprint.c (set_print, show_print, set_print_raw)
11761 (show_print_raw): Remove.
11762 (_initialize_valprint): Use add_basic_prefix_cmd,
11763 add_show_prefix_cmd.
11764 * typeprint.c (set_print_type, show_print_type): Remove.
11765 (_initialize_typeprint): Use add_basic_prefix_cmd,
11766 add_show_prefix_cmd.
11767 * record.c (set_record_command, show_record_command): Remove.
11768 (_initialize_record): Use add_basic_prefix_cmd,
11769 add_show_prefix_cmd.
11770 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11771 add_show_prefix_cmd.
11772 (info_command, show_command, set_debug, show_debug): Remove.
11773 * top.h (set_history, show_history): Don't declare.
11774 * top.c (set_history, show_history): Remove.
11775 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11776 (unset_tdesc_cmd): Remove.
11777 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11778 add_show_prefix_cmd.
11779 * symtab.c (info_module_command): Remove.
11780 (_initialize_symtab): Use add_basic_prefix_cmd.
11781 * symfile.c (overlay_command): Remove.
11782 (_initialize_symfile): Use add_basic_prefix_cmd.
11783 * sparc64-tdep.c (info_adi_command): Remove.
11784 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11785 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11786 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11787 add_show_prefix_cmd.
11788 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11789 (_initialize_serial): Use add_basic_prefix_cmd,
11790 add_show_prefix_cmd.
11791 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11792 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11793 add_show_prefix_cmd.
11794 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11795 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11796 add_show_prefix_cmd.
11797 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11798 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11799 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11800 add_show_prefix_cmd.
11801 * remote.c (remote_command, set_remote_cmd): Remove.
11802 (_initialize_remote): Use add_basic_prefix_cmd.
11803 * record-full.c (set_record_full_command)
11804 (show_record_full_command): Remove.
11805 (_initialize_record_full): Use add_basic_prefix_cmd,
11806 add_show_prefix_cmd.
11807 * record-btrace.c (cmd_set_record_btrace)
11808 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11809 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11810 (cmd_show_record_btrace_pt): Remove.
11811 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11812 add_show_prefix_cmd.
11813 * ravenscar-thread.c (set_ravenscar_command)
11814 (show_ravenscar_command): Remove.
11815 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11816 add_show_prefix_cmd.
11817 * mips-tdep.c (show_mips_command, set_mips_command)
11818 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11819 add_show_prefix_cmd.
11820 * maint.c (maintenance_command, maintenance_info_command)
11821 (maintenance_check_command, maintenance_print_command)
11822 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11823 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11824 add_show_prefix_cmd.
11825 (show_per_command_cmd): Remove.
11826 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11827 Remove.
11828 (maintenance_show_test_settings_cmd): Remove.
11829 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11830 add_show_prefix_cmd.
11831 * maint-test-options.c (maintenance_test_options_command):
11832 Remove.
11833 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11834 * macrocmd.c (macro_command): Remove
11835 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11836 * language.c (set_check, show_check): Remove.
11837 (_initialize_language): Use add_basic_prefix_cmd,
11838 add_show_prefix_cmd.
11839 * infcmd.c (unset_command): Remove.
11840 (_initialize_infcmd): Use add_basic_prefix_cmd.
11841 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11842 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11843 add_show_prefix_cmd.
11844 * go32-nat.c (go32_info_dos_command): Remove.
11845 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11846 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11847 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11848 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11849 (_initialize_frame): Use add_basic_prefix_cmd,
11850 add_show_prefix_cmd.
11851 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11852 (_initialize_dcache): Use add_basic_prefix_cmd,
11853 add_show_prefix_cmd.
11854 * cp-support.c (maint_cplus_command): Remove.
11855 (_initialize_cp_support): Use add_basic_prefix_cmd.
11856 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11857 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11858 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11859 add_basic_prefix_cmd, add_show_prefix_cmd.
11860 * breakpoint.c (save_command): Remove.
11861 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11862 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11863 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11864 add_show_prefix_cmd.
11865 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11866 (set_ada_command, show_ada_command): Remove.
11867 (_initialize_ada_language): Use add_basic_prefix_cmd,
11868 add_show_prefix_cmd.
11869 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11870
11871 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11872
11873 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11874 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11875
11876 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11877
11878 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11879 warning messages.
11880
11881 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11882
11883 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11884 import table is not at beginning of .idata section.
11885
11886 2020-04-16 Pedro Alves <palves@redhat.com>
11887
11888 * inferior.c (delete_inferior): Use delete operator directly
11889 instead of delete_program_space.
11890 * progspace.c (add_program_space): New, factored out from
11891 program_space::program_space.
11892 (remove_program_space): New, factored out from
11893 delete_program_space.
11894 (program_space::program_space): Remove intro comment. Rewrite.
11895 (program_space::~program_space): Remove intro comment. Call
11896 remove_program_space.
11897 (delete_program_space): Delete.
11898 * progspace.h (program_space::program_space): Make explicit. Move
11899 intro comment here, adjusted.
11900 (program_space::~program_space): Move intro comment here,
11901 adjusted.
11902 (delete_program_space): Remove.
11903
11904 2020-04-16 Tom Tromey <tromey@adacore.com>
11905
11906 * windows-nat.c (windows_nat::handle_access_violation): New
11907 function.
11908 * nat/windows-nat.h (handle_access_violation): Declare.
11909 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11910 windows-nat.c. Call handle_access_violation.
11911
11912 2020-04-16 Tom de Vries <tdevries@suse.de>
11913
11914 PR symtab/25791
11915 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11916 CUs without psymtab.
11917
11918 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11919
11920 * python/python.c (do_start_initialization): Don't call
11921 PyEval_InitThreads for Python 3.9 and beyond.
11922
11923 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11924
11925 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11926 thread functions.
11927 (obsd_nat_target::wait): Likewise.
11928
11929 2020-04-15 Tom Tromey <tromey@adacore.com>
11930
11931 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11932 (DEBUG_EXCEPT): Use debug_printf.
11933
11934 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11935
11936 * completer.c (class completion_tracker::completion_hash_entry)
11937 <hash_name>: New member function.
11938 (completion_tracker::discard_completions): New callback to hash a
11939 completion_hash_entry, pass this to htab_create_alloc.
11940
11941 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11942
11943 * windows-nat.c (windows_make_so): Warn rather than stopping with
11944 an error if realpath() fails.
11945
11946 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11947
11948 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11949 (nbsd_nat_target::info_proc): Add do_status.
11950
11951 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11952 Tom de Vries <tdevries@suse.de>
11953
11954 PR symtab/25718
11955 * psympriv.h (struct partial_symtab::read_symtab)
11956 (struct partial_symtab::expand_psymtab)
11957 (struct partial_symtab::read_dependencies): Update comments.
11958 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11959 read_symtab for includer.
11960 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11961 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11962 (struct dwarf2_include_psymtab::m_readin): Remove.
11963 (struct dwarf2_include_psymtab::includer): New member function.
11964 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11965
11966 2020-04-14 Tom de Vries <tdevries@suse.de>
11967
11968 PR symtab/25720
11969 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11970 with NULL symbol_matcher and lookup_name.
11971 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11972 and lookup_name.
11973 * dwarf2/read.c (dw2_expand_symtabs_matching)
11974 (dw2_debug_names_expand_symtabs_matching): Same.
11975 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11976 Make lookup_name a pointer. Update comment.
11977 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11978 lookup_name being a pointer.
11979 * symfile.c (expand_symtabs_matching): Same.
11980 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11981 * linespec.c (iterate_over_all_matching_symtabs): Same.
11982
11983 2020-04-13 Tom Tromey <tom@tromey.com>
11984
11985 * run-on-main-thread.c: Update include.
11986 * unittests/main-thread-selftests.c: Update include.
11987 * tui/tui-win.c: Update include.
11988 * tui/tui-io.c: Update include.
11989 * tui/tui-interp.c: Update include.
11990 * tui/tui-hooks.c: Update include.
11991 * top.h: Update include.
11992 * top.c: Update include.
11993 * ser-base.c: Update include.
11994 * remote.c: Update include.
11995 * remote-notif.c: Update include.
11996 * remote-fileio.c: Update include.
11997 * record-full.c: Update include.
11998 * record-btrace.c: Update include.
11999 * python/python.c: Update include.
12000 * posix-hdep.c: Update include.
12001 * mingw-hdep.c: Update include.
12002 * mi/mi-main.c: Update include.
12003 * mi/mi-interp.c: Update include.
12004 * main.c: Update include.
12005 * linux-nat.c: Update include.
12006 * interps.c: Update include.
12007 * infrun.c: Update include.
12008 * inf-loop.c: Update include.
12009 * event-top.c: Update include.
12010 * event-loop.c: Move to ../gdbsupport/.
12011 * event-loop.h: Move to ../gdbsupport/.
12012 * async-event.h: Update include.
12013 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12014
12015 2020-04-13 Tom Tromey <tom@tromey.com>
12016
12017 * tui/tui-win.c: Include async-event.h.
12018 * remote.c: Include async-event.h.
12019 * remote-notif.c: Include async-event.h.
12020 * record-full.c: Include async-event.h.
12021 * record-btrace.c: Include async-event.h.
12022 * infrun.c: Include async-event.h.
12023 * event-top.c: Include async-event.h.
12024 * event-loop.h: Move some declarations to async-event.h.
12025 * event-loop.c: Don't include ser-event.h or top.h. Move some
12026 code to async-event.c.
12027 * async-event.h: New file.
12028 * async-event.c: New file.
12029 * Makefile.in (COMMON_SFILES): Add async-event.c.
12030 (HFILES_NO_SRCDIR): Add async-event.h.
12031
12032 2020-04-13 Tom Tromey <tom@tromey.com>
12033
12034 * utils.c (flush_streams): New function.
12035 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12036
12037 2020-04-13 Tom Tromey <tom@tromey.com>
12038
12039 * event-loop.c (handle_file_event): Use warning, not
12040 printf_unfiltered.
12041
12042 2020-04-13 Tom Tromey <tom@tromey.com>
12043
12044 * event-loop.c: Include <chrono>.
12045
12046 2020-04-13 Tom Tromey <tom@tromey.com>
12047
12048 * gdb_select.h: Move to ../gdbsupport/.
12049 * event-loop.c: Update include path.
12050 * top.c: Update include path.
12051 * ser-base.c: Update include path.
12052 * ui-file.c: Update include path.
12053 * ser-tcp.c: Update include path.
12054 * guile/scm-ports.c: Update include path.
12055 * posix-hdep.c: Update include path.
12056 * ser-unix.c: Update include path.
12057 * gdb_usleep.c: Update include path.
12058 * mingw-hdep.c: Update include path.
12059 * inflow.c: Update include path.
12060 * infrun.c: Update include path.
12061 * event-top.c: Update include path.
12062
12063 2020-04-13 Tom Tromey <tom@tromey.com>
12064
12065 * configure: Rebuild.
12066 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12067
12068 2020-04-13 Tom Tromey <tom@tromey.com>
12069
12070 * event-loop.h (start_event_loop): Don't declare.
12071 * event-loop.c (start_event_loop): Move...
12072 * main.c (start_event_loop): ...here. Now static.
12073
12074 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12075
12076 * MAINTAINERS: Update my email address.
12077
12078 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12079
12080 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12081 IP_ALL.
12082
12083 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12084
12085 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12086 (nbsd_nat_target::info_proc): Add do_cmdline.
12087
12088 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12089
12090 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12091 (nbsd_nat_target::info_proc): Add do_cwd.
12092
12093 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12094
12095 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12096
12097 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12098
12099 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12100 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12101 (nbsd_nat_target::info_proc): New functions.
12102 * nbsd-nat.c (kinfo_get_vmmap): New function.
12103 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12104 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12105 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12106 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12107 functions.
12108 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12109 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12110 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12111 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12112 (KINFO_VME_FLAG_GROWS_DOWN): New.
12113
12114 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12115
12116 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12117 bit shift.
12118
12119 2020-04-10 Tom Tromey <tromey@adacore.com>
12120
12121 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12122
12123 2020-04-10 Tom Tromey <tromey@adacore.com>
12124
12125 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12126 separate debug files.
12127
12128 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12129
12130 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12131 Move to...
12132 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12133 ... here.
12134 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12135 Check for STATUS_WX86_BREAKPOINT.
12136 (windows_nat_target::wait): Same.
12137
12138 2020-04-10 Tom de Vries <tdevries@suse.de>
12139
12140 PR cli/25808
12141 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12142
12143 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12144
12145 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12146 (Write After Approval): Remove Tom de Vries.
12147
12148 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12149
12150 revert partially:
12151 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12152
12153 * buildsym.c (record_line): Fix undefined behavior and preserve
12154 lines at eof.
12155
12156 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12157
12158 * auxv.h (svr4_auxv_parse): New.
12159 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12160 and generic_auxv_parse.
12161 (svr4_auxv_parse): Add.
12162 * obsd-tdep.c: Include "auxv.h".
12163 (obsd_auxv_parse): Remove.
12164 (obsd_init_abi): Remove comment.
12165 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12166 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12167 * nbsd-tdep.c: Include "auxv.h".
12168 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12169
12170 2020-04-08 Tom Tromey <tromey@adacore.com>
12171
12172 * nat/windows-nat.h (last_wait_event): Don't declare.
12173 (wait_for_debug_event): Update comment.
12174 * nat/windows-nat.c (last_wait_event): Now static.
12175
12176 2020-04-08 Tom Tromey <tromey@adacore.com>
12177
12178 * windows-nat.c (wait_for_debug_event): Move to
12179 nat/windows-nat.c.
12180 * nat/windows-nat.h (wait_for_debug_event): Declare.
12181 * nat/windows-nat.c (wait_for_debug_event): Move from
12182 windows-nat.c. No longer static.
12183
12184 2020-04-08 Tom Tromey <tromey@adacore.com>
12185
12186 * windows-nat.c (get_windows_debug_event): Use
12187 fetch_pending_stop.
12188 * nat/windows-nat.h (fetch_pending_stop): Declare.
12189 * nat/windows-nat.c (fetch_pending_stop): New function.
12190
12191 2020-04-08 Tom Tromey <tromey@adacore.com>
12192
12193 * windows-nat.c (windows_continue): Use matching_pending_stop and
12194 continue_last_debug_event.
12195 * nat/windows-nat.h (matching_pending_stop)
12196 (continue_last_debug_event): Declare.
12197 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12198 (matching_pending_stop, continue_last_debug_event): New
12199 functions.
12200
12201 2020-04-08 Tom Tromey <tromey@adacore.com>
12202
12203 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12204 (handle_exception_result): Move to nat/windows-nat.h.
12205 (DEBUG_EXCEPTION_SIMPLE): Remove.
12206 (windows_nat::handle_ms_vc_exception): New function.
12207 (handle_exception): Move to nat/windows-nat.c.
12208 (get_windows_debug_event): Update.
12209 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12210 nat/windows-nat.c.
12211 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12212 (handle_exception_result): Move from windows-nat.c.
12213 (handle_exception): Declare.
12214 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12215 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12216 windows-nat.c.
12217
12218 2020-04-08 Tom Tromey <tromey@adacore.com>
12219
12220 * windows-nat.c (exception_count, event_count): Remove.
12221 (handle_exception, get_windows_debug_event)
12222 (do_initial_windows_stuff): Update.
12223
12224 2020-04-08 Tom Tromey <tromey@adacore.com>
12225
12226 * windows-nat.c (windows_nat::handle_load_dll)
12227 (windows_nat::handle_unload_dll): Rename. No longer static.
12228 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12229 Declare.
12230
12231 2020-04-08 Tom Tromey <tromey@adacore.com>
12232
12233 * complaints.h (stop_whining): Declare at top-level.
12234 (complaint): Don't declare stop_whining.
12235
12236 2020-04-08 Tom Tromey <tromey@adacore.com>
12237
12238 * windows-nat.c (windows_nat::handle_output_debug_string):
12239 Rename. No longer static.
12240 * nat/windows-nat.h (handle_output_debug_string): Declare.
12241
12242 2020-04-08 Tom Tromey <tromey@adacore.com>
12243
12244 * windows-nat.c (current_process_handle, current_process_id)
12245 (main_thread_id, last_sig, current_event, last_wait_event)
12246 (current_windows_thread, desired_stop_thread_id, pending_stops)
12247 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12248 (display_selectors, fake_create_process)
12249 (get_windows_debug_event): Update.
12250 * nat/windows-nat.h (current_process_handle, current_process_id)
12251 (main_thread_id, last_sig, current_event, last_wait_event)
12252 (current_windows_thread, desired_stop_thread_id, pending_stops)
12253 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12254 * nat/windows-nat.c (current_process_handle, current_process_id)
12255 (main_thread_id, last_sig, current_event, last_wait_event)
12256 (current_windows_thread, desired_stop_thread_id, pending_stops)
12257 (siginfo_er): New globals. Move from windows-nat.c.
12258
12259 2020-04-08 Tom Tromey <tromey@adacore.com>
12260
12261 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12262 (handle_load_dll): Update.
12263 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12264
12265 2020-04-08 Tom Tromey <tromey@adacore.com>
12266
12267 * windows-nat.c (enum thread_disposition_type): Move to
12268 nat/windows-nat.h.
12269 (windows_nat::thread_rec): Rename from thread_rec. No longer
12270 static.
12271 (windows_add_thread, windows_nat_target::fetch_registers)
12272 (windows_nat_target::store_registers, handle_exception)
12273 (windows_nat_target::resume, get_windows_debug_event)
12274 (windows_nat_target::get_tib_address)
12275 (windows_nat_target::thread_name)
12276 (windows_nat_target::thread_alive): Update.
12277 * nat/windows-nat.h (enum thread_disposition_type): Move from
12278 windows-nat.c.
12279 (thread_rec): Declare.
12280
12281 2020-04-08 Tom Tromey <tromey@adacore.com>
12282
12283 * windows-nat.c: Add "using namespace".
12284 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12285 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12286
12287 2020-04-08 Tom Tromey <tromey@adacore.com>
12288
12289 * nat/windows-nat.h (struct windows_thread_info): Declare
12290 destructor.
12291 * nat/windows-nat.c (~windows_thread_info): New.
12292
12293 2020-04-08 Tom Tromey <tromey@adacore.com>
12294
12295 PR gdb/22992
12296 * windows-nat.c (current_event): Update comment.
12297 (last_wait_event, desired_stop_thread_id): New globals.
12298 (struct pending_stop): New.
12299 (pending_stops): New global.
12300 (windows_nat_target) <stopped_by_sw_breakpoint>
12301 <supports_stopped_by_sw_breakpoint>: New methods.
12302 (windows_fetch_one_register): Add assertions. Adjust PC.
12303 (windows_continue): Handle pending stops. Suspend other threads
12304 when stepping. Use last_wait_event
12305 (wait_for_debug_event): New function.
12306 (get_windows_debug_event): Use wait_for_debug_event. Handle
12307 pending stops. Queue spurious stops.
12308 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12309 (windows_nat_target::kill): Use wait_for_debug_event.
12310 * nat/windows-nat.h (struct windows_thread_info)
12311 <stopped_at_software_breakpoint>: New field.
12312 * nat/windows-nat.c (windows_thread_info::resume): Clear
12313 stopped_at_software_breakpoint.
12314
12315 2020-04-08 Tom Tromey <tromey@adacore.com>
12316
12317 * windows-nat.c (enum thread_disposition_type): New.
12318 (thread_rec): Replace "get_context" parameter with "disposition";
12319 change type.
12320 (windows_add_thread, windows_nat_target::fetch_registers)
12321 (windows_nat_target::store_registers, handle_exception)
12322 (windows_nat_target::resume, get_windows_debug_event)
12323 (windows_nat_target::get_tib_address)
12324 (windows_nat_target::thread_name)
12325 (windows_nat_target::thread_alive): Update.
12326
12327 2020-04-08 Tom Tromey <tromey@adacore.com>
12328
12329 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12330 (windows_continue): Use windows_continue::resume.
12331 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12332 resume>: Declare new methods.
12333 * nat/windows-nat.c: New file.
12334 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12335
12336 2020-04-08 Tom Tromey <tromey@adacore.com>
12337
12338 * windows-nat.c (windows_add_thread, windows_delete_thread)
12339 (windows_nat_target::fetch_registers)
12340 (windows_nat_target::store_registers, fake_create_process)
12341 (windows_nat_target::resume, windows_nat_target::resume)
12342 (get_windows_debug_event, windows_nat_target::wait)
12343 (windows_nat_target::pid_to_str)
12344 (windows_nat_target::get_tib_address)
12345 (windows_nat_target::get_ada_task_ptid)
12346 (windows_nat_target::thread_name)
12347 (windows_nat_target::thread_alive): Use lwp, not tid.
12348
12349 2020-04-08 Tom Tromey <tromey@adacore.com>
12350
12351 * windows-nat.c (handle_exception)
12352 (windows_nat_target::thread_name): Update.
12353 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12354 <name>: Now unique_xmalloc_ptr.
12355
12356 2020-04-08 Tom Tromey <tromey@adacore.com>
12357
12358 * windows-nat.c (thread_rec)
12359 (windows_nat_target::fetch_registers): Update.
12360 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12361 Update comment.
12362 <debug_registers_changed, reload_context>: Now bool.
12363
12364 2020-04-08 Tom Tromey <tromey@adacore.com>
12365
12366 * windows-nat.c (windows_add_thread): Use new.
12367 (windows_init_thread_list, windows_delete_thread): Use delete.
12368 (get_windows_debug_event): Update.
12369 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12370 destructor, and initializers.
12371
12372 2020-04-08 Tom Tromey <tromey@adacore.com>
12373
12374 * windows-nat.c (struct windows_thread_info): Remove.
12375 * nat/windows-nat.h: New file.
12376
12377 2020-04-08 Tom Tromey <tromey@adacore.com>
12378
12379 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12380 (thread_rec, windows_add_thread, windows_delete_thread)
12381 (windows_continue): Update.
12382
12383 2020-04-08 Tom Tromey <tromey@adacore.com>
12384
12385 * windows-nat.c (struct windows_thread_info): Remove typedef.
12386 (thread_head): Remove.
12387 (thread_list): New global.
12388 (thread_rec, windows_add_thread, windows_init_thread_list)
12389 (windows_delete_thread, windows_continue): Update.
12390
12391 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12392
12393 * windows-tdep.h (windows_init_abi): Add comment.
12394 (cygwin_init_abi): New declaration.
12395 * windows-tdep.c: Split signal enumeration in two, one for
12396 Windows and one for Cygwin.
12397 (windows_gdb_signal_to_target): Only deal with signal of the
12398 Windows OS ABI.
12399 (cygwin_gdb_signal_to_target): New function.
12400 (windows_init_abi): Rename to windows_init_abi_common, don't set
12401 gdb_signal_to_target gdbarch method. Add new new function with
12402 this name.
12403 (cygwin_init_abi): New function.
12404 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12405 comment. Don't call windows_init_abi.
12406 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12407 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12408 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12409 i386_windows_init_abi_common, don't call windows_init_abi. Add
12410 a new function of this name.
12411 (i386_cygwin_init_abi): New function.
12412 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12413 OS ABI Cygwin.
12414
12415 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12416
12417 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12418 parameter.c.
12419 (dwarf2_read_gdb_index): Update.
12420
12421 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12422
12423 * nbsd-tdep.c: Include "objfiles.h".
12424 (nbsd_skip_solib_resolver): New.
12425 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12426
12427 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12428
12429 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12430 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12431 with DW_LLE_base_addressx are being emitted in DWARFv5.
12432 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12433 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12434 unsigned integer.
12435
12436 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12437
12438 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12439 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12440 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12441 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12442 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12443 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12444 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12445
12446
12447 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12448
12449 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12450 (read_loclist_index): New function definition.
12451 (lookup_loclist_base): New function definition.
12452 (read_loclist_header): New function definition.
12453 (dwarf2_cu): Add loclist_base and loclist_header field.
12454 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12455 (read_full_die_1): Read the value of DW_AT_loclists_base.
12456 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12457 (read_attribute_value): Handle DW_FORM_loclistx.
12458 (skip_one_die): Handle DW_FORM_loclistx.
12459 (loclist_header): New structure declaration.
12460 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12461
12462 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12463
12464 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12465 constructor. Remove `addr` parameter from other constructor and
12466 add `per_cu` parameter.
12467 * dwarf2/read.c (create_partial_symtab): Update.
12468
12469 2020-04-07 Tom de Vries <tdevries@suse.de>
12470
12471 PR symtab/25796
12472 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12473 (partial_die_info::fixup): Inherit has_const_value.
12474
12475 2020-04-07 Tom de Vries <tdevries@suse.de>
12476
12477 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12478 symbols without address.
12479
12480 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12481
12482 * nbsd-nat.h (struct thread_info): Add forward declaration.
12483 (nbsd_nat_target::thread_alive): Add.
12484 (nbsd_nat_target::thread_name): Likewise.
12485 (nbsd_nat_target::update_thread_list): Likewise.
12486 (update_thread_list::post_attach): Likewise.
12487 (post_attach::pid_to_str): Likewise.
12488 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12489 (nbsd_thread_lister): Add.
12490 (nbsd_nat_target::thread_alive): Likewise.
12491 (nbsd_nat_target::thread_name): Likewise.
12492 (nbsd_add_threads): Likewise.
12493 (update_thread_list::post_attach): Likewise.
12494 (nbsd_nat_target::update_thread_list): Likewise.
12495 (post_attach::pid_to_str): Likewise.
12496
12497 2020-04-06 Tom Tromey <tromey@adacore.com>
12498
12499 * ada-valprint.c (print_variant_part): Extract the variant field.
12500 (print_field_values): Use the field as the outer value when
12501 recursing.
12502
12503 2020-04-06 Tom Tromey <tromey@adacore.com>
12504
12505 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12506 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12507 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12508 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12509 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12510
12511 2020-04-06 Tom Tromey <tromey@adacore.com>
12512
12513 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12514 TYPE_CODE_ERROR.
12515
12516 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12517
12518 * nbsd-tdep.c: Include "gdbarch.h".
12519 Define enum with NetBSD signal numbers.
12520 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12521 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12522 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12523 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12524 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12525 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12526 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12527 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12528 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12529 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12530 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12531 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12532
12533 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12534
12535 PR gdb/25325
12536 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12537
12538 2020-04-03 Tom Tromey <tromey@adacore.com>
12539
12540 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12541 Read constant block.
12542
12543 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12544
12545 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12546 (gdb_bfd_get_full_section_contents): New declaration.
12547 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12548 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12549 gdb_bfd_get_full_section_contents.
12550
12551 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12552
12553 * exec.c (build_section_table): Replace internal_error with
12554 gdb_assert.
12555 (section_table_xfer_memory_partial): Likewise.
12556 * mdebugread.c (parse_partial_symbols): Likewise.
12557 * psymtab.c (lookup_partial_symbol): Likewise.
12558 * utils.c (wrap_here): Likewise.
12559
12560 2020-04-02 Tom Tromey <tromey@adacore.com>
12561
12562 * f-lang.c (build_fortran_types): Use arch_type to initialize
12563 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12564
12565 2020-04-02 Tom Tromey <tromey@adacore.com>
12566
12567 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12568 of attributes.
12569
12570 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12571 Bernd Edlinger <bernd.edlinger@hotmail.de>
12572 Tom Tromey <tromey@adacore.com>
12573
12574 * buildsym.c (buildsym_compunit::record_line): Remove
12575 deduplication code.
12576
12577 2020-04-02 Tom de Vries <tdevries@suse.de>
12578
12579 PR ada/24671
12580 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12581
12582 2020-04-02 Tom de Vries <tdevries@suse.de>
12583
12584 * dwarf2/read.c (dwarf2_gdb_index_functions,
12585 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12586 NULL.
12587 * psymtab.c (psym_lookup_global_symbol_language): New function.
12588 (psym_functions): Init psym_lookup_global_symbol_language with
12589 psym_lookup_global_symbol_language.
12590 * symfile-debug.c (debug_sym_quick_functions): Init
12591 lookup_global_symbol_language with NULL.
12592 * symfile.c (set_initial_language): Remove fixme comment.
12593 * symfile.h (struct quick_symbol_functions): Add
12594 lookup_global_symbol_language.
12595 * symtab.c (find_quick_global_symbol_language): New function.
12596 (find_main_name): Use find_quick_global_symbol_language.
12597
12598 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12599
12600 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12601
12602 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12603
12604 * buildsym.c (record_line): Fix undefined behavior and preserve
12605 lines at eof.
12606
12607 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12608
12609 * buildsym.c (record_line): Fix the resizing condition.
12610
12611 2020-04-01 Tom Tromey <tom@tromey.com>
12612
12613 * value.h (value_literal_complex): Add comment.
12614 * valops.c (value_literal_complex): Refer to value.h.
12615
12616 2020-04-01 Tom Tromey <tom@tromey.com>
12617
12618 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12619 (scalar_type): New rule, from typebase.
12620 (typebase): Use scalar_type. Recognize complex types.
12621 (field_name): Handle FLOAT_KEYWORD.
12622 (ident_tokens): Add _Complex and __complex__.
12623
12624 2020-04-01 Tom Tromey <tom@tromey.com>
12625
12626 PR exp/25299:
12627 * valarith.c (promotion_type, complex_binop): New functions.
12628 (scalar_binop): Handle complex numbers. Use promotion_type.
12629 (value_pos, value_neg, value_complement): Handle complex numbers.
12630
12631 2020-04-01 Tom Tromey <tom@tromey.com>
12632
12633 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12634 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12635 (parse_number): Handle complex numbers.
12636
12637 2020-04-01 Tom Tromey <tom@tromey.com>
12638
12639 * c-valprint.c (c_decorations): Change complex suffix to "i".
12640
12641 2020-04-01 Tom Tromey <tom@tromey.com>
12642
12643 * valprint.c (generic_value_print_complex): Use accessors.
12644 * value.h (value_real_part, value_imaginary_part): Declare.
12645 * valops.c (value_real_part, value_imaginary_part): New
12646 functions.
12647 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12648
12649 2020-04-01 Tom Tromey <tom@tromey.com>
12650
12651 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12652 (read_range_type): Update.
12653 * mdebugread.c (basic_type): Update.
12654 * go-lang.c (build_go_types): Use init_complex_type.
12655 * gdbtypes.h (struct main_type) <complex_type>: New member.
12656 (init_complex_type): Update.
12657 (arch_complex_type): Don't declare.
12658 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12659 Make name if none given. Use alloc_type_copy. Look for cached
12660 complex type.
12661 (arch_complex_type): Remove.
12662 (gdbtypes_post_init): Use init_complex_type.
12663 * f-lang.c (build_fortran_types): Use init_complex_type.
12664 * dwarf2/read.c (read_base_type): Update.
12665 * d-lang.c (build_d_types): Use init_complex_type.
12666 * ctfread.c (read_base_type): Update.
12667
12668 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12669
12670 * infrun.c (stop_all_threads): Update assertion, plus when
12671 stopping threads, take into account that we might be trying
12672 to stop an all-stop target.
12673 (stop_waiting): Call 'stop_all_threads' if there exists a
12674 non-stop target.
12675
12676 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12677
12678 * target.h (exists_non_stop_target): New function declaration.
12679 * target.c (exists_non_stop_target): New function.
12680
12681 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12682
12683 PR gdb/24789
12684 * eval.c (is_integral_or_integral_reference): New function.
12685 (evaluate_subexp_standard): Allow integer references in
12686 pointer arithmetic.
12687
12688 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12689
12690 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12691 check for no ptid in the stop reply when the target is non-stop.
12692
12693 2020-04-01 Tom Tromey <tromey@adacore.com>
12694
12695 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12696 "name" parameter to rvalue reference. Initialize m_name_holder.
12697 <lookup_name_info>: New overloads.
12698 <name>: Return gdb::string_view.
12699 <c_str>: New method.
12700 <make_ignore_params>: Update.
12701 <search_name_hash>: Update.
12702 <language_lookup_name>: Return const char *.
12703 <m_name>: Change type.
12704 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12705 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12706 (lookup_name_info::match_any): Update.
12707 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12708 Update.
12709 * minsyms.c (linkage_name_str): Update.
12710 * language.c (default_symbol_name_matcher): Update.
12711 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12712 Update.
12713 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12714 (ada_lookup_name_info::ada_lookup_name_info): Update.
12715 (literal_symbol_name_matcher): Update.
12716
12717 2020-04-01 Tom Tromey <tromey@adacore.com>
12718
12719 * psymtab.c (psymtab_search_name): Remove function.
12720 (psym_lookup_symbol): Create search name and lookup name here.
12721 (lookup_partial_symbol): Remove "name" parameter; add
12722 lookup_name.
12723 (psym_expand_symtabs_for_function): Update.
12724
12725 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12726
12727 PR tui/25597:
12728 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12729
12730 2020-03-31 Tom Tromey <tromey@adacore.com>
12731
12732 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12733 memcpy.
12734
12735 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12736
12737 * features/riscv/32bit-csr.xml: Regenerated.
12738 * features/riscv/64bit-csr.xml: Regenerated.
12739
12740 2020-03-30 Tom Tromey <tromey@adacore.com>
12741
12742 * ada-valprint.c (print_variant_part): Update.
12743 * ada-lang.h (ada_which_variant_applies): Update.
12744 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12745 outer_valaddr parameters; replace with "outer" value parameter.
12746 (to_fixed_variant_branch_type): Update.
12747
12748 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12749
12750 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12751 <list>. Remove inclusion of observable.h.
12752 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12753 (struct arch_lwp_info): New struct.
12754 (class ppc_linux_dreg_interface): New class.
12755 (struct ppc_linux_process_info): New struct.
12756 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12757 <low_new_clone, low_forget_process, low_prepare_to_resume>
12758 <copy_thread_dreg_state, mark_thread_stale>
12759 <mark_debug_registers_changed, register_hw_breakpoint>
12760 <clear_hw_breakpoint, register_wp, clear_wp>
12761 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12762 <num_memory_accesses, get_trigger_type>
12763 <create_watchpoint_request, hwdebug_point_cmp>
12764 <init_arch_lwp_info, get_arch_lwp_info>
12765 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12766 methods.
12767 <struct ptid_hash>: New inner struct.
12768 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12769 members.
12770 (saved_dabr_value, hwdebug_info, max_slots_number)
12771 (struct hw_break_tuple, struct thread_points, ppc_threads)
12772 (have_ptrace_hwdebug_interface)
12773 (hwdebug_find_thread_points_by_tid)
12774 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12775 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12776 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12777 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12778 use m_dreg_interface.
12779 (hwdebug_point_cmp): Change to...
12780 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12781 reference arguments instead of pointers.
12782 (ppc_linux_nat_target::ranged_break_num_registers): Use
12783 m_dreg_interface.
12784 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12785 m_dreg_interface. Call register_hw_breakpoint.
12786 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12787 m_dreg_interface. Call clear_hw_breakpoint.
12788 (get_trigger_type): Change to...
12789 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12790 comment.
12791 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12792 use m_dreg_interface. Call register_hw_breakpoint.
12793 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12794 use m_dreg_interface. Call clear_hw_breakpoint.
12795 (can_use_watchpoint_cond_accel): Change to...
12796 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12797 method. Update comment, use m_dreg_interface and
12798 m_process_info.
12799 (calculate_dvc): Change to...
12800 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12801 m_dreg_interface.
12802 (num_memory_accesses): Change to...
12803 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12804 (check_condition): Change to...
12805 (ppc_linux_nat_target::check_condition): ...this method.
12806 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12807 comment, use m_dreg_interface.
12808 (create_watchpoint_request): Change to...
12809 (ppc_linux_nat_target::create_watchpoint_request): ...this
12810 method. Use m_dreg_interface.
12811 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12812 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12813 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12814 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12815 (ppc_linux_nat_target::low_forget_process)
12816 (ppc_linux_nat_target::low_new_fork)
12817 (ppc_linux_nat_target::low_new_clone)
12818 (ppc_linux_nat_target::low_delete_thread)
12819 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12820 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12821 only call mark_thread_stale.
12822 (ppc_linux_thread_exit): Remove.
12823 (ppc_linux_nat_target::stopped_data_address): Change to...
12824 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12825 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12826 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12827 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12828 comment. Call low_stopped_data_address.
12829 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12830 m_dreg_interface.
12831 (ppc_linux_nat_target::masked_watch_num_registers): Use
12832 m_dreg_interface.
12833 (ppc_linux_nat_target::copy_thread_dreg_state)
12834 (ppc_linux_nat_target::mark_thread_stale)
12835 (ppc_linux_nat_target::mark_debug_registers_changed)
12836 (ppc_linux_nat_target::register_hw_breakpoint)
12837 (ppc_linux_nat_target::clear_hw_breakpoint)
12838 (ppc_linux_nat_target::register_wp)
12839 (ppc_linux_nat_target::clear_wp)
12840 (ppc_linux_nat_target::init_arch_lwp_info)
12841 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12842 (_initialize_ppc_linux_nat): Remove observer callback.
12843
12844 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12845
12846 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12847 (ppc_linux_nat_target::auxv_parse)
12848 (ppc_linux_nat_target::read_description)
12849 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12850 Move up.
12851
12852 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12853
12854 * linux-nat.h (low_new_clone): New method.
12855 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12856
12857 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12858
12859 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12860 (dbx_expand_psymtab): ... this.
12861 (start_psymtab): Update.
12862 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12863 (mdebug_expand_psymtab): ... this.
12864 (parse_partial_symbols): Update.
12865 (new_psymtab): Update.
12866 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12867 (xcoff_expand_psymtab): ... this.
12868 (xcoff_start_psymtab): Update.
12869
12870 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12871
12872 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12873 <expand_dependencies>: ... this.
12874 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12875 (partial_symtab::expand_dependencies): ... this.
12876 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12877 Update.
12878 (dwarf2_psymtab::expand_psymtab): Update.
12879 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12880 * mdebugread.c (psymtab_to_symtab_1): Update.
12881 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12882
12883 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12884
12885 * psympriv.h (discard_psymtab): Remove.
12886 * dbxread.c (dbx_end_psymtab): Update.
12887 * xcoffread.c (xcoff_end_psymtab): Update.
12888
12889 2020-03-28 Tom Tromey <tom@tromey.com>
12890
12891 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12892 comment.
12893
12894 2020-03-28 Tom Tromey <tom@tromey.com>
12895
12896 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12897
12898 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12899
12900 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12901
12902 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12903
12904 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12905
12906 2020-03-26 Tom Tromey <tom@tromey.com>
12907
12908 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12909 (mark_common_block_symbol_computed, read_tag_string_type)
12910 (attr_to_dynamic_prop, read_subrange_type): Update.
12911 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12912 to be methods on struct attribute.
12913 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12914 (read_call_site_scope, partial_die_info::read)
12915 (partial_die_info::read, lookup_die_type, follow_die_ref):
12916 Update.
12917 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12918 from dwarf2_get_ref_die_offset.
12919 (attribute::constant_value): New method, from
12920 dwarf2_get_attr_constant_value.
12921 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12922 Declare method.
12923 <constant_value>: New method.
12924
12925 2020-03-26 Tom Tromey <tom@tromey.com>
12926
12927 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12928 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12929 (dwarf_type_encoding_name): Move to stringify.c.
12930 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12931 * dwarf2/stringify.c: New file.
12932 * dwarf2/stringify.h: New file.
12933
12934 2020-03-26 Tom Tromey <tom@tromey.com>
12935
12936 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12937 Rewrite.
12938
12939 2020-03-26 Tom Tromey <tom@tromey.com>
12940
12941 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12942 methods.
12943 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12944 (lookup_ranges_base): Likewise.
12945 (read_cutu_die_from_dwo, read_full_die_1): Update.
12946
12947 2020-03-26 Tom Tromey <tom@tromey.com>
12948
12949 * dwarf2/read.c (read_import_statement, read_file_scope)
12950 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12951 (read_lexical_block_scope, read_call_site_scope)
12952 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12953 (handle_struct_member_die, process_structure_scope)
12954 (update_enumeration_type_from_children)
12955 (process_enumeration_scope, read_array_type, read_common_block)
12956 (read_namespace, read_module, read_subroutine_type): Update.
12957 (sibling_die): Remove.
12958
12959 2020-03-26 Tom Tromey <tom@tromey.com>
12960
12961 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12962 (build_type_psymtabs_reader, read_structure_type)
12963 (read_enumeration_type, read_full_die_1): Update.
12964 (dwarf2_attr_no_follow): Move to die.h.
12965 * dwarf2/die.h (struct die_info) <attr>: New method.
12966
12967 2020-03-26 Tom Tromey <tom@tromey.com>
12968
12969 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12970 <base_address>: Now an optional.
12971 (dwarf2_find_base_address, dwarf2_rnglists_process)
12972 (dwarf2_ranges_process, fill_in_loclist_baton)
12973 (dwarf2_symbol_mark_computed): Update.
12974
12975 2020-03-26 Tom Tromey <tom@tromey.com>
12976
12977 * dwarf2/read.c (struct die_info): Move to die.h.
12978 * dwarf2/die.h: New file.
12979
12980 2020-03-26 Tom Tromey <tom@tromey.com>
12981
12982 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12983 * dwarf2/read.c
12984 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12985 Move to line-header.c.
12986 (read_checked_initial_length_and_offset, read_formatted_entries):
12987 Likewise.
12988 (dwarf_decode_line_header): Split into two.
12989 * dwarf2/line-header.c
12990 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12991 Move from read.c.
12992 (read_checked_initial_length_and_offset, read_formatted_entries):
12993 Likewise.
12994 (dwarf_decode_line_header): New function, split from read.c.
12995
12996 2020-03-26 Tom Tromey <tom@tromey.com>
12997
12998 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12999 Declare method.
13000 * dwarf2/read.c (read_attribute_value): Update.
13001 (dwarf2_per_objfile::read_line_string): Rename from
13002 read_indirect_line_string.
13003 (read_formatted_entries): Update.
13004
13005 2020-03-26 Tom Tromey <tom@tromey.com>
13006
13007 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13008 variable.
13009
13010 2020-03-26 Tom Tromey <tom@tromey.com>
13011
13012 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13013 const.
13014 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13015 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13016 parameter const.
13017
13018 2020-03-26 Tom Tromey <tom@tromey.com>
13019
13020 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13021 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13022 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13023 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13024
13025 2020-03-26 Tom Tromey <tom@tromey.com>
13026
13027 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13028 file_names_size, file_full_name, file_file_name>: Use const.
13029 <file_name_at, file_names>: Add const overload.
13030 * dwarf2/line-header.c (line_header::file_file_name)
13031 (line_header::file_full_name): Update.
13032
13033 2020-03-26 Tom Tromey <tom@tromey.com>
13034
13035 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13036 (macro_start_file, consume_improper_spaces)
13037 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13038 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13039 (dwarf_decode_macros): Move to macro.c.
13040 * dwarf2/macro.c: New file.
13041 * dwarf2/macro.h: New file.
13042 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13043
13044 2020-03-26 Tom Tromey <tom@tromey.com>
13045
13046 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13047 method.
13048 * dwarf2/section.c: New method. From
13049 read_indirect_string_at_offset_from.
13050 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13051 (read_indirect_string_at_offset_from): Move to section.c.
13052 (read_indirect_string_at_offset): Rewrite.
13053 (read_indirect_line_string_at_offset): Remove.
13054 (read_indirect_string, read_indirect_line_string)
13055 (dwarf_decode_macro_bytes): Update.
13056
13057 2020-03-26 Tom Tromey <tom@tromey.com>
13058
13059 * dwarf2/section.h (struct dwarf2_section_info)
13060 <overload_complaint>: Declare.
13061 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13062 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13063 Rename from dwarf2_section_buffer_overflow_complaint.
13064 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13065 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13066
13067 2020-03-26 Tom Tromey <tom@tromey.com>
13068
13069 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13070 Declare.
13071 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13072 Move from read.c.
13073 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13074 to section.c.
13075
13076 2020-03-26 Tom Tromey <tom@tromey.com>
13077
13078 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13079
13080 2020-03-26 Tom Tromey <tom@tromey.com>
13081
13082 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13083 "builder".
13084 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13085 parameter.
13086 (dwarf_decode_macros): Update.
13087
13088 2020-03-26 Tom Tromey <tom@tromey.com>
13089
13090 * dwarf2/read.c (read_attribute_value): Update.
13091 (read_indirect_string_from_dwz): Move to dwz.c; change into
13092 method.
13093 (dwarf_decode_macro_bytes): Update.
13094 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13095 * dwarf2/dwz.c: New file.
13096 * Makefile.in (COMMON_SFILES): Add dwz.c.
13097
13098 2020-03-26 Tom Tromey <tom@tromey.com>
13099
13100 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13101 * dwarf2/read.c: Add include.
13102 * dwarf2/index-write.c: Add include.
13103 * dwarf2/index-cache.c: Add include.
13104 * dwarf2/dwz.h: New file.
13105
13106 2020-03-25 Tom Tromey <tom@tromey.com>
13107
13108 * compile/compile-object-load.c (get_out_value_type): Mention
13109 correct symbol name in error message.
13110
13111 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13112
13113 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13114
13115 2020-03-25 Tom de Vries <tdevries@suse.de>
13116
13117 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13118 * symmisc.c (dump_symtab_1): Print user and includes fields.
13119 (maintenance_info_symtabs): Same.
13120
13121 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13122
13123 PR gdb/25534
13124 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13125 (riscv_regcache_cooked_write): New function.
13126 (riscv_push_dummy_call): Use new function.
13127 (riscv_return_value): Likewise.
13128
13129 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13130
13131 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13132 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13133 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13134 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13135 * infrun.c (follow_fork): Likewise.
13136 (follow_fork_inferior): Likewise.
13137 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13138 * linux-nat.h (class linux_nat_target): Likewise.
13139 * remote.c (class remote_target) <follow_fork>: Likewise.
13140 (remote_target::follow_fork): Likewise.
13141 * target-delegates.c: Re-generate.
13142 * target.c (default_follow_fork): Likewise.
13143 (target_follow_fork): Likewise.
13144 * target.h (struct target_ops) <follow_fork>: Likewise.
13145 (target_follow_fork): Likewise.
13146
13147 2020-03-24 Tom de Vries <tdevries@suse.de>
13148
13149 * psymtab.c (maintenance_info_psymtabs): Print user field.
13150
13151 2020-03-20 Tom Tromey <tromey@adacore.com>
13152
13153 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13154 const.
13155 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13156 const.
13157
13158 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13159
13160 * ptrace.m4: Don't check for ptrace declaration.
13161 * config.in: Re-generate.
13162 * configure: Re-generate.
13163 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13164 not defined.
13165
13166 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13167
13168 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13169 `PTRACE_TYPE_RET'.
13170 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13171 * sparc-nat.c (gdb_ptrace): Likewise.
13172 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13173
13174 2020-03-20 Tom Tromey <tromey@adacore.com>
13175
13176 * c-exp.y (lex_one_token): Fix assert.
13177
13178 2020-03-20 Tom Tromey <tromey@adacore.com>
13179
13180 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13181 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13182 strncpy call.
13183
13184 2020-03-20 Tom Tromey <tromey@adacore.com>
13185
13186 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13187
13188 2020-03-20 Tom Tromey <tromey@adacore.com>
13189
13190 * ada-valprint.c (print_variant_part): Remove parameters; switch
13191 to value-based API.
13192 (print_field_values): Likewise.
13193 (ada_val_print_struct_union): Likewise.
13194 (ada_value_print_1): Update.
13195
13196 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13197
13198 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13199 nbsd_nat_target instead of inf_ptrace_target.
13200 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13201 nbsd_nat_target.
13202
13203 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13204
13205 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13206 it to the ptrace call.
13207 * (store_registers): Likewise.
13208
13209 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13210
13211 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13212 it to the ptrace call.
13213 * (store_registers): Likewise.
13214
13215 2020-03-19 Luis Machado <luis.machado@linaro.org>
13216
13217 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13218 valid, fetch vg value from ptrace.
13219
13220 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13221 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13222 * inf-ptrace.c: Likewise.
13223 * (gdb_ptrace): Add.
13224 * (inf_ptrace_target::resume): Update.
13225 * (inf_ptrace_target::xfer_partial): Likewise.
13226 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13227 * (inf_ptrace_peek_poke): Update.
13228
13229 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13230
13231 * x86-bsd-nat.c (gdb_ptrace): New.
13232 * (x86bsd_dr_set): Add new argument `ptid'.
13233 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13234 x86bsd_dr_set_addr): Update.
13235
13236 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13237
13238 * remote.c (remote_target::process_stop_reply): Handle events for
13239 all threads differently.
13240
13241 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13242
13243 * completer.c (completion_tracker::remove_completion): Define new
13244 function.
13245 * completer.h (completion_tracker::remove_completion): Declare new
13246 function.
13247 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13248 when adding a C++ function symbol.
13249
13250 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13251
13252 * completer.c (completion_tracker::completion_hash_entry): Define
13253 new class.
13254 (advance_to_filename_complete_word_point): Call
13255 recompute_lowest_common_denominator.
13256 (completion_tracker::completion_tracker): Call discard_completions
13257 to setup the hash table.
13258 (completion_tracker::discard_completions): Allow for being called
13259 from the constructor, pass new equal function, and element deleter
13260 when constructing the hash table. Initialise new class member
13261 variables.
13262 (completion_tracker::maybe_add_completion): Remove use of
13263 m_entries_vec, and store more information into m_entries_hash.
13264 (completion_tracker::recompute_lcd_visitor): New function, most
13265 content taken from...
13266 (completion_tracker::recompute_lowest_common_denominator):
13267 ...here, this now just visits each item in the hash calling the
13268 above visitor.
13269 (completion_tracker::build_completion_result): Remove use of
13270 m_entries_vec, call recompute_lowest_common_denominator.
13271 * completer.h (completion_tracker::have_completions): Remove use
13272 of m_entries_vec.
13273 (completion_tracker::completion_hash_entry): Declare new class.
13274 (completion_tracker::recompute_lowest_common_denominator): Change
13275 function signature.
13276 (completion_tracker::recompute_lcd_visitor): Declare new function.
13277 (completion_tracker::m_entries_vec): Delete.
13278 (completion_tracker::m_entries_hash): Initialize to NULL.
13279 (completion_tracker::m_lowest_common_denominator_valid): New
13280 member variable.
13281 (completion_tracker::m_lowest_common_denominator_max_length): New
13282 member variable.
13283
13284 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13285
13286 * regformats/regdef.h: Put reg in gdb namespace.
13287
13288 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13289
13290 * i386-bsd-nat.c (gdb_ptrace): New.
13291 * (i386bsd_fetch_inferior_registers,
13292 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13293 * (i386bsd_fetch_inferior_registers,
13294 i386bsd_store_inferior_registers) Use gdb_ptrace.
13295
13296 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13297
13298 * amd64-bsd-nat.c (gdb_ptrace): New.
13299 * (amd64bsd_fetch_inferior_registers,
13300 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13301 * (amd64bsd_fetch_inferior_registers,
13302 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13303
13304 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13305
13306 * user-regs.c (user_reg::read): Rename to...
13307 (user_reg::xread): ...this.
13308 * (append_user_reg): Rename argument `read' to `xread'.
13309 * (user_reg_add_builtin): Likewise.
13310 * (user_reg_add): Likewise.
13311 * (value_of_user_reg): Likewise.
13312
13313 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13314
13315 * sparc-nat.c (gdb_ptrace): New.
13316 * sparc-nat.c (sparc_fetch_inferior_registers)
13317 (sparc_store_inferior_registers) Remove obsolete comment.
13318 * sparc-nat.c (sparc_fetch_inferior_registers)
13319 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13320 * sparc-nat.c (sparc_fetch_inferior_registers)
13321 (sparc_store_inferior_registers) Use gdb_ptrace.
13322
13323 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13324
13325 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13326 it to the ptrace call.
13327 * sh-nbsd-nat.c (store_registers): Likewise.
13328
13329 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13330
13331 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13332 nbsd_nat_target instead of inf_ptrace_target.
13333 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13334 nbsd_nat_target.
13335
13336 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13337
13338 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13339
13340 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13341
13342 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13343 <sys/sysctl.h>.
13344 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13345
13346 2020-03-17 Tom de Vries <tdevries@suse.de>
13347
13348 PR gdb/23710
13349 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13350 fields.
13351 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13352 fields.
13353 (process_imported_unit_die): Skip import of c++ CUs.
13354
13355 2020-03-16 Tom Tromey <tom@tromey.com>
13356
13357 * p-valprint.c (pascal_object_print_value): Initialize
13358 base_value.
13359
13360 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13361 Shahab Vahedi <shahab@synopsys.com>
13362
13363 * Makefile.in: Add arch/arc.o
13364 * configure.tgt: Likewise.
13365 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13366 (_initialize_arc_tdep): Don't initialize old target descriptions.
13367 (arc_read_description): New function to cache target descriptions.
13368 * arc-tdep.h (arc_read_description): Add proto type.
13369 * arch/arc.c: New file.
13370 * arch/arc.h: Likewise.
13371 * features/Makefile: Replace old target descriptions with new.
13372 * features/arc-arcompact.c: Remove.
13373 * features/arc-arcompact.xml: Likewise.
13374 * features/arc-v2.c: Likewise
13375 * features/arc-v2.xml: Likewise
13376 * features/arc/aux-arcompact.xml: New file.
13377 * features/arc/aux-v2.xml: Likewise.
13378 * features/arc/core-arcompact.xml: Likewise.
13379 * features/arc/core-v2.xml: Likewise.
13380 * features/arc/aux-arcompact.c: Generate.
13381 * features/arc/aux-v2.c: Likewise.
13382 * features/arc/core-arcompact.c: Likewise.
13383 * features/arc/core-v2.c: Likewise.
13384 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13385
13386 2020-03-16 Tom Tromey <tromey@adacore.com>
13387
13388 PR gdb/25663:
13389 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13390 putting value into bcache.
13391
13392 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13393
13394 PR gdb/21500
13395 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13396 to...
13397 (amd64_windows_init_abi_common): ... this. Don't set size of
13398 long type.
13399 (amd64_windows_init_abi): New function.
13400 (amd64_cygwin_init_abi): New function.
13401 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13402 the Cygwin OS ABI.
13403 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13404 comment.
13405
13406 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13407
13408 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13409 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13410 (pe_import_directory_entry): New struct type.
13411 (is_linked_with_cygwin_dll): New function.
13412 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13413 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13414 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13415
13416 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13417
13418 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13419 i386_cygwin_core_osabi_sniffer.
13420
13421 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13422
13423 * i386-cygwin-tdep.c: Rename to...
13424 * i386-windows-tdep.c: ... this.
13425 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13426 i386-windows-tdep.c.
13427 * configure.tgt: Likewise.
13428
13429 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13430
13431 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13432 * osabi.c (gdb_osabi_names): Add "Windows".
13433 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13434 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13435 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13436 i386_cygwin_osabi_sniffer.
13437 (_initialize_i386_cygwin_tdep): Register OS ABI
13438 GDB_OSABI_WINDOWS for i386.
13439 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13440 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13441 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13442 for x86-64.
13443 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13444 when the target matches '*-*-mingw*'.
13445
13446 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13447
13448 * defs.h (enum gdb_osabi): Move to...
13449 * osabi.h (enum gdb_osabi): ... here.
13450 * gdbarch.sh: Include osabi.h in gdbarch.h.
13451 * gdbarch.h: Re-generate.
13452
13453 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13454
13455 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13456 function.
13457 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13458
13459 2020-03-14 Tom Tromey <tom@tromey.com>
13460
13461 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13462 for C++.
13463 (c_type_print_modifier): Likewise. Add "language" parameter.
13464 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13465 (c_type_print_base_1): Update.
13466 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13467 constants.
13468 * type-stack.c (type_stack::insert): Handle tp_atomic and
13469 tp_restrict.
13470 (type_stack::follow_type_instance_flags): Likewise.
13471 (type_stack::follow_types): Likewise. Merge type-following code.
13472 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13473 (space_identifier, cv_with_space_id)
13474 (const_or_volatile_or_space_identifier_noopt)
13475 (const_or_volatile_or_space_identifier): Remove.
13476 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13477 rules.
13478 (ptr_operator, typebase): Update.
13479 (enum token_flag) <FLAG_C>: New constant.
13480 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13481 "_Atomic".
13482 (lex_one_token): Handle FLAG_C.
13483
13484 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13485
13486 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13487 it to the ptrace call.
13488 * m68k-bsd-nat.c (store_registers): Likewise.
13489
13490 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13491
13492 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13493 gdb_byte *.
13494 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13495 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13496 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13497
13498 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13499
13500 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13501 nbsd_nat_target instead of inf_ptrace_target.
13502 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13503 nbsd_nat_target.
13504
13505 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13506
13507 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13508 register_t.
13509
13510 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13511
13512 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13513 it to the ptrace call.
13514 * alpha-bsd-nat.c (store_registers): Likewise.
13515
13516 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13517
13518 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13519 includes.
13520 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13521 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13522 fill_fpregset): Likewise.
13523
13524 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13525
13526 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13527 nbsd_nat_target instead of inf_ptrace_target.
13528 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13529 nbsd_nat_target.
13530
13531 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13532
13533 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13534 register_t.
13535
13536 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13537
13538 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13539 it to the ptrace call.
13540 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13541 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13542 * arm-nbsd-nat.c (store_register): Likewise.
13543 * arm-nbsd-nat.c (store_regs): Likewise.
13544 * arm-nbsd-nat.c (store_fp_register): Likewise.
13545 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13546
13547 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13548
13549 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13550 nbsd_nat_target instead of inf_ptrace_target.
13551 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13552 nbsd_nat_target.
13553
13554 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13555
13556 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13557 it to the ptrace call.
13558 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13559
13560 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13561
13562 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13563 it to the ptrace call.
13564 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13565
13566 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13567
13568 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13569 gdb_byte *.
13570 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13571
13572 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13573
13574 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13575 instead of inf_ptrace_target.
13576 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13577 nbsd_nat_target.
13578
13579 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13580
13581 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13582 register_t.
13583
13584 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13585
13586 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13587 register_t.
13588
13589 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13590
13591 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13592 register_t.
13593
13594 2020-03-13 Tom Tromey <tom@tromey.com>
13595
13596 * value.h (val_print): Don't declare.
13597 * valprint.h (val_print_array_elements)
13598 (val_print_scalar_formatted, generic_val_print): Don't declare.
13599 * valprint.c (generic_val_print_array): Take a struct value.
13600 (generic_val_print_ptr, generic_val_print_memberptr)
13601 (generic_val_print_bool, generic_val_print_int)
13602 (generic_val_print_char, generic_val_print_complex)
13603 (generic_val_print): Remove.
13604 (generic_value_print): Update.
13605 (do_val_print): Remove unused parameters. Don't call
13606 la_val_print.
13607 (val_print): Remove.
13608 (common_val_print): Update. Don't call value_check_printable.
13609 (val_print_scalar_formatted, val_print_array_elements): Remove.
13610 * rust-lang.c (rust_val_print): Remove.
13611 (rust_language_defn): Update.
13612 * p-valprint.c (pascal_val_print): Remove.
13613 (pascal_value_print_inner): Update.
13614 (pascal_object_print_val_fields, pascal_object_print_val):
13615 Remove.
13616 (pascal_object_print_static_field): Update.
13617 * p-lang.h (pascal_val_print): Don't declare.
13618 * p-lang.c (pascal_language_defn): Update.
13619 * opencl-lang.c (opencl_language_defn): Update.
13620 * objc-lang.c (objc_language_defn): Update.
13621 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13622 * m2-lang.h (m2_val_print): Don't declare.
13623 * m2-lang.c (m2_language_defn): Update.
13624 * language.h (struct language_defn) <la_val_print>: Remove.
13625 * language.c (unk_lang_value_print_inner): Rename. Change
13626 argument types.
13627 (unknown_language_defn, auto_language_defn): Update.
13628 * go-valprint.c (go_val_print): Remove.
13629 * go-lang.h (go_val_print): Don't declare.
13630 * go-lang.c (go_language_defn): Update.
13631 * f-valprint.c (f_val_print): Remove.
13632 * f-lang.h (f_value_print): Don't declare.
13633 * f-lang.c (f_language_defn): Update.
13634 * d-valprint.c (d_val_print): Remove.
13635 * d-lang.h (d_value_print): Don't declare.
13636 * d-lang.c (d_language_defn): Update.
13637 * cp-valprint.c (cp_print_value_fields)
13638 (cp_print_value_fields_rtti, cp_print_value): Remove.
13639 (cp_print_static_field): Update.
13640 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13641 (c_val_print_struct, c_val_print_union, c_val_print_int)
13642 (c_val_print_memberptr, c_val_print): Remove.
13643 * c-lang.h (c_val_print_array, cp_print_value_fields)
13644 (cp_print_value_fields_rtti): Don't declare.
13645 * c-lang.c (c_language_defn, cplus_language_defn)
13646 (asm_language_defn, minimal_language_defn): Update.
13647 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13648 (ada_val_print_enum): Take a struct value.
13649 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13650 (ada_val_print): Remove.
13651 (ada_value_print_1): Update.
13652 (printable_val_type): Remove.
13653 * ada-lang.h (ada_val_print): Don't declare.
13654 * ada-lang.c (ada_language_defn): Update.
13655
13656 2020-03-13 Tom Tromey <tom@tromey.com>
13657
13658 * valprint.c (do_val_print): Update.
13659 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13660 a struct value.
13661 (value_to_value_object_no_release): Declare.
13662 * python/py-value.c (value_to_value_object_no_release): New
13663 function.
13664 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13665 struct value.
13666 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13667 function.
13668 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13669 a struct value.
13670 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13671 Declare.
13672 (gdbscm_apply_val_pretty_printer): Take a struct value.
13673 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13674 value.
13675 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13676 value.
13677 * extension-priv.h (struct extension_language_ops)
13678 <apply_val_pretty_printer>: Take a struct value.
13679 * cp-valprint.c (cp_print_value): Create a struct value.
13680 (cp_print_value): Update.
13681
13682 2020-03-13 Tom Tromey <tom@tromey.com>
13683
13684 * ada-valprint.c (print_field_values): Call common_val_print.
13685
13686 2020-03-13 Tom Tromey <tom@tromey.com>
13687
13688 * ada-valprint.c (val_print_packed_array_elements): Remove
13689 bitoffset and val parameters. Call common_val_print.
13690 (ada_val_print_string): Remove offset, address, and original_value
13691 parameters.
13692 (ada_val_print_array): Update.
13693 (ada_value_print_array): New function.
13694 (ada_value_print_1): Call it.
13695
13696 2020-03-13 Tom Tromey <tom@tromey.com>
13697
13698 * ada-valprint.c (ada_value_print): Use common_val_print.
13699
13700 2020-03-13 Tom Tromey <tom@tromey.com>
13701
13702 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13703
13704 2020-03-13 Tom Tromey <tom@tromey.com>
13705
13706 * ada-valprint.c (ada_value_print_num): New function.
13707 (ada_value_print_1): Use it.
13708
13709 2020-03-13 Tom Tromey <tom@tromey.com>
13710
13711 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13712
13713 2020-03-13 Tom Tromey <tom@tromey.com>
13714
13715 * ada-valprint.c (ada_value_print_ptr): New function.
13716 (ada_value_print_1): Use it.
13717
13718 2020-03-13 Tom Tromey <tom@tromey.com>
13719
13720 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13721 call common_val_print.
13722 (ada_val_print_1): Update.
13723 (ada_value_print_1): New function.
13724 (ada_value_print_inner): Rewrite.
13725
13726 2020-03-13 Tom Tromey <tom@tromey.com>
13727
13728 * cp-valprint.c (cp_print_value_fields): Update.
13729 (cp_print_value): New function.
13730
13731 2020-03-13 Tom Tromey <tom@tromey.com>
13732
13733 * m2-valprint.c (m2_value_print_inner): Use
13734 cp_print_value_fields.
13735 * cp-valprint.c (cp_print_value_fields): New function.
13736 * c-valprint.c (c_value_print_struct): New function.
13737 (c_value_print_inner): Use c_value_print_struct.
13738 * c-lang.h (cp_print_value_fields): Declare.
13739
13740 2020-03-13 Tom Tromey <tom@tromey.com>
13741
13742 * c-valprint.c (c_value_print_array): New function.
13743 (c_value_print_inner): Use it.
13744
13745 2020-03-13 Tom Tromey <tom@tromey.com>
13746
13747 * c-valprint.c (c_value_print_memberptr): New function.
13748 (c_value_print_inner): Use it.
13749
13750 2020-03-13 Tom Tromey <tom@tromey.com>
13751
13752 * c-valprint.c (c_value_print_int): New function.
13753 (c_value_print_inner): Use it.
13754
13755 2020-03-13 Tom Tromey <tom@tromey.com>
13756
13757 * c-valprint.c (c_value_print_ptr): New function.
13758 (c_value_print_inner): Use it.
13759
13760 2020-03-13 Tom Tromey <tom@tromey.com>
13761
13762 * c-valprint.c (c_value_print_inner): Rewrite.
13763
13764 2020-03-13 Tom Tromey <tom@tromey.com>
13765
13766 * valprint.c (generic_value_print_complex): New function.
13767 (generic_value_print): Use it.
13768
13769 2020-03-13 Tom Tromey <tom@tromey.com>
13770
13771 * valprint.c (generic_val_print_float): Don't call
13772 val_print_scalar_formatted.
13773 (generic_val_print, generic_value_print): Update.
13774
13775 2020-03-13 Tom Tromey <tom@tromey.com>
13776
13777 * valprint.c (generic_value_print_char): New function
13778 (generic_value_print): Use it.
13779
13780 2020-03-13 Tom Tromey <tom@tromey.com>
13781
13782 * valprint.c (generic_value_print_int): New function.
13783 (generic_value_print): Use it.
13784
13785 2020-03-13 Tom Tromey <tom@tromey.com>
13786
13787 * valprint.c (generic_value_print_bool): New function.
13788 (generic_value_print): Use it.
13789
13790 2020-03-13 Tom Tromey <tom@tromey.com>
13791
13792 * valprint.c (generic_val_print_func): Simplify.
13793 (generic_val_print, generic_value_print): Update.
13794
13795 2020-03-13 Tom Tromey <tom@tromey.com>
13796
13797 * valprint.c (generic_val_print_flags): Remove.
13798 (generic_val_print, generic_value_print): Update.
13799 (val_print_type_code_flags): Add original_value parameter.
13800
13801 2020-03-13 Tom Tromey <tom@tromey.com>
13802
13803 * valprint.c (generic_val_print): Update.
13804 (generic_value_print): Update.
13805 * valprint.c (generic_val_print_enum): Don't call
13806 val_print_scalar_formatted.
13807
13808 2020-03-13 Tom Tromey <tom@tromey.com>
13809
13810 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13811 * valprint.c (generic_value_print_ptr): New function.
13812
13813 2020-03-13 Tom Tromey <tom@tromey.com>
13814
13815 * valprint.c (generic_value_print): Rewrite.
13816
13817 2020-03-13 Tom Tromey <tom@tromey.com>
13818
13819 * p-valprint.c (pascal_object_print_value_fields)
13820 (pascal_object_print_value): New functions.
13821
13822 2020-03-13 Tom Tromey <tom@tromey.com>
13823
13824 * p-valprint.c (pascal_value_print_inner): Rewrite.
13825
13826 2020-03-13 Tom Tromey <tom@tromey.com>
13827
13828 * f-valprint.c (f_value_print_innner): Rewrite.
13829
13830 2020-03-13 Tom Tromey <tom@tromey.com>
13831
13832 * m2-valprint.c (m2_print_unbounded_array): New overload.
13833 (m2_print_unbounded_array): Update.
13834 (m2_print_array_contents): Take a struct value.
13835 (m2_value_print_inner): Rewrite.
13836
13837 2020-03-13 Tom Tromey <tom@tromey.com>
13838
13839 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13840 (d_value_print_inner): New function.
13841 * d-lang.h (d_value_print_inner): Declare.
13842 * d-lang.c (d_language_defn): Use d_value_print_inner.
13843
13844 2020-03-13 Tom Tromey <tom@tromey.com>
13845
13846 * go-valprint.c (go_value_print_inner): New function.
13847 * go-lang.h (go_value_print_inner): Declare.
13848 * go-lang.c (go_language_defn): Use go_value_print_inner.
13849
13850 2020-03-13 Tom Tromey <tom@tromey.com>
13851
13852 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13853 API.
13854 (rust_val_print): Rewrite.
13855 (rust_value_print_inner): New function, from rust_val_print.
13856 (rust_language_defn): Use rust_value_print_inner.
13857
13858 2020-03-13 Tom Tromey <tom@tromey.com>
13859
13860 * ada-valprint.c (ada_value_print_inner): New function.
13861 * ada-lang.h (ada_value_print_inner): Declare.
13862 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13863
13864 2020-03-13 Tom Tromey <tom@tromey.com>
13865
13866 * f-valprint.c (f_value_print_innner): New function.
13867 * f-lang.h (f_value_print_innner): Declare.
13868 * f-lang.c (f_language_defn): Use f_value_print_innner.
13869
13870 2020-03-13 Tom Tromey <tom@tromey.com>
13871
13872 * p-valprint.c (pascal_value_print_inner): New function.
13873 * p-lang.h (pascal_value_print_inner): Declare.
13874 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13875
13876 2020-03-13 Tom Tromey <tom@tromey.com>
13877
13878 * m2-valprint.c (m2_value_print_inner): New function.
13879 * m2-lang.h (m2_value_print_inner): Declare.
13880 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13881
13882 2020-03-13 Tom Tromey <tom@tromey.com>
13883
13884 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13885 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13886 * c-valprint.c (c_value_print_inner): New function.
13887 * c-lang.h (c_value_print_inner): Declare.
13888 * c-lang.c (c_language_defn, cplus_language_defn)
13889 (asm_language_defn, minimal_language_defn): Use
13890 c_value_print_inner.
13891
13892 2020-03-13 Tom Tromey <tom@tromey.com>
13893
13894 * p-valprint.c (pascal_object_print_value_fields): Now static.
13895 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13896
13897 2020-03-13 Tom Tromey <tom@tromey.com>
13898
13899 * c-valprint.c (c_val_print_array): Simplify.
13900
13901 2020-03-13 Tom Tromey <tom@tromey.com>
13902
13903 * valprint.c (value_print_array_elements): New function.
13904 * valprint.h (value_print_array_elements): Declare.
13905
13906 2020-03-13 Tom Tromey <tom@tromey.com>
13907
13908 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13909 * mips-tdep.c (mips_print_register): Use
13910 value_print_scalar_formatted.
13911
13912 2020-03-13 Tom Tromey <tom@tromey.com>
13913
13914 * valprint.h (value_print_scalar_formatted): Declare.
13915 * valprint.c (value_print_scalar_formatted): New function.
13916
13917 2020-03-13 Tom Tromey <tom@tromey.com>
13918
13919 * valprint.h (generic_value_print): Declare.
13920 * valprint.c (generic_value_print): New function.
13921
13922 2020-03-13 Tom Tromey <tom@tromey.com>
13923
13924 * valprint.c (do_val_print): Call la_value_print_inner, if
13925 available.
13926 * rust-lang.c (rust_language_defn): Update.
13927 * p-lang.c (pascal_language_defn): Update.
13928 * opencl-lang.c (opencl_language_defn): Update.
13929 * objc-lang.c (objc_language_defn): Update.
13930 * m2-lang.c (m2_language_defn): Update.
13931 * language.h (struct language_defn) <la_value_print_inner>: New
13932 member.
13933 * language.c (unknown_language_defn, auto_language_defn): Update.
13934 * go-lang.c (go_language_defn): Update.
13935 * f-lang.c (f_language_defn): Update.
13936 * d-lang.c (d_language_defn): Update.
13937 * c-lang.c (c_language_defn, cplus_language_defn)
13938 (asm_language_defn, minimal_language_defn): Update.
13939 * ada-lang.c (ada_language_defn): Update.
13940
13941 2020-03-13 Tom Tromey <tom@tromey.com>
13942
13943 * c-valprint.c (c_value_print): Use common_val_print.
13944
13945 2020-03-13 Tom Tromey <tom@tromey.com>
13946
13947 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13948
13949 2020-03-13 Tom Tromey <tom@tromey.com>
13950
13951 * f-valprint.c (f77_print_array_1, f_val_print): Use
13952 common_val_print.
13953
13954 2020-03-13 Tom Tromey <tom@tromey.com>
13955
13956 * riscv-tdep.c (riscv_print_one_register_info): Use
13957 common_val_print.
13958
13959 2020-03-13 Tom Tromey <tom@tromey.com>
13960
13961 * mi/mi-main.c (output_register): Use common_val_print.
13962
13963 2020-03-13 Tom Tromey <tom@tromey.com>
13964
13965 * infcmd.c (default_print_one_register_info): Use
13966 common_val_print.
13967
13968 2020-03-13 Tom Tromey <tom@tromey.com>
13969
13970 * valprint.h (common_val_print_checked): Declare.
13971 * valprint.c (common_val_print_checked): New function.
13972 * stack.c (print_frame_arg): Use common_val_print_checked.
13973
13974 2020-03-13 Tom Tromey <tom@tromey.com>
13975
13976 * valprint.c (do_val_print): New function, from val_print.
13977 (val_print): Use do_val_print.
13978 (common_val_print): Use do_val_print.
13979
13980 2020-03-13 Tom Tromey <tom@tromey.com>
13981
13982 * valprint.c (value_print): Use scoped_value_mark.
13983
13984 2020-03-13 Tom de Vries <tdevries@suse.de>
13985
13986 PR symtab/25646
13987 * psymtab.c (partial_symtab::partial_symtab): Don't set
13988 globals_offset and statics_offset. Push element onto
13989 current_global_psymbols and current_static_psymbols stacks.
13990 (concat): New function.
13991 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13992 element from current_global_psymbols and current_static_psymbols
13993 stacks. Concat popped elements to global_psymbols and
13994 static_symbols.
13995 (add_psymbol_to_list): Use current_global_psymbols and
13996 current_static_psymbols stacks.
13997 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13998 current_static_psymbols fields.
13999
14000 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14001
14002 * corelow.c (sniff_core_bfd): Remove.
14003 (class core_target) <m_core_vec>: Remove.
14004 (core_target::core_target): Update.
14005 (core_file_fns): Remove.
14006 (deprecated_add_core_fns): Remove.
14007 (default_core_sniffer): Remove.
14008 (sniff_core_bfd): Remove.
14009 (default_check_format): Remove.
14010 (gdb_check_format): Remove.
14011 (core_target_open): Update.
14012 (core_target::get_core_register_section): Update.
14013 (get_core_registers_cb): Update.
14014 (core_target::fetch_registers): Update.
14015 * gdbcore.h (struct core_fns): Remove.
14016 (deprecated_add_core_fns): Remove.
14017 (default_core_sniffer): Remove.
14018 (default_check_format): Remove.
14019
14020 2020-03-12 Tom Tromey <tom@tromey.com>
14021
14022 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14023 CORE_ADDR.
14024 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14025
14026 2020-03-12 Tom Tromey <tom@tromey.com>
14027
14028 * remote.c (remote_target::download_tracepoint)
14029 (remote_target::enable_tracepoint)
14030 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14031 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14032 sprintf_vma.
14033
14034 2020-03-12 Tom Tromey <tom@tromey.com>
14035
14036 * symfile-mem.c: Update CORE_ADDR size assert.
14037
14038 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14039
14040 * selftest.m4: Move to gdbsupport/.
14041 * acinclude.m4: Update path to selftest.m4.
14042
14043 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14044
14045 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14046 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14047 gdbarch-selfselftests.c and selftest-arch.c.
14048 (SUBDIR_UNITTESTS_OBS): Rename to...
14049 (SELFTESTS_OBS): ... this.
14050 (COMMON_SFILES): Remove disasm-selftests.c and
14051 gdbarch-selftests.c.
14052 * configure.ac: Don't add selftest-arch.{c,o} to
14053 CONFIG_{SRCS,OBS}.
14054 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14055 preprocessor conditions.
14056
14057 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14058
14059 * configure.ac: Don't source bfd/development.sh.
14060 * selftest.m4: Modify comment.
14061 * configure: Re-generate.
14062
14063 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14064
14065 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14066 not "true" or "false".
14067 * configure: Re-generate.
14068
14069 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14070
14071 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14072 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14073 renamed to arm_nbsd_supply_gregset.
14074 (fetch_register): Update to call arm_nbsd_supply_gregset.
14075 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14076 (arm_netbsd_nat_target::fetch_registers): Update.
14077 (fetch_elfcore_registers): Removed.
14078 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14079 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14080 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14081 not require NetBSD system headers.
14082 (arm_nbsd_regset): New struct.
14083 (arm_nbsd_iterate_over_regset_sections): New function.
14084 (arm_netbsd_init_abi_common): Updated to call
14085 set_gdbarch_iterate_over_regset_sections.
14086 * arm-nbsd-tdep.h: New file.
14087
14088 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14089
14090 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14091 recursion.
14092
14093 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14094
14095 * configure: Re-generate.
14096
14097 2020-03-11 Tom Tromey <tromey@adacore.com>
14098
14099 * ada-typeprint.c (print_choices): Fix comment.
14100
14101 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14102
14103 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14104 previous item in the list, when the list has no items.
14105
14106 2020-03-11 Tom de Vries <tdevries@suse.de>
14107
14108 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14109 PROP_LOCLIST handling code.
14110
14111 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14112
14113 * buildsym-legacy.c (record_line): Pass extra parameter to
14114 record_line.
14115 * buildsym.c (buildsym_compunit::record_line): Take an extra
14116 parameter, reduce duplication in the line table, and record the
14117 is_stmt flag in the line table.
14118 * buildsym.h (buildsym_compunit::record_line): Add extra
14119 parameter.
14120 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14121 non-statement lines.
14122 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14123 this to the symtab builder.
14124 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14125 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14126 through to dwarf_record_line_1.
14127 * infrun.c (process_event_stop_test): When stepping, don't stop at
14128 a non-statement instruction, and only refresh the step info when
14129 we land in the middle of a line's range. Also add an extra
14130 comment.
14131 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14132 field.
14133 * record-btrace.c (btrace_find_line_range): Only record lines
14134 marked as is-statement.
14135 * stack.c (frame_show_address): Show the frame address if we are
14136 in a non-statement sal.
14137 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14138 (maintenance_print_one_line_table): Print a header for the is_stmt
14139 column, and include is_stmt information in the output.
14140 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14141 preference to non-statements.
14142 (find_pcs_for_symtab_line): Prefer is-statement entries.
14143 (find_line_common): Likewise.
14144 * symtab.h (struct linetable_entry): Add is_stmt field.
14145 (struct symtab_and_line): Likewise.
14146 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14147 arranging the line table.
14148
14149 2020-03-07 Tom de Vries <tdevries@suse.de>
14150
14151 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14152 DIE.
14153
14154 2020-03-07 Tom Tromey <tom@tromey.com>
14155
14156 * valops.c (value_literal_complex): Remove obsolete comment.
14157 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14158 comment.
14159
14160 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14161
14162 * infrun.h: Forward-declare thread_info.
14163 (set_step_info): Add thread_info parameter, add doc.
14164 * infrun.c (set_step_info): Add thread_info parameter, move doc
14165 to header.
14166 * infrun.c (process_event_stop_test): Pass thread to
14167 set_step_info call.
14168 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14169 set_step_info.
14170 (prepare_one_step): Add thread_info parameter, pass it to
14171 set_step_frame and prepare_one_step (recursive) call.
14172 (step_1): Pass thread to prepare_one_step call.
14173 (step_command_fsm::should_stop): Pass thread to
14174 prepare_one_step.
14175 (until_next_fsm): Pass thread to set_step_frame call.
14176 (finish_command): Pass thread to set_step_info call.
14177
14178 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14179
14180 * windows-tdep.c (windows_solib_create_inferior_hook):
14181 Check if inferior is running.
14182
14183 2020-03-06 Tom de Vries <tdevries@suse.de>
14184
14185 * NEWS: Fix "the the".
14186 * ctfread.c: Same.
14187
14188 2020-03-06 Tom de Vries <tdevries@suse.de>
14189
14190 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14191
14192 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14193
14194 * .dir-locals.el: Add a comment referencing the other copies of
14195 this file.
14196
14197 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14198
14199 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14200 psargs.
14201
14202 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14203
14204 * .gitattributes: New file.
14205
14206 2020-03-04 Tom Tromey <tom@tromey.com>
14207
14208 * symmisc.c (print_symbol_bcache_statistics)
14209 (print_objfile_statistics): Update.
14210 * symfile.c (allocate_symtab): Use intern.
14211 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14212 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14213 macro_cache>: Remove.
14214 <string_cache>: New member.
14215 (struct objfile) <intern>: New methods.
14216 * elfread.c (elf_symtab_read): Use intern.
14217 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14218 (dwarf2_compute_name, dwarf2_physname)
14219 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14220 names.
14221 (guess_partial_die_structure_name): Update.
14222 (partial_die_info::fixup): Intern name.
14223 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14224 name.
14225 (dwarf2_name): Intern name. Update.
14226 * buildsym.c (buildsym_compunit::get_macro_table): Use
14227 string_cache.
14228
14229 2020-03-04 Tom Tromey <tom@tromey.com>
14230
14231 * jit.c (bfd_open_from_target_memory): Make "target" const.
14232 * corefile.c (gnutarget): Now const.
14233 * gdbcore.h (gnutarget): Now const.
14234
14235 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14236
14237 * NEWS: Mention support for WOW64 processes.
14238 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14239 (amd64_windows_segment_register_p): Remove static.
14240 (_initialize_amd64_windows_nat): Update.
14241 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14242 * i386-windows-nat.c (context_offset): Update.
14243 (i386_mappings): Rename and remove static.
14244 (i386_windows_segment_register_p): Remove static.
14245 (_initialize_i386_windows_nat): Update.
14246 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14247 (STATUS_WX86_SINGLE_STEP): New macro.
14248 (EnumProcessModulesEx): New macro.
14249 (Wow64SuspendThread): New macro.
14250 (Wow64GetThreadContext): New macro.
14251 (Wow64SetThreadContext): New macro.
14252 (Wow64GetThreadSelectorEntry): New macro.
14253 (windows_set_context_register_offsets): Add static.
14254 (windows_set_segment_register_p): Likewise.
14255 (windows_add_thread): Adapt for WOW64 processes.
14256 (windows_fetch_one_register): Likewise.
14257 (windows_nat_target::fetch_registers): Likewise.
14258 (windows_store_one_register): Likewise.
14259 (display_selector): Likewise.
14260 (display_selectors): Likewise.
14261 (handle_exception): Likewise.
14262 (windows_continue): Likewise.
14263 (windows_nat_target::resume): Likewise.
14264 (windows_add_all_dlls): Likewise.
14265 (do_initial_windows_stuff): Likewise.
14266 (windows_nat_target::attach): Likewise.
14267 (windows_get_exec_module_filename): Likewise.
14268 (windows_nat_target::create_inferior): Likewise.
14269 (windows_xfer_siginfo): Likewise.
14270 (_initialize_loadable): Initialize Wow64SuspendThread,
14271 Wow64GetThreadContext, Wow64SetThreadContext,
14272 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14273 * windows-nat.h (windows_set_context_register_offsets):
14274 Remove declaration.
14275 (windows_set_segment_register_p): Likewise.
14276 (i386_windows_segment_register_p): Add declaration.
14277 (amd64_windows_segment_register_p): Likewise.
14278
14279 2020-03-04 Luis Machado <luis.machado@linaro.org>
14280
14281 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14282 in "info registers" for AArch64/ARM.
14283
14284 The change caused "info registers" to not print GPR's.
14285
14286 gdb/ChangeLog:
14287
14288 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14289
14290 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14291 when reg->group is empty and reggroup is not.
14292
14293 2020-03-03 Tom Tromey <tromey@adacore.com>
14294
14295 * dwarf2/frame.c (struct dwarf2_frame_cache)
14296 <checked_tailcall_bottom, entry_cfa_sp_offset,
14297 entry_cfa_sp_offset_p>: Remove members.
14298 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14299 (dwarf2_frame_prev_register): Don't call
14300 dwarf2_tailcall_sniffer_first.
14301 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14302 * frame-unwind.c (add_unwinder): New fuction.
14303 (frame_unwind_init): Use it. Add tailcall unwinder.
14304
14305 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14306 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14307
14308 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14309 value should be printed as true.
14310
14311 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14312
14313 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14314 (windows_init_abi): Set and use windows_so_ops.
14315
14316 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14317
14318 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14319 when verifying if dealing with a convenience variable.
14320
14321 2020-03-03 Luis Machado <luis.machado@linaro.org>
14322
14323 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14324
14325 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14326
14327 * infrun.c (gdbarch_supports_displaced_stepping): New.
14328 (use_displaced_stepping): Break up conditions in smaller pieces.
14329 Use gdbarch_supports_displaced_stepping.
14330 (displaced_step_prepare_throw): Use
14331 gdbarch_supports_displaced_stepping.
14332
14333 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14334
14335 * NEWS: Mention new behaviour of the history filename.
14336 * top.c (write_history_p): Add comment.
14337 (show_write_history_p): Add header comment, give a different
14338 message when history writing is on, but the history filename is
14339 empty.
14340 (history_filename): Add comment.
14341 (history_filename_empty): New function.
14342 (show_history_filename): Add header comment, give a different
14343 message when the filename is empty.
14344 (init_history): Compare history_filename against nullptr, and only
14345 read history if the filename is not empty.
14346 (set_history_filename): Add header comment, and only make
14347 non-empty filenames absolute.
14348 (init_main): Make the filename argument to 'set history filename'
14349 optional.
14350
14351 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14352
14353 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14354 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14355 (fetch_fp_register): Update.
14356 (fetch_fp_regs): Update.
14357 (store_fp_register): Update.
14358 (store_fp_regs): Update.
14359 (arm_netbsd_nat_target::read_description): New function.
14360 (fetch_elfcore_registers): Update.
14361
14362 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14363
14364 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14365 general_thread if the stop reply is missing a thread-id.
14366 (remote_target::process_stop_reply): Use the first non-exited
14367 thread if the target didn't pass a thread-id.
14368 * infrun.c (do_target_wait): Move call to
14369 switch_to_inferior_no_thread to ....
14370 (do_target_wait_1): ... here.
14371
14372 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14373
14374 * debuginfod-support.c: Include defs.h first.
14375
14376 2020-02-28 Tom de Vries <tdevries@suse.de>
14377
14378 * symfile.c (set_initial_language): Use default language for lookup.
14379
14380 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14381
14382 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14383 reader variable, pass `this` to read_cutu_die_from_dwo.
14384
14385 2020-02-27 Aaron Merey <amerey@redhat.com>
14386
14387 * source.c (open_source_file): Check for nullptr when computing
14388 srcpath.
14389
14390 2020-02-27 Tom Tromey <tromey@adacore.com>
14391
14392 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14393 member.
14394 (dwarf2_add_field): Don't update nfields.
14395 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14396
14397 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14398
14399 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14400 abs.
14401
14402 2020-02-26 Tom Tromey <tom@tromey.com>
14403
14404 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14405 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14406 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14407 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14408 per_cu_data.
14409
14410 2020-02-26 Tom Tromey <tom@tromey.com>
14411
14412 * dwarf2/index-write.c (psym_index_map): Change type.
14413 (add_address_entry_worker, write_one_signatured_type)
14414 (recursively_count_psymbols, recursively_write_psymbols)
14415 (class debug_names, psyms_seen_size, write_gdbindex)
14416 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14417
14418 2020-02-26 Aaron Merey <amerey@redhat.com>
14419
14420 * Makefile.in: Handle optional debuginfod support.
14421 * NEWS: Update.
14422 * README: Add --with-debuginfod summary.
14423 * config.in: Regenerate.
14424 * configure: Regenerate.
14425 * configure.ac: Handle optional debuginfod support.
14426 * debuginfod-support.c: debuginfod helper functions.
14427 * debuginfod-support.h: Ditto.
14428 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14429 summary.
14430 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14431 when a dwz file cannot be found.
14432 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14433 debuginfo file cannot be found.
14434 * source.c (open_source_file): Query debuginfod servers when a
14435 source file cannot be found.
14436 * top.c (print_gdb_configuration): Include
14437 --{with,without}-debuginfod in the output.
14438
14439 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14440
14441 * thread.c (thr_try_catch_cmd): Print thread name.
14442
14443 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14444
14445 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14446 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14447 dwarf2_fetch_die_type_sect_off): Move to...
14448 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14449 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14450 dwarf2_fetch_die_type_sect_off): ... here.
14451 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14452 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14453 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14454
14455 2020-02-26 Tom de Vries <tdevries@suse.de>
14456
14457 PR gdb/25603
14458 * symfile.c (set_initial_language): Exit-early if
14459 language_mode == language_mode_manual.
14460
14461 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14462
14463 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14464 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14465 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14466
14467 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14468
14469 * gdbtypes.c (create_array_type_with_stride): Handle negative
14470 array strides.
14471 * valarith.c (value_subscripted_rvalue): Likewise.
14472
14473 2020-02-25 Luis Machado <luis.machado@linaro.org>
14474
14475 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14476
14477 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14478
14479 * loc.h (dwarf2_get_die_type): Move to...
14480 * read.h (dwarf2_get_die_type): ... here.
14481 * read.c (dwarf2_get_die_type): Move doc to header.
14482
14483 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14484
14485 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14486 'gnulib/Makefile.in' to the list.
14487
14488 2020-02-24 Tom Tromey <tom@tromey.com>
14489
14490 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14491 Remove.
14492 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14493 XOBNEWVEC.
14494
14495 2020-02-24 Tom Tromey <tom@tromey.com>
14496
14497 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14498 New method.
14499 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14500 (dw2_do_instantiate_symtab, dw2_get_file_names)
14501 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14502
14503 2020-02-24 Tom Tromey <tom@tromey.com>
14504
14505 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14506 make_scoped_restore.
14507 (dwarf2_psymtab::read_symtab): Don't clear
14508 reading_partial_symbols.
14509
14510 2020-02-24 Tom de Vries <tdevries@suse.de>
14511
14512 PR gdb/25592
14513 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14514
14515 2020-02-24 Tom de Vries <tdevries@suse.de>
14516
14517 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14518 commands layout next/prev/regs.
14519
14520 2020-02-22 Tom Tromey <tom@tromey.com>
14521
14522 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14523 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14524
14525 2020-02-22 Tom Tromey <tom@tromey.com>
14526
14527 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14528
14529 2020-02-22 Tom Tromey <tom@tromey.com>
14530
14531 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14532 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14533 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14534 * tui/tui.c (_initialize_tui): Add usage text.
14535
14536 2020-02-22 Tom Tromey <tom@tromey.com>
14537
14538 * tui/tui-win.c (tui_set_focus_command)
14539 (tui_set_win_height_command): Use error_no_arg.
14540 (_initialize_tui_win): Update help text.
14541 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14542
14543 2020-02-22 Tom Tromey <tom@tromey.com>
14544
14545 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14546 * tui/tui-disasm.h (struct tui_disasm_window)
14547 <display_start_addr>: Declare.
14548 * tui/tui-source.h (struct tui_source_window)
14549 <display_start_addr>: Declare.
14550 * tui/tui-winsource.h (struct tui_source_window_base)
14551 <show_source_line, display_start_addr>: New methods.
14552 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14553 Rename and move to protected section.
14554 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14555 (tui_source_window_base::do_erase_source_content): Update.
14556 (tui_source_window_base::show_source_line): Now a method.
14557 (tui_source_window_base::show_source_content)
14558 (tui_source_window_base::tui_source_window_base)
14559 (tui_source_window_base::rerender)
14560 (tui_source_window_base::refill)
14561 (tui_source_window_base::do_scroll_horizontal)
14562 (tui_source_window_base::set_is_exec_point_at)
14563 (tui_source_window_base::update_breakpoint_info)
14564 (tui_source_window_base::update_exec_info): Update.
14565 * tui/tui-source.c (tui_source_window::set_contents)
14566 (tui_source_window::showing_source_p)
14567 (tui_source_window::do_scroll_vertical)
14568 (tui_source_window::location_matches_p)
14569 (tui_source_window::line_is_displayed): Update.
14570 (tui_source_window::display_start_addr): New method.
14571 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14572 (tui_disasm_window::do_scroll_vertical)
14573 (tui_disasm_window::location_matches_p): Update.
14574 (tui_disasm_window::display_start_addr): New method.
14575
14576 2020-02-22 Tom Tromey <tom@tromey.com>
14577
14578 * NEWS: Add entry for gdb.register_window_type.
14579 * tui/tui-layout.h (window_factory): New typedef.
14580 (tui_register_window): Declare.
14581 * tui/tui-layout.c (saved_tui_windows): New global.
14582 (tui_apply_current_layout): Use it.
14583 (tui_register_window): New function.
14584 * python/python.c (do_start_initialization): Call
14585 gdbpy_initialize_tui.
14586 (python_GdbMethods): Add "register_window_type" function.
14587 * python/python-internal.h (gdbpy_register_tui_window)
14588 (gdbpy_initialize_tui): Declare.
14589 * python/py-tui.c: New file.
14590 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14591
14592 2020-02-22 Tom Tromey <tom@tromey.com>
14593
14594 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14595
14596 2020-02-22 Tom Tromey <tom@tromey.com>
14597
14598 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14599 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14600 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14601 (tui_set_win_focus_to): Move from tui-win.c.
14602
14603 2020-02-22 Tom Tromey <tom@tromey.com>
14604
14605 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14606 functions.
14607 (known_window_types): New global.
14608 (tui_get_window_by_name): Reimplement.
14609 (initialize_known_windows): New function.
14610 (validate_window_name): Rewrite.
14611 (_initialize_tui_layout): Call initialize_known_windows.
14612
14613 2020-02-22 Tom Tromey <tom@tromey.com>
14614
14615 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14616 Remove constants.
14617 * tui/tui-winsource.h (struct tui_source_window_base)
14618 <tui_source_window_base>: Remove parameter.
14619 * tui/tui-winsource.c
14620 (tui_source_window_base::tui_source_window_base): Remove
14621 parameter.
14622 (tui_source_window_base::refill): Update.
14623 * tui/tui-stack.h (struct tui_locator_window)
14624 <tui_locator_window>: Update.
14625 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14626 Default the constructor.
14627 * tui/tui-regs.h (struct tui_data_item_window)
14628 <tui_data_item_window>: Default the constructor.
14629 (struct tui_data_window) <tui_data_window>: Likewise.
14630 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14631 Default the constructor.
14632 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14633 Default the constructor.
14634 <type>: Remove.
14635 (struct tui_win_info) <tui_win_info>: Default the constructor.
14636 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14637 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14638 Default the constructor.
14639
14640 2020-02-22 Tom Tromey <tom@tromey.com>
14641
14642 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14643 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14644 * tui/tui-win.c (tui_resize_all): Don't call
14645 tui_delete_invisible_windows.
14646 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14647 done.
14648 (tui_set_layout): Update.
14649 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14650 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14651 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14652
14653 2020-02-22 Tom Tromey <tom@tromey.com>
14654
14655 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14656 correctly.
14657
14658 2020-02-22 Tom Tromey <tom@tromey.com>
14659
14660 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14661
14662 2020-02-22 Tom Tromey <tom@tromey.com>
14663
14664 * tui/tui-winsource.h (struct tui_source_window_iterator)
14665 <inner_iterator>: New etytypedef.
14666 <tui_source_window_iterator>: Take "end" parameter.
14667 <tui_source_window_iterator>: Take iterator.
14668 <operator*, advance>: Update.
14669 <m_iter>: Change type.
14670 <m_end>: New field.
14671 (struct tui_source_windows) <begin, end>: Update.
14672 * tui/tui-layout.c (tui_windows): New global.
14673 (tui_apply_current_layout): Clear tui_windows.
14674 (tui_layout_window::apply): Update tui_windows.
14675 * tui/tui-data.h (tui_windows): Declare.
14676 (all_tui_windows): Now inline function.
14677 (class tui_window_iterator, struct all_tui_windows): Remove.
14678
14679 2020-02-22 Tom Tromey <tom@tromey.com>
14680
14681 PR tui/17850:
14682 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14683 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14684 "height" argument.
14685 (class tui_layout_window) <get_sizes>: Likewise.
14686 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14687 argument.
14688 <get_sizes>: Add "height" argument.
14689 <m_vertical>: New field.
14690 * tui/tui-layout.c (tui_layout_split::clone): Update.
14691 (tui_layout_split::get_sizes): Add "height" argument.
14692 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14693 (tui_new_layout_command): Parse "-horizontal".
14694 (_initialize_tui_layout): Update help string.
14695 (tui_layout_split::specification): Add "-horizontal" when needed.
14696 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14697 argument.
14698 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14699 New methods.
14700
14701 2020-02-22 Tom Tromey <tom@tromey.com>
14702
14703 * tui/tui-layout.h (enum tui_adjust_result): New.
14704 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14705 (class tui_layout_window) <adjust_size>: Return
14706 tui_adjust_result. Rewrite.
14707 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14708 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14709
14710 2020-02-22 Tom Tromey <tom@tromey.com>
14711
14712 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14713 parameter and return types.
14714 (class tui_layout_base) <specification>: Add "depth".
14715 (class tui_layout_window) <specification>: Add "depth".
14716 (class tui_layout_split) <specification>: Add "depth".
14717 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14718 and return types.
14719 (tui_new_layout_command): Parse sub-layouts.
14720 (_initialize_tui_layout): Update help string.
14721 (tui_layout_window::specification): Add "depth".
14722 (add_layout_command): Update.
14723
14724 2020-02-22 Tom Tromey <tom@tromey.com>
14725
14726 * NEWS: Add "tui new-layout" item.
14727 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14728 Add new-layout command to help text.
14729 (validate_window_name): New function.
14730 (tui_new_layout_command): New function.
14731 (_initialize_tui_layout): Register "new-layout".
14732 (tui_layout_window::specification): New method.
14733 (tui_layout_window::specification): New method.
14734 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14735 method.
14736 (class tui_layout_window) <specification>: New method.
14737 (class tui_layout_split) <specification>: New method.
14738
14739 2020-02-22 Tom Tromey <tom@tromey.com>
14740
14741 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14742 * tui/tui-win.c (window_name_completer): Update comment.
14743 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14744 Declare method.
14745 (class tui_layout_window) <replace_window>: Likewise.
14746 (class tui_layout_split) <replace_window>: Likewise.
14747 (tui_set_layout): Don't declare.
14748 (tui_set_initial_layout): Declare function.
14749 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14750 (asm_regs_layout): New globals.
14751 (tui_current_layout, show_layout): Remove.
14752 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14753 (find_layout, tui_apply_layout): New function.
14754 (layout_completer): Remove.
14755 (tui_next_layout): Reimplement.
14756 (tui_next_layout_command): New function.
14757 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14758 (tui_regs_layout): Reimplement.
14759 (tui_regs_layout_command): New function.
14760 (extract_display_start_addr): Rewrite.
14761 (next_layout, prev_layout): Remove.
14762 (tui_layout_window::replace_window): New method.
14763 (tui_layout_split::replace_window): New method.
14764 (destroy_layout): New function.
14765 (layout_list): New global.
14766 (add_layout_command): New function.
14767 (initialize_layouts): Update.
14768 (tui_layout_command): New function.
14769 (_initialize_tui_layout): Install "layout" commands.
14770 * tui/tui-data.h (enum tui_layout_type): Remove.
14771 (tui_current_layout): Don't declare.
14772
14773 2020-02-22 Tom Tromey <tom@tromey.com>
14774
14775 * tui/tui-regs.c (tui_reg_layout): Remove.
14776 (tui_reg_command): Use tui_regs_layout.
14777 * tui/tui-layout.h (tui_reg_command): Declare.
14778 * tui/tui-layout.c (tui_reg_command): New function.
14779
14780 2020-02-22 Tom Tromey <tom@tromey.com>
14781
14782 * tui/tui.c (tui_rl_delete_other_windows): Call
14783 tui_remove_some_windows.
14784 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14785 Declare method.
14786 (class tui_layout_window) <remove_windows>: New method.
14787 (class tui_layout_split) <remove_windows>: Declare.
14788 (tui_remove_some_windows): Declare.
14789 * tui/tui-layout.c (tui_remove_some_windows): New function.
14790 (tui_layout_split::remove_windows): New method.
14791
14792 2020-02-22 Tom Tromey <tom@tromey.com>
14793
14794 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14795 * tui/tui-layout.h (tui_next_layout): Declare.
14796 * tui/tui-layout.c (tui_next_layout): New function.
14797
14798 2020-02-22 Tom Tromey <tom@tromey.com>
14799
14800 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14801 correct coordinates.
14802
14803 2020-02-22 Tom Tromey <tom@tromey.com>
14804
14805 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14806 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14807 DATA_WIN case.
14808
14809 2020-02-22 Tom Tromey <tom@tromey.com>
14810
14811 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14812 TUI_DISASM_WIN, not tui_win_list.
14813
14814 2020-02-22 Tom Tromey <tom@tromey.com>
14815
14816 * valprint.c (generic_val_print_enum_1)
14817 (val_print_type_code_flags): Style member names.
14818 * rust-lang.c (val_print_struct, rust_print_enum)
14819 (rust_print_struct_def, rust_internal_print_type): Style member
14820 names.
14821 * p-valprint.c (pascal_object_print_value_fields): Style member
14822 names. Only call fprintf_symbol_filtered for static members.
14823 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14824 * f-valprint.c (f_val_print): Style member names.
14825 * f-typeprint.c (f_type_print_base): Style member names.
14826 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14827 call fprintf_symbol_filtered for static members.
14828 (cp_print_class_member): Style member names.
14829 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14830 member names.
14831 * ada-valprint.c (ada_print_scalar): Style enum names.
14832 (ada_val_print_enum): Likewise.
14833 * ada-typeprint.c (print_enum_type): Style enum names.
14834
14835 2020-02-21 Tom Tromey <tom@tromey.com>
14836
14837 * psympriv.h (struct partial_symtab): Update comment.
14838
14839 2020-02-21 Tom Tromey <tromey@adacore.com>
14840
14841 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14842 type is CORE_ADDR.
14843
14844 2020-02-21 Tom de Vries <tdevries@suse.de>
14845
14846 PR gdb/25534
14847 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14848 if dependencies[i]->user != NULL.
14849
14850 2020-02-21 Ali Tamur <tamur@google.com>
14851
14852 * dwarf2/read.c (dwarf2_name): Add null check.
14853
14854 2020-02-20 Tom Tromey <tom@tromey.com>
14855
14856 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14857 ">=", in binary search.
14858 (dwarf2_find_containing_comp_unit): New overload.
14859 (run_test): New self-test.
14860 (_initialize_dwarf2_read): Register new test.
14861
14862 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14863
14864 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14865 * riscv-tdep.h: Likewise.
14866 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14867 rv32-only CSR.
14868 * features/riscv/64bit-csr.xml: Regenerated.
14869
14870 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14871 Tom Tromey <tom@tromey.com>
14872
14873 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14874 of 'fputc_unfiltered'.
14875 (putchar_unfiltered): Call 'fputc_unfiltered'.
14876 (fputc_unfiltered): Call 'fputs_unfiltered'.
14877
14878 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14879
14880 * config.in: Regenerate.
14881 * configure: Regenerate.
14882 * configure.ac: Add --with-python-libdir option.
14883 * main.c: Use WITH_PYTHON_LIBDIR.
14884
14885 2020-02-19 Tom Tromey <tom@tromey.com>
14886
14887 * symtab.c (general_symbol_info::compute_and_set_names): Use
14888 obstack_strndup. Simplify call to symbol_set_demangled_name.
14889
14890 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14891
14892 * dwarf2/read.c (allocate_signatured_type_table,
14893 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14894 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14895 Remove objfile parameter, update all callers.
14896
14897 2020-02-19 Doug Evans <dje@google.com>
14898
14899 PR rust/25535
14900 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14901 rust_enum_variant calculation.
14902
14903 2020-02-19 Tom Tromey <tromey@adacore.com>
14904
14905 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14906
14907 2020-02-19 Tom Tromey <tromey@adacore.com>
14908
14909 * ada-lang.c (cache_symbol): Use obstack_strdup.
14910
14911 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14912
14913 * configure: Regenerate.
14914
14915 2020-02-19 Tom Tromey <tromey@adacore.com>
14916
14917 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14918 NULL check.
14919
14920 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14921
14922 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14923
14924 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14925
14926 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14927 if GDBSERVER is not defined.
14928 (riscv_tdesc_cache): Likewise, also store const target_desc.
14929 (STATIC_IN_GDB): Define.
14930 (riscv_create_target_description): Update declaration with
14931 STATIC_IN_GDB.
14932 (riscv_lookup_target_description): New function, only define if
14933 GDBSERVER is not defined.
14934 * arch/riscv.h (riscv_create_target_description): Declare only
14935 when GDBSERVER is defined.
14936 (riscv_lookup_target_description): New declaration when GDBSERVER
14937 is not defined.
14938 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14939 (riscv_linux_read_features): ...this, and return
14940 riscv_gdbarch_features instead of target_desc.
14941 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14942 (riscv_linux_read_description): Rename to...
14943 (riscv_linux_read_features): ...this.
14944 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14945 Update to use riscv_gdbarch_features and
14946 riscv_lookup_target_description.
14947 * riscv-tdep.c (riscv_find_default_target_description): Use
14948 riscv_lookup_target_description instead of
14949 riscv_create_target_description.
14950
14951 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14952
14953 * valprint.c (generic_val_print_enum_1): When printing a flag
14954 enum with value 0 and there is no enumerator with value 0, print
14955 just "0" instead of "(unknown: 0x0)".
14956
14957 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14958
14959 * valprint.c (generic_val_print_enum_1): Print unknown part of
14960 flag enum in hex.
14961
14962 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14963
14964 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14965 flag enums to contain duplicate enumerators.
14966 * valprint.c (generic_val_print_enum_1): Update comment.
14967
14968 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14969
14970 * dwarf2/read.c: Include "count-one-bits.h".
14971 (update_enumeration_type_from_children): If an enumerator has
14972 multiple bits set, don't treat the enumeration as a "flag enum".
14973 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14974 of flag enums have 0 or 1 bit set.
14975
14976 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14977
14978 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14979 conversion.
14980 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14981 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14982 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14983 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14984 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14985
14986 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14987
14988 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14989
14990 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14991
14992 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14993 displaced_step_closure_up.
14994 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14995 (struct displaced_step_closure_up):
14996 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14997 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14998 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14999 Likewise.
15000 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15001 * gdbarch.c, gdbarch.h: Re-generate.
15002 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15003 displaced_step_closure_up.
15004 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15005 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15006 * infrun.h (displaced_step_closure_up): New type alias.
15007 (struct displaced_step_inferior_state) <step_closure>: Change
15008 type to displaced_step_closure_up.
15009 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15010 displaced_step_closure_up.
15011 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15012
15013 2020-02-14 Tom Tromey <tom@tromey.com>
15014
15015 * minidebug.c (gnu_debug_key): New global.
15016 (find_separate_debug_file_in_section): Use it.
15017
15018 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15019
15020 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15021 std::unique_ptr.
15022 * gdbarch.c: Re-generate.
15023 * gdbarch.h: Re-generate.
15024 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15025 change.
15026 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15027 type to std::unique_ptr.
15028 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15029 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15030 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15031 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15032 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15033 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15034 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15035 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15036 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15037
15038 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15039
15040 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15041 std::unique_ptr.
15042 (displaced_step_clear): Rename to...
15043 (displaced_step_reset): ... this. Just call displaced->reset ().
15044 (displaced_step_clear_cleanup): Rename to...
15045 (displaced_step_reset_cleanup): ... this.
15046 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15047 (displaced_step_fixup): Likewise.
15048 (resume_1): Likewise.
15049 (handle_inferior_event): Restore child's memory before calling
15050 displaced_step_fixup on the parent.
15051 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15052 to std::unique_ptr.
15053 <step_closure>: Change type to std::unique_ptr.
15054
15055 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15056
15057 * arm-tdep.c: Include count-one-bits.h.
15058 (cleanup_block_store_pc): Use count_one_bits.
15059 (cleanup_block_load_pc): Use count_one_bits.
15060 (arm_copy_block_xfer): Use count_one_bits.
15061 (thumb2_copy_block_xfer): Use count_one_bits.
15062 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15063 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15064 (thumb_get_next_pcs_raw): Use count_one_bits.
15065 (arm_get_next_pcs_raw): Use count_one_bits_l.
15066 * arch/arm.c (bitcount): Remove.
15067 * arch/arm.h (bitcount): Remove.
15068
15069 2020-02-14 Tom Tromey <tromey@adacore.com>
15070
15071 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15072 Update.
15073 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15074 * dwarf2/loc.c (call_site_find_chain_1): Return
15075 unique_xmalloc_ptr.
15076 (call_site_find_chain): Likewise.
15077
15078 2020-02-14 Richard Biener <rguenther@suse.de>
15079
15080 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15081 on expression with division operators.
15082
15083 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15084
15085 * MAINTAINERS (Write After Approval): Adding myself.
15086
15087 2020-02-12 Tom Tromey <tom@tromey.com>
15088
15089 * event-loop.c (event_data, gdb_event, event_handler_func):
15090 Remove.
15091
15092 2020-02-12 Tom Tromey <tom@tromey.com>
15093
15094 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15095 (dwarf2_frame_objfile_data): Add comment.
15096 (find_comp_unit, set_comp_unit): New functions.
15097 (dwarf2_frame_find_fde): Use find_comp_unit.
15098 (dwarf2_build_frame_info): Use set_comp_unit.
15099
15100 2020-02-12 Tom Tromey <tom@tromey.com>
15101
15102 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15103 (comp_unit): Don't initialize objfile.
15104 (execute_cfa_program): Add text_offset parameter.
15105 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15106 (dwarf2_frame_cache): Update.
15107 (dwarf2_build_frame_info): Don't set "objfile" member.
15108
15109 2020-02-12 Tom Tromey <tom@tromey.com>
15110
15111 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15112 (decode_frame_entry): Likewise.
15113 (dwarf2_build_frame_info): Update.
15114
15115 2020-02-12 Tom Tromey <tom@tromey.com>
15116
15117 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15118 (decode_frame_entry_1): Use the comp_unit obstack.
15119
15120 2020-02-12 Tom Tromey <tom@tromey.com>
15121
15122 * dwarf2/frame.c (struct comp_unit): Add initializers and
15123 constructor.
15124 (dwarf2_frame_objfile_data): Store a comp_unit.
15125 (dwarf2_frame_find_fde): Update.
15126 (dwarf2_build_frame_info): Use "new".
15127
15128 2020-02-12 Tom Tromey <tom@tromey.com>
15129
15130 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15131 (dwarf2_fde_table): Typedef for std::vector.
15132 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15133 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15134 (decode_frame_entry): Update.
15135 (dwarf2_build_frame_info): Use "new".
15136
15137 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15138
15139 * arm-tdep.c (arm_gdbarch_init): Update.
15140 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15141 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15142 have_neon, is_m>: Change to bool.
15143
15144 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15145
15146 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15147
15148 2020-02-12 Tom Tromey <tom@tromey.com>
15149
15150 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15151
15152 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15153
15154 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15155 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15156
15157 2020-02-11 Tom Tromey <tom@tromey.com>
15158
15159 * psymtab.h: Update comment.
15160
15161 2020-02-11 Tom Tromey <tom@tromey.com>
15162
15163 * gdb_obstack.h (struct auto_obstack): Use
15164 DISABLE_COPY_AND_ASSIGN.
15165
15166 2020-02-11 Tom Tromey <tom@tromey.com>
15167
15168 * dwarf2/frame.h (struct objfile): Don't forward declare.
15169
15170 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15171
15172 * cris-tdep.c (cris_supply_gregset): Change signature to match
15173 what struct regset expects.
15174 (cris_regset): New struct.
15175 (fetch_core_registers): Remove.
15176 (cris_iterate_over_regset_sections): New function.
15177 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15178 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15179
15180 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15181
15182 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15183 registers.
15184
15185 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15186
15187 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15188
15189 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15190
15191 * configure: Re-generate.
15192
15193 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15194
15195 * configure: Re-generate.
15196
15197 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15198
15199 * acinclude: Update warning.m4 path.
15200 * warning.m4: Move to gdbsupport.
15201
15202 2020-02-11 Tom Tromey <tromey@adacore.com>
15203
15204 * remote.c (remote_console_output): Update.
15205 * printcmd.c (printf_command): Update.
15206 * event-loop.c (gdb_wait_for_event): Update.
15207 * linux-nat.c (sigchld_handler): Update.
15208 * remote-sim.c (gdb_os_write_stdout): Update.
15209 (gdb_os_flush_stdout): Update.
15210 (gdb_os_flush_stderr): Update.
15211 (gdb_os_write_stderr): Update.
15212 * exceptions.c (print_exception): Update.
15213 * remote-fileio.c (remote_fileio_func_read): Update.
15214 (remote_fileio_func_write): Update.
15215 * tui/tui.c (tui_enable): Update.
15216 * tui/tui-interp.c (tui_interp::init): Update.
15217 * utils.c (init_page_info): Update.
15218 (putchar_unfiltered, fputc_unfiltered): Update.
15219 (gdb_flush): Update.
15220 (emit_style_escape): Update.
15221 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15222 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15223 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15224 (stderr_file::write): Update.
15225 (stderr_file::puts): Update.
15226 * ui-file.h (ui_file_isatty, ui_file_write)
15227 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15228 (ui_file_puts): Don't declare.
15229
15230 2020-02-10 Tom de Vries <tdevries@suse.de>
15231
15232 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15233 sentinel to char *.
15234
15235 2020-02-09 Tom de Vries <tdevries@suse.de>
15236
15237 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15238 filename if it matches "<artificial>".
15239
15240 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15241
15242 * windows-tdep.c (struct enum_value_name): New struct.
15243 (create_enum): New function.
15244 (windows_get_siginfo_type): Create and use enum types.
15245
15246 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15247
15248 * NEWS: Mention $_siginfo support for Windows.
15249 * windows-nat.c (handle_exception): Set siginfo_er.
15250 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15251 (windows_xfer_siginfo): New function.
15252 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15253 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15254 (init_windows_gdbarch_data): New function.
15255 (get_windows_gdbarch_data): New function.
15256 (windows_get_siginfo_type): New function.
15257 (windows_init_abi): Register windows_get_siginfo_type.
15258 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15259
15260 2020-02-08 Tom Tromey <tom@tromey.com>
15261
15262 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15263 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15264 <keep>: Declare method.
15265 <m_keep>: Remove member.
15266 <~cutu_reader>: Remove.
15267 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15268 (cutu_reader::cutu_reader): Update.
15269 (cutu_reader::keep): Rename from ~cutu_reader.
15270 (process_psymtab_comp_unit, build_type_psymtabs_1)
15271 (process_skeletonless_type_unit, load_partial_comp_unit)
15272 (load_full_comp_unit, dwarf2_read_addr_index)
15273 (read_signatured_type): Update.
15274
15275 2020-02-08 Tom Tromey <tom@tromey.com>
15276
15277 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15278 "want_partial_unit" parameter.
15279 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15280 Inline check for DW_TAG_partial_unit.
15281 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15282
15283 2020-02-08 Tom Tromey <tom@tromey.com>
15284
15285 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15286 read.c.
15287 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15288 read.c.
15289
15290 2020-02-08 Tom Tromey <tom@tromey.com>
15291
15292 * dwarf2/read.c (read_address): Move to comp-unit.c.
15293 (dwarf2_rnglists_process, dwarf2_ranges_process)
15294 (read_attribute_value, dwarf_decode_lines_1)
15295 (var_decode_location, decode_locdesc): Update.
15296 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15297 read.c. Remove "cu" parameter.
15298 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15299 method.
15300
15301 2020-02-08 Tom Tromey <tom@tromey.com>
15302
15303 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15304 (read_indirect_line_string): Update.
15305 * dwarf2/comp-unit.c (read_offset): Remove.
15306 (read_comp_unit_head): Update.
15307 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15308 method.
15309 (read_offset): Don't declare.
15310
15311 2020-02-08 Tom Tromey <tom@tromey.com>
15312
15313 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15314 * dwarf2/read.c (struct comp_unit_head): Move to
15315 dwarf2/comp-unit.h.
15316 (enum class rcuh_kind): Move to comp-unit.h.
15317 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15318 (read_comp_unit_head, error_check_comp_unit_head)
15319 (read_and_check_comp_unit_head): Move to comp-unit.c.
15320 (read_offset, dwarf_unit_type_name): Likewise.
15321 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15322 (cutu_reader::cutu_reader, read_call_site_scope)
15323 (find_partial_die, follow_die_offset): Update.
15324 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15325
15326 2020-02-08 Tom Tromey <tom@tromey.com>
15327
15328 * dwarf2/read.c (read_offset_1): Move to leb.c.
15329 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15330 (dwarf_decode_macro_bytes): Update.
15331 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15332 * dwarf2/leb.h (read_offset): Declare.
15333
15334 2020-02-08 Tom Tromey <tom@tromey.com>
15335
15336 * dwarf2/read.c (dwarf2_section_size): Remove.
15337 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15338 Update.
15339 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15340
15341 2020-02-08 Tom Tromey <tom@tromey.com>
15342
15343 * dwarf2/read.c (read_initial_length): Move to leb.c.
15344 * dwarf2/leb.h (read_initial_length): Declare.
15345 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15346 handle_nonstd parameter.
15347 * dwarf2/frame.c (read_initial_length): Remove.
15348 (decode_frame_entry_1): Update.
15349
15350 2020-02-08 Tom Tromey <tom@tromey.com>
15351
15352 * dwarf2/loc.c (dwarf2_find_location_expression)
15353 (dwarf_evaluate_loc_desc::get_tls_address)
15354 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15355 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15356 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15357 (dwarf2_compile_property_to_c)
15358 (dwarf2_loc_desc_get_symbol_read_needs)
15359 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15360 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15361 (loclist_describe_location, loclist_tracepoint_var_ref)
15362 (loclist_generate_c_location): Update.
15363 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15364 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15365 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15366 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15367 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15368 (dwarf2_per_cu_data::addr_size)
15369 (dwarf2_per_cu_data::ref_addr_size)
15370 (dwarf2_per_cu_data::text_offset)
15371 (dwarf2_per_cu_data::addr_type): Now methods.
15372 (per_cu_header_read_in): Make per_cu "const".
15373 (dwarf2_version): Remove.
15374 (dwarf2_per_cu_data::int_type): Now a method.
15375 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15376 (set_die_type, read_array_type, read_subrange_index_type)
15377 (read_tag_string_type, read_subrange_type): Update.
15378 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15379 offset_size, ref_addr_size, text_offset, addr_type, version,
15380 objfile, int_type, addr_sized_int_type>: Declare methods.
15381
15382 2020-02-08 Tom Tromey <tom@tromey.com>
15383
15384 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15385 Move earlier.
15386
15387 2020-02-08 Tom Tromey <tom@tromey.com>
15388
15389 * dwarf2/read.h (dwarf_line_debug): Declare.
15390 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15391 * dwarf2/read.c: Move line_header code to new files.
15392 (dwarf_line_debug): No longer static.
15393 * dwarf2/line-header.c: New file.
15394 * dwarf2/line-header.h: New file.
15395
15396 2020-02-08 Tom Tromey <tom@tromey.com>
15397
15398 * dwarf2/read.c (struct line_header) <file_full_name,
15399 file_file_name>: Return unique_xmalloc_ptr.
15400 (line_header::file_file_name): Update.
15401 (line_header::file_full_name): Update.
15402 (dw2_get_file_names_reader): Update.
15403 (macro_start_file): Update.
15404
15405 2020-02-08 Tom Tromey <tom@tromey.com>
15406
15407 * dwarf2/read.c (struct line_header) <file_full_name,
15408 file_file_name>: Declare methods.
15409 (dw2_get_file_names_reader): Update.
15410 (file_file_name): Now a method.
15411 (file_full_name): Likewise.
15412 (macro_start_file): Update.
15413
15414 2020-02-08 Tom Tromey <tom@tromey.com>
15415
15416 * dwarf2/read.c (dwarf_always_disassemble)
15417 (show_dwarf_always_disassemble): Move to loc.c.
15418 (_initialize_dwarf2_read): Move "always-disassemble" registration
15419 to loc.c.
15420 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15421 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15422 static.
15423 (show_dwarf_always_disassemble): Move from read.c.
15424 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15425
15426 2020-02-08 Tom Tromey <tom@tromey.com>
15427
15428 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15429 (create_quick_file_names_table): Return htab_up.
15430 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15431 Update.
15432 * dwarf2/read.h (struct dwarf2_per_objfile)
15433 <quick_file_names_table>: Now htab_up.
15434
15435 2020-02-08 Tom Tromey <tom@tromey.com>
15436
15437 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15438
15439 2020-02-08 Tom Tromey <tom@tromey.com>
15440
15441 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15442 Rewrite.
15443 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15444 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15445 (abbrev_table::abbrev_table): No longer inline.
15446 (ABBREV_HASH_SIZE): Remove.
15447 (abbrev_table::m_abbrevs): Now an htab_up.
15448
15449 2020-02-08 Tom Tromey <tom@tromey.com>
15450
15451 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15452 (cutu_reader): Update.
15453 (build_type_psymtabs_1): Update.
15454 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15455 (abbrev_table::alloc_abbrev): Update.
15456 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15457 (abbrev_table::read): New static method, renamed from
15458 abbrev_table_read_table.
15459 (abbrev_table::alloc_abbrev)
15460 (abbrev_table::add_abbrev): Now private.
15461 (abbrev_table::abbrev_table): Now private.
15462 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15463
15464 2020-02-08 Tom Tromey <tom@tromey.com>
15465
15466 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15467 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15468 htab_up.
15469
15470 2020-02-08 Tom Tromey <tom@tromey.com>
15471
15472 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15473 htab_up.
15474 (lookup_dwo_unit_in_dwp): Update.
15475 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15476 on obstack.
15477
15478 2020-02-08 Tom Tromey <tom@tromey.com>
15479
15480 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15481 obstack.
15482
15483 2020-02-08 Tom Tromey <tom@tromey.com>
15484
15485 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15486 line_header_hash.
15487 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15488 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15489 Change type to htab_up.
15490
15491 2020-02-08 Tom Tromey <tom@tromey.com>
15492
15493 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15494 htab_up. Don't allocate on obstack.
15495 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15496 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15497 Change type to htab_up.
15498
15499 2020-02-08 Tom Tromey <tom@tromey.com>
15500
15501 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15502 Change type to htab_up.
15503 * dwarf2/read.c (create_signatured_type_table_from_index)
15504 (create_signatured_type_table_from_debug_names)
15505 (create_all_type_units, add_type_unit)
15506 (lookup_dwo_signatured_type, lookup_signatured_type)
15507 (process_skeletonless_type_unit): Update.
15508 (create_debug_type_hash_table, create_debug_types_hash_table):
15509 Change type of types_htab.
15510 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15511 htab_up. Don't allocate on obstack.
15512 (create_cus_hash_table): Change type of cus_htab parameter.
15513 (struct dwo_file) <cus, tus>: Now htab_up.
15514 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15515 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15516 (queue_and_load_all_dwo_tus): Update.
15517 * dwarf2/index-write.c (write_gdbindex): Update.
15518 (write_debug_names): Update.
15519
15520 2020-02-08 Tom Tromey <tom@tromey.com>
15521
15522 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15523 dwarf2/read.c. Remove "next" member. Add constructor ntad
15524 destructor.
15525 (struct dwarf2_per_objfile) <queue>: New member.
15526 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15527 dwarf2/read.h.
15528 (dwarf2_queue, dwarf2_queue_tail): Remove.
15529 (class dwarf2_queue_guard): Add parameter to constructor. Use
15530 DISABLE_COPY_AND_ASSIGN.
15531 <m_per_objfile>: New member.
15532 <~dwarf2_queue_guard>: Rewrite.
15533 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15534 Update.
15535 (~dwarf2_queue_item): New.
15536
15537 2020-02-08 Tom Tromey <tom@tromey.com>
15538
15539 * dwarf2/read.c (struct die_info) <has_children>: New member.
15540 (dw2_get_file_names_reader): Remove has_children.
15541 (dw2_get_file_names): Update.
15542 (read_cutu_die_from_dwo): Remove has_children.
15543 (cutu_reader::init_tu_and_read_dwo_dies)
15544 (cutu_reader::cutu_reader): Update.
15545 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15546 Remove has_children.
15547 (build_type_psymtabs_1, process_skeletonless_type_unit)
15548 (load_partial_comp_unit, load_full_comp_unit): Update.
15549 (create_dwo_cu_reader): Remove has_children.
15550 (create_cus_hash_table, read_die_and_children): Update.
15551 (read_full_die_1,read_full_die): Remove has_children.
15552 (read_signatured_type): Update.
15553 (class cutu_reader) <has_children>: Remove.
15554
15555 2020-02-08 Tom Tromey <tom@tromey.com>
15556
15557 * dwarf2/expr.c: Rename from dwarf2expr.c.
15558 * dwarf2/expr.h: Rename from dwarf2expr.h.
15559 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15560 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15561 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15562 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15563 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15564 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15565 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15566 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15567 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15568 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15569 * dwarf2/loc.c: Rename from dwarf2loc.c.
15570 * dwarf2/loc.h: Rename from dwarf2loc.h.
15571 * dwarf2/read.c: Rename from dwarf2read.c.
15572 * dwarf2/read.h: Rename from dwarf2read.h.
15573 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15574 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15575 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15576 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15577 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15578 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15579 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15580 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15581 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15582 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15583 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15584 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15585 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15586 Update.
15587 * Makefile.in (COMMON_SFILES): Update.
15588 (HFILES_NO_SRCDIR): Update.
15589
15590 2020-02-08 Tom Tromey <tom@tromey.com>
15591
15592 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15593 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15594
15595 2020-02-08 Tom Tromey <tom@tromey.com>
15596
15597 * dwarf2read.h (struct die_info): Don't declare.
15598
15599 2020-02-08 Tom Tromey <tom@tromey.com>
15600
15601 * dwarf2read.h (die_info_ptr): Remove typedef.
15602
15603 2020-02-08 Tom Tromey <tom@tromey.com>
15604
15605 * dwarf2read.c (read_call_site_scope)
15606 (handle_data_member_location, dwarf2_add_member_fn)
15607 (mark_common_block_symbol_computed, read_common_block)
15608 (attr_to_dynamic_prop, partial_die_info::read)
15609 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15610 (dwarf2_symbol_mark_computed, set_die_type): Update.
15611 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15612 method.
15613 (attr_form_is_block): Don't declare.
15614 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15615
15616 2020-02-08 Tom Tromey <tom@tromey.com>
15617
15618 * dwarf2read.c (dwarf2_find_base_address, )
15619 (read_call_site_scope, rust_containing_type)
15620 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15621 (handle_data_member_location, dwarf2_add_member_fn)
15622 (get_alignment, read_structure_type, process_structure_scope)
15623 (mark_common_block_symbol_computed, read_common_block)
15624 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15625 (partial_die_info::read, read_attribute_value, new_symbol)
15626 (lookup_die_type, dwarf2_get_ref_die_offset)
15627 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15628 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15629 (dwarf2_symbol_mark_computed): Update.
15630 * dwarf2/attribute.h (struct attribute) <value_as_address,
15631 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15632 methods.
15633 (value_as_address, attr_form_is_section_offset)
15634 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15635 * dwarf2/attribute.c (attribute::value_as_address)
15636 (attribute::form_is_section_offset, attribute::form_is_constant)
15637 (attribute::form_is_ref): Now methods.
15638
15639 2020-02-08 Tom Tromey <tom@tromey.com>
15640
15641 * dwarf2read.c (struct attribute, DW_STRING)
15642 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15643 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15644 (attr_form_is_block, attr_form_is_section_offset)
15645 (attr_form_is_constant, attr_form_is_ref): Move.
15646 * dwarf2/attribute.h: New file.
15647 * dwarf2/attribute.c: New file, from dwarf2read.c.
15648 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15649
15650 2020-02-08 Tom Tromey <tom@tromey.com>
15651
15652 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15653 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15654 Move.
15655 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15656 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15657 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15658 abbrev.c.
15659 * dwarf2/abbrev.h: New file.
15660 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15661 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15662
15663 2020-02-08 Tom Tromey <tom@tromey.com>
15664
15665 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15666 (dwarf2_section_size, dwarf2_get_section_info)
15667 (create_signatured_type_table_from_debug_names)
15668 (create_addrmap_from_aranges, read_debug_names_from_section)
15669 (get_gdb_index_contents_from_section, read_comp_unit_head)
15670 (error_check_comp_unit_head, read_abbrev_offset)
15671 (create_debug_type_hash_table, init_cu_die_reader)
15672 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15673 (read_comp_units_from_section, create_cus_hash_table)
15674 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15675 (create_dwp_v2_section, dwarf2_rnglists_process)
15676 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15677 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15678 (read_indirect_string_from_dwz, read_addr_index_1)
15679 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15680 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15681 (fill_in_loclist_baton): Update.
15682 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15683 get_containing_section, get_bfd_owner, get_bfd_section,
15684 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15685 (dwarf2_read_section, get_section_name, get_section_file_name)
15686 (get_containing_section, get_section_bfd_owner)
15687 (get_section_bfd_section, get_section_name, get_section_file_name)
15688 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15689 declare.
15690 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15691 (dwarf2_section_info::get_bfd_owner)
15692 (dwarf2_section_info::get_bfd_section)
15693 (dwarf2_section_info::get_name)
15694 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15695 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15696 (dwarf2_section_info::read): Now methods.
15697 * dwarf-index-write.c (class debug_names): Update.
15698
15699 2020-02-08 Tom Tromey <tom@tromey.com>
15700
15701 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15702 Move to dwarf2/section.h.
15703 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15704 (get_section_bfd_section, get_section_name)
15705 (get_section_file_name, get_section_id, get_section_flags)
15706 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15707 dwarf2/section.c.
15708 * dwarf2/section.h: New file.
15709 * dwarf2/section.c: New file, from dwarf2read.c.
15710 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15711
15712 2020-02-08 Tom Tromey <tom@tromey.com>
15713
15714 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15715 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15716 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15717 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15718 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15719 * dwarf2/leb.h: New file, from dwarf2read.c.
15720 * dwarf2/leb.c: New file, from dwarf2read.c.
15721 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15722 Remove.
15723 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15724 (COMMON_SFILES): Add dwarf2/leb.c.
15725
15726 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15727
15728 GDB 9.1 released.
15729
15730 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15731
15732 PR gdb/25190:
15733 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15734 * gdb/remote.c (remote_console_output): Update.
15735 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15736 (ui_file_puts): ...this.
15737 * gdb/ui-file.h (ui_file_puts): Add declaration.
15738 * gdb/utils.c (emit_style_escape): Update.
15739 (flush_wrap_buffer): Update.
15740 (fputs_maybe_filtered): Update.
15741 (fputs_unfiltered): Add function.
15742
15743 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15744
15745 * gdb/event-loop.c (gdb_wait_for_event): Update.
15746 * gdb/printcmd.c (printf_command): Update.
15747 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15748 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15749 (gdb_os_flush_stderr): Update.
15750 * gdb/remote.c (remote_console_output): Update.
15751 * gdb/ui-file.c (gdb_flush): Rename to...
15752 (ui_file_flush): ...this.
15753 (stderr_file::write): Update.
15754 (stderr_file::puts): Update.
15755 * gdb/ui-file.h (gdb_flush): Rename to...
15756 (ui_file_flush): ...this.
15757 * gdb/utils.c (gdb_flush): Add function.
15758 * gdb/utils.h (gdb_flush): Add declaration.
15759
15760 2020-02-07 Tom Tromey <tromey@adacore.com>
15761
15762 PR breakpoints/24915:
15763 * source.c (find_and_open_source): Do not check basenames_may_differ.
15764
15765 2020-02-07 Tom Tromey <tom@tromey.com>
15766
15767 * README: Update gdbserver documentation.
15768 * gdbserver: Move to top level.
15769 * configure.tgt (build_gdbserver): Remove.
15770 * configure.ac: Remove --enable-gdbserver.
15771 * configure: Rebuild.
15772 * Makefile.in (distclean): Don't mention gdbserver.
15773
15774 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15775
15776 * source-cache.c (source_cache::ensure): Surround
15777 get_plain_source_lines with a try/catch.
15778 (source_cache::get_line_charpos): Get rid of try/catch
15779 and only check for the return value of "ensure".
15780 * tui/tui-source.c (tui_source_window::set_contents):
15781 Simplify "nlines" calculation.
15782
15783 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15784
15785 * MAINTAINERS (Write After Approval): Add myself.
15786
15787 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15788
15789 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15790 function call.
15791
15792 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15793
15794 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15795
15796 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15797
15798 * nat/riscv-linux-tdesc.h: New file.
15799 * nat/riscv-linux-tdesc.c: New file, taking code from...
15800 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15801 ... here.
15802 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15803 NATDEPFILES.
15804
15805 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15806
15807 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15808 we don't set the fake simulator ptid to the null_ptid.
15809
15810 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15811
15812 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15813 * gdbthread.h (class thread_info) <resumed>: Likewise.
15814 * infrun.c (resume_1): Likewise.
15815 (proceed): Likewise.
15816 (infrun_thread_stop_requested): Likewise.
15817 (stop_all_threads): Likewise.
15818 (handle_inferior_event): Likewise.
15819 (restart_threads): Likewise.
15820 (finish_step_over): Likewise.
15821 (keep_going_stepped_thread): Likewise.
15822 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15823 (linux_handle_extended_wait): Likewise.
15824 * record-btrace.c (get_thread_current_frame_id): Likewise.
15825 * record-full.c (record_full_wait_1): Likewise.
15826 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15827 * target.c (target_resume): Likewise.
15828 * thread.c (set_running_thread): Likewise.
15829
15830 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15831
15832 * f-valprint.c (f77_print_array_1): Changed datatype of index
15833 variable to LONGEST from int to enable it to contain bound
15834 values correctly.
15835
15836 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15837
15838 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15839 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15840 offsets according to FLEN determined.
15841 (riscv_linux_nat_target::read_description): Determine FLEN
15842 dynamically.
15843 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15844 according to FLEN determined.
15845 (riscv_linux_nat_target::store_registers): Likewise.
15846
15847 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15848
15849 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15850 when reg->group is empty and reggroup is not.
15851
15852 2020-01-31 Tom Tromey <tromey@adacore.com>
15853
15854 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15855 Call beneath target's mourn_inferior after unpushing.
15856
15857 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15858
15859 PR tui/9765
15860 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15861 have enough lines to fill the screen, still return the lowest
15862 address we found.
15863
15864 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15865
15866 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15867 '-', '<', and '>' commands.
15868
15869 2020-01-29 Pedro Alves <palves@redhat.com>
15870 Sergio Durigan Junior <sergiodj@redhat.com>
15871
15872 * infcmd.c (construct_inferior_arguments): Assert that
15873 'argc' is greater than 0.
15874
15875 2020-01-29 Luis Machado <luis.machado@linaro.org>
15876
15877 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15878 (BRK_INSN_MASK): Define to 0xd4200000.
15879 (aarch64_program_breakpoint_here_p): New function.
15880 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15881 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15882 breakpoint.c.
15883 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15884 breakpoint.h
15885 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15886 call gdbarch_program_breakpoint_here_p.
15887 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15888 default_program_breakpoint_here_p, changed return type to bool and
15889 simplified.
15890 * breakpoint.h (program_breakpoint_here): Moved prototype to
15891 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15892 return type to bool.
15893 * gdbarch.c: Regenerate.
15894 * gdbarch.h: Regenerate.
15895 * gdbarch.sh (program_breakpoint_here_p): New method.
15896 * infrun.c (handle_signal_stop): Call
15897 gdbarch_program_breakpoint_here_p.
15898
15899 2020-01-26 Tom Tromey <tom@tromey.com>
15900
15901 * ctfread.c (struct ctf_fp_info): Reindent.
15902 (_initialize_ctfread): Remove.
15903
15904 2020-01-26 Tom Tromey <tom@tromey.com>
15905
15906 * psymtab.c (partial_map_expand_apply)
15907 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15908 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15909 (psym_print_stats, psym_expand_symtabs_for_function)
15910 (psym_map_symbol_filenames, psym_map_matching_symbols)
15911 (psym_expand_symtabs_matching)
15912 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15913 (maintenance_check_psymtabs): Use new methods.
15914 * psympriv.h (struct partial_symtab) <readin_p,
15915 get_compunit_symtab>: New methods.
15916 <readin, compunit_symtab>: Remove members.
15917 (struct standard_psymtab): New.
15918 (struct legacy_psymtab): Derive from standard_psymtab.
15919 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15920 standard_psymtab.
15921 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15922
15923 2020-01-26 Tom Tromey <tom@tromey.com>
15924
15925 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15926 read_dependencies. Add assert.
15927 * psymtab.c (partial_symtab::read_dependencies): New method.
15928 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15929 method.
15930 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15931 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15932 read_dependencies.
15933 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15934 Add assert.
15935
15936 2020-01-26 Tom Tromey <tom@tromey.com>
15937
15938 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15939 Call expand_psymtab.
15940 (xcoff_read_symtab): Call expand_psymtab.
15941 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15942 legacy_expand_psymtab.
15943 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15944 method.
15945 (struct legacy_psymtab) <expand_psymtab>: Implement.
15946 <legacy_expand_psymtab>: New member.
15947 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15948 (parse_partial_symbols): Set legacy_expand_psymtab.
15949 (psymtab_to_symtab_1): Change argument order. Call
15950 expand_psymtab.
15951 (new_psymtab): Set legacy_expand_psymtab.
15952 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15953 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15954 expand_psymtab.
15955 (dwarf2_psymtab::expand_psymtab): Rename from
15956 psymtab_to_symtab_1. Call expand_psymtab.
15957 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15958 (dbx_end_psymtab): Likewise.
15959 (dbx_psymtab_to_symtab_1): Change argument order. Call
15960 expand_psymtab.
15961 (dbx_read_symtab): Call expand_psymtab.
15962 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15963 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15964 (ctf_psymtab::read_symtab): Call expand_psymtab.
15965
15966 2020-01-26 Tom Tromey <tom@tromey.com>
15967
15968 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15969 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15970 messages.
15971 * mdebugread.c (mdebug_read_symtab): Remove prints.
15972 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15973 assert.
15974 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15975
15976 2020-01-26 Tom Tromey <tom@tromey.com>
15977
15978 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15979 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15980 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15981 legacy_symtab.
15982 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15983 * psymtab.c (psymtab_to_symtab): Call method.
15984 (dump_psymtab): Update.
15985 * psympriv.h (struct partial_symtab): Add virtual destructor.
15986 <read_symtab>: New method.
15987 (struct legacy_symtab): New.
15988 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15989 (struct pst_map) <pst>: Now a legacy_psymtab.
15990 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15991 (new_psymtab): Use legacy_psymtab.
15992 * dwarf2read.h (struct dwarf2_psymtab): New.
15993 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15994 * dwarf2read.c (dwarf2_create_include_psymtab)
15995 (dwarf2_build_include_psymtabs, create_type_unit_group)
15996 (create_partial_symtab, process_psymtab_comp_unit_reader)
15997 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15998 (set_partial_user): Use dwarf2_psymtab.
15999 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16000 (psymtab_to_symtab_1, process_full_comp_unit)
16001 (process_full_type_unit, dwarf2_ranges_read)
16002 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16003 (dwarf_decode_lines): Use dwarf2_psymtab.
16004 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16005 (add_address_entry_worker, write_one_signatured_type)
16006 (recursively_count_psymbols, recursively_write_psymbols)
16007 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16008 (write_debug_names): Likewise.
16009 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16010 <pst>: Now a legacy_psymtab.
16011 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16012 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16013 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16014 * ctfread.c (struct ctf_psymtab): New.
16015 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16016 ctf_psymtab.
16017 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16018 (create_partial_symtab): Return a ctf_psymtab.
16019 (scan_partial_symbols): Update.
16020
16021 2020-01-26 Tom Tromey <tom@tromey.com>
16022
16023 * xcoffread.c (xcoff_start_psymtab): Use new.
16024 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16025 renamed from start_psymtab_common.
16026 * psympriv.h (struct partial_symtab): Add new constructor.
16027 (start_psymtab_common): Don't declare.
16028 * mdebugread.c (parse_partial_symbols): Use new.
16029 * dwarf2read.c (create_partial_symtab): Use new.
16030 * dbxread.c (start_psymtab): Use new.
16031 * ctfread.c (create_partial_symtab): Use new.
16032
16033 2020-01-26 Tom Tromey <tom@tromey.com>
16034
16035 * xcoffread.c (xcoff_end_psymtab): Use new.
16036 * psymtab.c (start_psymtab_common): Use new.
16037 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16038 Update.
16039 * psympriv.h (struct partial_symtab): Add parameters to
16040 constructor. Don't inline.
16041 (allocate_psymtab): Don't declare.
16042 * mdebugread.c (new_psymtab): Use new.
16043 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16044 * dbxread.c (dbx_end_psymtab): Use new.
16045
16046 2020-01-26 Tom Tromey <tom@tromey.com>
16047
16048 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16049 allocate_psymtab. Update documentation.
16050 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16051 allocate_psymtab. Do not use new.
16052 (allocate_psymtab): Use new. Update.
16053
16054 2020-01-26 Tom Tromey <tom@tromey.com>
16055
16056 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16057 * psymtab.c (psym_print_stats): Update.
16058 * psympriv.h (struct partial_symtab) <readin,
16059 psymtabs_addrmap_supported, anonymous>: Now bool.
16060 * mdebugread.c (psymtab_to_symtab_1): Update.
16061 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16062 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16063 (process_full_comp_unit, process_full_type_unit): Update.
16064 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16065 * ctfread.c (psymtab_to_symtab): Update.
16066
16067 2020-01-26 Tom Tromey <tom@tromey.com>
16068
16069 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16070 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16071 * psymtab.c (psymtab_storage): Delete psymtabs.
16072 (psymtab_storage::allocate_psymtab): Use new.
16073 (psymtab_storage::discard_psymtab): Use delete.
16074 * psympriv.h (struct partial_symtab): Add constructor and
16075 initializers.
16076
16077 2020-01-26 Tom Tromey <tom@tromey.com>
16078
16079 * machoread.c: Do not include psympriv.h.
16080
16081 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16082
16083 * NEWS: Mention the new option and the set/show commands.
16084
16085 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16086
16087 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16088 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16089 (validate_exec_file): New variables, enums, functions.
16090 (exec_file_locate_attach, print_section_info): Style the filenames.
16091 (_initialize_exec): Install show_exec_file_mismatch_command and
16092 set_exec_file_mismatch_command.
16093 * gdbcore.h (validate_exec_file): Declare.
16094 * infcmd.c (attach_command): Call validate_exec_file.
16095 * remote.c ( remote_target::remote_add_inferior): Likewise.
16096
16097 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16098
16099 * frame.c (find_frame_sal): Move call to get_next_frame into more
16100 inner scope.
16101 * inline-frame.c (inilne_state) <inline_state>: Update argument
16102 types.
16103 (inilne_state) <skipped_symbol>: Rename to...
16104 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16105 (skip_inline_frames): Build vector of skipped symbols and use this
16106 to reate the inline_state.
16107 (inline_skipped_symbol): Add a comment and some assertions, fetch
16108 skipped symbol from the list.
16109
16110 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16111
16112 * buildsym.c (lte_is_less_than): Delete.
16113 (buildsym_compunit::end_symtab_with_blockvector): Create local
16114 lambda function to sort line table entries, and use
16115 std::stable_sort instead of std::sort.
16116 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16117 markers when looking for a previous line.
16118
16119 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16120
16121 * dwarf2read.c (lnp_state_machine::record_line): Include
16122 end_sequence parameter in debug print out. Record the line if we
16123 are at an end_sequence marker even if it's not the start of a
16124 statement.
16125 * symmisc.c (maintenance_print_one_line_table): Print end of
16126 sequence markers with 'END' not '0'.
16127
16128 2020-01-24 Pedro Alves <palves@redhat.com>
16129
16130 PR gdb/25410
16131 * thread.c (scoped_restore_current_thread::restore): Use
16132 switch_to_inferior_no_thread.
16133 * exec.c: Include "progspace-and-thread.h".
16134 (add_target_sections, remove_target_sections):
16135 scoped_restore_current_pspace_and_thread instead of
16136 scoped_restore_current_thread.
16137 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16138 and aspace to the inferior before calling clone_program_space.
16139 Remove stale comment.
16140
16141 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16142
16143 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16144 (arm_netbsd_nat_target::fetch_registers): ...this.
16145 (arm_nbsd_nat_target::store_registers): Rename to...
16146 (arm_netbsd_nat_target::store_registers): ...this.
16147
16148 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16149
16150 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16151 register_t.
16152
16153 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16154
16155 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16156 Update comment.
16157 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16158 Likewise.
16159 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16160 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16161 the correct replacement (iterate_over_regset_sections).
16162 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16163 Update comment.
16164
16165 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16166
16167 PR gdb/23718
16168 * gdb/python/python.c (execute_gdb_command): Call
16169 async_enable_stdin in catch block.
16170
16171 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16172
16173 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16174 SWITCH_THRU_ALL_UIS.
16175
16176 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16177
16178 PR tui/9765
16179 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16180 comment, add extra parameter, and update to store previous symbol
16181 when appropriate.
16182 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16183 add extra parameter.
16184 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16185 remove unneeded parameter, add try/catch around gdb_print_insn,
16186 rewrite to add items to asm_lines vector.
16187 (tui_find_backward_disassembly_start_address): New function.
16188 (tui_find_disassembly_address): Updated throughout.
16189 (tui_disasm_window::set_contents): Update for changes to
16190 tui_disassemble.
16191 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16192 number of lines to scroll.
16193
16194 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16195
16196 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16197 (SECT_OFF_DATA): Likewise.
16198 (SECT_OFF_RODATA): Likewise.
16199 (SECT_OFF_TEXT): Likewise.
16200 (SECT_OFF_BSS): Likewise.
16201 (struct objfile) <text_section_offset, data_section_offset>: New
16202 methods.
16203 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16204 objfile::text_section_offset.
16205 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16206 * coffread.c (coff_symtab_read): Likewise.
16207 (enter_linenos): Likewise.
16208 (process_coff_symbol): Likewise.
16209 * ctfread.c (get_objfile_text_range): Likewise.
16210 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16211 Use objfile::data_section_offset.
16212 * dwarf2-frame.c (execute_cfa_program): Use
16213 objfile::text_section_offset.
16214 (dwarf2_frame_find_fde): Likewise.
16215 * dwarf2read.c (create_addrmap_from_index): Likewise.
16216 (create_addrmap_from_aranges): Likewise.
16217 (dw2_find_pc_sect_compunit_symtab): Likewise.
16218 (process_psymtab_comp_unit_reader): Likewise.
16219 (add_partial_symbol): Likewise.
16220 (add_partial_subprogram): Likewise.
16221 (process_full_comp_unit): Likewise.
16222 (read_file_scope): Likewise.
16223 (read_func_scope): Likewise.
16224 (read_lexical_block_scope): Likewise.
16225 (read_call_site_scope): Likewise.
16226 (dwarf2_rnglists_process): Likewise.
16227 (dwarf2_ranges_process): Likewise.
16228 (dwarf2_ranges_read): Likewise.
16229 (dwarf_decode_lines_1): Likewise.
16230 (new_symbol): Likewise.
16231 (dwarf2_fetch_die_loc_sect_off): Likewise.
16232 (dwarf2_per_cu_text_offset): Likewise.
16233 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16234 * hppa-tdep.c (read_unwind_info): Likewise.
16235 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16236 * psympriv.h (struct partial_symtab): Likewise.
16237 * psymtab.c (find_pc_sect_psymtab): Likewise.
16238 * solib-svr4.c (enable_break): Likewise.
16239 * stap-probe.c (relocate_address): Use
16240 objfile::data_section_offset.
16241 * xcoffread.c (enter_line_range): Use
16242 objfile::text_section_offset.
16243 (read_xcoff_symtab): Likewise.
16244
16245 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16246
16247 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16248 declaration to narrower scopes.
16249
16250 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16251
16252 * darwin-nat.h (struct darwin_exception_msg, enum
16253 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16254 Move up.
16255 (class darwin_nat_target) <wait_1, check_new_threads,
16256 decode_exception_message, decode_message, stop_inferior,
16257 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16258 * darwin-nat.c (darwin_check_new_threads): Rename to...
16259 (darwin_nat_target::check_new_threads): ... this.
16260 (darwin_suspend_inferior_it): Remove.
16261 (darwin_decode_exception_message): Rename to...
16262 (darwin_nat_target::decode_exception_message): ... this.
16263 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16264 (darwin_decode_message): Rename to...
16265 (darwin_nat_target::decode_message): ... this.
16266 (cancel_breakpoint): Rename to...
16267 (darwin_nat_target::cancel_breakpoint): ... this.
16268 (darwin_wait): Rename to...
16269 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16270 instead of iterate_over_inferiors.
16271 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16272 (darwin_stop_inferior): Rename to...
16273 (darwin_nat_target::stop_inferior): ... this.
16274 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16275 (darwin_init_thread_list): Rename to...
16276 (darwin_nat_target::init_thread_list): ... this.
16277 (darwin_ptrace_him): Rename to...
16278 (darwin_nat_target::ptrace_him): ... this.
16279 (darwin_nat_target::create_inferior): Pass lambda function to
16280 fork_inferior.
16281 (darwin_nat_target::detach): Call stop_inferior instead of
16282 darwin_stop_inferior.
16283 * fork-inferior.h (fork_inferior): Change init_trace_fun
16284 parameter to gdb::function_view.
16285 * fork-inferior.c (fork_inferior): Likewise.
16286
16287 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16288
16289 * i386-cygwin-tdep.c (core_process_module_section): Update.
16290 * windows-nat.c (struct lm_info_windows): Add text_offset.
16291 (windows_xfer_shared_libraries): Update.
16292 * windows-tdep.c (windows_xfer_shared_library):
16293 Add text_offset_cached argument.
16294 * windows-tdep.h (windows_xfer_shared_library): Update.
16295
16296 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16297
16298 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16299
16300 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16301
16302 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16303 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16304 replace with range-based for.
16305 (gdbsim_interrupt_inferior): Remove.
16306 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16307 with a range-based for. Inline code from
16308 gdbsim_interrupt_inferior.
16309
16310 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16311
16312 * infrun.c (proceed): Fix indentation.
16313
16314 2020-01-21 Tom Tromey <tromey@adacore.com>
16315
16316 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16317 * python/python.c (python_extension_ops): Update.
16318 (gdbpy_colorize): New function.
16319 * python/lib/gdb/__init__.py (colorize): New function.
16320 * extension.h (ext_lang_colorize): Declare.
16321 * extension.c (ext_lang_colorize): New function.
16322 * extension-priv.h (struct extension_language_ops) <colorize>: New
16323 member.
16324 * cli/cli-style.c (_initialize_cli_style): Update help text.
16325
16326 2020-01-21 Luis Machado <luis.machado@linaro.org>
16327
16328 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16329 <cond>: Change type to bool.
16330 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16331 (aarch64_displaced_step_cb): Likewise.
16332 (aarch64_displaced_step_tb): Likewise.
16333
16334 2020-01-21 Luis Machado <luis.machado@linaro.org>
16335
16336 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16337 output.
16338
16339 2020-01-21 Luis Machado <luis.machado@linaro.org>
16340
16341 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16342 <pc_adjust>: Adjust the documentation.
16343 (aarch64_displaced_step_fixup): Check if PC really moved before
16344 adjusting it.
16345
16346 2020-01-19 Tom Tromey <tom@tromey.com>
16347
16348 * disasm.c (~gdb_disassembler): New destructor.
16349 (gdb_buffered_insn_length): Call disassemble_free_target.
16350 * disasm.h (class gdb_disassembler): Declare destructor. Use
16351 DISABLE_COPY_AND_ASSIGN.
16352
16353 2020-01-19 Tom Tromey <tom@tromey.com>
16354
16355 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16356 (die_reader_func_ftype): Remove.
16357 (cutu_reader): New class.
16358 (dw2_get_file_names_reader): Remove "data" parameter.
16359 (dw2_get_file_names): Use cutu_reader.
16360 (create_debug_type_hash_table): Update.
16361 (read_cutu_die_from_dwo): Update comment.
16362 (lookup_dwo_unit): Add dwo_name parameter.
16363 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16364 die_reader_func_ftype and data parameters.
16365 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16366 Remove die_reader_func_ftype and data parameters.
16367 (~cutu_reader): New; from init_cutu_and_read_dies.
16368 (cutu_reader::cutu_reader): Rename from
16369 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16370 and data parameters.
16371 (init_cutu_and_read_dies_simple): Remove.
16372 (struct process_psymtab_comp_unit_data): Remove.
16373 (process_psymtab_comp_unit_reader): Remove data parameter; add
16374 want_partial_unit and pretend_language parameters.
16375 (process_psymtab_comp_unit): Use cutu_reader.
16376 (build_type_psymtabs_reader): Remove data parameter.
16377 (build_type_psymtabs_1): Use cutu_reader.
16378 (process_skeletonless_type_unit): Likewise.
16379 (load_partial_comp_unit_reader): Remove.
16380 (load_partial_comp_unit): Use cutu_reader.
16381 (load_full_comp_unit_reader): Remove.
16382 (load_full_comp_unit): Use cutu_reader.
16383 (struct create_dwo_cu_data): Remove.
16384 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16385 dwo_unit parameters.
16386 (create_cus_hash_table): Use cutu_reader.
16387 (struct dwarf2_read_addr_index_data): Remove.
16388 (dwarf2_read_addr_index_reader): Remove.
16389 (dwarf2_read_addr_index): Use cutu_reader.
16390 (read_signatured_type_reader): Remove.
16391 (read_signatured_type): Use cutu_reader.
16392
16393 2020-01-19 Tom Tromey <tom@tromey.com>
16394
16395 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16396 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16397 (tui_wrefresh): Declare.
16398 * tui/tui-wingeneral.c (suppress_output): New global.
16399 (tui_suppress_output, ~tui_suppress_output): New constructor and
16400 destructor.
16401 (tui_wrefresh): New function.
16402 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16403 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16404 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16405 method.
16406 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16407 tui_wrefresh.
16408 (tui_data_window::no_refresh): New method.
16409 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16410 (tui_reg_command): Use tui_suppress_output
16411 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16412 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16413 method.
16414 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16415
16416 2020-01-19 Tom Tromey <tom@tromey.com>
16417
16418 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16419 Handle case where symtab is null.
16420
16421 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16422
16423 * linux-fork.c (one_fork_p): Simplify.
16424
16425 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16426
16427 * top.c (struct qt_args): Remove.
16428 (kill_or_detach): Change return type to void, replace `void *`
16429 parameter with a proper one.
16430 (print_inferior_quit_action): Likewise.
16431 (quit_confirm): Use range-based for loop to iterate over inferiors.
16432 (quit_force): Likewise.
16433
16434 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16435
16436 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16437 `void *` parameter with proper parameters.
16438 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16439 (print_one_inferior): Change return type to void, replace `void *`
16440 parameter with proper parameters.
16441 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16442 inferiors.
16443 (get_other_inferior): Remove.
16444 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16445 inferiors.
16446
16447 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16448
16449 * mi/mi-interp.c (report_initial_inferior): Remove.
16450 (mi_interp::init): Use range-based for to iterate over inferiors.
16451
16452 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16453
16454 * python/py-inferior.c (build_inferior_list): Remove.
16455 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16456
16457 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16458
16459 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16460 (btrace_stitch_trace): Likewise.
16461 * charset.c (intermediate_encoding): Likewise (vaild).
16462 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16463 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16464 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16465
16466 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16467
16468 * windows-tdep.c (windows_get_tlb_type):
16469 Add rtl_user_process_parameters type.
16470
16471 2020-01-16 Pedro Alves <palves@redhat.com>
16472 Norbert Lange <nolange79@gmail.com>
16473
16474 PR build/24805
16475 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16476 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16477 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16478 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16479 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16480 (ps_plog): Redeclare exported functions with default visibility.
16481
16482 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16483
16484 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16485 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16486
16487 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16488
16489 * infcmd.c (post_create_inferior): Use get_thread_regcache
16490 instead of get_current_regcache.
16491
16492 2020-01-14 Tom Tromey <tom@tromey.com>
16493
16494 PR symtab/12535:
16495 * python/python.c (gdbpy_decode_line): Treat empty string the same
16496 as no argument.
16497
16498 2020-01-14 Tom Tromey <tom@tromey.com>
16499
16500 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16501
16502 2020-01-14 Tom Tromey <tom@tromey.com>
16503
16504 * nat/linux-btrace.c: Don't include <config.h>.
16505 * nat/linux-ptrace.c: Don't include <config.h>.
16506 * nat/x86-linux-dregs.c: Don't include <config.h>.
16507
16508 2020-01-14 Tom Tromey <tom@tromey.com>
16509
16510 * configure: Rebuild.
16511 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16512
16513 2020-01-14 Tom Tromey <tom@tromey.com>
16514
16515 * nat/x86-linux-dregs.c: Include configh.h.
16516 * nat/linux-ptrace.c: Include configh.h.
16517 * nat/linux-btrace.c: Include configh.h.
16518 * defs.h: Include config.h, bfd.h.
16519 * configure.ac: Don't source common.host.
16520 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16521 * configure: Rebuild.
16522 * acinclude.m4: Update path.
16523 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16524 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16525 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16526 (CLIBS): Add LIBSUPPORT.
16527 (CDEPS): Likewise.
16528 (COMMON_SFILES): Remove gdbsupport files.
16529 (HFILES_NO_SRCDIR): Likewise.
16530 (stamp-version): Update path to create-version.sh.
16531 (ALLDEPFILES): Remove gdbsupport files.
16532
16533 2020-01-14 Tom Tromey <tom@tromey.com>
16534
16535 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16536 USE_WIN32API when needed.
16537 * configure.ac (USE_WIN32API): Don't define.
16538 (WIN32LIBS): Use WIN32APILIBS.
16539 * configure: Rebuild.
16540
16541 2020-01-14 Tom Tromey <tom@tromey.com>
16542
16543 * configure: Rebuild.
16544 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16545
16546 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16547
16548 * skip.c (skip_function_command): Make skip w/o arguments use the
16549 name of the inlined function if pc is inside any inlined function.
16550
16551 2020-01-14 Luis Machado <luis.machado@linaro.org>
16552
16553 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16554 * infrun.c (resume_1): Likewise.
16555 (handle_inferior_event): Remove stale comment.
16556 * linux-nat.c (linux_nat_target::resume): Update comments.
16557 (save_stop_reason): Likewise.
16558 (linux_nat_filter_event): Likewise.
16559 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16560
16561 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16562
16563 * elfread.c (record_minimal_symbol): Set section index to 0 for
16564 non-allocatable sections.
16565
16566
16567 2020-01-13 Ali Tamur <tamur@google.com>
16568
16569 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16570 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16571 to gdb::optional. Update comments.
16572 (dwo_file): Update comments.
16573 (read_attribute): Update API to take an additional out parameter,
16574 need_reprocess. This is used to mark attributes that need other
16575 attributes (e.g. str_offsets_base) for correct computation which may not
16576 have been read yet.
16577 (read_attribute_reprocess): New function declaration.
16578 (read_addr_index): Likewise.
16579 (read_dwo_str_index): Likewise.
16580 (read_stub_str_index): Likewise.
16581 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16582 (lookup_addr_base): New function definition.
16583 (lookup_ranges_base): Likewise.
16584 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16585 lookup_ranges_base.
16586 (init_cutu_and_read_dies): Update comments.
16587 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16588 unit. This is used to inherit parent's str_offsets_base and addr_base.
16589 Update comments.
16590 (init_cutu_and_read_dies_simple): Reflect API changes.
16591 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16592 (create_cus_hash_table): Change API to take parent compile unit.
16593 Reflect API changes.
16594 (open_and_init_dwo_file): Reflect API changes.
16595 (dwarf2_get_pc_bounds): Update comments.
16596 (dwarf2_record_block_ranges): Likewise.
16597 (read_full_die_1): Change implementation to reprocess attributes that
16598 need str_offsets_base and addr_base.
16599 (partial_die_info::read): Likewise.
16600 (read_attribute_reprocess): New function definition.
16601 (read_attribute_value): Change API to take an additional out parameter,
16602 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16603 when a non-dwo compile unit has index based attributes.
16604 (read_attribute): Reflect API changes.
16605 (read_addr_index_1): Reflect API changes. Update comments.
16606 (dwarf2_read_addr_index_data): Reflect API changes.
16607 (dwarf2_read_addr_index): Likewise.
16608 (read_str_index): Change API and implementation. This becomes a helper
16609 to be used by the new string index related methods. Update error
16610 message and comments.
16611 (read_dwo_str_index): New function definition.
16612 (read_stub_str_index): Likewise.
16613 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16614 * symfile.h (dwarf2_debug_sections): Likewise.
16615 * xcoffread.c (dwarf2_debug_sections): Likewise.
16616
16617 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16618
16619 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16620 core_reg_sect type to gdb_byte *.
16621 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16622 * cris-tdep.c (fetch_core_registers): Likewise.
16623 * corelow.c (core_target::get_core_register_section): Change
16624 type of `contents` to gdb::byte_vector.
16625
16626 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16627
16628 * tui/tui-wingeneral.c (box_win): Position the title in the center
16629 of the border.
16630
16631 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16632
16633 * corelow.c (core_target::get_core_register_section): Use
16634 std::vector instead of alloca.
16635
16636 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16637
16638 * warning.m4: Add -Wmissing-declarations to build_warnings.
16639 * configure: Re-generate.
16640
16641 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16642
16643 * python/python.c (init__gdb_module): Add declaration.
16644
16645 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16646
16647 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16648 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16649 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16650 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16651 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16652 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16653 * ada-exp.y (_initialize_ada_exp): Add declaration.
16654 * ada-lang.c (_initialize_ada_language): Add declaration.
16655 * ada-tasks.c (_initialize_tasks): Add declaration.
16656 * agent.c (_initialize_agent): Add declaration.
16657 * aix-thread.c (_initialize_aix_thread): Add declaration.
16658 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16659 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16660 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16661 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16662 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16663 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16664 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16665 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16666 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16667 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16668 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16669 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16670 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16671 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16672 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16673 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16674 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16675 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16676 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16677 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16678 * annotate.c (_initialize_annotate): Add declaration.
16679 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16680 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16681 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16682 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16683 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16684 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16685 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16686 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16687 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16688 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16689 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16690 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16691 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16692 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16693 * auto-load.c (_initialize_auto_load): Add declaration.
16694 * auxv.c (_initialize_auxv): Add declaration.
16695 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16696 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16697 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16698 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16699 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16700 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16701 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16702 * breakpoint.c (_initialize_breakpoint): Add declaration.
16703 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16704 * btrace.c (_initialize_btrace): Add declaration.
16705 * charset.c (_initialize_charset): Add declaration.
16706 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16707 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16708 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16709 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16710 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16711 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16712 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16713 * coffread.c (_initialize_coffread): Add declaration.
16714 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16715 * compile/compile.c (_initialize_compile): Add declaration.
16716 * complaints.c (_initialize_complaints): Add declaration.
16717 * completer.c (_initialize_completer): Add declaration.
16718 * copying.c (_initialize_copying): Add declaration.
16719 * corefile.c (_initialize_core): Add declaration.
16720 * corelow.c (_initialize_corelow): Add declaration.
16721 * cp-abi.c (_initialize_cp_abi): Add declaration.
16722 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16723 * cp-support.c (_initialize_cp_support): Add declaration.
16724 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16725 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16726 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16727 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16728 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16729 * ctfread.c (_initialize_ctfread): Add declaration.
16730 * d-lang.c (_initialize_d_language): Add declaration.
16731 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16732 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16733 * dbxread.c (_initialize_dbxread): Add declaration.
16734 * dcache.c (_initialize_dcache): Add declaration.
16735 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16736 * disasm.c (_initialize_disasm): Add declaration.
16737 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16738 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16739 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16740 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16741 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16742 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16743 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16744 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16745 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16746 * elfread.c (_initialize_elfread): Add declaration.
16747 * exec.c (_initialize_exec): Add declaration.
16748 * extension.c (_initialize_extension): Add declaration.
16749 * f-lang.c (_initialize_f_language): Add declaration.
16750 * f-valprint.c (_initialize_f_valprint): Add declaration.
16751 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16752 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16753 * filesystem.c (_initialize_filesystem): Add declaration.
16754 * findcmd.c (_initialize_mem_search): Add declaration.
16755 * findvar.c (_initialize_findvar): Add declaration.
16756 * fork-child.c (_initialize_fork_child): Add declaration.
16757 * frame-base.c (_initialize_frame_base): Add declaration.
16758 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16759 * frame.c (_initialize_frame): Add declaration.
16760 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16761 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16762 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16763 * gcore.c (_initialize_gcore): Add declaration.
16764 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16765 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16766 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16767 * gdbarch.c (_initialize_gdbarch): Add declaration.
16768 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16769 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16770 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16771 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16772 * go-lang.c (_initialize_go_language): Add declaration.
16773 * go32-nat.c (_initialize_go32_nat): Add declaration.
16774 * guile/guile.c (_initialize_guile): Add declaration.
16775 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16776 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16777 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16778 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16779 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16780 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16781 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16782 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16783 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16784 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16785 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16786 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16787 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16788 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16789 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16790 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16791 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16792 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16793 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16794 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16795 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16796 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16797 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16798 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16799 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16800 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16801 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16802 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16803 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16804 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16805 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16806 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16807 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16808 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16809 * infcall.c (_initialize_infcall): Add declaration.
16810 * infcmd.c (_initialize_infcmd): Add declaration.
16811 * inflow.c (_initialize_inflow): Add declaration.
16812 * infrun.c (_initialize_infrun): Add declaration.
16813 * interps.c (_initialize_interpreter): Add declaration.
16814 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16815 * jit.c (_initialize_jit): Add declaration.
16816 * language.c (_initialize_language): Add declaration.
16817 * linux-fork.c (_initialize_linux_fork): Add declaration.
16818 * linux-nat.c (_initialize_linux_nat): Add declaration.
16819 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16820 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16821 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16822 * m2-lang.c (_initialize_m2_language): Add declaration.
16823 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16824 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16825 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16826 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16827 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16828 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16829 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16830 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16831 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16832 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16833 * machoread.c (_initialize_machoread): Add declaration.
16834 * macrocmd.c (_initialize_macrocmd): Add declaration.
16835 * macroscope.c (_initialize_macroscope): Add declaration.
16836 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16837 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16838 * maint.c (_initialize_maint_cmds): Add declaration.
16839 * mdebugread.c (_initialize_mdebugread): Add declaration.
16840 * memattr.c (_initialize_mem): Add declaration.
16841 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16842 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16843 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16844 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16845 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16846 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16847 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16848 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16849 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16850 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16851 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16852 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16853 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16854 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16855 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16856 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16857 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16858 * mipsread.c (_initialize_mipsread): Add declaration.
16859 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16860 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16861 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16862 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16863 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16864 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16865 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16866 * nto-procfs.c (_initialize_procfs): Add declaration.
16867 * objc-lang.c (_initialize_objc_language): Add declaration.
16868 * observable.c (_initialize_observer): Add declaration.
16869 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16870 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16871 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16872 * osabi.c (_initialize_gdb_osabi): Add declaration.
16873 * osdata.c (_initialize_osdata): Add declaration.
16874 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16875 * parse.c (_initialize_parse): Add declaration.
16876 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16877 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16878 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16879 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16880 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16881 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16882 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16883 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16884 * printcmd.c (_initialize_printcmd): Add declaration.
16885 * probe.c (_initialize_probe): Add declaration.
16886 * proc-api.c (_initialize_proc_api): Add declaration.
16887 * proc-events.c (_initialize_proc_events): Add declaration.
16888 * proc-service.c (_initialize_proc_service): Add declaration.
16889 * procfs.c (_initialize_procfs): Add declaration.
16890 * producer.c (_initialize_producer): Add declaration.
16891 * psymtab.c (_initialize_psymtab): Add declaration.
16892 * python/python.c (_initialize_python): Add declaration.
16893 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16894 * record-btrace.c (_initialize_record_btrace): Add declaration.
16895 * record-full.c (_initialize_record_full): Add declaration.
16896 * record.c (_initialize_record): Add declaration.
16897 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16898 * regcache.c (_initialize_regcache): Add declaration.
16899 * reggroups.c (_initialize_reggroup): Add declaration.
16900 * remote-notif.c (_initialize_notif): Add declaration.
16901 * remote-sim.c (_initialize_remote_sim): Add declaration.
16902 * remote.c (_initialize_remote): Add declaration.
16903 * reverse.c (_initialize_reverse): Add declaration.
16904 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16905 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16906 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16907 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16908 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16909 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16910 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16911 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16912 Add declaration.
16913 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16914 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16915 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16916 * rust-exp.y (_initialize_rust_exp): Add declaration.
16917 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16918 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16919 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16920 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16921 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16922 * score-tdep.c (_initialize_score_tdep): Add declaration.
16923 * ser-go32.c (_initialize_ser_dos): Add declaration.
16924 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16925 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16926 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16927 * ser-uds.c (_initialize_ser_socket): Add declaration.
16928 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16929 * serial.c (_initialize_serial): Add declaration.
16930 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16931 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16932 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16933 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16934 * skip.c (_initialize_step_skip): Add declaration.
16935 * sol-thread.c (_initialize_sol_thread): Add declaration.
16936 * solib-aix.c (_initialize_solib_aix): Add declaration.
16937 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16938 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16939 * solib-frv.c (_initialize_frv_solib): Add declaration.
16940 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16941 * solib-target.c (_initialize_solib_target): Add declaration.
16942 * solib.c (_initialize_solib): Add declaration.
16943 * source-cache.c (_initialize_source_cache): Add declaration.
16944 * source.c (_initialize_source): Add declaration.
16945 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16946 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16947 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16948 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16949 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16950 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16951 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16952 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16953 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16954 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16955 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16956 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16957 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16958 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16959 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16960 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16961 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16962 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16963 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16964 * stabsread.c (_initialize_stabsread): Add declaration.
16965 * stack.c (_initialize_stack): Add declaration.
16966 * stap-probe.c (_initialize_stap_probe): Add declaration.
16967 * std-regs.c (_initialize_frame_reg): Add declaration.
16968 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16969 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16970 * symfile.c (_initialize_symfile): Add declaration.
16971 * symmisc.c (_initialize_symmisc): Add declaration.
16972 * symtab.c (_initialize_symtab): Add declaration.
16973 * target.c (_initialize_target): Add declaration.
16974 * target-connection.c (_initialize_target_connection): Add
16975 declaration.
16976 * target-dcache.c (_initialize_target_dcache): Add declaration.
16977 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16978 * thread.c (_initialize_thread): Add declaration.
16979 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16980 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16981 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16982 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16983 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16984 * tracectf.c (_initialize_ctf): Add declaration.
16985 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16986 * tracefile.c (_initialize_tracefile): Add declaration.
16987 * tracepoint.c (_initialize_tracepoint): Add declaration.
16988 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16989 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16990 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16991 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16992 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16993 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16994 * tui/tui.c (_initialize_tui): Add declaration.
16995 * typeprint.c (_initialize_typeprint): Add declaration.
16996 * ui-style.c (_initialize_ui_style): Add declaration.
16997 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16998 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16999 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17000 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17001 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17002 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17003 * unittests/filtered_iterator-selftests.c
17004 (_initialize_filtered_iterator_selftests): Add declaration.
17005 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17006 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17007 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17008 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17009 * unittests/main-thread-selftests.c
17010 (_initialize_main_thread_selftests): Add declaration.
17011 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17012 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17013 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17014 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17015 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17016 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17017 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17018 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17019 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17020 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17021 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17022 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17023 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17024 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17025 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17026 declaration.
17027 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17028 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17029 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17030 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17031 * user-regs.c (_initialize_user_regs): Add declaration.
17032 * utils.c (_initialize_utils): Add declaration.
17033 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17034 * valops.c (_initialize_valops): Add declaration.
17035 * valprint.c (_initialize_valprint): Add declaration.
17036 * value.c (_initialize_values): Add declaration.
17037 * varobj.c (_initialize_varobj): Add declaration.
17038 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17039 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17040 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17041 * windows-nat.c (_initialize_windows_nat): Add declaration.
17042 (_initialize_check_for_gdb_ini): Add declaration.
17043 (_initialize_loadable): Add declaration.
17044 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17045 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17046 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17047 * xcoffread.c (_initialize_xcoffread): Add declaration.
17048 * xml-support.c (_initialize_xml_support): Add declaration.
17049 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17050 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17051 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17052 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17053
17054 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17055
17056 * regformats/regdat.sh: Generate declaration for init function.
17057
17058 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17059
17060 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17061 up.
17062 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17063 close_one_inferior>: New methods.
17064 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17065 pass down target to find_inferior_pid.
17066 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17067 Pass down target to find_inferior_ptid.
17068 (gdbsim_target::create_inferior): Pass down target to
17069 add_thread_silent.
17070 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17071 target down to find_inferior_ptid and switch_to_thread.
17072 (gdbsim_target::close): Update to call close_one_inferior.
17073 (struct resume_data): Remove.
17074 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17075 directly, rather than through a void pointer.
17076 (gdbsim_target::resume): Update to call resume_one_inferior.
17077
17078 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17079
17080 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17081
17082 2020-01-12 Pedro Alves <palves@redhat.com>
17083
17084 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17085 directly for the current inferior instead of
17086 discard_all_inferiors.
17087 (discard_all_inferiors): Delete.
17088
17089 2020-01-11 Tom Tromey <tom@tromey.com>
17090
17091 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17092 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17093 deprecated_safe_get_selected_frame.
17094
17095 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17096
17097 * inferior.c (print_inferior): Switch inferior before printing it.
17098
17099 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17100 Pedro Alves <palves@redhat.com>
17101
17102 * progspace-and-thread.c (switch_to_program_space_and_thread):
17103 Assert there's an inferior for PSPACE. Use
17104 switch_to_inferior_no_thread to switch the inferior too.
17105 * progspace.c (program_space::~program_space): Call
17106 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17107 (program_space::free_all_objfiles): Don't call clear_symtab_users
17108 here.
17109 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17110
17111 2020-01-10 Pedro Alves <palves@redhat.com>
17112
17113 * NEWS: Mention multi-target debugging, "info connections", and
17114 "add-inferior -no-connection".
17115
17116 2020-01-10 Pedro Alves <palves@redhat.com>
17117
17118 * infrun.c: Include "target-connection.h".
17119 (check_multi_target_resumption): New.
17120 (proceed): Call it.
17121 * target-connection.c (make_target_connection_string): Make
17122 extern.
17123 * target-connection.h (make_target_connection_string): Declare.
17124
17125 2020-01-10 Pedro Alves <palves@redhat.com>
17126
17127 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17128 * inferior.c (uiout_field_connection): New function.
17129 (print_inferior): Add new "connection-id" column.
17130 (add_inferior_command): Show connection number/string of added
17131 inferior.
17132 * process-stratum-target.h
17133 (process_stratum_target::connection_string): New virtual method.
17134 (process_stratum_target::connection_number): New field.
17135 * remote.c (remote_target::connection_string): New override.
17136 * target-connection.c: New file.
17137 * target-connection.h: New file.
17138 * target.c (decref_target): Remove process_stratum targets from
17139 the connection list.
17140 (target_stack::push): Add process_stratum targets to the
17141 connection list.
17142
17143 2020-01-10 Pedro Alves <palves@redhat.com>
17144
17145 Revert:
17146 2016-04-12 Pedro Alves <palves@redhat.com>
17147 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17148 Remove references to name.
17149 * serial.h (struct serial) <name>: Delete.
17150
17151 2020-01-10 Pedro Alves <palves@redhat.com>
17152
17153 * gdbarch-selftests.c (register_to_value_test): Remove "target
17154 already pushed" check.
17155
17156 2020-01-10 Pedro Alves <palves@redhat.com>
17157 John Baldwin <jhb@FreeBSD.org>
17158
17159 * aarch64-linux-nat.c
17160 (aarch64_linux_nat_target::thread_architecture): Adjust.
17161 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17162 (task_command_1): Likewise.
17163 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17164 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17165 (aix_thread_target::store_registers)
17166 (aix_thread_target::thread_alive): Adjust.
17167 * amd64-fbsd-tdep.c: Include "inferior.h".
17168 (amd64fbsd_get_thread_local_address): Pass down target.
17169 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17170 thread's gdbarch instead of target_gdbarch.
17171 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17172 get_last_target_status.
17173 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17174 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17175 inferiors.
17176 (update_inserted_breakpoint_locations): Skip if inferiors with no
17177 execution.
17178 (update_global_location_list): When handling moribund locations,
17179 find representative inferior for location's pspace, and use thread
17180 count of its process_stratum target.
17181 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17182 * bsd-uthread.c (bsd_uthread_target::wait): Use
17183 as_process_stratum_target and adjust thread_change_ptid and
17184 add_thread calls.
17185 (bsd_uthread_target::update_thread_list): Use
17186 as_process_stratum_target and adjust find_thread_ptid,
17187 thread_change_ptid and add_thread calls.
17188 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17189 find_thread_ptid call.
17190 * corelow.c (add_to_thread_list): Adjust add_thread call.
17191 (core_target_open): Adjust add_thread_silent and thread_count
17192 calls.
17193 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17194 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17195 * event-top.c (async_disconnect): Pop targets from all inferiors.
17196 * exec.c (add_target_sections): Push exec target on all inferiors
17197 sharing the program space.
17198 (remove_target_sections): Remove the exec target from all
17199 inferiors sharing the program space.
17200 (exec_on_vfork): New.
17201 * exec.h (exec_on_vfork): Declare.
17202 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17203 Pass it down.
17204 (fbsd_nat_target::update_thread_list): Adjust.
17205 (fbsd_nat_target::resume): Adjust.
17206 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17207 down.
17208 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17209 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17210 get_thread_arch_regcache call.
17211 * fork-child.c (gdb_startup_inferior): Pass target down to
17212 startup_inferior and set_executing.
17213 * gdbthread.h (struct process_stratum_target): Forward declare.
17214 (add_thread, add_thread_silent, add_thread_with_info)
17215 (in_thread_list): Add process_stratum_target parameter.
17216 (find_thread_ptid(inferior*, ptid_t)): New overload.
17217 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17218 parameter.
17219 (all_threads()): Delete overload.
17220 (all_threads, all_non_exited_threads): Add process_stratum_target
17221 parameter.
17222 (all_threads_safe): Use brace initialization.
17223 (thread_count): Add process_stratum_target parameter.
17224 (set_resumed, set_running, set_stop_requested, set_executing)
17225 (threads_are_executing, finish_thread_state): Add
17226 process_stratum_target parameter.
17227 (switch_to_thread): Use is_current_thread.
17228 * i386-fbsd-tdep.c: Include "inferior.h".
17229 (i386fbsd_get_thread_local_address): Pass down target.
17230 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17231 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17232 have_inferiors check.
17233 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17234 (inf_ptrace_target::attach): Adjust.
17235 * infcall.c (run_inferior_call): Adjust.
17236 * infcmd.c (run_command_1): Pass target to
17237 scoped_finish_thread_state.
17238 (proceed_thread_callback): Skip inferiors with no execution.
17239 (continue_command): Rename 'all_threads' local to avoid hiding
17240 'all_threads' function. Adjust get_last_target_status call.
17241 (prepare_one_step): Adjust set_running call.
17242 (signal_command): Use user_visible_resume_target. Compare thread
17243 pointers instead of inferior_ptid.
17244 (info_program_command): Adjust to pass down target.
17245 (attach_command): Mark target's 'thread_executing' flag.
17246 (stop_current_target_threads_ns): New, factored out from ...
17247 (interrupt_target_1): ... this. Switch inferior before making
17248 target calls.
17249 * inferior-iter.h
17250 (struct all_inferiors_iterator, struct all_inferiors_range)
17251 (struct all_inferiors_safe_range)
17252 (struct all_non_exited_inferiors_range): Filter on
17253 process_stratum_target too. Remove explicit.
17254 * inferior.c (inferior::inferior): Push dummy target on target
17255 stack.
17256 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17257 Add process_stratum_target parameter, and pass it down.
17258 (have_live_inferiors): Adjust.
17259 (switch_to_inferior_and_push_target): New.
17260 (add_inferior_command, clone_inferior_command): Handle
17261 "-no-connection" parameter. Use
17262 switch_to_inferior_and_push_target.
17263 (_initialize_inferior): Mention "-no-connection" option in
17264 the help of "add-inferior" and "clone-inferior" commands.
17265 * inferior.h: Include "process-stratum-target.h".
17266 (interrupt_target_1): Use bool.
17267 (struct inferior) <push_target, unpush_target, target_is_pushed,
17268 find_target_beneath, top_target, process_target, target_at,
17269 m_stack>: New.
17270 (discard_all_inferiors): Delete.
17271 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17272 (all_inferiors, all_non_exited_inferiors): Add
17273 process_stratum_target parameter.
17274 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17275 (target_last_proc_target): New global.
17276 (follow_fork_inferior): Push target on new inferior. Pass target
17277 to add_thread_silent. Call exec_on_vfork. Handle target's
17278 reference count.
17279 (follow_fork): Adjust get_last_target_status call. Also consider
17280 target.
17281 (follow_exec): Push target on new inferior.
17282 (struct execution_control_state) <target>: New field.
17283 (user_visible_resume_target): New.
17284 (do_target_resume): Call target_async.
17285 (resume_1): Set target's threads_executing flag. Consider resume
17286 target.
17287 (commit_resume_all_targets): New.
17288 (proceed): Also consider resume target. Skip threads of inferiors
17289 with no execution. Commit resumtion in all targets.
17290 (start_remote): Pass current inferior to wait_for_inferior.
17291 (infrun_thread_stop_requested): Consider target as well. Pass
17292 thread_info pointer to clear_inline_frame_state instead of ptid.
17293 (infrun_thread_thread_exit): Consider target as well.
17294 (random_pending_event_thread): New inferior parameter. Use it.
17295 (do_target_wait): Rename to ...
17296 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17297 down.
17298 (threads_are_resumed_pending_p, do_target_wait): New.
17299 (prepare_for_detach): Adjust calls.
17300 (wait_for_inferior): New inferior parameter. Handle it. Use
17301 do_target_wait_1 instead of do_target_wait.
17302 (fetch_inferior_event): Adjust. Switch to representative
17303 inferior. Pass target down.
17304 (set_last_target_status): Add process_stratum_target parameter.
17305 Save target in global.
17306 (get_last_target_status): Add process_stratum_target parameter and
17307 handle it.
17308 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17309 (context_switch): Check inferior_ptid == null_ptid before calling
17310 inferior_thread().
17311 (get_inferior_stop_soon): Pass down target.
17312 (wait_one): Rename to ...
17313 (poll_one_curr_target): ... this.
17314 (struct wait_one_event): New.
17315 (wait_one): New.
17316 (stop_all_threads): Adjust.
17317 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17318 event's target.
17319 (switch_back_to_stepped_thread): Also consider target.
17320 (print_stop_event): Update.
17321 (normal_stop): Update. Also consider the resume target.
17322 * infrun.h (wait_for_inferior): Remove declaration.
17323 (user_visible_resume_target): New declaration.
17324 (get_last_target_status, set_last_target_status): New
17325 process_stratum_target parameter.
17326 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17327 process_stratum_target parameter, and use it.
17328 (clear_inline_frame_state (thread_info*)): New.
17329 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17330 process_stratum_target parameter.
17331 (clear_inline_frame_state (thread_info*)): Declare.
17332 * linux-fork.c (delete_checkpoint_command): Pass target down to
17333 find_thread_ptid.
17334 (checkpoint_command): Adjust.
17335 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17336 instead of just tweaking inferior_ptid.
17337 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17338 (exit_lwp): Pass target down to find_thread_ptid.
17339 (attach_proc_task_lwp_callback): Pass target down to
17340 add_thread/set_running/set_executing.
17341 (linux_nat_target::attach): Pass target down to
17342 thread_change_ptid.
17343 (get_detach_signal): Pass target down to find_thread_ptid.
17344 Consider last target status's target.
17345 (linux_resume_one_lwp_throw, resume_lwp)
17346 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17347 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17348 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17349 (linux_nat_target::async_wait_fd): New.
17350 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17351 target down.
17352 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17353 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17354 * linux-thread-db.c (struct thread_db_info::process_target): New
17355 field.
17356 (add_thread_db_info): Save target.
17357 (get_thread_db_info): New process_stratum_target parameter. Also
17358 match target.
17359 (delete_thread_db_info): New process_stratum_target parameter.
17360 Also match target.
17361 (thread_from_lwp): Adjust to pass down target.
17362 (thread_db_notice_clone): Pass down target.
17363 (check_thread_db_callback): Pass down target.
17364 (try_thread_db_load_1): Always push the thread_db target.
17365 (try_thread_db_load, record_thread): Pass target down.
17366 (thread_db_target::detach): Pass target down. Always unpush the
17367 thread_db target.
17368 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17369 target down. Always unpush the thread_db target.
17370 (find_new_threads_callback, thread_db_find_new_threads_2)
17371 (thread_db_target::update_thread_list): Pass target down.
17372 (thread_db_target::pid_to_str): Pass current inferior down.
17373 (thread_db_target::get_thread_local_address): Pass target down.
17374 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17375 target down.
17376 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17377 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17378 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17379 (procfs_init_inferior): Rename to ...
17380 (procfs_target::procfs_init_inferior): ... this and adjust.
17381 (procfs_target::create_inferior, procfs_notice_thread)
17382 (procfs_do_thread_registers): Adjust.
17383 * ppc-fbsd-tdep.c: Include "inferior.h".
17384 (ppcfbsd_get_thread_local_address): Pass down target.
17385 * proc-service.c (ps_xfer_memory): Switch current inferior and
17386 program space as well.
17387 (get_ps_regcache): Pass target down.
17388 * process-stratum-target.c
17389 (process_stratum_target::thread_address_space)
17390 (process_stratum_target::thread_architecture): Pass target down.
17391 * process-stratum-target.h
17392 (process_stratum_target::threads_executing): New field.
17393 (as_process_stratum_target): New.
17394 * ravenscar-thread.c
17395 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17396 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17397 down.
17398 * record-btrace.c (record_btrace_target::info_record): Adjust.
17399 (record_btrace_target::record_method)
17400 (record_btrace_target::record_is_replaying)
17401 (record_btrace_target::fetch_registers)
17402 (get_thread_current_frame_id, record_btrace_target::resume)
17403 (record_btrace_target::wait, record_btrace_target::stop): Pass
17404 target down.
17405 * record-full.c (record_full_wait_1): Switch to event thread.
17406 Pass target down.
17407 * regcache.c (regcache::regcache)
17408 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17409 process_stratum_target parameter and handle it.
17410 (current_thread_target): New global.
17411 (get_thread_regcache): Add process_stratum_target parameter and
17412 handle it. Switch inferior before calling target method.
17413 (get_thread_regcache): Pass target down.
17414 (get_thread_regcache_for_ptid): Pass target down.
17415 (registers_changed_ptid): Add process_stratum_target parameter and
17416 handle it.
17417 (registers_changed_thread, registers_changed): Pass target down.
17418 (test_get_thread_arch_aspace_regcache): New.
17419 (current_regcache_test): Define a couple local test_target_ops
17420 instances and use them for testing.
17421 (readwrite_regcache): Pass process_stratum_target parameter.
17422 (cooked_read_test, cooked_write_test): Pass mock_target down.
17423 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17424 (get_thread_arch_aspace_regcache): Add process_stratum_target
17425 parameter.
17426 (regcache::target): New method.
17427 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17428 (regcache::registers_changed_ptid): Add process_stratum_target
17429 parameter.
17430 (regcache::m_target): New field.
17431 (registers_changed_ptid): Add process_stratum_target parameter.
17432 * remote.c (remote_state::supports_vCont_probed): New field.
17433 (remote_target::async_wait_fd): New method.
17434 (remote_unpush_and_throw): Add remote_target parameter.
17435 (get_current_remote_target): Adjust.
17436 (remote_target::remote_add_inferior): Push target.
17437 (remote_target::remote_add_thread)
17438 (remote_target::remote_notice_new_inferior)
17439 (get_remote_thread_info): Pass target down.
17440 (remote_target::update_thread_list): Skip threads of inferiors
17441 bound to other targets. (remote_target::close): Don't discard
17442 inferiors. (remote_target::add_current_inferior_and_thread)
17443 (remote_target::process_initial_stop_replies)
17444 (remote_target::start_remote)
17445 (remote_target::remote_serial_quit_handler): Pass down target.
17446 (remote_target::remote_unpush_target): New remote_target
17447 parameter. Unpush the target from all inferiors.
17448 (remote_target::remote_unpush_and_throw): New remote_target
17449 parameter. Pass it down.
17450 (remote_target::open_1): Check whether the current inferior has
17451 execution instead of checking whether any inferior is live. Pass
17452 target down.
17453 (remote_target::remote_detach_1): Pass down target. Use
17454 remote_unpush_target.
17455 (extended_remote_target::attach): Pass down target.
17456 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17457 (remote_target::append_resumption): Pass down target.
17458 (remote_target::append_pending_thread_resumptions)
17459 (remote_target::remote_resume_with_hc, remote_target::resume)
17460 (remote_target::commit_resume): Pass down target.
17461 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17462 (remote_target::interrupt_query)
17463 (remote_target::remove_new_fork_children)
17464 (remote_target::check_pending_events_prevent_wildcard_vcont)
17465 (remote_target::remote_parse_stop_reply)
17466 (remote_target::process_stop_reply): Pass down target.
17467 (first_remote_resumed_thread): New remote_target parameter. Pass
17468 it down.
17469 (remote_target::wait_as): Pass down target.
17470 (unpush_and_perror): New remote_target parameter. Pass it down.
17471 (remote_target::readchar, remote_target::remote_serial_write)
17472 (remote_target::getpkt_or_notif_sane_1)
17473 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17474 down target.
17475 (remote_target::mourn_inferior): Pass down target. Use
17476 remote_unpush_target.
17477 (remote_target::core_of_thread)
17478 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17479 (remote_target::pid_to_exec_file)
17480 (remote_target::thread_handle_to_thread_info): Pass down target.
17481 (remote_target::async_wait_fd): New.
17482 * riscv-fbsd-tdep.c: Include "inferior.h".
17483 (riscv_fbsd_get_thread_local_address): Pass down target.
17484 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17485 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17486 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17487 Adjust.
17488 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17489 * solib-svr4.c (enable_break): Pass down target.
17490 * spu-multiarch.c (parse_spufs_run): Pass down target.
17491 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17492 * target-delegates.c: Regenerate.
17493 * target.c (g_target_stack): Delete.
17494 (current_top_target): Return the current inferior's top target.
17495 (target_has_execution_1): Refer to the passed-in inferior's top
17496 target.
17497 (target_supports_terminal_ours): Check whether the initial
17498 inferior was already created.
17499 (decref_target): New.
17500 (target_stack::push): Incref/decref the target.
17501 (push_target, push_target, unpush_target): Adjust.
17502 (target_stack::unpush): Defref target.
17503 (target_is_pushed): Return bool. Adjust to refer to the current
17504 inferior's target stack.
17505 (dispose_inferior): Delete, and inline parts ...
17506 (target_preopen): ... here. Only dispose of the current inferior.
17507 (target_detach): Hold strong target reference while detaching.
17508 Pass target down.
17509 (target_thread_name): Add assertion.
17510 (target_resume): Pass down target.
17511 (target_ops::beneath, find_target_at): Adjust to refer to the
17512 current inferior's target stack.
17513 (get_dummy_target): New.
17514 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17515 has a thread running.
17516 (initialize_targets): Rename to ...
17517 (_initialize_target): ... this.
17518 * target.h: Include "gdbsupport/refcounted-object.h".
17519 (struct target_ops): Inherit refcounted_object.
17520 (target_ops::shortname, target_ops::longname): Make const.
17521 (target_ops::async_wait_fd): New method.
17522 (decref_target): Declare.
17523 (struct target_ops_ref_policy): New.
17524 (target_ops_ref): New typedef.
17525 (get_dummy_target): Declare function.
17526 (target_is_pushed): Return bool.
17527 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17528 (all_matching_threads_iterator::all_matching_threads_iterator):
17529 Handle filter target.
17530 * thread-iter.h (struct all_matching_threads_iterator, struct
17531 all_matching_threads_range, class all_non_exited_threads_range):
17532 Filter by target too. Remove explicit.
17533 * thread.c (threads_executing): Delete.
17534 (inferior_thread): Pass down current inferior.
17535 (clear_thread_inferior_resources): Pass down thread pointer
17536 instead of ptid_t.
17537 (add_thread_silent, add_thread_with_info, add_thread): Add
17538 process_stratum_target parameter. Use it for thread and inferior
17539 searches.
17540 (is_current_thread): New.
17541 (thread_info::deletable): Use it.
17542 (find_thread_ptid, thread_count, in_thread_list)
17543 (thread_change_ptid, set_resumed, set_running): New
17544 process_stratum_target parameter. Pass it down.
17545 (set_executing): New process_stratum_target parameter. Pass it
17546 down. Adjust reference to 'threads_executing'.
17547 (threads_are_executing): New process_stratum_target parameter.
17548 Adjust reference to 'threads_executing'.
17549 (set_stop_requested, finish_thread_state): New
17550 process_stratum_target parameter. Pass it down.
17551 (switch_to_thread): Also match inferior.
17552 (switch_to_thread): New process_stratum_target parameter. Pass it
17553 down.
17554 (update_threads_executing): Reimplement.
17555 * top.c (quit_force): Pop targets from all inferior.
17556 (gdb_init): Don't call initialize_targets.
17557 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17558 Declare.
17559 (windows_add_thread, windows_delete_thread): Adjust.
17560 (get_windows_debug_event): Rename to ...
17561 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17562 * tracefile-tfile.c (tfile_target_open): Pass down target.
17563 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17564 Forward declare.
17565 (switch_to_thread): Add process_stratum_target parameter.
17566 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17567 parameter. Use it.
17568 (mi_on_resume): Pass target down.
17569 * nat/fork-inferior.c (startup_inferior): Add
17570 process_stratum_target parameter. Pass it down.
17571 * nat/fork-inferior.h (startup_inferior): Add
17572 process_stratum_target parameter.
17573 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17574
17575 2020-01-10 Pedro Alves <palves@redhat.com>
17576
17577 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17578 directly. Instead find the first thread in the thread list and
17579 use switch_to_thread.
17580
17581 2020-01-10 Pedro Alves <palves@redhat.com>
17582
17583 * remote.c (remote_target::remote_add_inferior): Don't bind a
17584 process to the current inferior if the current inferior is already
17585 bound to a process.
17586
17587 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17588 Pedro Alves <palves@redhat.com>
17589
17590 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17591 If no process is specified, return null_ptid instead of
17592 inferior_ptid.
17593 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17594 TARGET_WAITKIND_SIGNALLED with no pid.
17595
17596 2020-01-10 Pedro Alves <palves@redhat.com>
17597
17598 * remote.c (first_remote_resumed_thread): New.
17599 (remote_target::wait_as): Use it as default event_ptid instead of
17600 inferior_ptid.
17601
17602 2020-01-10 Pedro Alves <palves@redhat.com>
17603
17604 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17605
17606 2020-01-10 Pedro Alves <palves@redhat.com>
17607
17608 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17609 not -1.
17610
17611 2020-01-10 Pedro Alves <palves@redhat.com>
17612
17613 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17614 ptid to get_last_target_status.
17615 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17616 ptid to get_last_target_status.
17617 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17618 get_last_target_status.
17619 (info_program_command): Don't pass a target_waitstatus to
17620 get_last_target_status.
17621 * infrun.c (init_wait_for_inferior): Use
17622 nullify_last_target_wait_ptid.
17623 (get_last_target_status): Handle nullptr arguments.
17624 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17625 (print_stop_event): Don't pass a ptid to get_last_target_status.
17626 (normal_stop): Don't pass a ptid to get_last_target_status.
17627 * infrun.h (get_last_target_status, set_last_target_status): Move
17628 comments here and update.
17629 (nullify_last_target_wait_ptid): Declare.
17630 * linux-fork.c (fork_load_infrun_state): Remove local extern
17631 declaration of nullify_last_target_wait_ptid.
17632 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17633 to get_last_target_status.
17634
17635 2020-01-10 Pedro Alves <palves@redhat.com>
17636
17637 * gdbthread.h (scoped_restore_current_thread)
17638 <dont_restore, restore, m_dont_restore>: Declare.
17639 * thread.c (thread_alive): Add assertion. Return bool.
17640 (switch_to_thread_if_alive): New.
17641 (prune_threads): Switch inferior/thread.
17642 (print_thread_info_1): Switch thread before calling target methods.
17643 (scoped_restore_current_thread::restore): New, factored out from
17644 ...
17645 (scoped_restore_current_thread::~scoped_restore_current_thread):
17646 ... this.
17647 (scoped_restore_current_thread::scoped_restore_current_thread):
17648 Add assertion.
17649 (thread_apply_all_command, thread_select): Use
17650 switch_to_thread_if_alive.
17651 * infrun.c (proceed, restart_threads, handle_signal_stop)
17652 (switch_back_to_stepped_thread): Switch current thread before
17653 calling target methods.
17654
17655 2020-01-10 Pedro Alves <palves@redhat.com>
17656
17657 * inferior.c (switch_to_inferior_no_thread): New function,
17658 factored out from ...
17659 (inferior_command): ... here.
17660 * inferior.h (switch_to_inferior_no_thread): Declare.
17661 * mi/mi-main.c (run_one_inferior): Use
17662 switch_to_inferior_no_thread.
17663
17664 2020-01-10 Pedro Alves <palves@redhat.com>
17665
17666 * infcmd.c (kill_command): Remove dead code.
17667
17668 2020-01-10 Pedro Alves <palves@redhat.com>
17669
17670 * remote.c (remote_target::mourn_inferior): No longer check
17671 whether the target is running.
17672
17673 2020-01-10 Pedro Alves <palves@redhat.com>
17674
17675 * corelow.c (core_target::has_execution): Change parameter type to
17676 inferior pointer.
17677 * inferior.c (number_of_live_inferiors): Use
17678 inferior::has_execution instead of target_has_execution_1.
17679 * inferior.h (inferior::has_execution): New.
17680 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17681 inferior::has_execution instead of target_has_execution_1.
17682 * process-stratum-target.c
17683 (process_stratum_target::has_execution): Change parameter type to
17684 inferior pointer. Check the inferior's PID instead of
17685 inferior_ptid.
17686 * process-stratum-target.h
17687 (process_stratum_target::has_execution): Change parameter type to
17688 inferior pointer.
17689 * record-full.c (record_full_core_target::has_execution): Change
17690 parameter type to inferior pointer.
17691 * target.c (target_has_execution_1): Change parameter type to
17692 inferior pointer.
17693 (target_has_execution_current): Adjust.
17694 * target.h (target_ops::has_execution): Change parameter type to
17695 inferior pointer.
17696 (target_has_execution_1): Change parameter type to inferior
17697 pointer. Change return type to bool.
17698 * tracefile.h (tracefile_target::has_execution): Change parameter
17699 type to inferior pointer.
17700
17701 2020-01-10 Pedro Alves <palves@redhat.com>
17702
17703 * exceptions.c (print_flush): Remove current_top_target() check.
17704
17705 2020-01-10 Pedro Alves <palves@redhat.com>
17706
17707 * remote.c (show_remote_exec_file): Show the current inferior's
17708 exec-file instead of the command variable's value.
17709
17710 2020-01-10 Pedro Alves <palves@redhat.com>
17711
17712 * record-full.c (record_full_resume_ptid): New global.
17713 (record_full_target::resume): Set it.
17714 (record_full_wait_1): Use record_full_resume_ptid instead of
17715 inferior_ptid.
17716
17717 2020-01-10 Pedro Alves <palves@redhat.com>
17718
17719 * gdbthread.h (scoped_restore_current_thread)
17720 <dont_restore, restore, m_dont_restore>: Declare.
17721 * thread.c (thread_alive): Add assertion. Return bool.
17722 (switch_to_thread_if_alive): New.
17723 (prune_threads): Switch inferior/thread.
17724 (print_thread_info_1): Switch thread before calling target methods.
17725 (scoped_restore_current_thread::restore): New, factored out from
17726 ...
17727 (scoped_restore_current_thread::~scoped_restore_current_thread):
17728 ... this.
17729 (scoped_restore_current_thread::scoped_restore_current_thread):
17730 Add assertion.
17731 (thread_apply_all_command, thread_select): Use
17732 switch_to_thread_if_alive.
17733
17734 2020-01-10 George Barrett <bob@bob131.so>
17735
17736 * stap-probe.c (stap_modify_semaphore): Don't check for null
17737 semaphores.
17738 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17739 for null semaphores.
17740
17741 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17742
17743 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17744 all source windows, and maintain horizontal scroll status while
17745 doing so.
17746
17747 2020-01-09 Tom Tromey <tom@tromey.com>
17748
17749 PR tui/18932:
17750 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17751 update_source_window, not print_source_lines.
17752
17753 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17754
17755 * tui/tui.c (tui_enable): Register tui hooks after calling
17756 tui_display_main.
17757
17758 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17759
17760 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17761
17762 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17763
17764 * thread.c (print_thread_info_1): Fix indentation.
17765
17766 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17767
17768 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17769 unique_xmalloc_ptr outside the if to always free the demangled name.
17770
17771 2020-01-08 Tom Tromey <tromey@adacore.com>
17772
17773 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17774 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17775 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17776 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17777 Remove.
17778 (section_offsets): New typedef.
17779 * symtab.c (fixup_section, get_msymbol_address): Update.
17780 * symmisc.c (dump_msymbols): Update.
17781 * symfile.h (relative_addr_info_to_section_offsets)
17782 (symfile_map_offsets_to_segments): Update.
17783 * symfile.c (build_section_addr_info_from_objfile)
17784 (init_objfile_sect_indices): Update.
17785 (struct place_section_arg): Change type of "offsets".
17786 (place_section): Update.
17787 (relative_addr_info_to_section_offsets): Change type of
17788 "section_offsets". Remove "num_sections" parameter.
17789 (default_symfile_offsets, syms_from_objfile_1)
17790 (set_objfile_default_section_offset): Update.
17791 (reread_symbols): No need to preserve section offsets by hand.
17792 (symfile_map_offsets_to_segments): Change type of "offsets".
17793 * stap-probe.c (relocate_address): Update.
17794 * stabsread.h (process_one_symbol): Update.
17795 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17796 (solib_target_relocate_section_addresses): Update.
17797 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17798 Update.
17799 * solib-frv.c (frv_relocate_main_executable): Update.
17800 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17801 * solib-aix.c (solib_aix_get_section_offsets): Change return
17802 type.
17803 (solib_aix_solib_create_inferior_hook): Update.
17804 * remote.c (remote_target::get_offsets): Update.
17805 * psymtab.c (find_pc_sect_psymtab): Update.
17806 * psympriv.h (struct partial_symbol) <address, text_low,
17807 text_high>: Update.
17808 * objfiles.h (obj_section_offset): Update.
17809 (struct objfile) <section_offsets>: Change type.
17810 <num_sections>: Remove.
17811 (objfile_relocate): Update.
17812 * objfiles.c (entry_point_address_query): Update
17813 (relocate_one_symbol): Change type of "section_offsets".
17814 (objfile_relocate1, objfile_relocate1): Change type of
17815 "new_offsets".
17816 (objfile_rebase1): Update.
17817 * mipsread.c (mipscoff_symfile_read): Update.
17818 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17819 parameter.
17820 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17821 (parse_external, psymtab_to_symtab_1): Update.
17822 * machoread.c (macho_symfile_offsets): Update.
17823 * ia64-tdep.c (ia64_find_unwind_table): Update.
17824 * hppa-tdep.c (read_unwind_info): Update.
17825 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17826 * dwarf2read.c (create_addrmap_from_index)
17827 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17828 (process_psymtab_comp_unit_reader, add_partial_symbol)
17829 (add_partial_subprogram, process_full_comp_unit)
17830 (read_file_scope, read_func_scope, read_lexical_block_scope)
17831 (read_call_site_scope, dwarf2_rnglists_process)
17832 (dwarf2_ranges_process, dwarf2_ranges_read)
17833 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17834 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17835 Update.
17836 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17837 Update.
17838 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17839 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17840 (process_one_symbol): Change type of "section_offsets".
17841 * ctfread.c (get_objfile_text_range): Update.
17842 * coffread.c (coff_symtab_read, enter_linenos)
17843 (process_coff_symbol): Update.
17844 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17845 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17846
17847 2020-01-08 Tom Tromey <tromey@adacore.com>
17848
17849 * dwarf2read.c (parse_macro_definition): Use std::string.
17850 (parse_macro_definition): Likewise.
17851
17852 2020-01-08 Tom Tromey <tromey@adacore.com>
17853
17854 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17855 (ATTR_ALLOC_CHUNK): Remove.
17856
17857 2020-01-08 Tom Tromey <tromey@adacore.com>
17858
17859 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17860
17861 2020-01-08 Tom Tromey <tromey@adacore.com>
17862
17863 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17864 (dwarf2_compute_name, open_dwo_file): Likewise.
17865 (process_enumeration_scope): Use std::vector.
17866 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17867 (partial_die_info::fixup, dwarf2_start_subfile)
17868 (guess_full_die_structure_name, dwarf2_name): Likewise.
17869 (determine_prefix): Update.
17870 (guess_full_die_structure_name): Make return type const.
17871 (partial_die_full_name): Return unique_xmalloc_ptr.
17872 (DW_FIELD_ALLOC_CHUNK): Remove.
17873
17874 2020-01-07 Tom Tromey <tromey@adacore.com>
17875
17876 PR build/24937:
17877 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17878
17879 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17880
17881 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17882
17883 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17884
17885 * stack.c (print_frame_info): Move disassemble_next_line code
17886 inside source_print block.
17887
17888 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17889
17890 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17891 gdb/signals.h, as we are now using native signal symbols.
17892
17893 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17894
17895 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17896 overflow by an early check of content vs threshold.
17897 * tui/tui-source.c (tui_source_window::line_is_displayed):
17898 Likewise.
17899
17900 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17901
17902 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17903
17904 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17905
17906 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17907 export table if no section contains it's RVA.
17908
17909 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17910
17911 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17912
17913 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17914
17915 * source.c (print_source_lines_base): Set last_line_listed.
17916
17917 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17918
17919 * tui/tui-disasm.c: Remove trailing spaces.
17920
17921 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17922 Pedro Alves <palves@redhat.com>
17923
17924 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17925 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17926 (windows_gdb_signal_to_target): New function, uses the above
17927 enumeration to convert GDB internal signal codes to equivalent
17928 Windows codes.
17929 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17930 * windows-nat.c: Include "gdb_wait.h".
17931 (get_windows_debug_event): Extract the fatal exception from the
17932 exit status and convert to the equivalent Posix signal number.
17933 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17934 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17935 * gdbsupport/gdb_wait.c: New file, implements
17936 windows_status_to_termsig.
17937 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17938 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17939
17940 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17941
17942 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17943 show_layout.
17944
17945 2020-01-05 Luis Machado <luis.machado@linaro.org>
17946
17947 * aarch64-linux-nat.c
17948 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17949 and bfd_mach_aarch64.
17950
17951 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17952
17953 * ui-file.c (stdio_file::can_emit_style_escape)
17954 (tee_file::can_emit_style_escape): Ensure style is used also on
17955 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17956 to gdb_stdout.
17957 * main.c (set_gdb_data_directory): Use file style to output the
17958 warning that the given pathname is not a directory.
17959 * top.c (show_history_filename, gdb_safe_append_history)
17960 (show_gdb_datadir): Use file style.
17961
17962 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17963
17964 * solib-target.c (struct lm_info_target):
17965 Change offsets to be a unique_xmalloc_ptr.
17966 (solib_target_relocate_section_addresses): Update.
17967
17968 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17969
17970 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17971
17972 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17973
17974 * MAINTAINERS (Write After Approval): Add myself.
17975
17976 2020-01-02 Luis Machado <luis.machado@linaro.org>
17977
17978 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17979 Cell BE architecture.
17980 * target.h (struct target_ops) <thread_architecture>: Likewise.
17981
17982 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17983
17984 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17985
17986 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17987
17988 * MAINTAINERS (Write After Approval): Add myself.
17989
17990 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17991
17992 * gdbarch.sh: Update copyright year range of generated files.
17993
17994 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17995
17996 Update copyright year range in all GDB files.
17997
17998 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17999
18000 * copyright.py: Convert to Python 3.
18001
18002 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18003
18004 * copyright.py: Adapt after move of gnulib directory from gdb
18005 directory to toplevel directory.
18006
18007 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18008
18009 * copyright.py (main): Exit if run from the wrong directory.
18010
18011 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18012
18013 * top.c (print_gdb_version): Change copyright year to 2020.
18014
18015 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18016
18017 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18018
18019 For older changes see ChangeLog-2019.
18020 \f
18021 Local Variables:
18022 mode: change-log
18023 left-margin: 8
18024 fill-column: 74
18025 version-control: never
18026 coding: utf-8
18027 End:
This page took 0.388679 seconds and 5 git commands to generate.