Use add_angle_brackets in ada_lookup_encoded_symbol
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-09 Tom Tromey <tromey@adacore.com>
2
3 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
4
5 2020-12-09 Tom Tromey <tromey@adacore.com>
6
7 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
8 and "denominator" to gdb_mpz. Handle block forms.
9 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
10 "denominator" to gdb_mpz.
11 (finish_fixed_point_type): Update.
12 (has_zero_over_zero_small_attribute): Update.
13
14 2020-12-09 Tom Tromey <tromey@adacore.com>
15
16 * expprint.c (op_name): Update.
17 * expression.h (enum exp_opcode): Update.
18 * std-operator.def: Add more opcodes.
19 * ada-operator.def, fortran-operator.def: Remove, moving contents
20 into std-operator.def.
21
22 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
25 Return {} instead of false.
26 (get_discrete_bounds): Compute high bound only if low bound is
27 valid.
28
29 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
30
31 PR 26875, PR 26901
32 * gdbtypes.c (get_discrete_low_bound): Make non-static.
33 (get_discrete_high_bound): Make non-static.
34 * gdbtypes.h (get_discrete_low_bound): New declaration.
35 (get_discrete_high_bound): New declaration.
36 * valarith.c (value_subscript): Only fetch high bound if
37 necessary.
38
39 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
40
41 * gdbtypes.c (get_discrete_bounds): Implement with
42 get_discrete_low_bound and get_discrete_high_bound.
43 (get_discrete_low_bound): New.
44 (get_discrete_high_bound): New.
45
46 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
47
48 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
49 callers.
50 * gdbtypes.c (get_discrete_bounds): Return bool.
51
52 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
53
54 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
55 (ada_value_slice): Adjust.
56 (pos_atr): Adjust.
57 * gdbtypes.c (get_discrete_bounds): Adjust.
58 (discrete_position): Return optional.
59 * gdbtypes.h (discrete_position): Return optional.
60
61 2020-12-07 Tom Tromey <tromey@adacore.com>
62
63 * maint.c (_initialize_maint_cmds): Use expression command
64 completer for "maint print type".
65
66 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
67
68 * completer.c (complete_explicit_location): Also add keywords
69 that start with '-' to the completion list.
70
71 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
72
73 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
74 keyword may be followed by any keyword.
75 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
76 'toklen' in the case for "-force-condition".
77
78 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
79
80 * main.c (catch_command_errors): Add a flag parameter; invoke
81 `bpstat_do_actions` if the flag is set.
82 (execute_cmdargs): Update a call to `catch_command_errors`.
83
84 2020-12-07 Tom de Vries <tdevries@suse.de>
85
86 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
87
88 2020-12-06 Tom Tromey <tom@tromey.com>
89
90 PR ada/26999
91 * ada-lang.c (replace_operator_with_call): Rewrite.
92
93 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
94
95 PR breakpoints/27009
96 * s390-tdep.h (op_bc): Correct BC opcode value.
97
98 2020-12-06 Joel Brobecker <brobecker@adacore.com>
99
100 * gmp-utils.h (gdb_mpz::safe_export): New private method.
101 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
102 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
103 (gdb_mpz::safe_export): New method.
104 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
105 Update function description.
106 (check_as_integer_raises_out_of_range_error): New function.
107 (gdb_mpz_as_integer_out_of_range): New function.
108 (_initialize_gmp_utils_selftests): Register
109 gdb_mpz_as_integer_out_of_range as a selftest.
110
111 2020-12-05 Joel Brobecker <brobecker@adacore.com>
112
113 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
114 TARGET_CHAR_BIT.
115 (gdb_mpz::write): Likewise.
116
117 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
118
119 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
120 number of displaced step buffers.
121
122 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
123
124 * displaced-stepping.h (struct displaced_step_buffer): Rename
125 to...
126 (struct displaced_step_buffers): ... this.
127 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
128 <struct displaced_step_buffer>: New inner class.
129 <m_buffers>: New.
130 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
131 to...
132 (displaced_step_buffers::prepare): ... this, adjust for multiple
133 buffers.
134 (displaced_step_buffer::finish): Rename to...
135 (displaced_step_buffers::finish): ... this, adjust for multiple
136 buffers.
137 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
138 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
139 adjust for multiple buffers.
140 (displaced_step_buffer::restore_in_ptid): Rename to...
141 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
142 multiple buffers.
143 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
144 for num_disp_step_buffers.
145 * linux-tdep.c (struct linux_gdbarch_data)
146 <num_disp_step_buffers>: New field.
147 (struct linux_info) <disp_step_buf>: Rename to...
148 <disp_step_bufs>: ... this, change type to
149 displaced_step_buffers.
150 (linux_displaced_step_prepare): Use
151 linux_gdbarch_data::num_disp_step_buffers to create that number
152 of buffers.
153 (linux_displaced_step_finish): Adjust.
154 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
155 (linux_displaced_step_restore_all_in_ptid): Adjust.
156 (linux_init_abi): Change supports_displaced_step parameter for
157 num_disp_step_buffers, save it in linux_gdbarch_data.
158 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
159 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
160 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
161 supports_displaced_step parameter for num_disp_step_buffers.
162 (amd64_linux_init_abi): Adjust.
163 (amd64_x32_linux_init_abi): Adjust.
164 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
165 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
166 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
167 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
168 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
169 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
170 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
171 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
172 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
173 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
174 * m68k-linux-tdep.c (m68k_linux_init_abi):
175 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
176 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
177 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
178 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
179 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
180 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
181 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
182 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
183 Change type to displaced_step_buffers.
184 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
185 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
186 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
187 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
188 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
189 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
190 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
191
192 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
193
194 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
195 obkstack.
196 (_initialize_linux_tdep): Register pre-init gdb data instead of
197 post-init.
198
199 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
200
201 * displaced-stepping.h (struct
202 displaced_step_copy_insn_closure): Adjust comments.
203 (struct displaced_step_inferior_state) <step_thread,
204 step_gdbarch, step_closure, step_original, step_copy,
205 step_saved_copy>: Remove fields.
206 (struct displaced_step_thread_state): New.
207 (struct displaced_step_buffer): New.
208 * displaced-stepping.c (displaced_step_buffer::prepare): New.
209 (write_memory_ptid): Move from infrun.c.
210 (displaced_step_instruction_executed_successfully): New,
211 factored out of displaced_step_finish.
212 (displaced_step_buffer::finish): New.
213 (displaced_step_buffer::copy_insn_closure_by_addr): New.
214 (displaced_step_buffer::restore_in_ptid): New.
215 * gdbarch.sh (displaced_step_location): Remove.
216 (displaced_step_prepare, displaced_step_finish,
217 displaced_step_copy_insn_closure_by_addr,
218 displaced_step_restore_all_in_ptid): New.
219 * gdbarch.c: Re-generate.
220 * gdbarch.h: Re-generate.
221 * gdbthread.h (class thread_info) <displaced_step_state>: New
222 field.
223 (thread_step_over_chain_remove): New declaration.
224 (thread_step_over_chain_next): New declaration.
225 (thread_step_over_chain_length): New declaration.
226 * thread.c (thread_step_over_chain_remove): Make non-static.
227 (thread_step_over_chain_next): New.
228 (global_thread_step_over_chain_next): Use
229 thread_step_over_chain_next.
230 (thread_step_over_chain_length): New.
231 (global_thread_step_over_chain_enqueue): Add debug print.
232 (global_thread_step_over_chain_remove): Add debug print.
233 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
234 Remove.
235 * infrun.c (get_displaced_stepping_state): New.
236 (displaced_step_in_progress_any_inferior): Remove.
237 (displaced_step_in_progress_thread): Adjust.
238 (displaced_step_in_progress): Adjust.
239 (displaced_step_in_progress_any_thread): New.
240 (get_displaced_step_copy_insn_closure_by_addr): Remove.
241 (gdbarch_supports_displaced_stepping): Use
242 gdbarch_displaced_step_prepare_p.
243 (displaced_step_reset): Change parameter from inferior to
244 thread.
245 (displaced_step_prepare_throw): Implement using
246 gdbarch_displaced_step_prepare.
247 (write_memory_ptid): Move to displaced-step.c.
248 (displaced_step_restore): Remove.
249 (displaced_step_finish): Implement using
250 gdbarch_displaced_step_finish.
251 (start_step_over): Allow starting more than one displaced step.
252 (prepare_for_detach): Handle possibly multiple threads doing
253 displaced steps.
254 (handle_inferior_event): Handle possibility that fork event
255 happens while another thread displaced steps.
256 * linux-tdep.h (linux_displaced_step_prepare): New.
257 (linux_displaced_step_finish): New.
258 (linux_displaced_step_copy_insn_closure_by_addr): New.
259 (linux_displaced_step_restore_all_in_ptid): New.
260 (linux_init_abi): Add supports_displaced_step parameter.
261 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
262 (linux_displaced_step_prepare): New.
263 (linux_displaced_step_finish): New.
264 (linux_displaced_step_copy_insn_closure_by_addr): New.
265 (linux_displaced_step_restore_all_in_ptid): New.
266 (linux_init_abi): Add supports_displaced_step parameter,
267 register displaced step methods if true.
268 (_initialize_linux_tdep): Register inferior_execd observer.
269 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
270 supports_displaced_step parameter, adjust call to
271 linux_init_abi. Remove call to
272 set_gdbarch_displaced_step_location.
273 (amd64_linux_init_abi): Adjust call to
274 amd64_linux_init_abi_common.
275 (amd64_x32_linux_init_abi): Likewise.
276 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
277 linux_init_abi. Remove call to
278 set_gdbarch_displaced_step_location.
279 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
280 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
281 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
282 linux_init_abi.
283 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
284 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
285 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
286 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
287 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
288 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
289 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
290 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
291 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
292 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
293 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
294 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
295 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
296 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
297 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
298 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
299 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
300 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
301 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
302 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
303 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
304 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
305 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
306 linux_init_abi. Remove call to
307 set_gdbarch_displaced_step_location.
308 * arm-tdep.c (arm_pc_is_thumb): Call
309 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
310 get_displaced_step_copy_insn_closure_by_addr.
311 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
312 clear gdbarch methods.
313 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
314 (get_ppc_per_inferior): New function.
315 (ppc_displaced_step_prepare): New function.
316 (ppc_displaced_step_finish): New function.
317 (ppc_displaced_step_restore_all_in_ptid): New function.
318 (rs6000_gdbarch_init): Register new gdbarch methods.
319 * s390-tdep.c (s390_gdbarch_init): Don't call
320 set_gdbarch_displaced_step_location, set new gdbarch methods.
321
322 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
323
324 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
325 * aarch64-tdep.h: Include displaced-stepping.h.
326 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
327 Move here.
328 (displaced_step_copy_insn_closure_up): Move here.
329 (struct buf_displaced_step_copy_insn_closure): Move here.
330 (struct displaced_step_inferior_state): Move here.
331 (debug_displaced): Move here.
332 (displaced_debug_printf_1): Move here.
333 (displaced_debug_printf): Move here.
334 * displaced-stepping.c: New file.
335 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
336 * gdbarch.h: Re-generate.
337 * inferior.h: Include displaced-stepping.h.
338 * infrun.h (debug_displaced): Move to displaced-stepping.h.
339 (displaced_debug_printf_1): Likewise.
340 (displaced_debug_printf): Likewise.
341 (struct displaced_step_copy_insn_closure): Likewise.
342 (displaced_step_copy_insn_closure_up): Likewise.
343 (struct buf_displaced_step_copy_insn_closure): Likewise.
344 (struct displaced_step_inferior_state): Likewise.
345 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
346 (displaced_debug_printf_1): Likewise.
347 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
348 Likewise.
349 (_initialize_infrun): Don't register "set/show debug displaced".
350
351 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
352
353 * linux-tdep.c (get_linux_inferior_data): Add inferior
354 parameter.
355 (linux_vsyscall_range): Pass current inferior.
356
357 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
358
359 * infrun.c (displaced_step_prepare_throw): Change return type to
360 displaced_step_prepare_status.
361 (displaced_step_prepare): Likewise.
362 (displaced_step_finish): Change return type to
363 displaced_step_finish_status.
364 (resume_1): Adjust.
365 (stop_all_threads): Adjust.
366 * displaced-stepping.h: New file.
367
368 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
369
370 * infrun.c (displaced_step_fixup): Rename to...
371 (displaced_step_finish): ... this, update all callers.
372
373 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
374
375 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
376 (get_displaced_step_copy_insn_closure_by_addr): ... this.
377 Update all users.
378 (displaced_step_closure): Rename to...
379 (displaced_step_copy_insn_closure): ... this. Update all users.
380 (displaced_step_closure_up): Rename to...
381 (displaced_step_copy_insn_closure_up). ... this. Update all
382 users.
383 (buf_displaced_step_closure): Rename to...
384 (buf_displaced_step_copy_insn_closure): ... this. Update all
385 users.
386 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
387 (get_displaced_step_copy_insn_closure_by_addr): ... this.
388 Update all users.
389 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
390 (aarch64_displaced_step_copy_insn_closure): ... this. Update
391 all users.
392 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
393 (amd64_displaced_step_copy_insn_closure): ... this. Update all
394 users.
395 * arm-tdep.h (arm_displaced_step_closure): Rename to...
396 (arm_displaced_step_copy_insn_closure): ... this. Update all
397 users.
398 * i386-tdep.h (i386_displaced_step_closure): Rename to...
399 (i386_displaced_step_copy_insn_closure): ... this. Update all
400 users.
401 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
402 (ppc_displaced_step_copy_insn_closure): ... this. Update all
403 users.
404 * s390-tdep.c (s390_displaced_step_closure): Rename to...
405 (s390_displaced_step_copy_insn_closure): ... this. Update all
406 users.
407 * gdbarch.h: Re-generate.
408 * gdbarch.c: Re-generate.
409
410 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
411
412 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
413 (global_thread_step_over_chain_enqueue): ... this. Update all
414 users.
415 (thread_step_over_chain_remove): Rename to...
416 (global_thread_step_over_chain_remove): ... this. Update all
417 users.
418 (thread_step_over_chain_next): Rename to...
419 (global_thread_step_over_chain_next): ... this. Update all
420 users.
421 * infrun.h (step_over_queue_head): Rename to...
422 (global_thread_step_over_chain_head): ... this. Update all
423 users.
424 * infrun.c (step_over_queue_head): Rename to...
425 (global_thread_step_over_chain_head): ... this. Update all
426 users.
427 * thread.c (step_over_chain_remove): Rename to...
428 (thread_step_over_chain_remove): ... this. Update all users.
429 (thread_step_over_chain_next): Rename to...
430 (global_thread_step_over_chain_next): ... this. Update all
431 users.
432 (thread_step_over_chain_enqueue): Rename to...
433 (global_thread_step_over_chain_enqueue): ... this. Update all
434 users.
435 (thread_step_over_chain_remove): Rename to...
436 (global_thread_step_over_chain_remove): ... this. Update all
437 users.
438
439 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
440
441 * infrun.c (get_displaced_stepping_state): Remove, change
442 callers to access the field directly.
443
444 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
445
446 * infrun.c (handle_inferior_event): Restore displaced step
447 buffer bytes in child process when handling fork, even if fork
448 happened in another thread than the displaced-stepping one.
449
450 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
451
452 * infrun.c (infrun_inferior_execd): New function.
453 (_initialize_infrun): Attach inferior_execd observer.
454
455 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
456
457 * observable.h (inferior_execd): Declare new observable.
458 * observable.c (inferior_execd): Declare new observable.
459 * infrun.c (follow_exec): Notify inferior_execd observer.
460 * jit.c (jit_inferior_created_hook): Make static.
461 (_initialize_jit): Register inferior_execd observer.
462 * jit.h (jit_inferior_created_hook): Remove declaration.
463 * solib.c (_initialize_solib): Register inferior_execd observer.
464
465 2020-12-04 Tom de Vries <tdevries@suse.de>
466
467 PR gdb/27003
468 * completer.c (completion_tracker::build_completion_result): Don't
469 access match_list[0][-1].
470
471 2020-12-04 Tom Tromey <tromey@adacore.com>
472
473 * linespec.c (struct linespec_token): Rename; remove typedef.
474 * guile/scm-block.c (struct block_smob): Remove typedef.
475 (struct block_syms_progress_smob): Likewise.
476 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
477 * guile/scm-symtab.c (symtab_smob): Remove typedef.
478 (struct sal_smob): Remove typedef.
479 * guile/scm-param.c (struct param_smob): Remove typedef.
480 * guile/scm-progspace.c (struct pspace_smob): Rename.
481 * guile/scm-objfile.c (struct objfile_smob): Rename.
482 * guile/scm-iterator.c (struct iterator_smob): Rename.
483 * guile/scm-frame.c (struct frame_smob): Rename.
484 * guile/scm-arch.c (struct arch_smob): Rename.
485 * guile/scm-type.c (struct field_smob): Remove typedef.
486 (struct type_smob): Rename.
487 * guile/scm-cmd.c (struct command_smob): Remove typedef.
488 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
489 * guile/scm-value.c (struct value_smob): Remove typedef.
490 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
491 * guile/guile-internal.h (struct scheme_variable)
492 (struct scheme_function, struct scheme_integer_constant)
493 (struct gdb_smob, struct chained_gdb_smob)
494 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
495 (objfile_smob, pspace_smob, type_smob): Remove typedef.
496 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
497 (struct pretty_printer_worker_smob): Remove typedef.
498 * guile/scm-exception.c (struct exception_smob): Remove typedef.
499 * python/py-block.c (struct block_object): Remove typedef.
500 (block_syms_iterator_object): Update.
501 (set_block): Update.
502 (block_syms_iterator_object): Remove typedef.
503 * python/py-inferior.c (struct membuf_object): Remove typedef.
504 * python/py-symtab.c (struct symtab_object): Remove typedef.
505 (set_symtab): Update.
506 (sal_object): Remove typedef.
507 (set_sal): Update.
508 * python/py-frame.c (frame_object): Remove typedef.
509 * python/py-record-btrace.c (struct btpy_list_object): Remove
510 typedef.
511 * python/py-arch.c (struct arch_object): Remove typedef.
512 * python/py-linetable.c (struct linetable_entry_object)
513 (linetable_object, struct ltpy_iterator_object): Remove typedef.
514 * python/py-events.h (eventregistry_object): Remove typedef.
515 (struct events_object): Remove typedef.
516 * python/python-internal.h (gdbpy_breakpoint_object): Remove
517 typedef.
518 (thread_object): Remove typedef.
519 * python/py-progspace.c (pspace_object): Remove typedef.
520 * python/py-value.c (struct value_object): Remove typedef.
521 * python/py-record.h (recpy_record_object): Remove typedef.
522 (struct recpy_element_object): Remove typedef.
523 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
524 * python/py-objfile.c (objfile_object): Remove typedef.
525 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
526 * python/py-type.c (type_object): Remove typedef.
527 (typy_iterator_object): Update.
528 (set_type): Update.
529 (field_object): Remove typedef.
530 (typy_iterator_object): Remove typedef.
531 * python/py-registers.c (register_descriptor_iterator_object):
532 Remove typedef.
533 (struct register_descriptor_object)
534 (struct reggroup_iterator_object, struct reggroup_object): Remove
535 typedef.
536 * python/py-record.c (recpy_gap_object): Remove typedef.
537 * python/py-symbol.c (symbol_object): Remove typedef.
538 (set_symbol): Update.
539 * python/py-event.h (event_object): Remove typedef.
540 * python/py-param.c (parmpy_object): Remove typedef.
541 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
542 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
543 (unwind_info_object, struct cached_frame_info): Likewise.
544
545 2020-12-04 Tom Tromey <tromey@adacore.com>
546
547 * value.c (value_internal_function_name): Make return type const.
548 * value.h (value_internal_function_name): Make return type const.
549
550 2020-12-04 Luis Machado <luis.machado@linaro.org>
551
552 * aarch64-tdep.c (submask, bit, bits): Remove.
553 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
554 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
555 (aarch64_decode_cb, aarch64_decode_tb)
556 (aarch64_decode_ldr_literal): Use sbits to extract a signed
557 immediate.
558 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
559
560 2020-12-04 Tom de Vries <tdevries@suse.de>
561
562 PR tdep/27007
563 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
564
565 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
566
567 PR gdb/26876
568 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
569 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
570
571 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
572
573 * arch/riscv.c: Include 'rv32e-xregs.c'.
574 (riscv_create_target_description): Update to handle rv32e.
575 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
576 member variable.
577 <operator==>: Update to account for new field.
578 <hash>: Likewise.
579 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
580 * features/riscv/rv32e-xregs.c: Generated.
581 * features/riscv/rv32e-xregs.xml: New file.
582 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
583 file.
584 (riscv_debug_infcall): Likewise.
585 (riscv_debug_unwinder): Likewise.
586 (riscv_debug_gdbarch): Likewise.
587 (enum riscv_register_required_status): Delete.
588 (struct riscv_register_feature): Add constructor, delete default
589 constructor, copy, and assign constructors.
590 (struct riscv_register_feature::register_info) <required>: Delete.
591 <check>: Update comment and arguments.
592 (struct riscv_register_feature) <name>: Change to member function.
593 <prefer_first_name>: Delete.
594 <tdesc_feature>: New member function.
595 <registers>: Rename to...
596 <m_registers>: ...this.
597 <m_feature_name>: New member variable.
598 (riscv_register_feature::register_info::check): Update arguments.
599 (riscv_xreg_feature): Rewrite as class, create a single static
600 instance of the class.
601 (riscv_freg_feature): Likewise.
602 (riscv_virtual_feature): Likewise.
603 (riscv_csr_feature): Likewise.
604 (riscv_create_csr_aliases): Has become a member function inside
605 riscv_csr_feature class.
606 (riscv_abi_embedded): New function definition.
607 (riscv_register_name): Adjust to use new feature objects.
608 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
609 and adjust available argument registers.
610 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
611 (riscv_check_tdesc_feature): Delete.
612 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
613 (riscv_gdbarch_init): Delete target description checking code, and
614 instead call to the new feature objects to perform the checks.
615 Reorder handling of no abi information case, allows small code
616 simplification.
617 (_initialize_riscv_tdep): Remove call, this is now done in the
618 riscv_csr_feature constructor.
619 * riscv-tdep.h (riscv_abi_embedded): Declare.
620
621 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
622
623 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
624 DECLARE_CSR_ALIAS.
625
626 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
627
628 * riscv-tdep.c (riscv_is_unknown_csr): New function,
629 implementation moved from riscv_register_reggroup_p.
630 (riscv_register_reggroup_p): Update group handling for unknown
631 CSRs.
632
633 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
634
635 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
636 (dwarf2_get_dwz_file): Convert 'filename' to a
637 std::string. Use dwz_search_other_debugdirs to search for DWZ
638 files in the debug-file-directories provided by the user as well.
639
640 2020-12-01 Tom Tromey <tom@tromey.com>
641
642 * parse.c (expr_builder::expr_builder): Initialize expout.
643 (expr_builder::release): Use expression::resize.
644 (expression::expression, expression::~expression)
645 (expression::resize): New methods.
646 (write_exp_elt): Use expression::resize.
647 (prefixify_expression): Update.
648 (increase_expout_size): Use expression::resize.
649 * expression.h (struct expression): Add constructor, destructor.
650 <resize>: New method.
651 (expression_up): Change type.
652
653 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
654 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
655 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
656 set region.
657
658 2020-11-30 Tom de Vries <tdevries@suse.de>
659
660 PR symtab/26905
661 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
662 is_reference parameter.
663 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
664
665 2020-11-30 Tom Tromey <tom@tromey.com>
666
667 * rust-lang.c (rust_op_name): Remove.
668 (exp_descriptor_rust): Update.
669 * parser-defs.h (op_name_standard): Don't declare.
670 (struct exp_descriptor) <op_name>: Remove.
671 * parse.c (exp_descriptor_standard): Update.
672 * opencl-lang.c (exp_descriptor_opencl): Update.
673 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
674 * f-lang.c (op_name_f): Remove.
675 (f_language::exp_descriptor_tab): Update.
676 * expression.h (op_name): Update.
677 * expprint.c (op_name): Rewrite.
678 (op_name_standard): Remove.
679 (dump_raw_expression, dump_subexp): Update.
680 * c-lang.c (exp_descriptor_c): Update.
681 * ax-gdb.c (gen_expr): Update.
682 * ada-lang.c (ada_op_name): Remove.
683 (ada_exp_descriptor): Update.
684
685 2020-11-30 Tom Tromey <tom@tromey.com>
686
687 * eval.c (init_array_element): Remove.
688 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
689
690 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
691
692 PR tui/26973
693 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
694 static locator win info.
695
696 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
697
698 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
699 program.
700
701 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
702
703 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
704 is always initialized.
705
706 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
707 * MAINTAINERS (Write After Approval): Add myself.
708
709 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
710
711 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
712 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
713
714 2020-11-25 Tom Tromey <tom@tromey.com>
715
716 * eval.c (evaluate_subexp_standard): Remove unnecessary
717 variables.
718
719 2020-11-25 Tom Tromey <tom@tromey.com>
720
721 * d-lang.c: Include parser-defs.h.
722 * rust-lang.c: Include parser-defs.h.
723 * c-lang.h: Do not include parser-defs.h.
724
725 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
726
727 * regcache.h (struct cached_reg): Remove typedef.
728
729 2020-11-24 Joel Brobecker <brobecker@adacore.com>
730
731 * README: Fix the URL of the MPFR library.
732
733 2020-11-24 Joel Brobecker <brobecker@adacore.com>
734
735 * README: Document the --with-libgmp-prefix configure option.
736
737 2020-11-24 Joel Brobecker <brobecker@adacore.com>
738
739 * NEWS: Add entry documenting support for DWARF-based fixed
740 point types.
741
742 2020-11-24 Joel Brobecker <brobecker@adacore.com>
743
744 * NEWS: Document that building GDB now requires GMP.
745
746 2020-11-24 Joel Brobecker <brobecker@adacore.com>
747
748 * typeprint.c (print_type_scalar): Add handling of
749 TYPE_CODE_FIXED_POINT.
750
751 2020-11-24 Joel Brobecker <brobecker@adacore.com>
752
753 * valarith.c (fixed_point_binop): Replace the
754 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
755 users accordingly.
756
757 2020-11-24 Joel Brobecker <brobecker@adacore.com>
758
759 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
760 replacing fixed_point_scaling_factor. All callers updated
761 throughout this project.
762 (fixed_point_scaling_factor): Delete declaration.
763 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
764 fixed_point_scaling_factor. Adjust implementation accordingly.
765
766 2020-11-24 Joel Brobecker <brobecker@adacore.com>
767
768 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
769 replacing the fixed_point_type_base_type function. All callers
770 updated throughout this project.
771 (fixed_point_type_base_type): Remove declaration.
772 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
773 fixed_point_type_base_type. Adjust implementation accordingly.
774
775 2020-11-24 Joel Brobecker <brobecker@adacore.com>
776
777 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
778 New methods.
779 (INIT_FIXED_POINT_SPECIFIC): Adjust.
780 (TYPE_FIXED_POINT_INFO): Delete macro.
781 (allocate_fixed_point_type_info): Change return type to void.
782 * gdbtypes.c (copy_type_recursive): Replace the use of
783 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
784 (fixed_point_scaling_factor): Likewise.
785 (allocate_fixed_point_type_info): Change return type to void.
786 Adjust implementation accordingly.
787 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
788 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
789
790 2020-11-24 Joel Brobecker <brobecker@adacore.com>
791
792 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
793 into one single gdb::array_view parameter.
794 (gdb_mpz::write): Likewise.
795 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
796 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
797 into one single gdb::array_view parameter.
798 Adjust implementation accordingly.
799 (gdb_mpz::write): Likewise.
800 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
801 * unittests/gmp-utils-selftests.c: Adapt following changes above.
802 * valarith.c, valops.c, valprint.c, value.c: Likewise.
803
804 2020-11-24 Joel Brobecker <brobecker@adacore.com>
805
806 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
807 Change return type to std::string. Update all callers.
808 * gmp-utils.c (gmp_string_printf): Likewise.
809
810 2020-11-24 Joel Brobecker <brobecker@adacore.com>
811
812 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
813 instead of mpq_set_ui to initialize our GMP rational.
814
815 2020-11-23 Tom de Vries <tdevries@suse.de>
816
817 * debuginfod-support.c (debuginfod_source_query)
818 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
819
820 2020-11-21 Tom Tromey <tom@tromey.com>
821
822 * breakpoint.c (watchpoint_exp_is_const): Return bool.
823
824 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
825
826 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
827 Pass 2.0 to pow.
828 (gdb_mpz_write_all_from_small): Likewise.
829
830 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
831
832 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
833 of abs.
834
835 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
836
837 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
838 ctf_arc_open_by_name.
839
840 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
841
842 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
843 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
844
845 2020-11-20 Pedro Alves <pedro@palves.net>
846
847 * language.c (language_arch_info::lookup_primitive_type): Use
848 gdb::function_view instead of gdb::function.
849 (template language_lookup_primitive_type): Rename to ...
850 (language_lookup_primitive_type_1): ... this, and make static.
851 (language_lookup_primitive_type(const struct language_defn *,
852 struct gdbarch *, const char *): Make non-template.
853 (language_lookup_primitive_type(const struct language_defn *,
854 struct gdbarch *, std::function<bool (struct type *)>): Make
855 non-template and use gdb::function_view.
856 * language.h (language_arch_info::lookup_primitive_type): Use
857 gdb::function_view instead of std::function.
858 (language_lookup_primitive_type): No longer template.
859 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
860 lambda instead of a std::function.
861
862 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
863
864 PR tdep/26916
865 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
866 and STOCFH.
867
868 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
869
870 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
871
872 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
873
874 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
875 in `loop_cb` parameter.
876 * gdbarch.c: Re-generate.
877 * gdbarch.h: Re-generate.
878 * arch-utils.c (default_read_core_file_mappings): Remove `other`
879 parameter.
880 * arch-utils.h (default_read_core_file_mappings): Likewise.
881 * corelow.c (core_target::build_file_mappings): Likewise.
882 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
883 (linux_core_info_proc_mappings): Likewise.
884
885 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
886
887 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
888 * NEWS: Mention new options.
889 * f-array-walker.h: New file.
890 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
891 (repack_array_slices): New static global.
892 (show_repack_array_slices): New function.
893 (fortran_array_slicing_debug): New static global.
894 (show_fortran_array_slicing_debug): New function.
895 (value_f90_subarray): Delete.
896 (skip_undetermined_arglist): Delete.
897 (class fortran_array_repacker_base_impl): New class.
898 (class fortran_lazy_array_repacker_impl): New class.
899 (class fortran_array_repacker_impl): New class.
900 (fortran_value_subarray): Complete rewrite.
901 (set_fortran_list): New static global.
902 (show_fortran_list): Likewise.
903 (_initialize_f_language): Register new commands.
904 (fortran_adjust_dynamic_array_base_address_hack): New function.
905 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
906 Declare.
907 * f-valprint.c: Include 'f-array-walker.h'.
908 (class fortran_array_printer_impl): New class.
909 (f77_print_array_1): Delete.
910 (f77_print_array): Delete.
911 (fortran_print_array): New.
912 (f_value_print_inner): Update to call fortran_print_array.
913 * gdbtypes.c: Include 'f-lang.h'.
914 (resolve_dynamic_type_internal): Call
915 fortran_adjust_dynamic_array_base_address_hack.
916
917 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
918
919 * breakpoint.c (struct watch_options): New struct.
920 (watch_option_defs): New static global.
921 (make_watch_options_def_group): New function.
922 (watch_maybe_just_location): Convert option parsing.
923 (watch_command_completer): New function.
924 (_initialize_breakpoint): Build help text using options mechanism.
925
926 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
927
928 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
929 (watch_command_1): Update parameter types. Convert locals to
930 bool.
931 (watch_command_wrapper): Change parameter type.
932 (watch_maybe_just_location): Change locals to bool.
933 (rwatch_command_wrapper): Update parameter type.
934 (awatch_command_wrapper): Update parameter type.
935 * breakpoint.h (watch_command_wrapper): Change parameter type.
936 (rwatch_command_wrapper): Update parameter type.
937 (awatch_command_wrapper): Update parameter type.
938 * eval.c (fetch_subexp_value): Change parameter type.
939 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
940 'false' not '0'.
941 * value.h (fetch_subexp_value): Change parameter type in
942 declaration.
943
944 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
945
946 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
947 skip_spaces.
948
949 2020-11-18 Keith Seitz <keiths@redhat.com>
950
951 * linux-tdep.c (dump_note_entry_p): Return true instead of
952 checking `filename'.
953
954 2020-11-18 Tom de Vries <tdevries@suse.de>
955
956 * debuginfod-support.c (debuginfod_source_query)
957 (debuginfod_debuginfo_query): Also do early exit if
958 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
959
960 2020-11-18 Tom de Vries <tdevries@suse.de>
961
962 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
963 warning.
964
965 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
966
967 * gdbtypes.h (get_array_bounds): Return bool, adjust some
968 callers. Move doc here.
969 * gdbtypes.c (get_array_bounds): Return bool
970
971 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
972
973 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
974 assert.
975 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
976 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
977 case to the default.
978
979 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * printcmd.c: Include 'safe-ctype.c'.
982 (skip_over_slash_fmt): New function.
983 (print_command_completer): Call skip_over_slash_fmt.
984 (display_and_x_command_completer): New function.
985 (_initialize_printcmd): Add command completion for 'x' and
986 'display'.
987
988 2020-11-16 Pedro Alves <pedro@palves.net>
989
990 * frame.c (get_prev_frame): Move get_frame_id call from here ...
991 (get_prev_frame_always_1): ... to here.
992 * inline-frame.c (inline_frame_this_id): Mention
993 get_prev_frame_always_1 in comment.
994
995 2020-11-15 Joel Brobecker <brobecker@adacore.com>
996
997 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
998 handling.
999 (value_less): Add fixed-point handling.
1000
1001 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1002
1003 * eval.c (binop_promote): Add fixed-point type handling.
1004 * valarith.c (fixed_point_binop): New function.
1005 (scalar_binop): Add fixed-point type handling.
1006 (value_neg): Add fixed-point type handling.
1007 * valops.c (value_cast_to_fixed_point): New function.
1008 (value_cast): Add fixed-point type handling.
1009
1010 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1011
1012 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1013 range types.
1014 * c-typeprint.c (c_type_print_varspec_prefix)
1015 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1016 TYPE_CODE_FIXED_POINT handling.
1017 * p-typeprint.c (pascal_type_print_varspec_prefix)
1018 (pascal_type_print_varspec_suffix): Likewise.
1019 * typeprint.c (print_type_fixed_point): New function.
1020 * typeprint.h (print_type_fixed_point): Add declaration.
1021
1022 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1023
1024 * printcmd.c (print_scalar_formatted): Add fixed-point type
1025 handling when options->format is set.
1026
1027 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1028
1029 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1030 * dwarf2/read.c (get_dwarf2_rational_constant)
1031 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1032 (has_zero_over_zero_small_attribute): New functions.
1033 read_base_type, set_die_type): Add fixed-point type handling.
1034 * gdb-gdb.py.in: Add fixed-point type handling.
1035 * gdbtypes.c: #include "gmp-utils.h".
1036 (create_range_type, set_type_code): Add fixed-point type handling.
1037 (init_fixed_point_type): New function.
1038 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1039 (print_fixed_point_type_info): New function.
1040 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1041 handling.
1042 (fixed_point_type_storage): New typedef.
1043 (fixed_point_objfile_key): New static global.
1044 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1045 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1046 functions.
1047 * gdbtypes.h: #include "gmp-utils.h".
1048 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1049 (union type_specific) <fixed_point_info>: New field.
1050 (struct fixed_point_type_info): New struct.
1051 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1052 (init_fixed_point_type, is_fixed_point_type)
1053 (fixed_point_type_base_type, fixed_point_scaling_factor)
1054 (allocate_fixed_point_type_info): Add declarations.
1055 * valprint.c (generic_val_print_fixed_point): New function.
1056 (generic_value_print): Add fixed-point type handling.
1057 * value.c (value_as_address, unpack_long): Add fixed-point type
1058 handling.
1059
1060 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1061
1062 * utils.h (uinteger_pow): Add declaration.
1063 * utils.c (uinteger_pow): Moved here (without changes)...
1064 * valarith.c (uinteger_pow): ... from here.
1065
1066 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1067
1068 * gmp-utils.h, gmp-utils.c: New file.
1069 * unittests/gmp-utils-selftests.c: New file.
1070 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1071 unittests/gmp-utils-selftests.c.
1072 (COMMON_SFILES) Add gmp-utils.c.
1073 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1074
1075 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1076
1077 * configure.ac: Generate an error if a usable GMP library
1078 could not be found.
1079 * configure: Regenerate.
1080
1081 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1082
1083 * configure.ac: Add support for --with-libgmp-prefix.
1084 * Makefile.in (LIBGMP): New variable.
1085 (CLIBS): Include $(LIBGMP).
1086 * configure, config.in: Regenerate
1087
1088 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1089
1090 PR cli/26879
1091 * f-exp.y (COMPLETE): New token.
1092 (exp): Two new rules for tab-completion.
1093 (saw_name_at_eof): New static global.
1094 (last_was_structop): Likewise.
1095 (yylex): Set new variables, and return COMPLETE token at the end
1096 of the input stream in some cases.
1097
1098 2020-11-14 Tom Tromey <tom@tromey.com>
1099
1100 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1101
1102 2020-11-14 Tom Tromey <tom@tromey.com>
1103
1104 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1105
1106 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1107
1108 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1109
1110 2020-11-13 Tom Tromey <tom@tromey.com>
1111
1112 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1113 (convert_escape, parse_one_string): Constify.
1114
1115 2020-11-13 Keith Seitz <keiths@redhat.com>
1116
1117 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1118 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1119 outside of ELF segments" warning for debugin
1120
1121 2020-11-13 Keith Seitz <keiths@redhat.com>
1122
1123 PR gdb/23034
1124 * elfread.c (elf_symfile_segments): Output a BFD file name
1125 for the "Loadable section ... outside of ELF segments" warning.
1126
1127 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1128
1129 PR gdb/26835
1130 * arm-tdep.c (class arm_instruction_reader): New.
1131 (target_arm_instruction_reader): New.
1132 (arm_analyze_prologue): Add instruction reader parameter and use
1133 it. Use arm_expand_immediate.
1134 (class target_arm_instruction_reader): Adjust.
1135 (arm_skip_prologue): Adjust.
1136 (arm_expand_immediate): New.
1137 (arm_scan_prologue): Adjust.
1138 (arm_analyze_prologue_test): New.
1139 (class test_arm_instruction_reader): New.
1140
1141 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1142
1143 * f-lang.c (fortran_argument_convert): Add declaration. Add
1144 header comment, taken from f-lang.h. Make static.
1145 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1146 (fortran_argument_convert): Delete declaration.
1147
1148 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * ada-exp.y (find_primitive_type): Make parameter const.
1151 * ada-lang.c (enum ada_primitive_types): Delete.
1152 (ada_language::language_arch_info): Update.
1153 * c-lang.c (enum c_primitive_types): Delete.
1154 (c_language_arch_info): Update.
1155 (enum cplus_primitive_types): Delete.
1156 (cplus_language::language_arch_info): Update.
1157 * d-lang.c (enum d_primitive_types): Delete.
1158 (d_language::language_arch_info): Update.
1159 * f-lang.c (enum f_primitive_types): Delete.
1160 (f_language::language_arch_info): Update.
1161 * go-lang.c (enum go_primitive_types): Delete.
1162 (go_language::language_arch_info): Update.
1163 * language.c (auto_or_unknown_language::language_arch_info):
1164 Update.
1165 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1166 (language_string_char_type): Add header comment, call function in
1167 language_arch_info.
1168 (language_bool_type): Likewise
1169 (language_arch_info::bool_type): Define.
1170 (language_lookup_primitive_type_1): Delete.
1171 (language_lookup_primitive_type): Rewrite as a templated function
1172 to call function in language_arch_info, then instantiate twice.
1173 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1174 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1175 (language_arch_info::lookup_primitive_type): Define twice with
1176 different signatures.
1177 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1178 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1179 member function in language_arch_info.
1180 * language.h (language_arch_info): Complete rewrite.
1181 (language_lookup_primitive_type): Make templated.
1182 * m2-lang.c (enum m2_primitive_types): Delete.
1183 (m2_language::language_arch_info): Update.
1184 * opencl-lang.c (OCL_P_TYPE): Delete.
1185 (enum opencl_primitive_types): Delete.
1186 (opencl_type_data): Delete.
1187 (builtin_opencl_type): Delete.
1188 (lookup_opencl_vector_type): Update.
1189 (opencl_language::language_arch_info): Update, lots of content
1190 moved from...
1191 (build_opencl_types): ...here. This function is now deleted.
1192 (_initialize_opencl_language): Delete.
1193 * p-lang.c (enum pascal_primitive_types): Delete.
1194 (pascal_language::language_arch_info): Update.
1195 * rust-lang.c (enum rust_primitive_types): Delete.
1196 (rust_language::language_arch_info): Update.
1197
1198 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1199
1200 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1201 dwarf2_queue_guard.
1202
1203 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1204
1205 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1206 comment.
1207
1208 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1209
1210 * dwarf2/read.c (dwarf_read_debug_printf,
1211 dwarf_read_debug_printf_v): New macros, use throughout the file.
1212
1213 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1214
1215 PR tdep/27015
1216 * arc-linux-tdep.c (collect_register): Populate "eret" by
1217 "pc" value from the regcache when asked for "pc" value.
1218
1219 2020-11-12 Tom Tromey <tom@tromey.com>
1220
1221 PR rust/26799:
1222 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1223 exist.
1224
1225 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1226
1227 * features/Makefile (XMLTOC): Add rx.xml.
1228 (FEATURE_XMLFILES): Remove rx.xml.
1229 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1230 * features/rx.c: Regenerate.
1231 * features/rx.xml: Wrap in `target` tags, and reindent.
1232 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1233 structure.
1234 (maint_print_c_tdesc_opt_def): New typedef.
1235 (maint_print_c_tdesc_opt_defs): New static global.
1236 (make_maint_print_c_tdesc_options_def_group): New function.
1237 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1238 print single feature C file for target descriptions containing a
1239 single feature.
1240 (maint_print_c_tdesc_cmd_completer): New function.
1241 (_initialize_target_descriptions): Update call to register command
1242 completer, and include command line flag in help text.
1243
1244 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1245
1246 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1247 numbers.
1248 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1249 enum values.
1250
1251 2020-11-10 Tom Tromey <tom@tromey.com>
1252
1253 * value.h (internalvar_name): Update.
1254 * value.c (internalvar_name): Make return type const.
1255
1256 2020-11-10 Tom Tromey <tom@tromey.com>
1257
1258 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1259 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1260 const.
1261
1262 2020-11-10 Tom Tromey <tom@tromey.com>
1263
1264 * objc-lang.h (value_nsstring): Update.
1265 * objc-lang.c (value_nsstring): Make "ptr" const.
1266
1267 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * expprint.c (print_subexp_funcall): Increment expression position
1270 after reading argument count.
1271 * f-lang.c (print_subexp_f): Skip over opcode before calling
1272 common function.
1273 (dump_subexp_body_f): Likewise.
1274
1275 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1276
1277 PR python/26832
1278 * configure: Regenerate.
1279 * configure.ac: Check for python modules ctypes instead of
1280 itertools.
1281
1282 2020-11-06 Pedro Alves <pedro@palves.net>
1283
1284 * macroexp.c (struct macro_buffer): Split in two classes. Add
1285 uses adjusted.
1286 (struct shared_macro_buffer): New, factored out from struct
1287 macro_buffer.
1288 (struct growable_macro_buffer): New, factored out from struct
1289 macro_buffer.
1290 (set_token, get_comment, get_identifier, get_pp_number)
1291 (get_character_constant, get_string_literal, get_punctuator)
1292 (get_next_token_for_substitution): Constify parameters.
1293 (substitute_args): Constify locals.
1294
1295 2020-11-05 Tom Tromey <tom@tromey.com>
1296
1297 * dwarf2/read.c (read_cutu_die_from_dwo)
1298 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1299 (build_type_psymtabs_1): Update.
1300 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1301 parameter.
1302 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1303 Don't read section. Add assert.
1304
1305 2020-11-04 Tom Tromey <tromey@adacore.com>
1306
1307 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1308
1309 2020-11-04 Tom Tromey <tromey@adacore.com>
1310
1311 * ada-typeprint.c (ada_print_type): Handle __T types.
1312
1313 2020-11-04 Tom Tromey <tromey@adacore.com>
1314
1315 * dwarf2/read.c (add_partial_symbol, process_die):
1316 Handle DW_TAG_array_type.
1317 (is_type_tag_for_partial): Add "lang" parameter.
1318 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1319
1320 2020-11-04 Tom Tromey <tromey@adacore.com>
1321
1322 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1323
1324 2020-11-04 Tom Tromey <tromey@adacore.com>
1325
1326 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1327 array.
1328
1329 2020-11-04 Tom Tromey <tromey@adacore.com>
1330
1331 * gdbtypes.c (update_static_array_size): Handle bit stride.
1332
1333 2020-11-04 Tom Tromey <tromey@adacore.com>
1334
1335 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1336
1337 2020-11-04 Tom Tromey <tromey@adacore.com>
1338
1339 * ada-lang.c (ada_is_any_packed_array_type): New function.
1340 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1341
1342 2020-11-04 Tom Tromey <tromey@adacore.com>
1343
1344 * dwarf2/read.c (recognize_bound_expression)
1345 (quirk_ada_thick_pointer): New functions.
1346 (read_array_type): Call quirk_ada_thick_pointer.
1347 (set_die_type): Add "skip_data_location" parameter.
1348 (quirk_ada_thick_pointer): New function.
1349 (process_structure_scope): Call quirk_ada_thick_pointer.
1350 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1351 (decode_packed_array_bitsize): Handle thick pointers without
1352 parallel types.
1353 (ada_is_gnat_encoded_packed_array_type): Rename from
1354 ada_is_packed_array_type.
1355 (ada_is_constrained_packed_array_type): Update.
1356 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1357 (ada_value_print_1): Use ada_get_decoded_value.
1358
1359 2020-11-04 Tom Tromey <tromey@adacore.com>
1360
1361 * ada-lang.c (recursively_update_array_bitsize): New function.
1362 (decode_constrained_packed_array_type): Call it.
1363
1364 2020-11-04 Tom Tromey <tromey@adacore.com>
1365
1366 * ada-lang.c (to_fixed_array_type): Error if
1367 decode_constrained_packed_array_type returns NULL.
1368
1369 2020-11-04 Tom Tromey <tromey@adacore.com>
1370
1371 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1372
1373 2020-11-02 Tom Tromey <tromey@adacore.com>
1374
1375 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1376 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1377 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1378 * amd64-ravenscar-thread.c: New file.
1379 * amd64-ravenscar-thread.h: New file.
1380 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1381 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1382
1383 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1384
1385 * main.c (execute_cmdargs): New function.
1386 (captured_main_1): Make use of execute_cmdargs.
1387
1388 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1389
1390 * NEWS: Mention changes to config file search path.
1391 * main.c
1392
1393 2020-11-02 Tom Tromey <tromey@adacore.com>
1394
1395 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1396 (python_GdbModuleDef): Move earlier. Now static.
1397 (do_start_initialization): Consolidate some IS_PY3K blocks.
1398
1399 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1400
1401 * aarch64-linux-tdep.c: Fix indentation.
1402 * aarch64-ravenscar-thread.c: Fix indentation.
1403 * aarch64-tdep.c: Fix indentation.
1404 * aarch64-tdep.h: Fix indentation.
1405 * ada-lang.c: Fix indentation.
1406 * ada-lang.h: Fix indentation.
1407 * ada-tasks.c: Fix indentation.
1408 * ada-typeprint.c: Fix indentation.
1409 * ada-valprint.c: Fix indentation.
1410 * ada-varobj.c: Fix indentation.
1411 * addrmap.c: Fix indentation.
1412 * addrmap.h: Fix indentation.
1413 * agent.c: Fix indentation.
1414 * aix-thread.c: Fix indentation.
1415 * alpha-bsd-nat.c: Fix indentation.
1416 * alpha-linux-tdep.c: Fix indentation.
1417 * alpha-mdebug-tdep.c: Fix indentation.
1418 * alpha-nbsd-tdep.c: Fix indentation.
1419 * alpha-obsd-tdep.c: Fix indentation.
1420 * alpha-tdep.c: Fix indentation.
1421 * amd64-bsd-nat.c: Fix indentation.
1422 * amd64-darwin-tdep.c: Fix indentation.
1423 * amd64-linux-nat.c: Fix indentation.
1424 * amd64-linux-tdep.c: Fix indentation.
1425 * amd64-nat.c: Fix indentation.
1426 * amd64-obsd-tdep.c: Fix indentation.
1427 * amd64-tdep.c: Fix indentation.
1428 * amd64-windows-tdep.c: Fix indentation.
1429 * annotate.c: Fix indentation.
1430 * arc-tdep.c: Fix indentation.
1431 * arch-utils.c: Fix indentation.
1432 * arch/arm-get-next-pcs.c: Fix indentation.
1433 * arch/arm.c: Fix indentation.
1434 * arm-linux-nat.c: Fix indentation.
1435 * arm-linux-tdep.c: Fix indentation.
1436 * arm-nbsd-tdep.c: Fix indentation.
1437 * arm-pikeos-tdep.c: Fix indentation.
1438 * arm-tdep.c: Fix indentation.
1439 * arm-tdep.h: Fix indentation.
1440 * arm-wince-tdep.c: Fix indentation.
1441 * auto-load.c: Fix indentation.
1442 * auxv.c: Fix indentation.
1443 * avr-tdep.c: Fix indentation.
1444 * ax-gdb.c: Fix indentation.
1445 * ax-general.c: Fix indentation.
1446 * bfin-linux-tdep.c: Fix indentation.
1447 * block.c: Fix indentation.
1448 * block.h: Fix indentation.
1449 * blockframe.c: Fix indentation.
1450 * bpf-tdep.c: Fix indentation.
1451 * break-catch-sig.c: Fix indentation.
1452 * break-catch-syscall.c: Fix indentation.
1453 * break-catch-throw.c: Fix indentation.
1454 * breakpoint.c: Fix indentation.
1455 * breakpoint.h: Fix indentation.
1456 * bsd-uthread.c: Fix indentation.
1457 * btrace.c: Fix indentation.
1458 * build-id.c: Fix indentation.
1459 * buildsym-legacy.h: Fix indentation.
1460 * buildsym.c: Fix indentation.
1461 * c-typeprint.c: Fix indentation.
1462 * c-valprint.c: Fix indentation.
1463 * c-varobj.c: Fix indentation.
1464 * charset.c: Fix indentation.
1465 * cli/cli-cmds.c: Fix indentation.
1466 * cli/cli-decode.c: Fix indentation.
1467 * cli/cli-decode.h: Fix indentation.
1468 * cli/cli-script.c: Fix indentation.
1469 * cli/cli-setshow.c: Fix indentation.
1470 * coff-pe-read.c: Fix indentation.
1471 * coffread.c: Fix indentation.
1472 * compile/compile-cplus-types.c: Fix indentation.
1473 * compile/compile-object-load.c: Fix indentation.
1474 * compile/compile-object-run.c: Fix indentation.
1475 * completer.c: Fix indentation.
1476 * corefile.c: Fix indentation.
1477 * corelow.c: Fix indentation.
1478 * cp-abi.h: Fix indentation.
1479 * cp-namespace.c: Fix indentation.
1480 * cp-support.c: Fix indentation.
1481 * cp-valprint.c: Fix indentation.
1482 * cris-linux-tdep.c: Fix indentation.
1483 * cris-tdep.c: Fix indentation.
1484 * darwin-nat-info.c: Fix indentation.
1485 * darwin-nat.c: Fix indentation.
1486 * darwin-nat.h: Fix indentation.
1487 * dbxread.c: Fix indentation.
1488 * dcache.c: Fix indentation.
1489 * disasm.c: Fix indentation.
1490 * dtrace-probe.c: Fix indentation.
1491 * dwarf2/abbrev.c: Fix indentation.
1492 * dwarf2/attribute.c: Fix indentation.
1493 * dwarf2/expr.c: Fix indentation.
1494 * dwarf2/frame.c: Fix indentation.
1495 * dwarf2/index-cache.c: Fix indentation.
1496 * dwarf2/index-write.c: Fix indentation.
1497 * dwarf2/line-header.c: Fix indentation.
1498 * dwarf2/loc.c: Fix indentation.
1499 * dwarf2/macro.c: Fix indentation.
1500 * dwarf2/read.c: Fix indentation.
1501 * dwarf2/read.h: Fix indentation.
1502 * elfread.c: Fix indentation.
1503 * eval.c: Fix indentation.
1504 * event-top.c: Fix indentation.
1505 * exec.c: Fix indentation.
1506 * exec.h: Fix indentation.
1507 * expprint.c: Fix indentation.
1508 * f-lang.c: Fix indentation.
1509 * f-typeprint.c: Fix indentation.
1510 * f-valprint.c: Fix indentation.
1511 * fbsd-nat.c: Fix indentation.
1512 * fbsd-tdep.c: Fix indentation.
1513 * findvar.c: Fix indentation.
1514 * fork-child.c: Fix indentation.
1515 * frame-unwind.c: Fix indentation.
1516 * frame-unwind.h: Fix indentation.
1517 * frame.c: Fix indentation.
1518 * frv-linux-tdep.c: Fix indentation.
1519 * frv-tdep.c: Fix indentation.
1520 * frv-tdep.h: Fix indentation.
1521 * ft32-tdep.c: Fix indentation.
1522 * gcore.c: Fix indentation.
1523 * gdb_bfd.c: Fix indentation.
1524 * gdbarch.sh: Fix indentation.
1525 * gdbarch.c: Re-generate
1526 * gdbarch.h: Re-generate.
1527 * gdbcore.h: Fix indentation.
1528 * gdbthread.h: Fix indentation.
1529 * gdbtypes.c: Fix indentation.
1530 * gdbtypes.h: Fix indentation.
1531 * glibc-tdep.c: Fix indentation.
1532 * gnu-nat.c: Fix indentation.
1533 * gnu-nat.h: Fix indentation.
1534 * gnu-v2-abi.c: Fix indentation.
1535 * gnu-v3-abi.c: Fix indentation.
1536 * go32-nat.c: Fix indentation.
1537 * guile/guile-internal.h: Fix indentation.
1538 * guile/scm-cmd.c: Fix indentation.
1539 * guile/scm-frame.c: Fix indentation.
1540 * guile/scm-iterator.c: Fix indentation.
1541 * guile/scm-math.c: Fix indentation.
1542 * guile/scm-ports.c: Fix indentation.
1543 * guile/scm-pretty-print.c: Fix indentation.
1544 * guile/scm-value.c: Fix indentation.
1545 * h8300-tdep.c: Fix indentation.
1546 * hppa-linux-nat.c: Fix indentation.
1547 * hppa-linux-tdep.c: Fix indentation.
1548 * hppa-nbsd-nat.c: Fix indentation.
1549 * hppa-nbsd-tdep.c: Fix indentation.
1550 * hppa-obsd-nat.c: Fix indentation.
1551 * hppa-tdep.c: Fix indentation.
1552 * hppa-tdep.h: Fix indentation.
1553 * i386-bsd-nat.c: Fix indentation.
1554 * i386-darwin-nat.c: Fix indentation.
1555 * i386-darwin-tdep.c: Fix indentation.
1556 * i386-dicos-tdep.c: Fix indentation.
1557 * i386-gnu-nat.c: Fix indentation.
1558 * i386-linux-nat.c: Fix indentation.
1559 * i386-linux-tdep.c: Fix indentation.
1560 * i386-nto-tdep.c: Fix indentation.
1561 * i386-obsd-tdep.c: Fix indentation.
1562 * i386-sol2-nat.c: Fix indentation.
1563 * i386-tdep.c: Fix indentation.
1564 * i386-tdep.h: Fix indentation.
1565 * i386-windows-tdep.c: Fix indentation.
1566 * i387-tdep.c: Fix indentation.
1567 * i387-tdep.h: Fix indentation.
1568 * ia64-libunwind-tdep.c: Fix indentation.
1569 * ia64-libunwind-tdep.h: Fix indentation.
1570 * ia64-linux-nat.c: Fix indentation.
1571 * ia64-linux-tdep.c: Fix indentation.
1572 * ia64-tdep.c: Fix indentation.
1573 * ia64-tdep.h: Fix indentation.
1574 * ia64-vms-tdep.c: Fix indentation.
1575 * infcall.c: Fix indentation.
1576 * infcmd.c: Fix indentation.
1577 * inferior.c: Fix indentation.
1578 * infrun.c: Fix indentation.
1579 * iq2000-tdep.c: Fix indentation.
1580 * language.c: Fix indentation.
1581 * linespec.c: Fix indentation.
1582 * linux-fork.c: Fix indentation.
1583 * linux-nat.c: Fix indentation.
1584 * linux-tdep.c: Fix indentation.
1585 * linux-thread-db.c: Fix indentation.
1586 * lm32-tdep.c: Fix indentation.
1587 * m2-lang.c: Fix indentation.
1588 * m2-typeprint.c: Fix indentation.
1589 * m2-valprint.c: Fix indentation.
1590 * m32c-tdep.c: Fix indentation.
1591 * m32r-linux-tdep.c: Fix indentation.
1592 * m32r-tdep.c: Fix indentation.
1593 * m68hc11-tdep.c: Fix indentation.
1594 * m68k-bsd-nat.c: Fix indentation.
1595 * m68k-linux-nat.c: Fix indentation.
1596 * m68k-linux-tdep.c: Fix indentation.
1597 * m68k-tdep.c: Fix indentation.
1598 * machoread.c: Fix indentation.
1599 * macrocmd.c: Fix indentation.
1600 * macroexp.c: Fix indentation.
1601 * macroscope.c: Fix indentation.
1602 * macrotab.c: Fix indentation.
1603 * macrotab.h: Fix indentation.
1604 * main.c: Fix indentation.
1605 * mdebugread.c: Fix indentation.
1606 * mep-tdep.c: Fix indentation.
1607 * mi/mi-cmd-catch.c: Fix indentation.
1608 * mi/mi-cmd-disas.c: Fix indentation.
1609 * mi/mi-cmd-env.c: Fix indentation.
1610 * mi/mi-cmd-stack.c: Fix indentation.
1611 * mi/mi-cmd-var.c: Fix indentation.
1612 * mi/mi-cmds.c: Fix indentation.
1613 * mi/mi-main.c: Fix indentation.
1614 * mi/mi-parse.c: Fix indentation.
1615 * microblaze-tdep.c: Fix indentation.
1616 * minidebug.c: Fix indentation.
1617 * minsyms.c: Fix indentation.
1618 * mips-linux-nat.c: Fix indentation.
1619 * mips-linux-tdep.c: Fix indentation.
1620 * mips-nbsd-tdep.c: Fix indentation.
1621 * mips-tdep.c: Fix indentation.
1622 * mn10300-linux-tdep.c: Fix indentation.
1623 * mn10300-tdep.c: Fix indentation.
1624 * moxie-tdep.c: Fix indentation.
1625 * msp430-tdep.c: Fix indentation.
1626 * namespace.h: Fix indentation.
1627 * nat/fork-inferior.c: Fix indentation.
1628 * nat/gdb_ptrace.h: Fix indentation.
1629 * nat/linux-namespaces.c: Fix indentation.
1630 * nat/linux-osdata.c: Fix indentation.
1631 * nat/netbsd-nat.c: Fix indentation.
1632 * nat/x86-dregs.c: Fix indentation.
1633 * nbsd-nat.c: Fix indentation.
1634 * nbsd-tdep.c: Fix indentation.
1635 * nios2-linux-tdep.c: Fix indentation.
1636 * nios2-tdep.c: Fix indentation.
1637 * nto-procfs.c: Fix indentation.
1638 * nto-tdep.c: Fix indentation.
1639 * objfiles.c: Fix indentation.
1640 * objfiles.h: Fix indentation.
1641 * opencl-lang.c: Fix indentation.
1642 * or1k-tdep.c: Fix indentation.
1643 * osabi.c: Fix indentation.
1644 * osabi.h: Fix indentation.
1645 * osdata.c: Fix indentation.
1646 * p-lang.c: Fix indentation.
1647 * p-typeprint.c: Fix indentation.
1648 * p-valprint.c: Fix indentation.
1649 * parse.c: Fix indentation.
1650 * ppc-linux-nat.c: Fix indentation.
1651 * ppc-linux-tdep.c: Fix indentation.
1652 * ppc-nbsd-nat.c: Fix indentation.
1653 * ppc-nbsd-tdep.c: Fix indentation.
1654 * ppc-obsd-nat.c: Fix indentation.
1655 * ppc-ravenscar-thread.c: Fix indentation.
1656 * ppc-sysv-tdep.c: Fix indentation.
1657 * ppc64-tdep.c: Fix indentation.
1658 * printcmd.c: Fix indentation.
1659 * proc-api.c: Fix indentation.
1660 * producer.c: Fix indentation.
1661 * producer.h: Fix indentation.
1662 * prologue-value.c: Fix indentation.
1663 * prologue-value.h: Fix indentation.
1664 * psymtab.c: Fix indentation.
1665 * python/py-arch.c: Fix indentation.
1666 * python/py-bpevent.c: Fix indentation.
1667 * python/py-event.c: Fix indentation.
1668 * python/py-event.h: Fix indentation.
1669 * python/py-finishbreakpoint.c: Fix indentation.
1670 * python/py-frame.c: Fix indentation.
1671 * python/py-framefilter.c: Fix indentation.
1672 * python/py-inferior.c: Fix indentation.
1673 * python/py-infthread.c: Fix indentation.
1674 * python/py-objfile.c: Fix indentation.
1675 * python/py-prettyprint.c: Fix indentation.
1676 * python/py-registers.c: Fix indentation.
1677 * python/py-signalevent.c: Fix indentation.
1678 * python/py-stopevent.c: Fix indentation.
1679 * python/py-stopevent.h: Fix indentation.
1680 * python/py-threadevent.c: Fix indentation.
1681 * python/py-tui.c: Fix indentation.
1682 * python/py-unwind.c: Fix indentation.
1683 * python/py-value.c: Fix indentation.
1684 * python/py-xmethods.c: Fix indentation.
1685 * python/python-internal.h: Fix indentation.
1686 * python/python.c: Fix indentation.
1687 * ravenscar-thread.c: Fix indentation.
1688 * record-btrace.c: Fix indentation.
1689 * record-full.c: Fix indentation.
1690 * record.c: Fix indentation.
1691 * reggroups.c: Fix indentation.
1692 * regset.h: Fix indentation.
1693 * remote-fileio.c: Fix indentation.
1694 * remote.c: Fix indentation.
1695 * reverse.c: Fix indentation.
1696 * riscv-linux-tdep.c: Fix indentation.
1697 * riscv-ravenscar-thread.c: Fix indentation.
1698 * riscv-tdep.c: Fix indentation.
1699 * rl78-tdep.c: Fix indentation.
1700 * rs6000-aix-tdep.c: Fix indentation.
1701 * rs6000-lynx178-tdep.c: Fix indentation.
1702 * rs6000-nat.c: Fix indentation.
1703 * rs6000-tdep.c: Fix indentation.
1704 * rust-lang.c: Fix indentation.
1705 * rx-tdep.c: Fix indentation.
1706 * s12z-tdep.c: Fix indentation.
1707 * s390-linux-tdep.c: Fix indentation.
1708 * score-tdep.c: Fix indentation.
1709 * ser-base.c: Fix indentation.
1710 * ser-mingw.c: Fix indentation.
1711 * ser-uds.c: Fix indentation.
1712 * ser-unix.c: Fix indentation.
1713 * serial.c: Fix indentation.
1714 * sh-linux-tdep.c: Fix indentation.
1715 * sh-nbsd-tdep.c: Fix indentation.
1716 * sh-tdep.c: Fix indentation.
1717 * skip.c: Fix indentation.
1718 * sol-thread.c: Fix indentation.
1719 * solib-aix.c: Fix indentation.
1720 * solib-darwin.c: Fix indentation.
1721 * solib-frv.c: Fix indentation.
1722 * solib-svr4.c: Fix indentation.
1723 * solib.c: Fix indentation.
1724 * source.c: Fix indentation.
1725 * sparc-linux-tdep.c: Fix indentation.
1726 * sparc-nbsd-tdep.c: Fix indentation.
1727 * sparc-obsd-tdep.c: Fix indentation.
1728 * sparc-ravenscar-thread.c: Fix indentation.
1729 * sparc-tdep.c: Fix indentation.
1730 * sparc64-linux-tdep.c: Fix indentation.
1731 * sparc64-nbsd-tdep.c: Fix indentation.
1732 * sparc64-obsd-tdep.c: Fix indentation.
1733 * sparc64-tdep.c: Fix indentation.
1734 * stabsread.c: Fix indentation.
1735 * stack.c: Fix indentation.
1736 * stap-probe.c: Fix indentation.
1737 * stubs/ia64vms-stub.c: Fix indentation.
1738 * stubs/m32r-stub.c: Fix indentation.
1739 * stubs/m68k-stub.c: Fix indentation.
1740 * stubs/sh-stub.c: Fix indentation.
1741 * stubs/sparc-stub.c: Fix indentation.
1742 * symfile-mem.c: Fix indentation.
1743 * symfile.c: Fix indentation.
1744 * symfile.h: Fix indentation.
1745 * symmisc.c: Fix indentation.
1746 * symtab.c: Fix indentation.
1747 * symtab.h: Fix indentation.
1748 * target-float.c: Fix indentation.
1749 * target.c: Fix indentation.
1750 * target.h: Fix indentation.
1751 * tic6x-tdep.c: Fix indentation.
1752 * tilegx-linux-tdep.c: Fix indentation.
1753 * tilegx-tdep.c: Fix indentation.
1754 * top.c: Fix indentation.
1755 * tracefile-tfile.c: Fix indentation.
1756 * tracepoint.c: Fix indentation.
1757 * tui/tui-disasm.c: Fix indentation.
1758 * tui/tui-io.c: Fix indentation.
1759 * tui/tui-regs.c: Fix indentation.
1760 * tui/tui-stack.c: Fix indentation.
1761 * tui/tui-win.c: Fix indentation.
1762 * tui/tui-winsource.c: Fix indentation.
1763 * tui/tui.c: Fix indentation.
1764 * typeprint.c: Fix indentation.
1765 * ui-out.h: Fix indentation.
1766 * unittests/copy_bitwise-selftests.c: Fix indentation.
1767 * unittests/memory-map-selftests.c: Fix indentation.
1768 * utils.c: Fix indentation.
1769 * v850-tdep.c: Fix indentation.
1770 * valarith.c: Fix indentation.
1771 * valops.c: Fix indentation.
1772 * valprint.c: Fix indentation.
1773 * valprint.h: Fix indentation.
1774 * value.c: Fix indentation.
1775 * value.h: Fix indentation.
1776 * varobj.c: Fix indentation.
1777 * vax-tdep.c: Fix indentation.
1778 * windows-nat.c: Fix indentation.
1779 * windows-tdep.c: Fix indentation.
1780 * xcoffread.c: Fix indentation.
1781 * xml-syscall.c: Fix indentation.
1782 * xml-tdesc.c: Fix indentation.
1783 * xstormy16-tdep.c: Fix indentation.
1784 * xtensa-config.c: Fix indentation.
1785 * xtensa-linux-nat.c: Fix indentation.
1786 * xtensa-linux-tdep.c: Fix indentation.
1787 * xtensa-tdep.c: Fix indentation.
1788
1789 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1790 Craig Blackmore <craig.blackmore@embecosm.com>
1791
1792 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1793 as an unsigned value.
1794
1795 2020-11-01 Tom Tromey <tom@tromey.com>
1796
1797 * dbxread.c (dbx_end_psymtab): Update.
1798 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1799 (build_type_psymtabs_reader): Update.
1800 * xcoffread.c (xcoff_end_psymtab): Update.
1801 * ctfread.c (scan_partial_symbols): Update.
1802 * psymtab.c (sort_pst_symbols): Remove.
1803 (partial_symtab::end): Rename from end_psymtab_common. Inline
1804 sort_pst_symbols.
1805 * psympriv.h (struct partial_symtab) <end>: New method.
1806 (end_psymtab_common): Don't declare.
1807
1808 2020-11-01 Tom Tromey <tom@tromey.com>
1809
1810 * symmisc.c (count_psyms): New function.
1811 (print_objfile_statistics): Use it.
1812 * psymtab.c (append_psymbol_to_list): Remove.
1813 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1814 * objfiles.h (struct objstats) <n_psyms>: Remove.
1815
1816 2020-11-01 Tom Tromey <tom@tromey.com>
1817
1818 * dbxread.c (dbx_end_psymtab): Update.
1819 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1820 (build_type_psymtabs_reader): Update.
1821 * xcoffread.c (xcoff_end_psymtab): Update.
1822 * ctfread.c (scan_partial_symbols): Update.
1823 * psympriv.h (end_psymtab_common): Update.
1824 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1825 (sort_pst_symbols): Likewise.
1826
1827 2020-11-01 Tom Tromey <tom@tromey.com>
1828
1829 * dbxread.c (dbx_symfile_read): Update.
1830 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1831 * xcoffread.c (xcoff_initial_scan): Update.
1832 * psympriv.h (init_psymbol_list): Don't declare.
1833 * psymtab.c (init_psymbol_list): Remove.
1834
1835 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1836
1837 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1838 gnat_encoded_fixed_type_info. Update all callers.
1839
1840 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1841
1842 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1843 line too long.
1844
1845 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1846
1847 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1848 cast_from_fixed. Update all callers.
1849 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1850 Update all callers.
1851 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1852 Update all callers.
1853 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1854 ada_scaling_factor.
1855 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1856 to print_gnat_encoded_fixed_point_type.
1857 * ada-valprint.c: Likewise.
1858
1859 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1862 (debug_prefixed_printf): Add check of debug_displaced flag.
1863 * linux-nat.c (linux_nat_debug_printf): Add check of
1864 debug_linux_nat flag.
1865
1866 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1867
1868 * infrun.c (infrun_debug_printf_1): Remove.
1869 (displaced_debug_printf_1): Remove.
1870 (stop_all_threads): Use debug_prefixed_printf.
1871 * infrun.h (infrun_debug_printf_1): Remove.
1872 (infrun_debug_printf): Use debug_prefixed_printf.
1873 (displaced_debug_printf_1): Remove.
1874 (displaced_debug_printf): Use debug_prefixed_printf.
1875 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1876 (linux_nat_debug_printf): Use debug_prefixed_printf.
1877
1878 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1879
1880 * configure: Re-generate.
1881 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1882 AC_LANG_PROGRAM.
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 * configure: Re-generate.
1899
1900 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1901
1902 * acinclude.m4: Modernize.
1903 * configure: Re-generate.
1904
1905 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1906
1907 * configure.ac: Modernize.
1908 * configure: Re-generate.
1909
1910 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1911
1912 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1913 * configure: Re-generate.
1914 * configure.ac: Remove AM_PROG_CC_STDC.
1915
1916 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1917
1918 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1919 AC_CANONICAL_SYSTEM.
1920 * configure: Re-generate.
1921
1922 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1923
1924 * infrun.h (displaced_debug_printf): New macro. Replace
1925 displaced debug prints throughout to use it.
1926 (displaced_debug_printf_1): New declaration.
1927 (displaced_step_dump_bytes): Return string, remove ui_file
1928 parameter, update all callers.
1929 * infrun.c (displaced_debug_printf_1): New function.
1930 (displaced_step_dump_bytes): Return string, remove ui_file
1931 parameter
1932
1933 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1934
1935 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1936
1937 2020-10-30 Tom Tromey <tromey@adacore.com>
1938
1939 * Makefile.in (stamp-init): Depend on config.status.
1940
1941 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1942
1943 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1944
1945 2020-10-30 Pedro Alves <pedro@palves.net>
1946
1947 * thread.c (lookup_selected_frame): Move ...
1948 * frame.c (lookup_selected_frame): ... here.
1949
1950 2020-10-30 Pedro Alves <pedro@palves.net>
1951
1952 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1953 * frame.c
1954 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1955 Use save_selected_frame. Save language as well.
1956 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1957 Use restore_selected_frame, and restore language as well.
1958 (selected_frame_id, selected_frame_level): New.
1959 (selected_frame): Update comments.
1960 (save_selected_frame, restore_selected_frame): New.
1961 (get_selected_frame): Use lookup_selected_frame.
1962 (get_selected_frame_if_set): Delete.
1963 (select_frame): Record selected_frame_level and selected_frame_id.
1964 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1965 fields.
1966 (get_selected_frame): Make 'message' parameter optional.
1967 (get_selected_frame_if_set): Delete declaration.
1968 (select_frame): Update comments.
1969 (save_selected_frame, restore_selected_frame)
1970 (lookup_selected_frame): Declare.
1971 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1972 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1973 New field.
1974 (save_infcall_control_state): Use save_selected_frame.
1975 (restore_selected_frame): Delete.
1976 (restore_infcall_control_state): Use restore_selected_frame.
1977 * stack.c (select_frame_command_core, frame_command_core): Use
1978 get_selected_frame.
1979 * thread.c (restore_selected_frame): Rename to ...
1980 (lookup_selected_frame): ... this and make extern. Select the
1981 current frame if the frame level is -1.
1982 (scoped_restore_current_thread::restore): Also restore the
1983 language.
1984 (scoped_restore_current_thread::~scoped_restore_current_thread):
1985 Don't try/catch.
1986 (scoped_restore_current_thread::scoped_restore_current_thread):
1987 Save the language as well. Use save_selected_frame.
1988
1989 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1990
1991 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1992 documentation.
1993 * gdbarch.h: Re-generate.
1994
1995 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1996
1997 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1998 parameter.
1999 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2000 Likewise.
2001 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2002 Likewise.
2003 * arch-utils.c (default_displaced_step_hw_singlestep):
2004 Likewise.
2005 * arch-utils.h (default_displaced_step_hw_singlestep):
2006 Likewise.
2007 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2008 Likewise.
2009 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2010 Likewise.
2011 * gdbarch.c: Re-generate.
2012 * gdbarch.h: Re-generate.
2013 * infrun.c (resume_1): Adjust.
2014
2015 2020-10-29 Tom Tromey <tom@tromey.com>
2016
2017 * progspace.c (program_space::~program_space): Don't call
2018 exec_close.
2019
2020 2020-10-29 Tom Tromey <tom@tromey.com>
2021
2022 * exec.c (exec_target::close): Don't change current program
2023 space.
2024
2025 2020-10-29 Tom Tromey <tom@tromey.com>
2026
2027 * symfile.c (add_symbol_file_command): Update.
2028 * exec.c (program_space::add_target_sections): Rename.
2029 * symfile-mem.c (symbol_file_add_from_memory): Update.
2030 * progspace.h (struct program_space) <add_target_sections>:
2031 Declare new overload.
2032 * exec.h (add_target_sections_of_objfile): Don't declare.
2033
2034 2020-10-29 Tom Tromey <tom@tromey.com>
2035
2036 * solib.c (solib_map_sections): Update.
2037 * exec.c (program_space::add_target_sections): Now a method.
2038 (exec_file_attach): Update.
2039 * exec.h (add_target_sections): Don't declare.
2040 * progspace.h (struct program_space) <add_target_sections>:
2041 Declare.
2042
2043 2020-10-29 Tom Tromey <tom@tromey.com>
2044
2045 * progspace.h (struct program_space) <remove_target_sections>:
2046 Declare.
2047 * exec.c (program_space::remove_target_sections): Now a method.
2048 * exec.h (remove_target_sections): Don't declare.
2049
2050 2020-10-29 Tom Tromey <tom@tromey.com>
2051
2052 * inferior.c (delete_inferior): Update.
2053 * progspace.c (program_space::empty): Rename from
2054 program_space_empty_p. Return bool.
2055 * progspace.h (struct program_space) <empty>: New method.
2056 (program_space_empty_p): Don't declare.
2057
2058 2020-10-29 Tom Tromey <tom@tromey.com>
2059
2060 * progspace.c (program_space::~program_space): Don't call
2061 clear_program_space_solib_cache.
2062 (program_space::clear_solib_cache): Rename from
2063 clear_solib_cache.
2064 * solib.c (handle_solib_event): Update.
2065 * progspace.h (struct program_space) <clear_solib_cache>: New
2066 method.
2067 (clear_program_space_solib_cache): Don't declare.
2068
2069 2020-10-29 Tom Tromey <tom@tromey.com>
2070
2071 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2072 * target.c (info_target_command): Update.
2073 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2074 (symbol_file_clear, reread_symbols): Update.
2075 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2076 * stabsread.c (scan_file_globals): Update.
2077 * solib.c (update_solib_list): Update.
2078 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2079 (svr4_fetch_objfile_link_map, enable_break)
2080 (svr4_relocate_main_executable)
2081 (svr4_iterate_over_objfiles_in_search_order): Update.
2082 * solib-frv.c (lm_base, enable_break)
2083 (frv_relocate_main_executable): Update.
2084 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2085 (frv_fetch_objfile_link_map): Update.
2086 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2087 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2088 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2089 * remote.c (remote_target::get_offsets): Update.
2090 (remote_target::start_remote)
2091 (extended_remote_target::post_attach): Update.
2092 * objfiles.c (entry_point_address_query): Update.
2093 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2094 * minsyms.c (get_symbol_leading_char): Update.
2095 * frame.c (inside_main_func): Update.
2096 * progspace.h (symfile_objfile): Remove macro.
2097
2098 2020-10-29 Tom Tromey <tom@tromey.com>
2099
2100 * exec.c (exec_file_attach): Update.
2101 * progspace.c (program_space::exec_close): Update.
2102 * progspace.h (struct program_space) <ebfd>: Now a
2103 gdb_bfd_ref_ptr.
2104 <set_exec_bfd>: Change argument type.
2105 <exec_bfd>: Update.
2106
2107 2020-10-29 Tom Tromey <tom@tromey.com>
2108
2109 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2110 * symfile.c (reread_symbols): Update.
2111 * symfile-mem.c (add_symbol_file_from_memory_command)
2112 (add_vsyscall_page): Update.
2113 * source-cache.c (source_cache::get_plain_source_lines): Update.
2114 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2115 (svr4_current_sos_direct, svr4_exec_displacement)
2116 (svr4_relocate_main_executable): Update.
2117 (svr4_iterate_over_objfiles_in_search_order): Update.
2118 * solib-frv.c (enable_break2, enable_break): Update.
2119 * solib-dsbt.c (lm_base, enable_break): Update.
2120 * solib-darwin.c (find_program_interpreter)
2121 (darwin_solib_create_inferior_hook): Update.
2122 * sol-thread.c (rw_common, ps_pdmodel): Update.
2123 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2124 * remote.c (compare_sections_command)
2125 (remote_target::trace_set_readonly_regions): Update.
2126 * remote-sim.c (get_sim_inferior_data)
2127 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2128 (gdbsim_target_open, gdbsim_target::files_info): Update.
2129 * exec.h (exec_bfd): Remove macro.
2130 * progspace.c (initialize_progspace): Update.
2131 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2132 Update.
2133 * nto-procfs.c (nto_procfs_target::post_attach)
2134 (nto_procfs_target::create_inferior): Update.
2135 * maint.c (maintenance_info_sections): Update.
2136 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2137 Update.
2138 * infcmd.c (post_create_inferior): Update.
2139 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2140 (objfile_find_memory_regions): Update.
2141 * exec.c (validate_exec_file, exec_file_attach)
2142 (exec_read_partial_read_only, print_section_info): Update.
2143 * corelow.c (core_target_open): Update.
2144 * corefile.c (reopen_exec_file, validate_files): Update.
2145 * arm-tdep.c (gdb_print_insn_arm): Update.
2146 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2147 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2148 methods.
2149
2150 2020-10-29 Tom Tromey <tom@tromey.com>
2151
2152 * progspace.h (current_target_sections): Remove macro.
2153 * solib-svr4.c (scan_dyntag): Update.
2154 * solib-dsbt.c (scan_dyntag): Update.
2155 * exec.c (exec_target::close): Update.
2156 (add_target_sections, add_target_sections_of_objfile)
2157 (remove_target_sections, exec_target::get_section_table)
2158 (exec_target::files_info, set_section_command)
2159 (exec_set_section_address, exec_target::has_memory)
2160 (exec_target::has_memory): Update.
2161
2162 2020-10-29 Tom Tromey <tom@tromey.com>
2163
2164 * source-cache.c (source_cache::get_plain_source_lines): Use
2165 current_program_space.
2166 * corefile.c (reopen_exec_file): Use current_program_space.
2167 * exec.c (exec_file_attach): Use current_program_space.
2168 * exec.h (exec_bfd_mtime): Remove.
2169
2170 2020-10-29 Tom Tromey <tom@tromey.com>
2171
2172 * gcore.c (default_gcore_mach): Remove.
2173 (create_gcore_bfd): Update.
2174
2175 2020-10-29 Tom Tromey <tom@tromey.com>
2176
2177 * progspace.c (program_space::exec_close): New method, from
2178 exec_close in exec.c.
2179 * exec.c (exec_close): Move to progspace.c.
2180 (exec_target::close, exec_file_attach): Update.
2181 * progspace.h (struct program_space) <exec_close>: Declare
2182 method.
2183
2184 2020-10-29 Tom Tromey <tom@tromey.com>
2185
2186 * progspace.h (struct program_space) <exec_filename>: Rename from
2187 pspace_exec_filename. Now a unique_xmalloc_ptr.
2188 * inferior.c (print_selected_inferior): Update.
2189 (print_inferior): Update.
2190 * mi/mi-main.c (print_one_inferior): Update.
2191 * exec.h (exec_filename): Remove macro.
2192 * corefile.c (get_exec_file): Update.
2193 * exec.c (exec_close): Update.
2194 (exec_file_attach): Update.
2195 * progspace.c (clone_program_space): Update.
2196 (print_program_space): Update.
2197
2198 2020-10-29 Tom Tromey <tom@tromey.com>
2199
2200 * target-section.h (struct target_section): Add constructor.
2201 * exec.c (build_section_table, add_target_sections_of_objfile):
2202 Update.
2203 * corelow.c (core_target::build_file_mappings): Update.
2204
2205 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2206
2207 PR gdb/19318
2208 * inferior.c (detach_inferior_command): Restore the current thread.
2209 (kill_inferior_command): Ditto.
2210
2211 2020-10-28 Tom de Vries <tdevries@suse.de>
2212
2213 PR symtab/26772
2214 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2215 map, check it in the "best match" loop.
2216
2217 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2218
2219 * m32c-tdep.c: Remove unused includes.
2220
2221 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2222
2223 * xtensa-tdep.c: Remove includes.
2224
2225 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2226
2227 * breakpoint.c (struct condition_command_opts): New struct.
2228 (condition_command_option_defs): New static global.
2229 (make_condition_command_options_def_group): New function.
2230 (condition_completer): Update to consider the '-force' flag.
2231 (condition_command): Use gdb::option for the '-force' flag.
2232
2233 2020-10-27 Tom de Vries <tdevries@suse.de>
2234
2235 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2236 symbols in section check.
2237
2238 2020-10-27 Tom de Vries <tdevries@suse.de>
2239
2240 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2241
2242 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2243
2244 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2245 * breakpoint.c: Update the help text of the 'condition' and 'break'
2246 commands.
2247 (set_breakpoint_condition): Take a new bool parameter
2248 to control whether condition definition should be forced even when
2249 the condition expression is invalid in all of the current locations.
2250 (condition_command): Update the call to 'set_breakpoint_condition'.
2251 (find_condition_and_thread): Take the "-force-condition" flag into
2252 account.
2253 * linespec.c (linespec_keywords): Add "-force-condition" as an
2254 element.
2255 (FORCE_KEYWORD_INDEX): New #define.
2256 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2257 as a keyword.
2258 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2259 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2260 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2261 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2262
2263 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2264
2265 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2266 * breakpoint.c (set_breakpoint_location_condition): New function.
2267 (set_breakpoint_condition): Disable a breakpoint location if parsing
2268 the condition string gives an error.
2269 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2270 (build_target_condition_list): Ditto.
2271 (build_target_command_list): Ditto.
2272 (build_bpstat_chain): Ditto.
2273 (print_one_breakpoint_location): Ditto.
2274 (print_one_breakpoint): Ditto.
2275 (breakpoint_1): Ditto.
2276 (bp_location::bp_location): Ditto.
2277 (locations_are_equal): Ditto.
2278 (update_breakpoint_locations): Ditto.
2279 (enable_disable_bp_num_loc): Ditto.
2280 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2281 (find_condition_and_thread_for_sals): New static function.
2282 (create_breakpoint): Call find_condition_and_thread_for_sals.
2283 (location_to_sals): Call find_condition_and_thread_for_sals instead
2284 of find_condition_and_thread.
2285
2286 2020-10-26 Tom de Vries <tdevries@suse.de>
2287
2288 * dwarf2/read.c (process_full_comp_unit): Call
2289 dwarf2_find_base_address.
2290
2291 2020-10-26 Tom Tromey <tromey@adacore.com>
2292
2293 * gdbtypes.c (create_range_type): Revert previous patch. Add
2294 comment.
2295
2296 2020-10-26 Pedro Alves <pedro@palves.net>
2297
2298 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2299 (my_waitpid): Use gdb::handle_eintr.
2300
2301 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2302
2303 * acinclude.m4: Update ptrace.m4 path.
2304 * ptrace.m4: Moved to gdbsupport.
2305
2306 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2307
2308 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2309 instead of target_gdbarch.
2310
2311 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2312
2313 * jit.c (jit_reader_load_command): Pass current inferior.
2314 (jit_inferior_init): Change parameter type to inferior, use it.
2315 (jit_inferior_created): Remove.
2316 (jit_inferior_created_hook): Pass inferior parameter down.
2317 (_initialize_jit): Use jit_inferior_created_hook instead of
2318 jit_inferior_created.
2319 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2320 * infrun.c (follow_exec): Pass inferior to
2321 jit_inferior_created_hook.
2322
2323 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2324
2325 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2326 parameter and use it.
2327 (thread_db_inferior_created): Pass inferior argument.
2328
2329 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2330
2331 * aix-thread.c (aix_thread_inferior_created): Add inferior
2332 parameter.
2333 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2334 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2335 * jit.c (jit_inferior_created): Likewise.
2336 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2337 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2338 * observable.h (inferior_created): Likewise.
2339 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2340 * symfile-mem.c (add_vsyscall_page): Likewise.
2341 * infcmd.c (post_create_inferior): Pass inferior argument.
2342
2343 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2344
2345 GDB 10.1 released.
2346
2347 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2348
2349 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2350 to ada_check_typedef.
2351
2352 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2353
2354 * f-exp.y (f_parse): Rename to...
2355 (f_language::parser): ...this.
2356 * f-lang.c (f_get_encoding): Rename to...
2357 (f_language::get_encoding): ...this.
2358 (f_op_print_tab): Rename to...
2359 (f_language::op_print_tab): ...this.
2360 (exp_descriptor_f): Rename to...
2361 (f_language::exp_descriptor_tab): ...this.
2362 (class f_language): Moved to f-lang.h.
2363 (f_language::language_arch_info): New function, moved out of class
2364 declaration.
2365 (f_language::search_name_hash): Likewise.
2366 (f_language::lookup_symbol_nonlocal): Likewise.
2367 (f_language::get_symbol_name_matcher_inner): Likewise.
2368 * f-lang.h: Add 'valprint.h' include.
2369 (class f_language): Moved here from f-lang.c.
2370 * f-typeprint.c (f_type_print_args): Delete commented out
2371 declaration.
2372 (f_print_typedef): Rename to...
2373 (f_language::print_typedef): ...this.
2374 (f_print_type): Rename to...
2375 (f_language::print_type): ...this.
2376 (f_type_print_varspec_prefix): Delete declaration and rename to...
2377 (f_language::f_type_print_varspec_prefix): ...this.
2378 (f_type_print_varspec_suffix): Delete declaration and rename to...
2379 (f_language::f_type_print_varspec_suffix): ...this.
2380 (f_type_print_base): Delete declaration and rename to...
2381 (f_language::f_type_print_base): ...this.
2382 * f-valprint.c (f_value_print_inner): Rename to...
2383 (f_language::value_print_inner): ...this.
2384 * parse.c: Delete 'f-lang.h' include.
2385
2386 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * language.h (language_defn::print_type): Add variable names in
2389 declaration, and update header comment.
2390
2391 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2392
2393 * ada-lang.c (ada_language::demangle): Rename to...
2394 (ada_language::demangle_symbol): ...this.
2395 * c-lang.c (cplus_language::demangle): Rename to...
2396 (cplus_language::demangle_symbol): ...this.
2397 * d-lang.c (d_language::demangle): Rename to...
2398 (d_language::demangle_symbol): ...this.
2399 * f-lang.c (f_language::demangle): Rename to...
2400 (f_language::demangle_symbol): ...this.
2401 * go-lang.c (go_language::demangle): Rename to...
2402 (go_language::demangle_symbol): ...this.
2403 * language.c (language_demangle): Update call to demangle_symbol.
2404 (auto_or_unknown_language::demangle): Rename to...
2405 (auto_or_unknown_language::demangle_symbol): ...this.
2406 * language.h (language_defn::demangle): Rename to...
2407 (language_defn::demangle_symbol): ...this.
2408 * objc-lang.c (objc_language::demangle): Rename to...
2409 (objc_language::demangle_symbol): ...this.
2410 * rust-lang.c (rust_language::demangle): Rename to...
2411 (rust_language::demangle_symbol): ...this.
2412
2413 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2414
2415 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2416 (iterate_over_file_blocks): Replace use of macro with the macros
2417 definition.
2418
2419 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2422 * valprint.c (maybe_print_array_index): Replace use of macro with
2423 the macros definition.
2424
2425 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2426
2427 * ada-lang.c (ada_language::print_array_index): Call value_print
2428 directly.
2429 * language.c (language_defn::print_array_index): Likewise.
2430 * language.h (LA_VALUE_PRINT): Delete.
2431 * valprint.c (value_print): Call value_print on the
2432 current_language directly.
2433
2434 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * language.h (LA_PRINT_TYPEDEF): Delete.
2437 * typeprint.c (typedef_print): Call print_typedef directly on the
2438 current_language object.
2439
2440 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2441
2442 * m2-exp.y (m2_parse): Rename to...
2443 (m2_language::parser): ...this. Update function signature.
2444 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2445 (m2_op_print): Rename to...
2446 (m2_language::op_print_tab): ...this, and make const.
2447 (exp_descriptor_modula2): Rename to...
2448 (m2_language::exp_descriptor_modula2): ...this.
2449 (class m2_language): Move to m2-lang.h.
2450 (m2_language::language_arch_info): New function, moved out of
2451 class declaration.
2452 (m2_language::printchar): New function, body from m2_printchar.
2453 (m2_language::printstr): New function, moved out of class
2454 declaration.
2455 (m2_language::emitchar): Likewise.
2456 * m2-lang.h (m2_parse): Delete declaration.
2457 (m2_print_typedef): Delete declaration.
2458 (m2_value_print_inner): Delete declaration.
2459 (class m2_language): Class declaration moved from m2-lang.c,
2460 larger functions are left in m2-lang.c.
2461 * m2-typeprint.c (m2_print_typedef): Rename to...
2462 (m2_language::print_typedef): ...this, and update function
2463 signature.
2464 * m2-valprint.c (m2_value_print_inner): Rename to...
2465 (m2_language::value_print_inner): ...this, replace use of
2466 LA_PRINT_STRING with a direct call to printstr member function,
2467 and update recursive call.
2468
2469 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2470
2471 * language.c (default_is_string_type_p): Delete, implementation
2472 moved into auto_or_unknown_language::is_string_type_p.
2473 (unk_op_print_tab): Moved into
2474 auto_or_unknown_language::opcode_print_table.
2475 (unknown_language_arch_info): Delete, implementation moved into
2476 auto_or_unknown_language::language_arch_info.
2477 (class auto_or_unknown_language): New class, member functions
2478 copied from unknown_language class, with some updates.
2479 (class unknown_language): Most member functions moved into
2480 auto_or_unknown_language class. Inherit from
2481 auto_or_unknown_language class.
2482 (class auto_language): Inherit from auto_or_unknown_language.
2483 Delete most member functions.
2484
2485 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2486
2487 * stabsread.c (read_member_functions): Remove gdb_assert.
2488
2489 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2490
2491 * gdbtypes.c (init_complex_type): Check target type name.
2492
2493 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2494
2495 * target-debug.h (target_debug_print_struct_target_ops_p):
2496 Remove.
2497 (target_debug_print_async_callback_ftype_p): Remove.
2498 (target_debug_print_struct_trace_state_variable_p): Remove.
2499 (target_debug_print_struct_traceframe_info_p): Remove.
2500 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2501 (target_debug_print_enum_btrace_format): Remove.
2502 (target_debug_print_enum_info_proc_what): Remove.
2503 (target_debug_print_thread_info_pp): Remove.
2504
2505 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2506
2507 * target.h (struct target_ops) <make_corefile_notes>:
2508 Change return type to unique pointer.
2509 * target.c (dummy_make_corefile_notes): Likewise.
2510 * exec.c (struct exec_target) <make_corefile_notes>:
2511 Likewise.
2512 (exec_target::make_corefile_notes): Likewise.
2513 * procfs.c (class procfs_target) <make_corefile_notes>:
2514 Likewise.
2515 (procfs_do_thread_registers): Adjust to unique pointer.
2516 (struct procfs_corefile_thread_data): Add constructor.
2517 <note_data>: Change type to unique pointer.
2518 (procfs_corefile_thread_callback): Adjust to unique pointer.
2519 (procfs_target::make_corefile_notes): Change return type to
2520 unique pointer.
2521 * target-delegates.c: Re-generate.
2522 * gcore.c (write_gcore_file_1): Adjust.
2523 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2524 New.
2525
2526 2020-10-22 Tom de Vries <tdevries@suse.de>
2527
2528 * block.c (find_block_in_blockvector): Make sure the returned block
2529 contains pc.
2530
2531 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2532
2533 PR gdb/26693
2534 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2535 parameter.
2536 (load_cu): Pass existing CU.
2537 (process_imported_unit_die): Likewise.
2538 (follow_die_offset): Likewise.
2539
2540 2020-10-22 Luis Machado <luis.machado@linaro.org>
2541
2542 * corelow.c (core_target::xfer_partial): Also check for an empty
2543 m_core_unavailable_mappings vector.
2544
2545 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2546
2547 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2548 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2549 * f-exp.y (arglist): Allow for a series of subranges.
2550 (subrange): Add cases for subranges with strides.
2551 * f-lang.c (value_f90_subarray): Catch use of array strides and
2552 throw an error.
2553 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2554
2555 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2556
2557 * expprint.c (print_subexp_standard): Change enum range_type to
2558 range_flag and rename variables to match.
2559 (dump_subexp_body_standard): Likewise.
2560 * expression.h (enum range_type): Rename to...
2561 (enum range_flag): ...this.
2562 (range_types): Rename to...
2563 (range_flags): ...this.
2564 * f-lang.c (value_f90_subarray): Change enum range_type to
2565 range_flag and rename variables to match.
2566 * parse.c (operator_length_standard): Likewise.
2567 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2568 range_type to range_flag.
2569 * rust-lang.c (rust_evaluate_funcall): Likewise.
2570 (rust_range): Likewise.
2571 (rust_compute_range): Likewise.
2572 (rust_subscript): Likewise.
2573
2574 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2575
2576 * expprint.c (print_subexp_standard): Update to reflect changes to
2577 enum range_type.
2578 (dump_subexp_body_standard): Likewise.
2579 * expression.h (enum range_type): Convert to a bit field enum, and
2580 make the enum unsigned.
2581 * f-exp.y (subrange): Update to reflect changes to enum
2582 range_type.
2583 * f-lang.c (value_f90_subarray): Likewise.
2584 * parse.c (operator_length_standard): Likewise.
2585 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2586 * rust-lang.c (rust_range): Likewise.
2587 (rust_compute_range): Likewise.
2588 (rust_subscript): Likewise.
2589
2590 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2591
2592 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2593 (displaced_step_in_progress): Fix comment.
2594
2595 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2596
2597 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2598 * gdbarch.c: Re-generate.
2599 * gdbarch.h: Re-generate.
2600 * gcore.c (write_gcore_file_1): Adjust.
2601 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2602 constructor.
2603 <note_data>: Change type to unique pointer.
2604 <abort_iteration>: Change type to bool.
2605 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2606 (fbsd_collect_thread_registers): Return void, adjust.
2607 (struct fbsd_corefile_thread_data): Add construtor.
2608 <note_data>: Change type to unique pointer.
2609 (fbsd_corefile_thread): Adjust.
2610 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2611 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2612 to unique pointer, adjust.
2613 (struct linux_collect_regset_section_cb_data): Add constructor.
2614 <note_data>: Change type to unique pointer.
2615 <abort_iteration>: Change type to bool.
2616 (linux_collect_thread_registers): Return void, adjust.
2617 (struct linux_corefile_thread_data): Add constructor.
2618 <note_data>: Change type to unique pointer.
2619 (linux_corefile_thread): Adjust.
2620 (linux_make_corefile_notes): Return unique pointer, adjust.
2621
2622 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2623
2624 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2625 * gdbarch.c: Re-generate.
2626 * gdbarch.h: Re-generate.
2627 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2628 bool.
2629 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2630 Likewise.
2631 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2632 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2633 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2634 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2635
2636 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2637
2638 * gdbarch.sh: Make generated predicates return bool.
2639 * gdbarch.c: Re-generate.
2640 * gdbarch.h: Re-generate.
2641
2642 2020-10-20 Tom Tromey <tom@tromey.com>
2643
2644 * varobj-iter.h (struct varobj_item): Remove typedef.
2645
2646 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2647
2648 * infrun.c (currently_stepping): Change int to bool
2649 (maybe_software_singlestep): Likewise.
2650 (show_stop_on_solib_events): Likewise.
2651 (stepping_past_nonsteppable_watchpoint): Likewise.
2652 (displaced_step_in_progress_any_inferior): Likewise.
2653 (displaced_step_in_progress_thread): Likewise.
2654 (keep_going_stepped_thread): Likewise.
2655 (thread_still_needs_step_over): Likewise.
2656 (start_step_over): Likewise.
2657 (do_target_resume): Likewise.
2658 (resume_1): Likewise.
2659 (clear_proceed_status): Likewise.
2660 (thread_still_needs_step_over_bp): Likewise.
2661 (proceed): Likewise.
2662 (switch_back_to_stepped_thread): Likewise.
2663 (adjust_pc_after_break): Likewise.
2664 (stepped_in_from): Likewise.
2665 (handle_stop_requested): Likewise.
2666 (handle_syscall_event): Likewise.
2667 (handle_no_resumed): Likewise.
2668 (handle_inferior_event): Likewise.
2669 (finish_step_over): Likewise.
2670 (handle_signal_stop): Likewise.
2671 (process_event_stop_test): Likewise.
2672
2673 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2674
2675 * infrun.c (get_displaced_stepping_state): Fix comment.
2676
2677 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2678
2679 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2680
2681 2020-10-19 Tom Tromey <tromey@adacore.com>
2682
2683 PR tui/26719
2684 * tui/tui-winsource.h (struct tui_source_window_base)
2685 <refresh_window>: Rename from refresh_pad.
2686 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2687 Rename from refresh_pad.
2688 (tui_source_window_base::show_source_content)
2689 (tui_source_window_base::do_scroll_horizontal): Update.
2690
2691 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2692
2693 * thread.c (_initialize_thread): Fine-tune the help text of
2694 'info threads'.
2695
2696 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2697
2698 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2699
2700 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2701
2702 * breakpoint.c (handle_jit_event): Add an argument, change how
2703 `jit_event_handler` is called.
2704
2705 2020-10-17 Tom Tromey <tom@tromey.com>
2706
2707 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2708 (scan_xcoff_symtab): Update.
2709 * psymtab.h (class psymtab_storage) <global_psymbols,
2710 static_psymbols, current_global_psymbols,
2711 current_static_psymbols>: Remove.
2712 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2713 (match_partial_symbol, lookup_partial_symbol): Update.
2714 (print_partial_symbols): Change parameters.
2715 (dump_psymtab, recursively_search_psymtabs)
2716 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2717 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2718 (concat): Remove.
2719 (end_psymtab_common): Simplify.
2720 (append_psymbol_to_list): Change parameters.
2721 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2722 (init_psymbol_list): Simplify.
2723 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2724 * psympriv.h (struct partial_symtab) <empty>: New method.
2725 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2726 Remove.
2727 <global_psymbols, static_psymbols>: New members.
2728 <add_psymbol>: New methods.
2729 (add_psymbol_to_list): Don't declare.
2730 (psymbol_placement): Move earlier.
2731 * mdebugread.c (parse_partial_symbols): Update.
2732 (handle_psymbol_enumerators): Change parameters.
2733 (mdebug_expand_psymtab): Update.
2734 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2735 (add_partial_symbol): Update.
2736 * dwarf2/index-write.c (write_psymbols): Change parameters.
2737 (write_one_signatured_type): Update.
2738 (recursively_count_psymbols): Update.
2739 (recursively_write_psymbols): Update.
2740 (class debug_names) <recursively_write_psymbols>: Update.
2741 <write_psymbols>: Change parameters.
2742 <write_one_signatured_type>: Update.
2743 * dbxread.c (read_dbx_symtab): Update.
2744 (dbx_end_psymtab): Use partial_symtab::empty.
2745 * ctfread.c (struct ctf_context) <pst>: New member.
2746 (create_partial_symtab): Set it.
2747 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2748 (scan_partial_symbols): Use the psymtab's context. Update.
2749
2750 2020-10-17 Tom Tromey <tom@tromey.com>
2751
2752 * valprint.c (generic_value_print): Remove comment.
2753 * m2-valprint.c (m2_value_print_inner): Remove comment.
2754 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2755 type.
2756
2757 2020-10-17 Tom de Vries <tdevries@suse.de>
2758
2759 PR symtab/26317
2760 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2761 symbol main.
2762
2763 2020-10-14 Tom de Vries <tdevries@suse.de>
2764
2765 PR gdb/26733
2766 * solib.c (solib_contains_address_p): Handle
2767 'solib->sections == nullptr'.
2768
2769 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2770
2771 PR gdb/26642
2772 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2773 target can't do async.
2774 * target.c (target_wait): Assert that we don't pass
2775 TARGET_WNOHANG to a target that can't async.
2776
2777 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2778
2779 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2780 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2781 * alpha-bsd-nat.c: Adjust include.
2782 * alpha-bsd-tdep.h: Adjust comment.
2783 * alpha-nbsd-tdep.c: Rename to ...
2784 * alpha-netbsd-tdep.c: ... this, adjust include.
2785 * amd64-nbsd-nat.c: Rename to ...
2786 * amd64-netbsd-nat.c: ... this, adjust include.
2787 * amd64-nbsd-tdep.c: Rename to ...
2788 * amd64-netbsd-tdep.c: ... this, adjust include.
2789 * amd64-tdep.h: Adjust include.
2790 * arm-nbsd-nat.c: Rename to ...
2791 * arm-netbsd-nat.c: ... this, adjust include.
2792 * arm-nbsd-tdep.c: Rename to ...
2793 * arm-netbsd-tdep.c: ... this, adjust include.
2794 * arm-nbsd-tdep.h: Rename to ...
2795 * arm-netbsd-tdep.h: ... this, adjust include.
2796 * configure.nat: Adjust file lists.
2797 * configure.tgt: Likewise.
2798 * hppa-nbsd-nat.c: Rename to ...
2799 * hppa-netbsd-nat.c: ... this, adjust include.
2800 * hppa-nbsd-tdep.c: Rename to ...
2801 * hppa-netbsd-tdep.c: ... this, adjust include.
2802 * i386-nbsd-nat.c: Rename to ...
2803 * i386-netbsd-nat.c: ... this, adjust include.
2804 * i386-nbsd-tdep.c: Rename to ...
2805 * i386-netbsd-tdep.c: ... this, adjust include.
2806 * m68k-bsd-nat.c: Adjust include.
2807 * mips-nbsd-nat.c: Rename to ...
2808 * mips-netbsd-nat.c: ... this, adjust include.
2809 * mips-nbsd-tdep.c: Rename to ...
2810 * mips-netbsd-tdep.c: ... this, adjust include.
2811 * mips-nbsd-tdep.h: Rename to ...
2812 * mips-netbsd-tdep.h: ... this.
2813 * nbsd-nat.c: Rename to ...
2814 * netbsd-nat.c: ... this, adjust include.
2815 * nbsd-nat.h: Rename to ...
2816 * netbsd-nat.h: ... this, adjust include.
2817 * nbsd-tdep.c: Rename to ...
2818 * netbsd-tdep.c: ... this, adjust include.
2819 * nbsd-tdep.h: Rename to ...
2820 * netbsd-tdep.h: ... this.
2821 * ppc-nbsd-nat.c: Rename to ...
2822 * ppc-netbsd-nat.c: ... this, adjust include.
2823 * ppc-nbsd-tdep.c: Rename to ...
2824 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2825 * ppc-nbsd-tdep.h: Rename to ...
2826 * ppc-netbsd-tdep.h: ... this.
2827 * sh-nbsd-nat.c: Rename to ...
2828 * sh-netbsd-nat.c: ... this, adjust include.
2829 * sh-nbsd-tdep.c: Rename to ...
2830 * sh-netbsd-tdep.c: ... this, adjust include.
2831 * sparc-nbsd-nat.c: Rename to ...
2832 * sparc-netbsd-nat.c: ... this.
2833 * sparc-nbsd-tdep.c: Rename to ...
2834 * sparc-netbsd-tdep.c: ... this, adjust include.
2835 * sparc64-nbsd-nat.c: Rename to ...
2836 * sparc64-netbsd-nat.c: ... this.
2837 * sparc64-nbsd-tdep.c: Rename to ...
2838 * sparc64-netbsd-tdep.c: ... this, adjust include.
2839 * sparc64-tdep.h: Adjust comment.
2840 * vax-bsd-nat.c: Adjust include.
2841 * vax-nbsd-tdep.c: Rename to ...
2842 * vax-netbsd-tdep.c: ... this, adjust include.
2843
2844 2020-10-12 Tom Tromey <tom@tromey.com>
2845
2846 * target.h (struct target_ops) <get_section_table>: Update.
2847 (target_get_section_table): Update.
2848 * target.c (target_get_section_table, target_section_by_addr)
2849 (memory_xfer_partial_1): Update.
2850 * target-section.h (target_section_table): Now an alias.
2851 * target-delegates.c: Rebuild.
2852 * target-debug.h (target_debug_print_target_section_table_p):
2853 Rename from target_debug_print_struct_target_section_table_p.
2854 * symfile.c (build_section_addr_info_from_section_table): Update.
2855 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2856 * solib-svr4.c (scan_dyntag): Update.
2857 * solib-dsbt.c (scan_dyntag): Update.
2858 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2859 Update.
2860 * record-full.c (record_full_core_target::xfer_partial): Update.
2861 * progspace.h (struct program_space) <target_sections>: Update.
2862 * exec.h (print_section_info): Update.
2863 * exec.c (exec_target::close, build_section_table)
2864 (add_target_sections, add_target_sections_of_objfile)
2865 (remove_target_sections, exec_on_vfork)
2866 (section_table_available_memory)
2867 (section_table_xfer_memory_partial)
2868 (exec_target::get_section_table, exec_target::xfer_partial)
2869 (print_section_info, set_section_command)
2870 (exec_set_section_address, exec_target::has_memory): Update.
2871 * corelow.c (core_target::build_file_mappings)
2872 (core_target::xfer_partial, core_target::info_proc_mappings)
2873 (core_target::info_proc_mappings): Update.
2874 * bfd-target.c (class target_bfd): Update
2875
2876 2020-10-12 Tom Tromey <tom@tromey.com>
2877
2878 * progspace.c (program_space::~program_space): Don't call
2879 clear_section_table.
2880 * exec.h (clear_section_table): Don't declare.
2881 * exec.c (exec_target::close): Update.
2882 (clear_section_table): Remove.
2883
2884 2020-10-12 Tom Tromey <tom@tromey.com>
2885
2886 * exec.c (add_target_sections_of_objfile): Simplify.
2887
2888 2020-10-12 Tom Tromey <tom@tromey.com>
2889
2890 * solib.c (solib_map_sections): Update.
2891 * record-full.c (record_full_core_open_1): Update.
2892 * exec.h (build_section_table): Return a target_section_table.
2893 * exec.c (exec_file_attach): Update.
2894 (build_section_table): Return a target_section_table.
2895 * corelow.c (core_target::core_target): Update.
2896 * bfd-target.c (target_bfd::target_bfd): Update.
2897
2898 2020-10-12 Tom Tromey <tom@tromey.com>
2899
2900 * target.c (target_section_by_addr, memory_xfer_partial_1):
2901 Update.
2902 * target-section.h (struct target_section_table): Use
2903 std::vector.
2904 * symfile.h (build_section_addr_info_from_section_table): Take a
2905 target_section_table.
2906 * symfile.c (build_section_addr_info_from_section_table): Take a
2907 target_section_table.
2908 * solist.h (struct so_list) <sections>: Change type.
2909 <sections_end>: Remove.
2910 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2911 (solib_contains_address_p): Update.
2912 * solib-svr4.c (scan_dyntag): Update.
2913 * solib-dsbt.c (scan_dyntag): Update.
2914 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2915 Update.
2916 * record-full.c (record_full_core_start, record_full_core_end):
2917 Remove.
2918 (record_full_core_sections): New global.
2919 (record_full_core_open_1, record_full_core_target::xfer_partial):
2920 Update.
2921 * exec.h (build_section_table, section_table_xfer_memory_partial)
2922 (add_target_sections): Take a target_section_table.
2923 * exec.c (exec_file_attach, clear_section_table): Update.
2924 (resize_section_table): Remove.
2925 (build_section_table, add_target_sections): Take a
2926 target_section_table.
2927 (add_target_sections_of_objfile, remove_target_sections)
2928 (exec_on_vfork): Update.
2929 (section_table_available_memory): Take a target_section_table.
2930 (section_table_read_available_memory): Update.
2931 (section_table_xfer_memory_partial): Take a target_section_table.
2932 (print_section_info, set_section_command)
2933 (exec_set_section_address, exec_target::has_memory): Update.
2934 * corelow.c (class core_target) <m_core_section_table,
2935 m_core_file_mappings>: Remove braces.
2936 <~core_target>: Remove.
2937 (core_target::core_target): Update.
2938 (core_target::~core_target): Remove.
2939 (core_target::build_file_mappings)
2940 (core_target::xfer_memory_via_mappings)
2941 (core_target::xfer_partial, core_target::info_proc_mappings):
2942 Update.
2943 * bfd-target.c (target_bfd::xfer_partial): Update.
2944 (target_bfd::target_bfd): Update.
2945 (target_bfd::~target_bfd): Remove.
2946
2947 2020-10-12 Tom Tromey <tom@tromey.com>
2948
2949 * target.h (struct target_section, struct target_section_table):
2950 Move to target-section.h.
2951 * target-section.h: New file.
2952
2953 2020-10-12 Pedro Alves <pedro@palves.net>
2954
2955 PR exp/26602
2956 * valops.c (struct struct_field_searcher): New.
2957 (update_search_result): Rename to ...
2958 (struct_field_searcher::update_result): ... this. Simplify
2959 prototype. Record all found fields.
2960 (do_search_struct_field): Rename to ...
2961 (struct_field_searcher::search): ... this. Simplify prototype.
2962 Maintain stack of visited baseclass path. Call update_result for
2963 fields too. Keep searching fields in baseclasses instead of
2964 stopping at the first found field.
2965 (search_struct_field): Use struct_field_searcher. When looking
2966 for fields, report ambiguous access attempts.
2967
2968 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2969
2970 * frame.c (inside_main_func): Check full symbols as well as
2971 minimal symbols.
2972
2973 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2974
2975 * ada-lang.c (advance_wild_match): Rewrite the function's
2976 description. Change the type of target0, t0 and t1 to char.
2977
2978 2020-10-09 Tom Tromey <tromey@adacore.com>
2979
2980 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2981
2982 2020-10-09 Tom Tromey <tromey@adacore.com>
2983
2984 * ada-lang.h (ada_encode): Return std::string.
2985 * ada-lang.c (ada_encode_1): Return std::string.
2986 (ada_encode): Likewise.
2987 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2988 Update.
2989 * ada-exp.y (block_lookup, write_var_or_type): Update.
2990
2991 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2992
2993 PR exp/26714
2994 * printcmd.c (print_formatted): Handle void results as
2995 unformatted prints.
2996
2997 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2998
2999 * arch/aarch32.c (aarch32_create_target_description): Release the
3000 target_desc_up as late as possible.
3001 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3002 * arch/amd64.c (amd64_create_target_description): Likewise.
3003 * arch/arc.c (arc_create_target_description): Return a
3004 target_desc_up, don't release it.
3005 * arch/arc.h (arc_create_target_description): Update declaration.
3006 (arc_lookup_target_description): Move target_desc_up into the
3007 cache, and return a borrowed pointer.
3008 * arch/arm.c (arm_create_target_description): Release the
3009 target_desc_up as late as possible.
3010 * arch/i386.c (i386_create_target_description): Likewise.
3011 * arch/riscv.h (riscv_create_target_description): Update
3012 declaration to match definition.
3013 * arch/tic6x.c (tic6x_create_target_description): Release the
3014 target_desc_up as late as possible.
3015
3016 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3017
3018 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3019 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3020
3021 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3022
3023 * source.c (directory_command): Notify observers that "directories"
3024 parameter has changed.
3025
3026 2020-10-08 Tom Tromey <tom@tromey.com>
3027
3028 * cli/cli-cmds.c (print_disassembly): Style function name and
3029 addresses. Add _() wrappers.
3030
3031 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3032
3033 * NEWS: Mention ARC support in GDBserver.
3034
3035 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3036
3037 * arch/aarch32.c (aarch32_create_target_description): Release
3038 unique_ptr returned from allocate_target_description.
3039 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3040 * arch/amd64.c (amd64_create_target_description): Likewise.
3041 * arch/arc.c (arc_create_target_description): Likewise.
3042 * arch/arm.c (arm_create_target_description): Likewise.
3043 * arch/i386.c (i386_create_target_description): Likewise.
3044 * arch/riscv.c (riscv_create_target_description): Update return
3045 type. Handle allocate_target_description returning a unique_ptr.
3046 (riscv_lookup_target_description): Update to handle unique_ptr.
3047 * arch/tic6x.c (tic6x_create_target_description): Release
3048 unique_ptr returned from allocate_target_description.
3049 * features/microblaze-with-stack-protect.c: Regenerate.
3050 * features/microblaze.c: Regenerate.
3051 * features/mips-dsp-linux.c: Regenerate.
3052 * features/mips-linux.c: Regenerate.
3053 * features/mips64-dsp-linux.c: Regenerate.
3054 * features/mips64-linux.c: Regenerate.
3055 * features/nds32.c: Regenerate.
3056 * features/nios2.c: Regenerate.
3057 * features/or1k.c: Regenerate.
3058 * features/rs6000/powerpc-32.c: Regenerate.
3059 * features/rs6000/powerpc-32l.c: Regenerate.
3060 * features/rs6000/powerpc-403.c: Regenerate.
3061 * features/rs6000/powerpc-403gc.c: Regenerate.
3062 * features/rs6000/powerpc-405.c: Regenerate.
3063 * features/rs6000/powerpc-505.c: Regenerate.
3064 * features/rs6000/powerpc-601.c: Regenerate.
3065 * features/rs6000/powerpc-602.c: Regenerate.
3066 * features/rs6000/powerpc-603.c: Regenerate.
3067 * features/rs6000/powerpc-604.c: Regenerate.
3068 * features/rs6000/powerpc-64.c: Regenerate.
3069 * features/rs6000/powerpc-64l.c: Regenerate.
3070 * features/rs6000/powerpc-7400.c: Regenerate.
3071 * features/rs6000/powerpc-750.c: Regenerate.
3072 * features/rs6000/powerpc-860.c: Regenerate.
3073 * features/rs6000/powerpc-altivec32.c: Regenerate.
3074 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3075 * features/rs6000/powerpc-altivec64.c: Regenerate.
3076 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3077 * features/rs6000/powerpc-e500.c: Regenerate.
3078 * features/rs6000/powerpc-e500l.c: Regenerate.
3079 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3080 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3081 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3082 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3083 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3084 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3085 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3086 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3087 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3088 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3089 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3090 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3091 * features/rs6000/powerpc-vsx32.c: Regenerate.
3092 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3093 * features/rs6000/powerpc-vsx64.c: Regenerate.
3094 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3095 * features/rs6000/rs6000.c: Regenerate.
3096 * features/rx.c: Regenerate.
3097 * features/s390-gs-linux64.c: Regenerate.
3098 * features/s390-linux32.c: Regenerate.
3099 * features/s390-linux32v1.c: Regenerate.
3100 * features/s390-linux32v2.c: Regenerate.
3101 * features/s390-linux64.c: Regenerate.
3102 * features/s390-linux64v1.c: Regenerate.
3103 * features/s390-linux64v2.c: Regenerate.
3104 * features/s390-te-linux64.c: Regenerate.
3105 * features/s390-tevx-linux64.c: Regenerate.
3106 * features/s390-vx-linux64.c: Regenerate.
3107 * features/s390x-gs-linux64.c: Regenerate.
3108 * features/s390x-linux64.c: Regenerate.
3109 * features/s390x-linux64v1.c: Regenerate.
3110 * features/s390x-linux64v2.c: Regenerate.
3111 * features/s390x-te-linux64.c: Regenerate.
3112 * features/s390x-tevx-linux64.c: Regenerate.
3113 * features/s390x-vx-linux64.c: Regenerate.
3114 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3115 from allocate_target_description.
3116 * target-descriptions.c (allocate_target_description): Update
3117 return type.
3118 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3119 allocate_target_description.
3120
3121 2020-10-07 Tom Tromey <tromey@adacore.com>
3122
3123 * unittests/search-memory-selftests.c: New file.
3124 * Makefile.in (SELFTESTS_SRCS): Add
3125 unittests/search-memory-selftests.c.
3126
3127 2020-10-07 Tom Tromey <tromey@adacore.com>
3128
3129 PR gdb/16930:
3130 * findcmd.c (_initialize_mem_search): Mention that the range is
3131 inclusive.
3132
3133 2020-10-07 Tom Tromey <tromey@adacore.com>
3134
3135 * target.h (simple_search_memory): Don't declare.
3136 * target.c (simple_search_memory): Move to gdbsupport.
3137 (default_search_memory): Update.
3138 * remote.c (remote_target::search_memory): Update.
3139
3140 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3141
3142 * Makefile.in (COMPILE): Add CXXFLAGS.
3143 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3144 (check-headers): Add CXXFLAGS.
3145
3146 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3147
3148 * arc-linux-tdep.h: New file.
3149 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3150 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3151 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3152 arc_linux_gregset, arc_linux_v2_regset,
3153 arc_linux_iterate_over_regset_sections,
3154 arc_linux_core_read_description): Implement.
3155 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3156 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3157 (arc_gdbarch_features_create): Add.
3158 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3159
3160 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3161
3162 * arch/arc.h: Rename "arc_gdbarch_features" to
3163 "arc_arch_features".
3164 * arc-tdep.h: Likewise.
3165 * arc-tdep.c: Likewise.
3166
3167 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3168
3169 * infcmd.c (attach_command): Remove the redundant call to
3170 `clear_proceed_status`.
3171
3172 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3173
3174 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3175
3176 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3177
3178 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3179 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3180 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3181
3182 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3183
3184 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3185 (_initialize_break_catch_sig): Don't allocate array.
3186
3187 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3188
3189 * symtab.c (find_pc_line): Return unmapped addresses when the
3190 requested address is also unmapped.
3191
3192 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3193
3194 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3195 tui/tui-out.h.
3196
3197 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3198
3199 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3200 type::is_vector instead of TYPE_VECTOR.
3201
3202 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3203
3204 * auto-load.c (auto_load_objfile_script_1): Don't use
3205 debugfile_holder as temporary variable when stripping drive
3206 letter.
3207
3208 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3209
3210 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3211 Add TYPE_CODE_COMPLEX.
3212 (amd64_windows_return_value): Fix types returned via XMM0.
3213
3214 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3215
3216 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3217 AArch64/ARM maintainers.
3218
3219 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3220
3221 * NEWS: Mention set/show debug event-loop.
3222
3223 2020-10-02 Tom Tromey <tromey@adacore.com>
3224
3225 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3226 REG_EXTENDED.
3227
3228 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3229
3230 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3231 * procfs.c (procfs_inferior_created): Remove.
3232 (_initialize_procfs): Don't register procfs_inferior_created.
3233
3234 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3235
3236 * async-event.c (invoke_async_signal_handlers): Add debug
3237 print.
3238 (check_async_event_handlers): Likewise.
3239 * event-top.c (show_debug_event_loop): New function.
3240 (_initialize_event_top): Register "set debug event-loop"
3241 setting.
3242
3243 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3244
3245 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3246 * debug.h: Remove.
3247 * infrun.c: Include gdbsupport/common-debug.h.
3248 * linux-nat.c: Likewise.
3249
3250 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3251
3252 * async-event.h (create_async_signal_handler): Add name
3253 parameter.
3254 (create_async_event_handler): Likewise.
3255 * async-event.c (struct async_signal_handler) <name>: New field.
3256 (struct async_event_handler) <name>: New field.
3257 (create_async_signal_handler): Assign name.
3258 (create_async_event_handler): Assign name.
3259 * event-top.c (async_init_signals): Pass name when creating
3260 handler.
3261 * infrun.c (_initialize_infrun): Likewise.
3262 * record-btrace.c (record_btrace_push_target): Likewise.
3263 * record-full.c (record_full_open): Likewise.
3264 * remote-notif.c (remote_notif_state_allocate): Likewise.
3265 * remote.c (remote_target::open_1): Likewise.
3266 * tui/tui-win.c (tui_initialize_win): Likewise.
3267
3268 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3269
3270 * async-event.c (initialize_async_signal_handlers): Pass name to
3271 add_file_handler
3272 * event-top.c (ui_register_input_event_handler): Likewise.
3273 * linux-nat.c (linux_nat_target::async): Likewise.
3274 * run-on-main-thread.c (_initialize_run_on_main_thread):
3275 Likewise
3276 * ser-base.c (reschedule): Likewise.
3277 (ser_base_async): Likewise.
3278 * tui/tui-io.c: Likewise.
3279 * top.h (struct ui) <num>: New field.
3280 * top.c (highest_ui_num): New variable.
3281 (ui::ui): Initialize num.
3282
3283 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3284
3285 * observable.h <inferior_created>: Remove parameters. Update all
3286 listeners.
3287 * inferior.h (post_create_inferior): Remove target parameter.
3288 Update all callers.
3289
3290 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3291
3292 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3293 and DW_MACRO_undef_strx.
3294 (dwarf_decode_macros): Likewise
3295 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3296 which is the value of DW_AT_str_offsets_base.
3297 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3298 str_offsets_base.
3299
3300 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3301
3302 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3303
3304 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3305
3306 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3307 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3308
3309 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3310
3311 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3312
3313 2020-09-30 Tom de Vries <tdevries@suse.de>
3314
3315 PR symtab/26683
3316 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3317
3318 2020-09-30 Tom Tromey <tromey@adacore.com>
3319
3320 * dwarf2/read.c (handle_variant): Use constant_value.
3321
3322 2020-09-29 Tom Tromey <tom@tromey.com>
3323
3324 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3325 (read_file_scope, dwarf2_get_pc_bounds)
3326 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3327 (read_structure_type, handle_struct_member_die)
3328 (read_enumeration_type, read_array_type, read_set_type)
3329 (read_tag_pointer_type, read_tag_reference_type)
3330 (read_subroutine_type, read_base_type, read_subrange_type)
3331 (read_full_die_1, partial_die_info::read)
3332 (partial_die_info::read, by, new_symbol)
3333 (dwarf2_const_value_data, dwarf2_const_value_attr)
3334 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3335 (prepare_one_comp_unit): Update.
3336 * dwarf2/attribute.h (DW_UNSND): Remove.
3337
3338 2020-09-29 Tom Tromey <tom@tromey.com>
3339
3340 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3341 (read_subroutine_type, partial_die_info::read)
3342 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3343 (dwarf2_add_member_fn): Update.
3344 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3345 * dwarf2/attribute.c (attribute::as_boolean): New method.
3346
3347 2020-09-29 Tom Tromey <tom@tromey.com>
3348
3349 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3350 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3351 method.
3352 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3353
3354 2020-09-29 Tom Tromey <tom@tromey.com>
3355
3356 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3357 the attribute's form.
3358
3359 2020-09-29 Tom Tromey <tom@tromey.com>
3360
3361 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3362 (dwarf2_add_member_fn): Update.
3363 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3364 * dwarf2/attribute.c (attribute::defaulted): New method, from
3365 is_valid_DW_AT_defaulted.
3366
3367 2020-09-29 Tom Tromey <tom@tromey.com>
3368
3369 * dwarf2/read.c (dw2_get_file_names_reader)
3370 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3371 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3372 (dwarf2_symbol_mark_computed): Use as_unsigned.
3373 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3374 method.
3375 <form_is_section_offset>: Update comment.
3376
3377 2020-09-29 Tom Tromey <tom@tromey.com>
3378
3379 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3380 dwarf2_default_access_attribute. Look up attribute.
3381 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3382 Update.
3383
3384 2020-09-29 Tom Tromey <tom@tromey.com>
3385
3386 * dwarf2/read.c (skip_one_die): Update.
3387 (read_full_die_1): Change how reprocessing is done.
3388 (partial_die_info::read): Update.
3389 (read_attribute_value): Remove need_reprocess parameter.
3390 (read_attribute): Likewise.
3391 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3392 New method.
3393
3394 2020-09-29 Tom Tromey <tom@tromey.com>
3395
3396 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3397 (dwarf2_const_value_attr, dump_die_shallow)
3398 (dwarf2_fetch_constant_bytes): Update.
3399 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3400 comment.
3401 <set_address>: New method.
3402 (DW_ADDR): Remove.
3403 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3404 (attribute::as_string, attribute::as_address): Add assert.
3405
3406 2020-09-29 Tom Tromey <tom@tromey.com>
3407
3408 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3409 (read_attribute_reprocess, read_attribute_value): Update.
3410 (read_attribute): Clear requires_reprocessing.
3411 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3412 form_requires_reprocessing>: New methods.
3413 <string_init>: Clear requires_reprocessing.
3414 <set_unsigned_reprocess>: New method.
3415 <name>: Shrink by one bit.
3416 <requires_reprocessing>: New member.
3417 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3418 method.
3419
3420 2020-09-29 Tom Tromey <tom@tromey.com>
3421
3422 * dwarf2/read.c (read_attribute_value): Update.
3423 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3424 set_unsigned>: New methods.
3425 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3426
3427 2020-09-29 Tom Tromey <tom@tromey.com>
3428
3429 * dwarf2/read.c (get_alignment, read_array_order)
3430 (read_attribute_value, dwarf2_const_value_attr)
3431 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3432 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3433 New methods.
3434 (DW_SND): Remove.
3435
3436 2020-09-29 Tom Tromey <tom@tromey.com>
3437
3438 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3439 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3440 Update.
3441 * dwarf2/attribute.h (struct attribute) <as_signature,
3442 set_signature>: New methods.
3443 (DW_SIGNATURE): Remove.
3444
3445 2020-09-29 Tom Tromey <tom@tromey.com>
3446
3447 * dwarf2/read.c (read_call_site_scope)
3448 (handle_data_member_location, dwarf2_add_member_fn)
3449 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3450 (partial_die_info::read, read_attribute_value)
3451 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3452 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3453 (dwarf2_symbol_mark_computed): Update.
3454 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3455 methods.
3456 (DW_BLOCK): Remove.
3457 * dwarf2/attribute.c (attribute::form_is_block): Add
3458 DW_FORM_data16.
3459
3460 2020-09-29 Tom Tromey <tom@tromey.com>
3461
3462 * dwarf2/read.c (read_cutu_die_from_dwo)
3463 (read_attribute_reprocess, read_attribute_value, read_attribute)
3464 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3465 (dwarf2_fetch_constant_bytes): Update.
3466 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3467 <set_string_noncanonical, set_string_canonical>: New methods.
3468 <string_is_canonical>: Update comment.
3469 <canonical_string_p>: Add assert.
3470 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3471 * dwarf2/attribute.c (attribute::form_is_string): New method.
3472 (attribute::string): Use it.
3473
3474 2020-09-29 Tom Tromey <tom@tromey.com>
3475
3476 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3477 (dump_die_shallow): Use canonical_string_p.
3478 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3479 method.
3480
3481 2020-09-29 Tom Tromey <tom@tromey.com>
3482
3483 * dwarf2/read.c (partial_die_info::read)
3484 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3485 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3486 attribute::as_string.
3487
3488 2020-09-29 Tom Tromey <tom@tromey.com>
3489
3490 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3491 DW_ADDR.
3492 (attribute::string): Don't use DW_STRING.
3493 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3494 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3495
3496 2020-09-29 Tom Tromey <tom@tromey.com>
3497
3498 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3499 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3500 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3501 * dwarf2/attribute.h (struct attribute): Rename methods.
3502 * dwarf2/attribute.c (attribute::as_address): Rename from
3503 value_as_address.
3504 (attribute::as_string): Rename from value_as_string.
3505
3506 2020-09-29 Tom Tromey <tom@tromey.com>
3507
3508 * dwarf2/read.c (partial_die_info::read) <case
3509 DW_AT_linkage_name>: Use value_as_string.
3510 (dwarf2_string_attr): Use value_as_string.
3511 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3512 method.
3513 * dwarf2/attribute.c (attribute::value_as_string): New method.
3514
3515 2020-09-29 Pedro Alves <pedro@palves.net>
3516
3517 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3518 defined before using '#pragma GCC diagnostic' instead of checking
3519 __clang__.
3520
3521 2020-09-28 Tom Tromey <tom@tromey.com>
3522
3523 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3524 (handle_signal_stop): Update.
3525 * procfs.c (procfs_target::insert_watchpoint): Update.
3526 * target.h (target_have_steppable_watchpoint): Now a function.
3527
3528 2020-09-28 Tom Tromey <tom@tromey.com>
3529
3530 * infrun.c (set_schedlock_func): Update.
3531 * target.h (target_can_lock_scheduler): Now a function.
3532
3533 2020-09-28 Tom Tromey <tom@tromey.com>
3534
3535 * inferior.h (class inferior) <has_execution>: Update.
3536 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3537 * valops.c (find_function_in_inferior)
3538 (value_allocate_space_in_inferior): Update.
3539 * top.c (kill_or_detach): Update.
3540 * target.c (target_preopen, set_target_permissions): Update.
3541 (target_has_execution_current): Remove.
3542 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3543 Update.
3544 * solib.c (update_solib_list, reload_shared_libraries): Update.
3545 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3546 * solib-dsbt.c (enable_break): Update.
3547 * score-tdep.c (score7_fetch_inst): Update.
3548 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3549 Update.
3550 * remote.c (remote_target::start_remote)
3551 (remote_target::remote_check_symbols, remote_target::open_1)
3552 (remote_target::remote_detach_1, remote_target::verify_memory)
3553 (remote_target::xfer_partial, remote_target::read_description)
3554 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3555 * record-full.c (record_full_open_1): Update.
3556 * record-btrace.c (record_btrace_target_open): Update.
3557 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3558 (value_nsstring): Update.
3559 * linux-thread-db.c (add_thread_db_info)
3560 (thread_db_find_new_threads_silently, check_thread_db_callback)
3561 (try_thread_db_load_1, record_thread): Update.
3562 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3563 Update.
3564 * linux-fork.c (checkpoint_command): Update.
3565 * infrun.c (set_non_stop, set_observer_mode)
3566 (check_multi_target_resumption, for_each_just_stopped_thread)
3567 (maybe_remove_breakpoints, normal_stop)
3568 (class infcall_suspend_state): Update.
3569 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3570 (info_program_command, attach_command): Update.
3571 * infcall.c (call_function_by_hand_dummy): Update.
3572 * inf-loop.c (inferior_event_handler): Update.
3573 * gcore.c (gcore_command, derive_heap_segment): Update.
3574 * exec.c (exec_file_command): Update.
3575 * eval.c (evaluate_subexp): Update.
3576 * compile/compile.c (compile_to_object): Update.
3577 * cli/cli-dump.c (restore_command): Update.
3578 * breakpoint.c (update_watchpoint)
3579 (update_inserted_breakpoint_locations)
3580 (insert_breakpoint_locations, get_bpstat_thread): Update.
3581 * target.h (target_has_execution): Remove macro.
3582 (target_has_execution_current): Don't declare.
3583 (target_has_execution): Rename from target_has_execution_1. Add
3584 argument default.
3585
3586 2020-09-28 Tom Tromey <tom@tromey.com>
3587
3588 * mi/mi-main.c (exec_reverse_continue)
3589 (mi_cmd_list_target_features): Update.
3590 * infrun.c (set_exec_direction_func): Update.
3591 * target.c (default_execution_direction): Update.
3592 * reverse.c (exec_reverse_once): Update.
3593 * target.h (target_can_execute_reverse): Now a function.
3594
3595 2020-09-28 Tom Tromey <tom@tromey.com>
3596
3597 * tui/tui-regs.c (tui_get_register)
3598 (tui_data_window::show_registers): Update.
3599 * thread.c (scoped_restore_current_thread::restore)
3600 (scoped_restore_current_thread::scoped_restore_current_thread):
3601 Update.
3602 * regcache-dump.c (regcache_print): Update.
3603 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3604 Update.
3605 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3606 * mep-tdep.c (current_me_module, current_options): Update.
3607 * linux-thread-db.c (thread_db_load): Update.
3608 * infcmd.c (registers_info, info_vector_command)
3609 (info_float_command): Update.
3610 * ia64-tdep.c (ia64_frame_prev_register)
3611 (ia64_sigtramp_frame_prev_register): Update.
3612 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3613 * gcore.c (derive_stack_segment): Update.
3614 * frame.c (get_current_frame, has_stack_frames): Update.
3615 * findvar.c (language_defn::read_var_value): Update.
3616 * arm-tdep.c (arm_pc_is_thumb): Update.
3617 * target.c (target_has_registers): Rename from
3618 target_has_registers_1.
3619 * target.h (target_has_registers): Remove macro.
3620 (target_has_registers): Rename from target_has_registers_1.
3621
3622 2020-09-28 Tom Tromey <tom@tromey.com>
3623
3624 * windows-tdep.c (tlb_make_value): Update.
3625 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3626 * thread.c (scoped_restore_current_thread::restore)
3627 (scoped_restore_current_thread::scoped_restore_current_thread)
3628 (thread_command): Update.
3629 * stack.c (backtrace_command_1, frame_apply_level_command)
3630 (frame_apply_all_command, frame_apply_command): Update.
3631 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3632 Update.
3633 * gcore.c (derive_stack_segment): Update.
3634 * frame.c (get_current_frame, has_stack_frames): Update.
3635 * auxv.c (info_auxv_command): Update.
3636 * ada-tasks.c (ada_build_task_list): Update.
3637 * target.c (target_has_stack): Rename from target_has_stack_1.
3638 * target.h (target_has_stack): Remove macro.
3639 (target_has_stack): Rename from target_has_stack_1.
3640
3641 2020-09-28 Tom Tromey <tom@tromey.com>
3642
3643 * target.c (target_has_memory): Rename from target_has_memory_1.
3644 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3645 * thread.c (scoped_restore_current_thread::restore)
3646 (scoped_restore_current_thread::scoped_restore_current_thread):
3647 Update.
3648 * frame.c (get_current_frame, has_stack_frames): Update.
3649 * target.h (target_has_memory): Remove macro.
3650 (target_has_memory): Rename from target_has_memory_1.
3651
3652 2020-09-28 Tom Tromey <tom@tromey.com>
3653
3654 * target.c (target_has_all_memory_1): Remove.
3655 * target.h (target_has_all_memory): Remove define.
3656 (target_has_all_memory_1): Don't declare.
3657
3658 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3659
3660 * ser-base.c: Adjust comments formatting.
3661
3662 2020-09-27 Tom Tromey <tom@tromey.com>
3663
3664 PR tui/25342:
3665 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3666
3667 2020-09-27 Tom Tromey <tom@tromey.com>
3668
3669 PR tui/25342:
3670 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3671
3672 2020-09-27 Tom Tromey <tom@tromey.com>
3673
3674 * unittests/tui-selftests.c: Update.
3675 * tui/tui-winsource.h (struct tui_source_window_base)
3676 <extra_margin, show_line_number, refresh_pad>: New methods.
3677 <m_max_length, m_pad>: New members.
3678 (tui_copy_source_line): Update.
3679 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3680 first_col, line_width, ndigits parameters. Add length.
3681 (tui_source_window_base::show_source_line): Write to pad. Line
3682 number now 0-based.
3683 (tui_source_window_base::refresh_pad): New method.
3684 (tui_source_window_base::show_source_content): Write to pad. Call
3685 refresh_pad.
3686 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3687 not refill.
3688 (tui_source_window_base::update_exec_info): Call
3689 show_line_number.
3690 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3691 method.
3692 <m_digits>: New member.
3693 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3694 and m_max_length.
3695 (tui_source_window::show_line_number): New method.
3696 * tui/tui-io.h (tui_puts): Fix comment.
3697 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3698 m_max_length.
3699
3700 2020-09-27 Tom Tromey <tom@tromey.com>
3701
3702 * tui/tui-winsource.c
3703 (tui_source_window_base::set_is_exec_point_at): Don't call
3704 show_source_line.
3705
3706 2020-09-27 Tom Tromey <tom@tromey.com>
3707
3708 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3709 method.
3710 <erase>: Update.
3711 <cursor_x, cursor_y>: Remove.
3712 <m_inner_window>: New member.
3713 (tui_py_window::rerender): Create inner window.
3714 (tui_py_window::output): Write to inner window.
3715
3716 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3717
3718 PR python/26586
3719 * cli/cli-script.c (execute_control_commands): don't set
3720 instream to nullptr here as this breaks the from_tty argument
3721 to gdb.execute in Python.
3722 (execute_user_command): set instream to nullptr here instead.
3723
3724 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3725
3726 * infrun.h (infrun_debug_printf): Fix formatting.
3727 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3728
3729 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3730
3731 * compile/compile-object-load.h (struct munmap_list): Add
3732 explicitly-defined move constructor.
3733
3734 2020-09-24 Tom Tromey <tromey@adacore.com>
3735
3736 PR tui/26638:
3737 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3738 method.
3739 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3740 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3741 (tui_prev_win): Rewrite.
3742
3743 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3744
3745 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3746 in WOW64 processes as SIGINT.
3747 * nat/windows-nat.h: Make wow64_process a shared variable.
3748 * windows-nat.c: Remove static wow64_process variable.
3749
3750 2020-09-23 Tom Tromey <tom@tromey.com>
3751
3752 PR symtab/25470:
3753 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3754 offset and bit size.
3755 * printcmd.c (print_scalar_formatted): Handle zero-length
3756 integer.
3757 (print_scalar_formatted): Use bit_size_differs_p.
3758 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3759 constant.
3760 (union type_specific): <int_stuff>: New member.
3761 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3762 methods.
3763 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3764 TYPE_SPECIFIC_FIELD.
3765 (recursive_dump_type, copy_type_recursive): Update.
3766 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3767 DW_AT_data_bit_offset.
3768
3769 2020-09-23 Tom Tromey <tom@tromey.com>
3770
3771 * utils.h (class gdb_argv): Add move operators.
3772 <append>: New methods.
3773 * compile/compile.c (build_argc_argv): Remove.
3774 (compile_args_argc): Remove.
3775 (compile_args_argv): Change type.
3776 (set_compile_args): Simplify.
3777 (append_args): Remove.
3778 (filter_args): Remove argcp parameter.
3779 (get_args): Return gdb_argv. Simplify.
3780 (compile_to_object): Update.
3781
3782 2020-09-23 Tom Tromey <tom@tromey.com>
3783
3784 * compile/compile-object-run.c (do_module_cleanup)
3785 <~do_module_cleanup> :Remove.
3786 (do_module_cleanup): Update.
3787 * compile/compile-object-load.h (struct munmap_list): Add move
3788 assignment operator.
3789 <source_file>: Now a std::string.
3790 <munmap_list>: Rename. No longer a pointer.
3791 * compile/compile-object-load.c (struct setup_sections_data): Add
3792 constructor.
3793 <setup_one_section>: Declare.
3794 <munmap_list>: Move earlier.
3795 <m_bfd>: New member.
3796 <m_last_size, m_last_section_first, m_last_prot,
3797 m_last_max_alignment>: Rename, add initializers where needed.
3798 (setup_sections_data::setup_one_section): Rename from
3799 setup_sections. Update.
3800 (compile_object_load): Update. Don't use bfd_map_over_sections.
3801
3802 2020-09-23 Tom Tromey <tom@tromey.com>
3803
3804 * compile/compile-object-run.c (struct do_module_cleanup): Add
3805 parameters to constructor. Update destructor.
3806 <source_file, scope, scope_data, out_value_type, out_value_addr,
3807 munmap_list_head, objfile_name_string>: Remove.
3808 <module>: New member.
3809 (do_module_cleanup): Update.
3810 (compile_object_run): Update.
3811
3812 2020-09-23 Tom Tromey <tom@tromey.com>
3813
3814 * compile/compile.c (eval_compile_command): Update.
3815 * compile/compile-object-run.h (compile_object_run): Take a
3816 compile_module_up.
3817 * compile/compile-object-run.c (compile_object_run): Take a
3818 compile_module_up.
3819 * compile/compile-object-load.h (struct compile_module): Add
3820 constructor, destructor.
3821 (compile_module_up): New typedef.
3822 (compile_object_load): Return compile_object_up.
3823 * compile/compile-object-load.c (compile_object_load): Return
3824 compile_module_up.
3825
3826 2020-09-23 Tom Tromey <tom@tromey.com>
3827
3828 * compile/compile-object-run.c (struct do_module_cleanup): Add
3829 constructor, destructor.
3830 <objfile_name_string>: Don't use struct hack.
3831 (do_module_cleanup): Use delete.
3832 (compile_object_run): Use new.
3833
3834 2020-09-23 Tom Tromey <tom@tromey.com>
3835
3836 * compile/compile-cplus-types.c
3837 (compile_cplus_convert_struct_or_union): Use std::vector.
3838 (compile_cplus_convert_func): Likewise.
3839 * compile/compile-c-types.c (convert_func): Use std::vector.
3840
3841 2020-09-21 Tom Tromey <tromey@adacore.com>
3842
3843 * sparc-tdep.c (sparc32_skip_prologue): Use
3844 skip_prologue_using_sal.
3845
3846 2020-09-19 Tom Tromey <tom@tromey.com>
3847
3848 * symfile.c (add_section_size_callback): Remove.
3849 (load_one_section): Rename from load_section_callback. Change
3850 parameters.
3851 (generic_load): Use foreach.
3852
3853 2020-09-19 Tom Tromey <tom@tromey.com>
3854
3855 * exec.c (add_to_section_table): Remove.
3856 (build_section_table): Use foreach.
3857
3858 2020-09-19 Tom Tromey <tom@tromey.com>
3859
3860 * elfread.c (elf_locate_sections): Change parameters.
3861 (elf_symfile_read): Use foreach.
3862
3863 2020-09-19 Tom Tromey <tom@tromey.com>
3864
3865 * cli/cli-dump.c (struct callback_data): Remove.
3866 (restore_one_section): Rename from restore_section_callback.
3867 Change parameters.
3868 (restore_binary_file): Change parameters.
3869 (restore_command): Use foreach.
3870
3871 2020-09-19 Tom Tromey <tom@tromey.com>
3872
3873 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3874 (gcore_copy_callback): Likewise.
3875 (gcore_memory_sections): Use foreach.
3876
3877 2020-09-19 Tom Tromey <tom@tromey.com>
3878
3879 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3880 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3881 parameters.
3882 (generic_elf_osabi_sniffer): Use foreach.
3883 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3884 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3885
3886 2020-09-19 Tom Tromey <tom@tromey.com>
3887
3888 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3889 (dwarf2_get_dwz_file): Use foreach.
3890 (dwarf2_locate_dwo_sections): Change parameters.
3891 (open_and_init_dwo_file): Use foreach.
3892 (dwarf2_locate_common_dwp_sections): Change parameters.
3893 (open_and_init_dwp_file): Use foreach.
3894
3895 2020-09-19 Tom Tromey <tom@tromey.com>
3896
3897 * symfile.h: (find_lowest_section): Don't declare.
3898 * symfile.c (find_lowest_section): Now static. Change
3899 parameters.
3900 (struct place_section_arg): Remove.
3901 (place_section): Change parameters.
3902 (addr_info_make_relative): Use foreach.
3903 (symfile_dummy_outputs): Remove.
3904 (default_symfile_relocate): Use foreach.
3905
3906 2020-09-19 Tom Tromey <tom@tromey.com>
3907
3908 * objfiles.c (add_to_objfile_sections): Rename from
3909 add_to_objfile_sections_full.
3910 (add_to_objfile_sections): Remove.
3911 (build_objfile_section_table): Use foreach.
3912
3913 2020-09-19 Tom Tromey <tom@tromey.com>
3914
3915 * stap-probe.c (get_stap_base_address_1): Remove.
3916 (get_stap_base_address): Use foreach.
3917
3918 2020-09-19 Tom Tromey <tom@tromey.com>
3919
3920 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3921 parameters.
3922 (gdb_bfd_close_or_warn): Use foreach.
3923
3924 2020-09-19 Tom Tromey <tom@tromey.com>
3925
3926 * corelow.c (add_to_thread_list): Change parameters.
3927 (core_target_open): Use foreach.
3928
3929 2020-09-19 Tom Tromey <tom@tromey.com>
3930
3931 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3932 existing function.
3933
3934 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3935
3936 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3937 for arrays.
3938
3939 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3940
3941 * eval.c: Remove 'f-lang.h' include.
3942 (value_f90_subarray): Moved to f-lang.c.
3943 (eval_call): Renamed to...
3944 (evaluate_subexp_do_call): ...this, is no longer static, header
3945 comment moved into header file.
3946 (evaluate_funcall): Update call to eval_call.
3947 (skip_undetermined_arglist): Moved to f-lang.c.
3948 (fortran_value_subarray): Likewise.
3949 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3950 moved to evaluate_subexp_f.
3951 (calc_f77_array_dims): Moved to f-lang.c
3952 * expprint.c (print_subexp_funcall): New function.
3953 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3954 moved to print_subexp_f, OP_FUNCALL uses new function.
3955 (dump_subexp_body_funcall): New function.
3956 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3957 moved to dump_subexp_f, OP_FUNCALL uses new function.
3958 * expression.h (evaluate_subexp_do_call): Declare.
3959 * f-lang.c (value_f90_subarray): Moved from eval.c.
3960 (skip_undetermined_arglist): Likewise.
3961 (calc_f77_array_dims): Likewise.
3962 (fortran_value_subarray): Likewise.
3963 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3964 (operator_length_f): Likewise.
3965 (print_subexp_f): Likewise.
3966 (dump_subexp_body_f): Likewise.
3967 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3968 declaration of this operation to here.
3969 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3970 support moved to operator_length_f.
3971 * parser-defs.h (dump_subexp_body_funcall): Declare.
3972 (print_subexp_funcall): Declare.
3973 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3974 fortran-operator.def.
3975
3976 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3977
3978 * eval.c (fortran_value_subarray): New function, content is taken
3979 from...
3980 (evaluate_subexp_standard): ...here, in two places. Now arrays
3981 and strings both call the new function.
3982 (calc_f77_array_dims): Add header comment, handle strings.
3983
3984 2020-09-18 Victor Collod <vcollod@nvidia.com>
3985
3986 PR gdb/26635
3987 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3988 (i386_analyze_prologue): Call i386_skip_endbr.
3989
3990 2020-09-18 Tom Tromey <tromey@adacore.com>
3991
3992 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3993 (windows_nat_target::wait): Update.
3994 * target/wait.h (enum target_wait_flag): New. Use
3995 DEF_ENUM_FLAGS_TYPE.
3996 * target/target.h (target_wait): Change type of options.
3997 * target.h (target_options_to_string, default_target_wait):
3998 Update.
3999 (struct target_ops) <wait>: Change type of options.
4000 * target.c (target_wait, default_target_wait, do_option): Change
4001 type of "options".
4002 (target_options_to_string): Likewise.
4003 * target-delegates.c: Rebuild.
4004 * target-debug.h (target_debug_print_target_wait_flags): Rename
4005 from target_debug_print_options.
4006 * sol-thread.c (class sol_thread_target) <wait>: Update.
4007 (sol_thread_target::wait): Update.
4008 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4009 (rs6000_nat_target::wait): Update.
4010 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4011 Update.
4012 (remote_target::wait_ns, remote_target::wait_as): Change type of
4013 "options".
4014 (remote_target::wait): Update.
4015 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4016 (gdbsim_target::wait): Update.
4017 * record-full.c (class record_full_base_target) <wait>: Update.
4018 (record_full_wait_1): Change type of "options".
4019 (record_full_base_target::wait): Update.
4020 * record-btrace.c (class record_btrace_target) <wait>: Update.
4021 (record_btrace_target::wait): Update.
4022 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4023 Update.
4024 (ravenscar_thread_target::wait): Update.
4025 * procfs.c (class procfs_target) <wait>: Update.
4026 (procfs_target::wait): Update.
4027 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4028 * obsd-nat.c (obsd_nat_target::wait): Update.
4029 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4030 (nto_procfs_target::wait): Update.
4031 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4032 * nbsd-nat.c (nbsd_wait): Change type of "options".
4033 (nbsd_nat_target::wait): Update.
4034 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4035 (thread_db_target::wait): Update.
4036 * linux-nat.h (class linux_nat_target) <wait>: Update.
4037 * linux-nat.c (linux_nat_target::wait): Update.
4038 (linux_nat_wait_1): Update.
4039 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4040 "options".
4041 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4042 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4043 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4044 (go32_nat_target::wait): Update.
4045 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4046 * gnu-nat.c (gnu_nat_target::wait): Update.
4047 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4048 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4049 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4050 * darwin-nat.c (darwin_nat_target::wait): Update.
4051 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4052 (bsd_uthread_target::wait): Update.
4053 * aix-thread.c (class aix_thread_target) <wait>: Update.
4054 (aix_thread_target::wait): Update.
4055
4056 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4057
4058 * compile/compile-object-run.c (create_copied_type_recursive): New
4059 function.
4060 (compile_object_run): Use new function.
4061
4062 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4063
4064 * NEWS: Mention x86_64 Cygwin core file support.
4065
4066 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4067
4068 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4069 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4070
4071 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4072
4073 * windows-tdep.h: Add prototypes.
4074 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4075 (i386_windows_core_pid_to_str): Move and rename ...
4076 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4077 (windows_core_pid_to_str): ... and here.
4078 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4079
4080 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4081 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4082 (amd64_windows_init_abi_common): ... and register.
4083
4084 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4085
4086 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4087 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4088
4089 2020-09-18 Pedro Alves <pedro@palves.net>
4090
4091 PR gdb/26631
4092 * thread.c (thread_find_command): Switch inferior before calling
4093 target methods.
4094
4095 2020-09-17 Tom Tromey <tromey@adacore.com>
4096
4097 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4098 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4099 (tdesc_arch_data_up): New typedef.
4100 (tdesc_use_registers, tdesc_data_alloc): Update.
4101 (tdesc_data_cleanup): Don't declare.
4102 * target-descriptions.c (tdesc_data_alloc): Return a
4103 tdesc_arch_data_up.
4104 (tdesc_arch_data_deleter::operator()): Rename from
4105 tdesc_data_cleanup. Change argument type.
4106 (tdesc_use_registers): Change early_data to an rvalue reference.
4107 (tdesc_use_registers): Don't use delete.
4108 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4109 * s390-tdep.c (s390_gdbarch_init): Update.
4110 * rx-tdep.c (rx_gdbarch_init): Update.
4111 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4112 * riscv-tdep.c (riscv_gdbarch_init): Update.
4113 * or1k-tdep.c (or1k_gdbarch_init): Update.
4114 * nios2-tdep.c (nios2_gdbarch_init): Update.
4115 * nds32-tdep.c (nds32_gdbarch_init): Update.
4116 * mips-tdep.c (mips_gdbarch_init): Update.
4117 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4118 * m68k-tdep.c (m68k_gdbarch_init): Update.
4119 * i386-tdep.c (i386_gdbarch_init): Update.
4120 * arm-tdep.c (arm_gdbarch_init): Update.
4121 * arc-tdep.c (arc_tdesc_init): Update.
4122 (arc_gdbarch_init): Update.
4123 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4124
4125 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4126
4127 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4128 for WOW64 processes.
4129
4130 2020-09-17 Tom Tromey <tom@tromey.com>
4131
4132 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4133
4134 2020-09-17 Tom Tromey <tom@tromey.com>
4135
4136 * value.c (preserve_values): Update.
4137 * python/py-type.c (save_objfile_types): Update.
4138 * guile/scm-type.c (save_objfile_types): Update.
4139 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4140 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4141 * compile/compile-object-run.c (compile_object_run): Update.
4142
4143 2020-09-17 Tom Tromey <tom@tromey.com>
4144
4145 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4146 Remove.
4147 <m_table>: Now htab_up.
4148 * typeprint.c (typedef_hash_table::recursively_update)
4149 (typedef_hash_table::add_template_parameters)
4150 (typedef_hash_table::typedef_hash_table): Update.
4151 (typedef_hash_table::~typedef_hash_table): Remove.
4152 (typedef_hash_table::typedef_hash_table)
4153 (typedef_hash_table::find_global_typedef)
4154 (typedef_hash_table::find_typedef): Update.
4155
4156 2020-09-17 Tom Tromey <tom@tromey.com>
4157
4158 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4159
4160 2020-09-17 Tom Tromey <tom@tromey.com>
4161
4162 * linespec.c (class decode_compound_collector)
4163 <~decode_compound_collector>: Remove.
4164 <m_unique_syms>: Now htab_up.
4165 (decode_compound_collector::operator ()): Update.
4166 (class symtab_collector) <~symtab_collector>: Remove.
4167 <m_symtab_table>: Now htab_up.
4168 (symtab_collector::operator ()): Update.
4169
4170 2020-09-17 Tom Tromey <tom@tromey.com>
4171
4172 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4173 (filename_seen_cache::clear): Update.
4174 (~filename_seen_cache): Remove.
4175 (filename_seen_cache::seen): Update.
4176 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4177 htab_up.
4178 <~filename_seen_cache>: Remove.
4179 <traverse>: Update.
4180
4181 2020-09-17 Tom Tromey <tom@tromey.com>
4182
4183 * completer.c (completion_tracker::discard_completions)
4184 (completion_tracker::~completion_tracker)
4185 (completion_tracker::maybe_add_completion)
4186 (completion_tracker::remove_completion)
4187 (completion_tracker::recompute_lowest_common_denominator)
4188 (completion_tracker::build_completion_result): Update.
4189 * completer.h (class completion_tracker) <have_completions>:
4190 Update.
4191 <m_entries_hash>: Now htab_up.
4192
4193 2020-09-17 Tom Tromey <tom@tromey.com>
4194
4195 * breakpoint.c (ambiguous_names_p): Use htab_up.
4196
4197 2020-09-17 Tom Tromey <tom@tromey.com>
4198
4199 * auto-load.c (struct auto_load_pspace_info)
4200 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4201 <loaded_script_files, loaded_script_texts>: Change type to
4202 htab_up.
4203 (~auto_load_pspace_info) Remove.
4204 (init_loaded_scripts_info, maybe_add_script_file)
4205 (maybe_add_script_text, auto_load_info_scripts): Update.
4206
4207 2020-09-17 Tom Tromey <tromey@adacore.com>
4208
4209 * c-exp.y (name_obstack): Now static.
4210
4211 2020-09-17 Chungyi Chi <demonic@csie.io>
4212
4213 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4214
4215 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4216
4217 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4218 (add_solib_catchpoint): Likewise.
4219 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4220 to bool.
4221 (add_solib_catchpoint): Change int parameter/variable to bool.
4222 (catch_load_or_unload): Likewise.
4223 (init_catchpoint): Likewise.
4224 (create_fork_vfork_event_catchpoint): Likewise.
4225 (catch_fork_command_1): Likewise.
4226 (catch_exec_command_1): Likewise.
4227
4228 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4229
4230 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4231 Change instance_flags to m_instance_flags.
4232
4233 2020-09-16 Tom Tromey <tromey@adacore.com>
4234
4235 PR gdb/26598:
4236 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4237
4238 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4239
4240 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4241 PL_FLAG_EXEC.
4242 (fbsd_nat_target::insert_exec_catchpoint)
4243 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4244 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4245 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4246
4247 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4248
4249 * configure.ac: Remove check for kinfo_getvmmap().
4250 * configure, config.in: Regenerate.
4251 * fbsd-nat.c (fbsd_read_mapping): Remove
4252 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4253 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4254 kinfo_get_vmmap() are always present.
4255
4256 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4257
4258 * fbsd-nat.c: Always include support for
4259 TARGET_OBJECT_SIGNAL_INFO.
4260
4261 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4262
4263 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4264 sysctl and remove procfs fallback.
4265
4266 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4267
4268 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4269 * fbsd-nat.h: Likewise.
4270
4271 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4272
4273 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4274 argument.
4275
4276 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4277
4278 * ada-lang.c (ada_language_data): Delete.
4279 (ada_language): Remove references to ada_language_data.
4280 * c-lang.c (c_language_data): Delete.
4281 (c_language): Remove references to c_language_data.
4282 (cplus_language_data): Delete.
4283 (cplus_language): Remove references to cplus_language_data.
4284 (asm_language_data): Delete.
4285 (asm_language): Remove references to asm_language_data.
4286 (minimal_language_data): Delete.
4287 (minimal_language): Remove references to minimal_language_data.
4288 * d-lang.c (d_language_data): Delete.
4289 (d_language): Remove references to d_language_data.
4290 * f-lang.c (f_language_data): Delete.
4291 (f_language): Remove references to f_language_data.
4292 * go-lang.c (go_language_data): Delete.
4293 (go_language): Remove references to go_language_data.
4294 * language.c (unknown_language_data): Delete.
4295 (unknown_language): Remove references to unknown_language_data.
4296 (auto_language_data): Delete.
4297 (auto_language): Remove references to auto_language_data.
4298 * language.h (language_data): Delete struct.
4299 (language_defn): No longer inherit from language_data.
4300 * m2-lang.c (m2_language_data): Delete.
4301 (m2_language): Remove references to m2_language_data.
4302 * objc-lang.c (objc_language_data): Delete.
4303 (objc_language): Remove references to objc_language_data.
4304 * opencl-lang.c (opencl_language_data): Delete.
4305 (opencl_language): Remove references to opencl_language_data.
4306 * p-lang.c (pascal_language_data): Delete.
4307 (pascal_language): Remove references to pascal_language_data.
4308 * rust-lang.c (rust_language_data): Delete.
4309 (rust_language): Remove references to rust_language_data.
4310
4311 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4312
4313 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4314 initializer.
4315 (ada_language::opcode_print_table): New member function.
4316 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4317 (c_language::opcode_print_table): New member function.
4318 (cplus_language_data): Remove la_op_print_tab initializer.
4319 (cplus_language::opcode_print_table): New member function.
4320 (asm_language_data): Remove la_op_print_tab initializer.
4321 (asm_language::opcode_print_table): New member function.
4322 (minimal_language_data): Remove la_op_print_tab initializer.
4323 (minimal_language::opcode_print_table): New member function.
4324 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4325 (d_language::opcode_print_table): New member function.
4326 * expprint.c (print_subexp_standard): Update call to
4327 opcode_print_table.
4328 (op_string): Likewise.
4329 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4330 (f_language::opcode_print_table): New member function.
4331 * go-lang.c (go_language_data): Remove la_op_print_tab
4332 initializer.
4333 (go_language::opcode_print_table): New member function.
4334 * language.c (unknown_language_data): Remove la_op_print_tab
4335 initializer.
4336 (unknown_language::opcode_print_table): New member function.
4337 (auto_language_data): Remove la_op_print_tab initializer.
4338 (auto_language::opcode_print_table): New member function.
4339 * language.h (language_data): Remove la_op_print_tab field.
4340 (language_defn::opcode_print_table): Declare new member function.
4341 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4342 initializer.
4343 (m2_language::opcode_print_table): New member function.
4344 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4345 initializer.
4346 (objc_language::opcode_print_table): New member function.
4347 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4348 initializer.
4349 (opencl_language::opcode_print_table): New member function.
4350 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4351 initializer.
4352 (pascal_language::opcode_print_table): New member function.
4353 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4354 initializer.
4355 (rust_language::opcode_print_table): New member function.
4356
4357 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4358
4359 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4360 (ada_language::expression_ops): New member function.
4361 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4362 (c_language::expression_ops): New member function.
4363 (cplus_language_data): Remove la_exp_desc initializer.
4364 (cplus_language::expression_ops): New member function.
4365 (asm_language_data): Remove la_exp_desc initializer.
4366 (asm_language::expression_ops): New member function.
4367 (minimal_language_data): Remove la_exp_desc initializer.
4368 (minimal_language::expression_ops): New member function.
4369 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4370 (d_language::expression_ops): New member function.
4371 * eval.c (evaluate_subexp): Update call to expression_ops.
4372 * expprint.c (print_subexp): Likewise.
4373 (op_name): Likewise.
4374 (dump_subexp_body): Likewise.
4375 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4376 (f_language::expression_ops): New member function.
4377 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4378 (go_language::expression_ops): New member function.
4379 * language.c (language_defn::expression_ops): New function.
4380 (unknown_language_data): Remove la_exp_desc initializer.
4381 (auto_language_data): Likewise.
4382 * language.h (language_data): Remove la_exp_desc field.
4383 (language_defn::expression_ops): Declare new member function.
4384 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4385 (m2_language::expression_ops): New member function.
4386 * objc-lang.c (objc_language_data): Remove la_exp_desc
4387 initializer.
4388 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4389 initializer.
4390 (opencl_language::expression_ops): New member function.
4391 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4392 * parse.c (operator_length): Update call to expression_ops.
4393 (exp_iterate): Likewise.
4394 * rust-lang.c (rust_language_data): Remove la_exp_desc
4395 initializer.
4396 (ruse_language::expression_ops): New member function.
4397
4398 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4399
4400 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4401 initializer.
4402 (ada_language::varobj_ops): New member function.
4403 * c-lang.c (c_language_data): Remove la_varobj_ops
4404 initializer.
4405 (cplus_language_data): Likewise.
4406 (cplus_language::varobj_ops): New member function.
4407 (asm_language_data): Remove la_varobj_ops initializer.
4408 (minimal_language_data): Likewise.
4409 * d-lang.c (d_language_data): Likewise.
4410 * f-lang.c (f_language_data): Likewise.
4411 * go-lang.c (go_language_data): Likewise.
4412 * language.c (language_defn::varobj_ops): New function.
4413 (unknown_language_data): Remove la_varobj_ops
4414 initializer.
4415 (auto_language_data): Likewise.
4416 * language.h (language_data): Remove la_varobj_ops field.
4417 (language_defn::varobj_ops): Declare new member function.
4418 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4419 * objc-lang.c (objc_language_data): Likewise.
4420 * opencl-lang.c (opencl_language_data): Likewise.
4421 * p-lang.c (pascal_language_data): Likewise.
4422 * rust-lang.c (rust_language_data): Likewise.
4423 * varobj.c (varobj_create): Update call to varobj_ops.
4424 * varobj.h (default_varobj_ops): Delete define.
4425
4426 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4427
4428 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4429 initializer.
4430 * c-lang.c (c_language_data): Likewise.
4431 (c_language::macro_expansion): New member function.
4432 (cplus_language_data): Likewise.
4433 (cplus_language::macro_expansion): New member function.
4434 (asm_language_data): Likewise.
4435 (asm_language::macro_expansion): New member function.
4436 (minimal_language_data): Likewise.
4437 (minimal_language::macro_expansion): New member function.
4438 * d-lang.c (d_language_data): Remove la_macro_expansion
4439 initializer.
4440 * f-lang.c (f_language_data): Likewise.
4441 * go-lang.c (go_language_data): Likewise.
4442 * language.c (unknown_language_data): Likewise.
4443 (auto_language_data): Likewise.
4444 * language.h (language_data): Remove la_macro_expansion field.
4445 (language_defn::macro_expansion): New member function.
4446 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4447 initializer.
4448 * objc-lang.c (objc_language_data): Likewise.
4449 (objc_language::macro_expansion): New member function.
4450 * opencl-lang.c (opencl_language_data): Likewise.
4451 (opencl_language::macro_expansion): New member function.
4452 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4453 initializer.
4454 * rust-lang.c (rust_language_data): Likewise.
4455 * symtab.c (default_collect_symbol_completion_matches_break_on):
4456 Update call to macro_expansion.
4457
4458 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4459
4460 * ada-lang.c (ada_language_data): Remove la_array_ordering
4461 initializer.
4462 * c-lang.c (c_language_data): Likewise.
4463 (cplus_language_data): Likewise.
4464 (asm_language_data): Likewise.
4465 (minimal_language_data): Likewise.
4466 * d-lang.c (d_language_data): Likewise.
4467 * dwarf2/read.c (read_array_order): Update for call to
4468 array_ordering.
4469 * f-lang.c (f_language_data): Remove la_array_ordering
4470 initializer.
4471 (f_language::array_ordering): New member function.
4472 * go-lang.c (go_language_data): Remove la_array_ordering
4473 initializer.
4474 * language.c (unknown_language_data): Likewise.
4475 (auto_language_data): Likewise.
4476 * language.h (language_data): Delete la_array_ordering field.
4477 (language_defn::array_ordering): New member function.
4478 * m2-lang.c (m2_language_data): Remove la_array_ordering
4479 initializer.
4480 * objc-lang.c (objc_language_data): Likewise.
4481 * opencl-lang.c (opencl_language_data): Likewise.
4482 * p-lang.c (pascal_language_data): Likewise.
4483 * rust-lang.c (rust_language_data): Likewise.
4484
4485 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4486
4487 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4488 initializer.
4489 * c-lang.c (c_language_data): Likewise.
4490 (cplus_language_data): Likewise.
4491 (asm_language_data): Likewise.
4492 (minimal_language_data): Likewise.
4493 * d-lang.c (d_language_data): Likewise.
4494 * f-lang.c (f_language_data): Likewise.
4495 (f_language::case_sensitivity): New member function.
4496 * go-lang.c (go_language_data): Remove la_case_sensitivity
4497 initializer.
4498 * language.c (enum case_mode): Moved here from language.h.
4499 (case_mode): Make static.
4500 (show_case_command): Update for case_sensitivity being a method.
4501 (set_case_command): Likewise.
4502 (set_range_case): Likewise.
4503 (unknown_language_data): Remove la_case_sensitivity initializer.
4504 (auto_language_data): Likewise.
4505 * language.h (case_mode): Delete, move enum declaration to
4506 language.c.
4507 (language_data): Delete la_case_sensitivity field.
4508 (language_defn::case_sensitivity): New member function.
4509 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4510 initializer.
4511 * objc-lang.c (objc_language_data): Likewise.
4512 * opencl-lang.c (opencl_language_data): Likewise.
4513 * p-lang.c (pascal_language_data): Likewise.
4514 * rust-lang.c (rust_language_data): Likewise.
4515
4516 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4517
4518 * ada-lang.c (ada_language_data): Remove la_range_check
4519 initializer.
4520 * c-lang.c (c_language_data): Likewise.
4521 (cplus_language_data): Likewise.
4522 (asm_language_data): Likewise.
4523 (minimal_language_data): Likewise.
4524 * d-lang.c (d_language_data): Likewise.
4525 * f-lang.c (f_language_data): Likewise.
4526 (f_language::range_checking_on_by_default): New member function.
4527 * go-lang.c (go_language_data): Remove la_range_check initializer.
4528 * language.c (enum range_mode): Moved here from language.h.
4529 (range_mode): Made static.
4530 (show_range_command): Update to use
4531 range_checking_on_by_default.
4532 (set_range_command): Likewise.
4533 (set_range_case): Likewise.
4534 (unknown_language_data): Remove la_range_check initializer.
4535 (auto_language_data): Likewise.
4536 * language.h (range_mode): Delete. Enum definition moved to
4537 language.c.
4538 (language_data): Remove la_range_check field.
4539 (language_defn::range_checking_on_by_default): New member
4540 function.
4541 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4542 (m2_language::range_checking_on_by_default): New member function.
4543 * objc-lang.c (objc_language_data): Remove la_range_check
4544 initializer.
4545 * opencl-lang.c (opencl_language_data): Likewise.
4546 * p-lang.c (pascal_language_data): Likewise.
4547 (pascal_language::range_checking_on_by_default): New member
4548 function.
4549 * rust-lang.c (rust_language_data): Remove la_range_check
4550 initializer.
4551 (rust_language::range_checking_on_by_default): New member
4552 function.
4553
4554 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4555
4556 * dwarf2/read.c (dwarf2_physname): Remove special case for
4557 language_go.
4558 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4559 member function.
4560
4561 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4562
4563 * ada-lang.c (ada_language_data): Remove
4564 la_store_sym_names_in_linkage_form_p initializer.
4565 (ada_language::store_sym_names_in_linkage_form_p): New member
4566 function.
4567 * c-lang.c (c_language_data): Remove
4568 la_store_sym_names_in_linkage_form_p initializer.
4569 (c_language::store_sym_names_in_linkage_form_p): New member
4570 function.
4571 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4572 initializer.
4573 (asm_language_data): Likewise.
4574 (asm_language::store_sym_names_in_linkage_form_p): New member
4575 function.
4576 (minimal_language_data): Remove
4577 la_store_sym_names_in_linkage_form_p initializer.
4578 (minimal_language::store_sym_names_in_linkage_form_p): New member
4579 function.
4580 * d-lang.c (d_language_data): Remove
4581 la_store_sym_names_in_linkage_form_p initializer.
4582 * dwarf2/read.c (dwarf2_physname): Update call to
4583 store_sym_names_in_linkage_form_p.
4584 * f-lang.c (f_language_data): Remove
4585 la_store_sym_names_in_linkage_form_p initializer.
4586 * go-lang.c (go_language_data): Remove
4587 la_store_sym_names_in_linkage_form_p initializer.
4588 * language.c (unknown_language_data): Remove
4589 la_store_sym_names_in_linkage_form_p initializer.
4590 (unknown_language::store_sym_names_in_linkage_form_p): New member
4591 function.
4592 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4593 initializer.
4594 (auto_language::store_sym_names_in_linkage_form_p): New member
4595 function.
4596 * language.h (language_data): Remove
4597 la_store_sym_names_in_linkage_form_p member variable.
4598 (language_defn::store_sym_names_in_linkage_form_p): New member
4599 function.
4600 * m2-lang.c (m2_language_data): Remove
4601 la_store_sym_names_in_linkage_form_p initializer.
4602 * objc-lang.c (objc_language_data): Likewise.
4603 * opencl-lang.c (opencl_language_data): Likewise.
4604 * p-lang.c (pascal_language_data): Likewise.
4605 * rust-lang.c (rust_language_data): Likewise.
4606
4607 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4608
4609 * ada-lang.c (ada_language_data): Remove string_lower_bound
4610 initializer.
4611 * c-lang.c (c_language_data): Likewise.
4612 (cplus_language_data): Likewise.
4613 (asm_language_data): Likewise.
4614 (minimal_language_data): Likewise.
4615 * d-lang.c (d_language_data): Likewise.
4616 * f-lang.c (f_language_data): Likewise.
4617 * go-lang.c (go_language_data): Likewise.
4618 * language.c (unknown_language_data): Likewise.
4619 (auto_language_data): Likewise.
4620 * language.h (language_data): Remove string_lower_bound field.
4621 (language_defn::string_lower_bound): New member function.
4622 * m2-lang.c (m2_language_data): Remove string_lower_bound
4623 initializer.
4624 (m2_language::string_lower_bound): New member function.
4625 * objc-lang.c (objc_language_data): Remove string_lower_bound
4626 initializer.
4627 * opencl-lang.c (opencl_language_data): Likewise.
4628 * p-lang.c (pascal_language_data): Likewise.
4629 * rust-lang.c (rust_language_data): Likewise.
4630 * valops.c (value_cstring): Update call to string_lower_bound.
4631 (value_string): Likewise.
4632 * value.c (allocate_repeated_value): Likewise.
4633
4634 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4635
4636 * valops.c (value_repeat): Fix incorrect argument name in comment.
4637
4638 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4639
4640 * ada-lang.c (ada_language_data): Remove c_style_arrays
4641 initializer.
4642 (ada_language::c_style_arrays_p): New member fuction.
4643 * c-lang.c (c_language_data): Remove c_style_arrays
4644 initializer.
4645 (cplus_language_data): Likewise.
4646 (asm_language_data): Likewise.
4647 (minimal_language_data): Likewise.
4648 * d-lang.c (d_language_data): Likewise.
4649 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4650 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4651 (f_language::c_style_arrays_p): New member function.
4652 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4653 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4654 * language.c (unknown_language_data): Remove c_style_arrays
4655 initializer.
4656 (auto_language_data): Likewise.
4657 * language.h (language_data): Remove c_style_arrays field.
4658 (language_defn::c_style_arrays_p): New member function.
4659 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4660 (m2_language::c_style_arrays_p): New member function.
4661 * objc-lang.c (objc_language_data): Remove c_style_arrays
4662 initializer.
4663 * opencl-lang.c (opencl_language_data): Likewise.
4664 * p-lang.c (pascal_language_data): Likewise.
4665 * rust-lang.c (rust_language_data): Likewise.
4666 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4667 and update local variable to a bool.
4668 * valops.c (value_cast): Update call to c_style_arrays_p.
4669 (value_array): Likewise.
4670 * value.c (coerce_array): Likewise.
4671
4672 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4673
4674 * ada-lang.c (ada_language_data): Remove la_language initializer.
4675 * c-lang.c (c_language_data): Likewise.
4676 (cplus_language_data): Likewise.
4677 (asm_language_data): Likewise.
4678 (minimal_language_data): Likewise.
4679 * d-lang.c (d_language_data): Likewise.
4680 * f-lang.c (f_language_data): Likewise.
4681 * go-lang.c (go_language_data): Likewise.
4682 * language.c (unknown_language_data): Likewise.
4683 (auto_language_data): Likewise.
4684 * language.h (language_data): Remove la_language field.
4685 (language_defn::language_defn): Initialise la_language field.
4686 (language_defn::la_language): New member variable.
4687 * m2-lang.c (m2_language_data): Remove la_language field.
4688 * objc-lang.c (objc_language_data): Likewise.
4689 * opencl-lang.c (opencl_language_data): Likewise.
4690 * p-lang.c (pascal_language_data): Likewise.
4691 * rust-lang.c (rust_language_data): Likewise.
4692
4693 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4694
4695 * ada-lang.c (ada_extensions): Delete, moved into
4696 ada_language::filename_extensions.
4697 (ada_language_data): Remove la_filename_extensions initializer.
4698 (ada_language::filename_extensions): New member function.
4699 * c-lang.c (c_extensions): Delete, moved into
4700 c_language::filename_extensions.
4701 (c_language_data): Remove la_filename_extensions initializer.
4702 (c_language::filename_extensions): New member function.
4703 (cplus_extensions): Delete, moved into
4704 cplus_language::filename_extensions.
4705 (cplus_language_data): Remove la_filename_extensions initializer.
4706 (cplus_language::filename_extensions): New member function.
4707 (asm_extensions): Delete, moved into
4708 asm_language::filename_extensions.
4709 (asm_language_data): Remove la_filename_extensions initializer.
4710 (asm_language::filename_extensions): New member function.
4711 (minimal_language_data): Remove la_filename_extensions
4712 initializer.
4713 * d-lang.c (d_extensions): Delete, moved into
4714 d_language::filename_extensions.
4715 (d_language_data): Remove la_filename_extensions initializer.
4716 (d_language::filename_extensions): New member function.
4717 * f-lang.c (f_extensions): Delete, moved into
4718 f_language::filename_extensions.
4719 (f_language_data): Remove la_filename_extensions initializer.
4720 (f_language::filename_extensions): New member function.
4721 * go-lang.c (go_language_data): Remove la_filename_extensions
4722 initializer.
4723 * language.c (add_set_language_command): Update now that
4724 filename_extensions returns a vector.
4725 (unknown_language_data): Remove la_filename_extensions
4726 initializer.
4727 (auto_language_data): Likewise.
4728 * language.h (language_data): Remove la_filename_extensions field.
4729 (language_defn::filename_extensions): New member function.
4730 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4731 initializer.
4732 * objc-lang.c (objc_extensions): Delete, moved into
4733 objc_language::filename_extensions.
4734 (objc_language_data): Remove la_filename_extensions initializer.
4735 (objc_language::filename_extensions): New member function.
4736 * opencl-lang.c (opencl_language_data): Remove
4737 la_filename_extensions initializer.
4738 * p-lang.c (pascal_extensions): Delete, moved into
4739 pascal_language::filename_extensions.
4740 (pascal_language_data): Remove la_filename_extensions initializer.
4741 (pascal_language::filename_extensions): New member function.
4742 * rust-lang.c (rust_extensions): Delete, moved into
4743 rust_language::filename_extensions.
4744 (rust_language_data): Remove la_filename_extensions initializer.
4745 (rust_language::filename_extensions): New member function.
4746 * symfile.c (add_filename_language): Add new assert.
4747
4748 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4749
4750 * ada-lang.c (ada_language_data): Remove la_name and
4751 la_natural_name initializers.
4752 (ada_language::name): New member function.
4753 (ada_language::natural_name): New member function.
4754 * c-lang.c (c_language_data): Remove la_name and
4755 la_natural_name initializers.
4756 (c_language::name): New member function.
4757 (c_language::natural_name): New member function.
4758 (cplus_language_data): Remove la_name and
4759 la_natural_name initializers.
4760 (cplus_language::name): New member function.
4761 (cplus_language::natural_name): New member function.
4762 (asm_language_data): Remove la_name and
4763 la_natural_name initializers.
4764 (asm_language::name): New member function.
4765 (asm_language::natural_name): New member function.
4766 (minimal_language_data): Remove la_name and
4767 la_natural_name initializers.
4768 (minimal_language::name): New member function.
4769 (minimal_language::natural_name): New member function.
4770 * compile/compile.c (compile_to_object): Update call to
4771 lanugage_defn::name.
4772 * d-lang.c (d_language_data): Remove la_name and
4773 la_natural_name initializers.
4774 (d_language::name): New member function.
4775 (d_language::natural_name): New member function.
4776 * expprint.c (print_subexp_standard): Update call to
4777 language_defn::name.
4778 (dump_raw_expression): Likewise
4779 (dump_prefix_expression): Likewise.
4780 * f-lang.c (f_language_data): Remove la_name and
4781 la_natural_name initializers.
4782 (f_language::name): New member function.
4783 (f_language::natural_name): New member function.
4784 * go-lang.c (go_language_data): Remove la_name and
4785 la_natural_name initializers.
4786 (go_language::name): New member function.
4787 (go_language::natural_name): New member function.
4788 * language.c (show_language_command): Update call to
4789 language_defn::name.
4790 (set_language_command): Likewise.
4791 (language_enum): Likewise.
4792 (language_str): Likewise.
4793 (add_set_language_command): Likewise, use
4794 language_defn::natural_name in the doc string.
4795 (unknown_language_data): Remove la_name and
4796 la_natural_name initializers.
4797 (unknown_language::name): New member function.
4798 (unknown_language::natural_name): New member function.
4799 (auto_language_data): Remove la_name and
4800 la_natural_name initializers.
4801 (auto_language::name): New member function.
4802 (auto_language::natural_name): New member function.
4803 (language_lookup_primitive_type_as_symbol): Update call to
4804 language_defn::name.
4805 * language.h (language_data): Remove la_name and la_natural_name
4806 member variables.
4807 (language_defn::name): New member function.
4808 (language_defn::natural_name): New member function.
4809 * m2-lang.c (m2_language_data): Remove la_name and
4810 la_natural_name initializers.
4811 (m2_language::name): New member function.
4812 (m2_language::natural_name): New member function.
4813 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4814 language_defn::natural_name.
4815 * objc-lang.c (objc_language_data): Remove la_name and
4816 la_natural_name initializers.
4817 (objc_language::name): New member function.
4818 (objc_language::natural_name): New member function.
4819 * opencl-lang.c (opencl_language_data): Remove la_name and
4820 la_natural_name initializers.
4821 (opencl_language::name): New member function.
4822 (opencl_language::natural_name): New member function.
4823 * p-lang.c (pascal_language_data): Remove la_name and
4824 la_natural_name initializers.
4825 (pascal_language::name): New member function.
4826 (pascal_language::natural_name): New member function.
4827 * rust-lang.c (rust_language_data): Remove la_name and
4828 la_natural_name initializers.
4829 (rust_language::name): New member function.
4830 (rust_language::natural_name): New member function.
4831 * symtab.c (lookup_language_this): Update call to
4832 language_defn::name.
4833
4834 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4835
4836 * ada-lang.c (ada_language_data): Remove la_name_of_this
4837 initializer.
4838 * ax-gdb.c (gen_expr): Update call to name_of_this.
4839 * c-exp.y (classify_name): Likewise.
4840 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4841 (cplus_language_data): Likewise.
4842 (cplus_language::name_of_this): New member function.
4843 (asm_language_data): Remove la_name_of_this initializer.
4844 (minimal_language_data): Likewise.
4845 * d-lang.c (d_language_data): Likewise.
4846 (d_language::name_of_this): New member function.
4847 * expprint.c (print_subexp_standard): Update call to name_of_this.
4848 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4849 * go-lang.c (go_language_data): Likewise.
4850 * language.c (unknown_language_data): Likewise.
4851 (unknown_language::name_of_this): New member function.
4852 (auto_language_data): Remove la_name_of_this initializer.
4853 (auto_language::name_of_this): New member function.
4854 * language.h (language_data): Delete la_name_of_this member
4855 variable.
4856 (language_defn::name_of_this): New member function.
4857 * m2-lang.c (m2_language_data): Remove la_name_of_this
4858 initializer.
4859 * objc-lang.c (objc_language_data): Likewise.
4860 (objc_language::name_of_this): New member function.
4861 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4862 initializer.
4863 * p-lang.c (pascal_language_data): Likewise.
4864 (pascal_language::name_of_this): New member function.
4865 * rust-lang.c (rust_language_data): Remove la_name_of_this
4866 initializer.
4867 * symtab.c (lookup_language_this): Update call to name_of_this.
4868 (lookup_symbol_aux): Likewise.
4869 * valops.c (value_of_this): Likewise.
4870
4871 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4872
4873 * ada-lang.c (ada_language_data): Remove
4874 la_struct_too_deep_ellipsis initializer.
4875 (ada_language::struct_too_deep_ellipsis): New member function.
4876 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4877 initializer.
4878 (cplus_language_data): Likewise.
4879 (asm_language_data): Likewise.
4880 (minimal_language_data): Likewise.
4881 * cp-valprint.c (cp_print_value): Update call to
4882 struct_too_deep_ellipsis.
4883 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4884 initializer.
4885 * f-lang.c (f_language_data): Likewise.
4886 (f_language::struct_too_deep_ellipsis): New member function.
4887 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4888 initializer.
4889 * language.c (unknown_language_data): Likewise.
4890 (auto_language_data): Likewise.
4891 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4892 member variable.
4893 (language_defn::struct_too_deep_ellipsis): New member function.
4894 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4895 initializer.Q
4896 * objc-lang.c (objc_language_data): Likewise.
4897 * opencl-lang.c (opencl_language_data): Likewise.
4898 * p-lang.c (pascal_language_data): Likewise.
4899 * rust-lang.c (rust_language_data): Likewise.
4900 * valprint.c (val_print_check_max_depth): Update call to
4901 struct_too_deep_ellipsis.
4902
4903 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4904
4905 * MAINTAINERS (Write After Approval): Add myself.
4906
4907 2020-09-15 Tom Tromey <tom@tromey.com>
4908
4909 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4910 Remove.
4911
4912 2020-09-15 Tom Tromey <tom@tromey.com>
4913
4914 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4915 and TYPE_CODE_METHODPTR cases.
4916 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4917 (c_value_print_inner): Update.
4918 * valprint.c (generic_value_print_memberptr): New function, from
4919 c_value_print_memberptr.
4920 (generic_value_print): Use it. Call cplus_print_method_ptr.
4921
4922 2020-09-15 Tom Tromey <tromey@adacore.com>
4923
4924 * python/python-internal.h (PyInt_FromLong): Remove define.
4925 * python/py-value.c (convert_value_from_python): Use
4926 gdb_py_object_from_longest.
4927 * python/py-type.c (typy_get_code): Use
4928 gdb_py_object_from_longest.
4929 * python/py-symtab.c (salpy_get_line): Use
4930 gdb_py_object_from_longest.
4931 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4932 gdb_py_object_from_longest.
4933 * python/py-record.c (recpy_gap_reason_code): Use
4934 gdb_py_object_from_longest.
4935 * python/py-record-btrace.c (recpy_bt_insn_size)
4936 (recpy_bt_func_level, btpy_list_count): Use
4937 gdb_py_object_from_longest.
4938 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4939 gdb_py_object_from_longest. Fix error handling.
4940 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4941 gdb_py_object_from_longest.
4942 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4943 gdb_py_object_from_longest.
4944 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4945 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4946 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4947
4948 2020-09-15 Tom Tromey <tromey@adacore.com>
4949
4950 * python/python.c (gdbpy_parameter_value): Use
4951 gdb_py_object_from_ulongest.
4952
4953 2020-09-15 Tom Tromey <tromey@adacore.com>
4954
4955 * python/py-infevents.c (create_register_changed_event_object):
4956 Use gdb_py_object_from_longest.
4957 * python/py-exitedevent.c (create_exited_event_object): Use
4958 gdb_py_object_from_longest.
4959
4960 2020-09-15 Tom Tromey <tromey@adacore.com>
4961
4962 * python/python.c (gdbpy_parameter_value): Use
4963 gdb_py_object_from_longest.
4964 * python/py-type.c (convert_field, typy_range): Use
4965 gdb_py_object_from_longest.
4966 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4967 gdb_py_object_from_longest.
4968 * python/py-lazy-string.c (stpy_get_length): Use
4969 gdb_py_object_from_longest.
4970 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4971 gdb_py_object_from_longest.
4972 * python/py-infevents.c (create_memory_changed_event_object): Use
4973 gdb_py_object_from_longest.
4974 * python/py-inferior.c (infpy_get_num): Use
4975 gdb_py_object_from_longest.
4976 (infpy_get_pid): Likewise.
4977
4978 2020-09-15 Tom Tromey <tromey@adacore.com>
4979
4980 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4981 defines.
4982 * python/py-value.c (valpy_long): Use
4983 gdb_py_object_from_ulongest.
4984 * python/py-symtab.c (salpy_get_pc): Use
4985 gdb_py_object_from_ulongest.
4986 (salpy_get_last): Likewise.
4987 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4988 gdb_py_object_from_ulongest.
4989 * python/py-lazy-string.c (stpy_get_address): Use
4990 gdb_py_object_from_ulongest.
4991 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4992 * python/py-arch.c (archpy_disassemble): Use
4993 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4994 error handling.
4995
4996 2020-09-15 Tom Tromey <tromey@adacore.com>
4997
4998 * python/python-internal.h (gdb_py_long_from_longest): Remove
4999 defines.
5000 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5001 * python/py-type.c (convert_field, typy_get_sizeof): Use
5002 gdb_py_object_from_longest.
5003 * python/py-record-btrace.c (btpy_list_index): Use
5004 gdb_py_object_from_longest.
5005
5006 2020-09-15 Tom Tromey <tromey@adacore.com>
5007
5008 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5009 * python/py-record.c (recpy_element_number): Use
5010 gdb_py_object_from_longest.
5011 (recpy_gap_number): Likewise.
5012
5013 2020-09-15 Tom Tromey <tromey@adacore.com>
5014
5015 * top.c (ui::ui): Update.
5016 (highest_ui_num): Remove.
5017 * top.h (struct ui) <num>: Remove.
5018
5019 2020-09-15 Tom Tromey <tromey@adacore.com>
5020
5021 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5022 * ui-style.c (ansi_regex_text): Now array.
5023 * rust-exp.y (number_regex_text): Now array.
5024 * linespec.c (linespec_quote_characters): Now array.
5025 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5026 Now arrays.
5027
5028 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5029
5030 * debuginfod-support.c (debuginfod_client_deleter): New.
5031 (debuginfod_client_up): New.
5032 (debuginfod_init): Return debuginfod_client_up.
5033 (debuginfod_source_query): Adjust.
5034 (debuginfod_debuginfo_query): Adjust.
5035
5036 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5037
5038 * debuginfod-support.c (debuginfod_source_query): Use
5039 make_unique_xstrdup.
5040
5041 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5042
5043 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5044 with `type::instance_flags`.
5045
5046 2020-09-14 Michael Mullin <masmullin@gmail.com>
5047
5048 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5049 Remove baton parameter.
5050
5051 2020-09-14 Pedro Alves <pedro@palves.net>
5052
5053 * Makefile.in (SELFTESTS_SRCS): Add
5054 unittests/enum-flags-selftests.c.
5055 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5056 btrace_function_flags instead of enum btrace_function_flag.
5057 * compile/compile-c-types.c (convert_qualified): Use
5058 enum_flags::raw.
5059 * compile/compile-cplus-symbols.c (convert_one_symbol)
5060 (convert_symbol_bmsym):
5061 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5062 (compile_cplus_convert_struct_or_union_methods)
5063 (compile_cplus_instance::convert_qualified_base):
5064 * go-exp.y (parse_string_or_char): Add cast to int.
5065 * unittests/enum-flags-selftests.c: New file.
5066 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5067 type to btrace_thread_flags from btrace_thread_flag.
5068 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5069 local's type to btrace_thread_flags from btrace_thread_flag. Add
5070 cast in DEBUG call.
5071
5072 2020-09-14 Pedro Alves <pedro@palves.net>
5073
5074 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5075 * gdbtypes.c (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 * gdbtypes.h (address_space_name_to_int): Rename to ...
5080 (address_space_name_to_type_instance_flags): ... this.
5081 (address_space_int_to_name): Rename to ...
5082 (address_space_type_instance_flags_to_name): ... this.
5083 * type-stack.c (type_stack::insert): Adjust to rename.
5084 * type-stack.h (type_stack::insert): Likewise.
5085
5086 2020-09-14 Pedro Alves <pedro@palves.net>
5087 Andrew Burgess <andrew.burgess@embecosm.com>
5088
5089 * avr-tdep.c (avr_address_class_type_flags): Return
5090 type_instance_flags.
5091 (avr_address_class_type_flags_to_name): Take a
5092 type_instance_flags.
5093 (avr_address_class_name_to_type_flags): Return bool and take a
5094 type_instance_flags.
5095 * d-lang.c (build_d_types): Use type::set_instance_flags.
5096 * ft32-tdep.c (ft32_address_class_type_flags): Return
5097 type_instance_flags.
5098 (ft32_address_class_type_flags_to_name): Take a
5099 type_instance_flags.
5100 (ft32_address_class_name_to_type_flags): Return bool and take a
5101 type_instance_flags.
5102 (ft32_gdbarch_init): Use type::set_instance_flags.
5103 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5104 * gdbarch.h, gdbarch.c: Regenerate.
5105 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5106 (address_class_name_to_type_flags): Use type_instance_flags and
5107 bool.
5108 * gdbtypes.c (address_space_name_to_int)
5109 (address_space_int_to_name, make_qualified_type): Use
5110 type_instance_flags.
5111 (make_qualified_type): Use type_instance_flags and
5112 type::set_instance_flags.
5113 (make_type_with_address_space, make_cv_type, make_vector_type)
5114 (check_typedef): Use type_instance_flags.
5115 (recursive_dump_type): Cast type_instance_flags to unsigned for
5116 printing.
5117 (copy_type_recursive): Use type::set_instance_flags.
5118 (gdbtypes_post_init): Use type::set_instance_flags.
5119 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5120 <m_instance_flags>: ... this.
5121 <instance_flags, set_instance_flags>: New methods.
5122 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5123 (SET_TYPE_INSTANCE_FLAGS): New.
5124 (address_space_name_to_int, address_space_int_to_name)
5125 (make_type_with_address_space): Pass flags using
5126 type_instance_flags instead of int.
5127 * stabsread.c (cleanup_undefined_types_noname): Use
5128 type::set_instance_flags.
5129 * s390-tdep.c (s390_address_class_type_flags): Return
5130 type_instance_flags.
5131 (s390_address_class_type_flags_to_name): Take a
5132 type_instance_flags.
5133 (s390_address_class_name_to_type_flags): Return bool and take a
5134 type_instance_flags.
5135 * type-stack.c (type_stack::follow_types): Use
5136 type_instance_flags.
5137 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5138
5139 2020-09-14 Tom Tromey <tromey@adacore.com>
5140
5141 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5142 * x86-tdep.c (x86_is_thunk_register_name)
5143 (x86_in_indirect_branch_thunk): Update.
5144 * sparc64-tdep.c (sparc64_fpu_register_names)
5145 (sparc64_cp0_register_names, sparc64_register_names)
5146 (sparc64_pseudo_register_names): Now const.
5147 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5148 cp0_registers_num>: Now const.
5149 * sparc-tdep.c (sparc_core_register_names)
5150 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5151 (sparc32_pseudo_register_names): Now const.
5152 (validate_tdesc_registers): Update.
5153 * rust-lang.c (rust_extensions): Now const.
5154 * p-lang.c (p_extensions): Now const.
5155 * objc-lang.c (objc_extensions): Now const.
5156 * nto-tdep.c (nto_thread_state_str): Now const.
5157 * moxie-tdep.c (moxie_register_names): Now const.
5158 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5159 Now const.
5160 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5161 (mips_linux_reg_names): Now const.
5162 (mips_gdbarch_init): Update.
5163 * microblaze-tdep.c (microblaze_register_names): Now const.
5164 * m68k-tdep.c (m68k_register_names): Now const.
5165 * m32r-tdep.c (m32r_register_names): Now const.
5166 * ia64-tdep.c (ia64_register_names): Now const.
5167 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5168 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5169 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5170 ymm_avx512_register_names, pkeys_register_names>: Now const.
5171 * i386-tdep.c (i386_register_names, i386_zmm_names)
5172 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5173 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5174 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5175 * f-lang.c (f_extensions): Now const.
5176 * d-lang.c (d_extensions): Now const.
5177 * csky-tdep.c (csky_register_names): Now const.
5178 * charset.c (default_charset_names, charset_enum): Now const.
5179 (_initialize_charset): Update.
5180 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5181 const.
5182 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5183 (bsd_uthread_solib_loaded): Update.
5184 (bsd_uthread_state): Now const.
5185 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5186 (amd64_ymm_avx512_names, amd64_ymmh_names)
5187 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5188 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5189 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5190 (amd64_dword_names): Now const.
5191 * agent.c (can_use_agent_enum): Now const.
5192 * ada-tasks.c (task_states, long_task_states): Now const.
5193 * ada-lang.c (known_runtime_file_name_patterns)
5194 (known_auxiliary_function_name_patterns, attribute_names)
5195 (standard_exc, ada_extensions): Now const.
5196
5197 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5198
5199 * bcache.h (struct bcache) <bcache>: Remove constructor.
5200 <m_hash_function, m_compare_function>: Remove.
5201 <~bcache>: Make virtual.
5202 <compare>: Remove static method, introduce virtual method.
5203 <default_hash>: Remove.
5204 <hash>: New virtual method.
5205 * bcache.c (bcache::expand_hash_table): Update.
5206 (bcache::insert): Update.
5207 (bcache::hash): New.
5208 (bcache::compare): Update comment and parameter names.
5209 * gdbtypes.c (types_deeply_equal): Update.
5210 * psymtab.h (struct psymbol_bcache): New struct.
5211 (class psymtab_storage) <psymtab_storage>: Make default.
5212 <psymbol_cache>: Change type to psymbol_bcache.
5213 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5214 (psymbol_hash): Change to...
5215 (psymbol_bcache::hash): ... this.
5216 (psymbol_compare): Change to...
5217 (psymbol_bcache::compare): ... this.
5218
5219 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5220
5221 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5222 checking for initial lwp.
5223
5224 2020-09-14 Tom Tromey <tromey@adacore.com>
5225
5226 * m68k-tdep.c (m68k_extract_return_value): Use
5227 pointer_result_regnum.
5228 (m68k_store_return_value): Likewise.
5229 (m68k_reg_struct_return_p): Handle vectors and arrays.
5230 (m68k_return_value): Handle arrays.
5231 (m68k_svr4_return_value): Fix single-element aggregate handling.
5232 Handle long double. Adjust for embedded ABI.
5233 (m68k_svr4_init_abi): Set pointer_result_regnum.
5234 (m68k_embedded_init_abi): New function.
5235 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5236 (m68k_osabi_sniffer): New function.
5237 (_initialize_m68k_tdep): Register osabi sniffer.
5238 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5239 member.
5240
5241 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5242
5243 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5244 with gdb::unique_xmalloc_ptr<char>.
5245
5246 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5247
5248 * xml-support.h (xml_fetch_another): Change type to be a
5249 function_view.
5250 (xml_process_xincludes): Remove baton parameter.
5251 (xml_fetch_content_from_file): Change baton parameter to
5252 dirname.
5253 * xml-support.c (struct xinclude_parsing_data)
5254 <xinclude_parsing_data>: Remove baton parameter.
5255 <fetcher_baton>: Remove.
5256 (xinclude_start_include): Adjust.
5257 (xml_process_xincludes): Adjust.
5258 (xml_fetch_content_from_file): Replace baton parameter with
5259 dirname.
5260 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5261 (xml_init_syscalls_info): Use a lambda.
5262 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5263 (file_read_description_xml): Use a lambda.
5264 (fetch_available_features_from_target): Change baton parameter
5265 to target_ops.
5266 (target_read_description_xml): Use a lambda.
5267 (target_fetch_description_xml): Use a lambda.
5268 (string_read_description_xml): Update.
5269
5270 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5271
5272 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5273 uses with type::endianity_is_not_default.
5274
5275 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5276
5277 * gdbtypes.h (struct type) <endianity_is_not_default,
5278 set_endianity_is_not_default>: New methods.
5279 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5280 type::endianity_is_not_default, change all write call sites to
5281 use type::set_endianity_is_not_default.
5282
5283 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5284
5285 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5286 uses with type::is_fixed_instance.
5287
5288 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5289
5290 * gdbtypes.h (struct type) <is_fixed_instance,
5291 set_is_fixed_instance>: New methods.
5292 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5293 write call sites to use type::set_is_fixed_instance.
5294
5295 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5296
5297 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5298 uses with type::is_gnu_ifunc.
5299
5300 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5301
5302 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5303 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5304 use type::set_is_gnu_ifunc.
5305
5306 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5307
5308 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5309 uses with type::stub_is_supported.
5310
5311 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5312
5313 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5314 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5315 use type::set_stub_is_supported.
5316
5317 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5318
5319 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5320 uses with type::is_vector.
5321
5322 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5323
5324 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5325 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5326 use type::set_is_vector.
5327
5328 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5331 uses with type::has_varargs.
5332
5333 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5334
5335 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5336 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5337 use type::set_has_varargs.
5338
5339 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5340
5341 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5342 uses with type::is_prototyped.
5343
5344 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5345
5346 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5347 New methods.
5348 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5349 call sites to use type::set_is_prototyped.
5350
5351 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5352
5353 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5354 uses with type::target_is_stub.
5355
5356 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5357
5358 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5359 New methods.
5360 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5361 sites to use type::set_target_is_stub.
5362
5363 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5364
5365 * gdbtypes.h (TYPE_STUB): Remove, replace all
5366 uses with type::is_stub.
5367
5368 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5369
5370 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5371 (TYPE_STUB): Use type::is_stub, change all write call sites to
5372 use type::set_is_stub.
5373
5374 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5375
5376 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5377 type::has_no_signedness.
5378
5379 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5380
5381 * gdbtypes.h (struct type) <has_no_signedness,
5382 set_has_no_signedness>: New methods.
5383 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5384 call sites to use type::set_has_no_signedness.
5385
5386 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5387
5388 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5389 type::is_unsigned.
5390
5391 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5392
5393 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5394 methods.
5395 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5396 sites to use type::set_is_unsigned.
5397
5398 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5399 Adam Renquinha <arenquinha@cimeq.qc.ca>
5400
5401 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5402 pointer and stack frame offset when unwinding.
5403
5404 2020-09-13 Pedro Alves <pedro@palves.net>
5405
5406 * NEWS: Document "-break-insert --qualified".
5407 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5408
5409 2020-09-13 Pedro Alves <pedro@palves.net>
5410
5411 * linespec.c (classify_mtype, compare_msyms): Delete.
5412 (search_minsyms_for_name): Remove classification logic. Instead
5413 filter out trampoline symbols if we also found an external
5414 function of the same name.
5415
5416 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5417
5418 * NEWS: Create a new section for the next release branch.
5419 Rename the section of the current branch, now that it has
5420 been cut.
5421
5422 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5423
5424 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5425 * version.in: Bump version to 11.0.50.DATE-git.
5426
5427 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5428
5429 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5430
5431 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5432 Felix Willgerodt <Felix.Willgerodt@intel.com>
5433
5434 * gdbarch.sh: Added bfloat16 type.
5435 * gdbarch.c: Regenerated.
5436 * gdbarch.h: Regenerated.
5437 * gdbtypes.c (floatformats_bfloat16): New struct.
5438 (gdbtypes_post_init): Add builtin_bfloat16.
5439 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5440 (floatformats_bfloat16): New struct.
5441 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5442 (i386_ymm_type): Add field "v16_bfloat16"
5443 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5444 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5445 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5446 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5447 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5448 * features/i386/64bit-avx512.c: Regenerated.
5449 * features/i386/64bit-sse.xml: Add bfloat16 type.
5450 * features/i386/64bit-sse.c: Regenerated.
5451
5452 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5453
5454 * i386-tdep.c (i386_zmm_type): Fix field names.
5455 (i386_ymm_type): Fix field names.
5456
5457 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5458
5459 * breakpoint.c: Fix typo in the help message of the
5460 "set breakpoint condition-evaluation" command.
5461
5462 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5463
5464 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5465 * (nbsd_nat_target::pid_to_exec_file)
5466 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5467 (nbsd_nat_target::post_startup_inferior)
5468 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5469 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5470 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5471 * (nbsd_thread_lister): Remove.
5472
5473 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5474
5475 * fork-inferior.c (startup_inferior): Avoid double free.
5476
5477 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5478
5479 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5480 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5481
5482 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5483
5484 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5485 * netbsd-nat.c: Include <sys/ptrace.h>.
5486 * (netbsd_nat::enable_proc_events): Add.
5487
5488 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5489
5490 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5491 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5492 (netbsd_nat::for_each_thread): Add.
5493 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5494 "gdbsupport/common-debug.h".
5495 * (netbsd_nat::netbsd_thread_lister)
5496 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5497 (netbsd_nat::for_each_thread): Add.
5498
5499 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5500
5501 * netbsd-nat.h: Include <unistd.h>.
5502 * (netbsd_nat::pid_to_exec_file): Add.
5503 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5504 * (netbsd_nat::pid_to_exec_file) Add.
5505
5506 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5507
5508 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5509
5510 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5511
5512 * netbsd-nat.h: New file.
5513 * netbsd-nat.c: Likewise.
5514
5515 2020-09-09 Tom Tromey <tromey@adacore.com>
5516
5517 * ada-lang.c (remove_extra_symbols): Do not increment when
5518 removing an element
5519
5520 2020-09-08 Tom Tromey <tromey@adacore.com>
5521
5522 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5523
5524 2020-09-08 Tom Tromey <tromey@adacore.com>
5525
5526 PR win32/25302:
5527 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5528 (gdb_bfd_init_data): New function.
5529 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5530
5531 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5532
5533 * infrun.c (fetch_inferior_event): Use
5534 `switch_to_target_no_thread` to switch the target.
5535
5536 2020-09-06 Tom Tromey <tom@tromey.com>
5537
5538 * symfile.h (dwarf2_free_objfile): Don't declare.
5539
5540 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5541
5542 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5543 to match 16 byte real/complex type generated by Flang compiler.
5544
5545 2020-09-03 Tom de Vries <tdevries@suse.de>
5546
5547 PR breakpoint/26546
5548 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5549 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5550
5551 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5552
5553 * maint.c (index_digits): New function.
5554 (struct maint_print_section_data): Remove.
5555 (print_bfd_section_info): Remove print_data parameter, add arg
5556 and index_digits.
5557 (print_objfile_section_info): Likewise.
5558 (print_bfd_section_info_maybe_relocated): Likewise (plus
5559 objfile).
5560 (maintenance_info_sections): Adjust calls.
5561
5562 2020-09-02 Tom Tromey <tromey@adacore.com>
5563
5564 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5565 for null pointers.
5566 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5567
5568 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5569
5570 * bcache.h (struct bcache) <insert>: Change type of `added` to
5571 pointer to bool.
5572 * bcache.c (bcache::insert): Likewise.
5573 * gdbtypes.c (check_types_worklist): Adjust.
5574 * psymtab.c (add_psymbol_to_bcache): Adjust.
5575
5576 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5577
5578 * corelow.c (unordered_set): Include.
5579 (class core_target): Add field 'm_core_unavailable_mappings'.
5580 (core_target::build_file_mappings): Print only one warning
5581 per inaccessible file. Add unavailable/broken mappings
5582 to m_core_unavailable_mappings.
5583 (core_target::xfer_partial): Call...
5584 (core_target::xfer_memory_via_mappings): New method.
5585
5586 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5587
5588 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5589 type to bool.
5590
5591 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5592
5593 * dwarf2/read.c (struct field_info): Fix indentation.
5594
5595 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5596
5597 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5598 ordering in comment.
5599 * frame.c (frame_id_eq): Fix indentation.
5600
5601 2020-08-31 Scott Linder <scott@scottlinder.com>
5602 Simon Marchi <simon.marchi@efficios.com>
5603
5604 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5605 inline frame ids in outer frame.
5606
5607 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5608
5609 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5610 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5611 (outer_frame_id): Use FID_STACK_OUTER instead of
5612 FID_STACK_INVALID.
5613 (frame_id_p): Don't check for outer_frame_id.
5614
5615 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5616
5617 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5618 regnum/frame in value. Call allocate_value_lazy.
5619 * frame.c (frame_unwind_register_value): Use
5620 val_print_not_saved.
5621
5622 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5623
5624 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5625
5626 2020-08-29 Pedro Alves <pedro@palves.net>
5627
5628 * progspace.c (print_program_space): Use all_inferiors. Switch to
5629 the inferior before calling target_pid_to_str.
5630
5631 2020-08-28 Tom Tromey <tom@tromey.com>
5632
5633 * xcoffread.c (xcoff_end_psymtab): Update comment.
5634 * dbxread.c (dbx_end_psymtab): Update comment.
5635
5636 2020-08-28 Tom de Vries <tdevries@suse.de>
5637
5638 PR breakpoint/26544
5639 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5640 event_location.
5641 (create_breakpoint): Same.
5642 (base_breakpoint_decode_location): Same.
5643 (bkpt_create_sals_from_location): Same.
5644 (bkpt_decode_location): Same.
5645 (bkpt_probe_create_sals_from_location): Same.
5646 (bkpt_probe_decode_location): Same.
5647 (tracepoint_create_sals_from_location): Same.
5648 (tracepoint_decode_location): Same.
5649 (tracepoint_probe_decode_location): Same.
5650 (strace_marker_create_sals_from_location): Same.
5651 (strace_marker_decode_location): Same.
5652 (create_sals_from_location_default): Same.
5653 (decode_location_default): Same.
5654 * breakpoint.h (struct breakpoint_ops): Same.
5655 (create_breakpoint): Same.
5656 * linespec.h (decode_line_full): Same.
5657 * linespec.c (decode_line_full): Same. Throw error if
5658 result.size () == 0.
5659
5660 2020-08-27 Pedro Alves <pedro@palves.net>
5661
5662 PR gdb/26524
5663 * breakpoint.c (until_break_fsm) <location_breakpoint,
5664 caller_breakpoint>: Delete fields.
5665 <breakpoints>: New field.
5666 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5667 two individual breakpoints.
5668 (until_break_fsm::should_stop): Loop over breakpoints in the
5669 breakpoint vector.
5670 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5671 vector.
5672 (until_break_command): Handle location expanding into multiple
5673 sals.
5674
5675 2020-08-27 Pedro Alves <pedro@palves.net>
5676
5677 PR gdb/26523
5678 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5679 bp_until breakpoints user-specified locations. Update intro
5680 comment.
5681
5682 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5683
5684 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5685 gdb_bfd_sections): New.
5686 * maint.c (print_bfd_section_info): Change param type to
5687 maint_print_section_data.
5688 (print_objfile_section_info): Likewise.
5689 (print_bfd_section_info_maybe_relocated): Likewise.
5690 (maintenance_info_sections): Use gdb_bfd_sections.
5691
5692 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5693
5694 * MAINTAINERS: Add ARC target and maintainer.
5695
5696 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5697
5698 * configure.tgt: ARC support for GNU/Linux.
5699 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5700 * arc-linux-tdep.c: New file.
5701 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5702 * arc-tdep.c (arc_write_pc): Use it.
5703
5704 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5705
5706 * arc-tdep.c (arc_check_for_hardware_loop): New.
5707 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5708
5709 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5710
5711 * arc-tdep.h: Include "gdbarch.h".
5712
5713 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5714
5715 * arch/arc.h
5716 (arc_gdbarch_features): New class to stir the selection of target XML.
5717 (arc_create_target_description): Use FEATURES to choose XML target.
5718 (arc_lookup_target_description): Use arc_create_target_description
5719 to create _new_ target descriptions or return the already created
5720 ones if the FEATURES is the same.
5721 * arch/arc.c: Implementation of prototypes described above.
5722 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5723 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5724 * arc-tdep.c (*_feature_name): Make feature names consistent.
5725 (arc_register_feature): A new struct to hold information about
5726 registers of a particular target/feature.
5727 (arc_check_tdesc_feature): Check if XML provides registers in
5728 compliance with ARC_REGISTER_FEATURE structs.
5729 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5730 (determine_*_reg_feature_set): Which feature name to look for.
5731 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5732 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5733 to expected ISA enums to be used in arc_gdbarch_features structs.
5734 * features/Makefile (FEATURE_XMLFILES): Add new files.
5735 * gdb/features/arc/v1-aux.c: New file.
5736 * gdb/features/arc/v1-aux.xml: Likewise.
5737 * gdb/features/arc/v1-core.c: Likewise.
5738 * gdb/features/arc/v1-core.xml: Likewise.
5739 * gdb/features/arc/v2-aux.c: Likewise.
5740 * gdb/features/arc/v2-aux.xml: Likewise.
5741 * gdb/features/arc/v2-core.c: Likewise.
5742 * gdb/features/arc/v2-core.xml: Likewise.
5743 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5744
5745 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5746 Andrew Burgess <andrew.burgess@embecosm.com>
5747
5748 PR m2/26372
5749 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5750 an assert. Remove single element array indexing pattern as the
5751 MULTI_SUBSCRIPT support will handle this case too.
5752
5753 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5754
5755 * value.h (valprint_check_validity): Move declaration from
5756 here...
5757 * valprint.h (valprint_check_validity): ... to here.
5758
5759 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5760
5761 * debug.h: New file.
5762 * debug.c (debug_prefixed_vprintf): New function.
5763 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5764 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5765
5766 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5767
5768 * infrun.h (infrun_debug_printf_1): New function declaration.
5769 (infrun_debug_printf): New macro.
5770 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5771 throughout.
5772 (infrun_debug_printf): New function.
5773 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5774 (handle_jit_event): Likewise.
5775
5776 2020-08-21 Mark Wielaard <mark@klomp.org>
5777
5778 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5779
5780 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5781
5782 * frame.c (enum class frame_id_status): New.
5783 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5784 (fprintf_frame): Update.
5785 (compute_frame_id): Set frame id status to "computing" on entry.
5786 Set it back to "not_computed" on failure and to "computed" on
5787 success.
5788 (get_frame_id): Assert the frame id is not being computed.
5789 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5790 (create_new_frame): Likewise.
5791 (frame_cleanup_after_sniffer): Update assert.
5792
5793 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5794
5795 * regcache.c (pid_ptid_regcache_map): New type.
5796 (target_ptid_regcache_map): Remove.
5797 (target_pid_ptid_regcache_map): New type.
5798 (regcaches): Change type to target_pid_ptid_regcache_map.
5799 (get_thread_arch_aspace_regcache): Update.
5800 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5801 case.
5802 (regcaches_size): Update.
5803 (regcache_count): Update.
5804 (registers_changed_ptid_target_pid_test): New.
5805 (_initialize_regcache): Register new test.
5806
5807 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5808
5809 * regcache.c (regcache_count): New.
5810 (struct regcache_test_data): New.
5811 (regcache_test_data_up): New.
5812 (populate_regcaches_for_test): New.
5813 (regcaches_test): Remove.
5814 (get_thread_arch_aspace_regcache_test): New.
5815 (registers_changed_ptid_all_test): New.
5816 (registers_changed_ptid_target_test): New.
5817 (registers_changed_ptid_target_ptid_test): New.
5818 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5819 (_initialize_regcache): Register new tests.
5820
5821 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5822
5823 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5824 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5825 gdbarch and aspace parameter. Use current inferior's aspace.
5826 Validate regcache's arch value.
5827 (regcaches_test): Update.
5828
5829 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5830
5831 * regcache.c (regcaches_test): Call registers_changed.
5832
5833 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5834
5835 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5836
5837 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5838
5839 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5840 to find the end of prologue for flang compiled binaries.
5841 * arm-tdep.c (arm_skip_prologue): Likewise.
5842 * i386-tdep.c (i386_skip_prologue): Likewise.
5843 * producer.c (producer_is_llvm): New function.
5844 (producer_parsing_tests): Added new tests for clang/flang.
5845 * producer.h (producer_is_llvm): New declaration.
5846
5847 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5848
5849 * linux-nat.c (linux_nat_debug_printf): New function.
5850 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5851
5852 2020-08-18 Aaron Merey <amerey@redhat.com>
5853
5854 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5855 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5856 (CLIBS): Add DEBUGINFOD_LIBS.
5857
5858 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5859
5860 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5861 'gdbarch_num_regs'.
5862
5863 2020-08-17 Tom Tromey <tromey@adacore.com>
5864
5865 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5866 ada_get_decoded_value returns NULL.
5867
5868 2020-08-17 Tom Tromey <tromey@adacore.com>
5869
5870 * python/py-inferior.c (infpy_search_memory): Use
5871 gdb_py_object_from_ulongest.
5872 * python/py-infevents.c (create_inferior_call_event_object)
5873 (create_memory_changed_event_object): Use
5874 gdb_py_object_from_ulongest.
5875 * python/py-linetable.c (ltpy_entry_get_pc): Use
5876 gdb_py_object_from_ulongest.
5877
5878 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5879
5880 * loc.c (class symbol_needs_eval_context): Fix indentation.
5881
5882 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5883
5884 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5885 bool.
5886
5887 2020-08-17 Tom de Vries <tdevries@suse.de>
5888
5889 PR gdb/26393
5890 * gdbtypes.c (dump_dynamic_prop): New function.
5891 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5892
5893 2020-08-15 Tom de Vries <tdevries@suse.de>
5894
5895 PR backtrace/26390
5896 * stack.c (print_frame_args): Temporarily set the selected
5897 frame to FRAME while printing the frame's arguments.
5898
5899 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5900
5901 PR breakpoints/26385
5902 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5903 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5904
5905 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5906
5907 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5908 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5909 and >= to check return value instead of == -1 and != -1.
5910
5911 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 * utils.h (class gdb_argv) <as_array_view>: New method.
5914 * utils.c (gdb_argv_as_array_view_test): New.
5915 (_initialize_utils): Register selftest.
5916 * maint.c (maintenance_selftest): Use the new method.
5917
5918 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5919
5920 * target.h (supports_dumpcore, dumpcore): New
5921 function declarations.
5922 * target.c (supports_dumpcore, dumpcore): New
5923 functions.
5924 * target-delegates.c: Rebuild.
5925 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5926 and target_dumpcore ().
5927
5928 2020-08-13 Aaron Merey <amerey@redhat.com>
5929
5930 * debuginfod-support.c: Replace global variables with user_data.
5931
5932 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5933
5934 * maint.c (maintenance_selftest): Split args and pass array_view
5935 to run_tests.
5936
5937 2020-08-12 Luis Machado <luis.machado@linaro.org>
5938
5939 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5940 type's length.
5941 Use %s and pulongest to print the length.
5942
5943 2020-08-12 Pedro Alves <palves@redhat.com>
5944
5945 * NEWS: Move "Multi-target debugging support" item to the
5946 "Changes since GDB 9" section.
5947
5948 2020-08-12 Pedro Alves <palves@redhat.com>
5949
5950 PR gdb/26336
5951 * progspace.c (program_space::remove_objfile): Invalidate the
5952 frame cache.
5953
5954 2020-08-11 Tom de Vries <tdevries@suse.de>
5955
5956 * MAINTAINERS: Mark ms1 as deleted.
5957
5958 2020-08-10 Luis Machado <luis.machado@linaro.org>
5959
5960 PR gdb/26310
5961
5962 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5963 act accordingly.
5964 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5965 movz/str/stur/stp skipping behavior.
5966
5967 2020-08-10 Luis Machado <luis.machado@linaro.org>
5968
5969 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5970 struct user_sve_header instead of struct sve_context.
5971
5972 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * read.h (dwarf2_fetch_die_loc_sect_off,
5975 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5976 `void *` parameter with function_view.
5977 * read.c (dwarf2_fetch_die_loc_sect_off,
5978 dwarf2_fetch_die_loc_cu_off): Likewise.
5979 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5980 (per_cu_dwarf_call): Adjust.
5981 (get_frame_address_in_block_wrapper): Remove.
5982 (indirect_synthetic_pointer): Adjust.
5983 (get_ax_pc): Remove.
5984 (dwarf2_compile_expr_to_ax): Adjust.
5985
5986 2020-08-08 Tom de Vries <tdevries@suse.de>
5987
5988 PR build/26344
5989 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5990 constructor.
5991 * regcache.c (get_thread_arch_aspace_regcache): Same.
5992
5993 2020-08-07 Tom Tromey <tromey@adacore.com>
5994
5995 * ravenscar-thread.c
5996 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5997 New method.
5998 (ravenscar_thread_target::wait): Check
5999 runtime_initialized.
6000 (ravenscar_thread_target::prepare_to_store)
6001 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6002 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6003 (ravenscar_thread_target::stopped_by_watchpoint)
6004 (ravenscar_thread_target::stopped_data_address)
6005 (ravenscar_thread_target::core_of_thread): Use
6006 scoped_restore_current_thread and
6007 set_base_thread_from_ravenscar_task.
6008
6009 2020-08-07 Tom Tromey <tromey@adacore.com>
6010
6011 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6012
6013 2020-08-07 Tom Tromey <tromey@adacore.com>
6014
6015 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6016 update_inferior_ptid before update_thread_list.
6017 (temporarily_change_regcache_ptid): New class.
6018 (ravenscar_thread_target::fetch_registers)
6019 (ravenscar_thread_target::store_registers)
6020 (ravenscar_thread_target::prepare_to_store): Use base thread when
6021 forwarding operation.
6022
6023 2020-08-07 Tom Tromey <tromey@adacore.com>
6024
6025 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6026 "is_pid" case.
6027
6028 2020-08-07 Tom Tromey <tromey@adacore.com>
6029
6030 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6031 New methods.
6032 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6033 first.
6034 (ravenscar_thread_target::add_thread): Rename from
6035 ravenscar_add_thread.
6036 (ravenscar_thread_target::update_thread_list): Use a lambda.
6037 (ravenscar_thread_target::xfer_partial): New method.
6038
6039 2020-08-07 Tom Tromey <tromey@adacore.com>
6040
6041 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6042 gdb::function_view.
6043 (iterate_over_live_ada_tasks): Change type of argument.
6044 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6045 of argument.
6046
6047 2020-08-07 Tom Tromey <tromey@adacore.com>
6048
6049 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6050 Remove.
6051 (ravenscar_thread_target::extra_thread_info): Remove.
6052 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6053 defer to target beneath for non-Ravenscar threads.
6054
6055 2020-08-07 Tom Tromey <tromey@adacore.com>
6056
6057 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6058 get_base_thread_from_ravenscar_task>: Now methods.
6059 <m_cpu_map>: New member.
6060 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6061 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6062 (ravenscar_thread_target::task_is_currently_active): Update.
6063 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6064 Now a method.
6065 (ravenscar_thread_target::add_active_thread): Put initial thread
6066 into the m_cpu_map.
6067
6068 2020-08-07 Tom Tromey <tromey@adacore.com>
6069
6070 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6071 event_ptid.
6072
6073 2020-08-07 Tom Tromey <tromey@adacore.com>
6074
6075 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6076 runtime_initialized.
6077
6078 2020-08-07 Tom Tromey <tromey@adacore.com>
6079
6080 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6081 add_active_thread.
6082 (ravenscar_thread_target::add_active_thread): Now public.
6083 (ravenscar_inferior_created): Call add_active_thread after pushing
6084 the target.
6085
6086 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6087
6088 * regcache.c (ptid_regcache_map): New type.
6089 (target_ptid_regcache_map): New type.
6090 (regcaches): Change type to target_ptid_regcache_map.
6091 (get_thread_arch_aspace_regcache): Update to regcaches' new
6092 type.
6093 (regcache_thread_ptid_changed): Likewise.
6094 (registers_changed_ptid): Likewise.
6095 (regcaches_size): Likewise.
6096 (regcaches_test): Update.
6097 (regcache_thread_ptid_changed): Update.
6098 * regcache.h (regcache_up): New type.
6099 * gdbsupport/ptid.h (hash_ptid): New struct.
6100
6101 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6102
6103 * observable.h (thread_ptid_changed): Add parameter
6104 `process_stratum_target *`.
6105 * infrun.c (infrun_thread_ptid_changed): Add parameter
6106 `process_stratum_target *` and use it.
6107 (selftests): New namespace.
6108 (infrun_thread_ptid_changed): New function.
6109 (_initialize_infrun): Register selftest.
6110 * regcache.c (regcache_thread_ptid_changed): Add parameter
6111 `process_stratum_target *` and use it.
6112 (regcache_thread_ptid_changed): New function.
6113 (_initialize_regcache): Register selftest.
6114 * thread.c (thread_change_ptid): Pass target to
6115 thread_ptid_changed observable.
6116
6117 2020-08-06 Caroline Tice <cmtice@google.com>
6118
6119 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6120 (struct dwp_sections): Update field comments. Add loclists and
6121 rnglists fields.
6122 (struct virtual_v2_dwo_sections): Rename struct to
6123 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6124 size & offset fields for loclists and rnglists.
6125 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6126 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6127 skipping dummy type units.
6128 (create_dwp_hash_table): Update the large comment above the function to
6129 discuss Version 5 DWP files as well, with references. Update all the
6130 version checks in the function to check for version 5 as well. Add new
6131 section at the end to create dwp hash table for version 5.
6132 (create_dwp_v2_section): Rename function to
6133 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6134 Add V5 to error message text.
6135 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6136 into calls to create_dwp_v2_or_v5_section.
6137 (create_dwo_unit_in_dwp_v5): New function.
6138 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6139 check for version2; add else clause to handle version 5.
6140 (open_and_init_dwo_file): Add code to check dwarf version & only call
6141 create_debug_types_hash_table (with sections.types) if version is not 5;
6142 else call create_debug_type_hash_table, with sections.info.
6143 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6144 version 5.
6145 (dwarf2_locate_v5_dwp_sections): New function.
6146 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6147 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6148
6149 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6150
6151 * regcache.h (class regcache): Remove friend
6152 registers_changed_ptid.
6153 <regcache_thread_ptid_changed>: Remove.
6154 <regcaches>: Remove.
6155 * regcache.c (regcache::regcaches): Rename to...
6156 (regcaches): ... this. Make static.
6157 (get_thread_arch_aspace_regcache): Update.
6158 (regcache::regcache_thread_ptid_changed): Rename to...
6159 (regcache_thread_ptid_changed): ... this. Update.
6160 (class regcache_access): Remove.
6161 (regcaches_test): Update.
6162 (_initialize_regcache): Update.
6163 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6164 <forward_list>.
6165
6166 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6167
6168 * regcache.h (class regcache) <current_regcache>: Rename to...
6169 <regcaches>: ... this. Move doc here.
6170 * regcache.c (regcache::current_regcache) Rename to...
6171 (regcache::regcaches): ... this. Move doc to header.
6172 (get_thread_arch_aspace_regcache): Update.
6173 (regcache::regcache_thread_ptid_changed): Update.
6174 (registers_changed_ptid): Update.
6175 (class regcache_access) <current_regcache_size>: Rename to...
6176 <regcaches_size>: ... this.
6177 (current_regcache_test): Rename to...
6178 (regcaches_test): ... this.
6179 (_initialize_regcache): Update.
6180
6181 2020-08-06 Victor Collod <vcollod@nvidia.com>
6182
6183 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6184
6185 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6186
6187 * corelow.c (core_target::build_file_mappings): Don't output
6188 null pathname in warning.
6189
6190 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6191
6192 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6193 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6194 gdb.dwarf2/dw2-single-line-discriminators.exp,
6195 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6196
6197 2020-08-05 Tom Tromey <tromey@adacore.com>
6198
6199 PR rust/26197:
6200 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6201 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6202 Fix off-by-one and type size errors in ordinary case.
6203
6204 2020-08-05 Tom de Vries <tdevries@suse.de>
6205
6206 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6207 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6208
6209 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6210
6211 * frame.h (frame_id_p): Return bool.
6212 (frame_id_artificial_p): Return bool.
6213 (frame_id_eq): Return bool.
6214 (has_stack_frames): Return bool.
6215 (get_selected_frame): Fix typo in comment.
6216 (get_frame_pc_if_available): Return bool.
6217 (get_frame_address_in_block_if_available): Return bool.
6218 (get_frame_func_if_available): Return bool.
6219 (read_frame_register_unsigned): Return bool.
6220 (get_frame_register_bytes): Return bool.
6221 (safe_frame_unwind_memory): Return bool.
6222 (deprecated_frame_register_read): Return bool.
6223 (frame_unwinder_is): Return bool.
6224 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6225 bool.
6226 <this_id::p>: Likewise.
6227 <prev_p>: Likewise.
6228 (frame_stash_add): Return bool.
6229 (get_frame_id): Use bool.
6230 (frame_id_build_special) Use bool.
6231 (frame_id_build_unavailable_stack): Use bool.
6232 (frame_id_build): Use bool.
6233 (frame_id_p): Return bool, use true/false instead of 1/0.
6234 (frame_id_artificial_p): Likewise.
6235 (frame_id_eq): Likewise.
6236 (frame_id_inner): Likewise.
6237 (get_frame_func_if_available): Likewise.
6238 (read_frame_register_unsigned): Likewise.
6239 (deprecated_frame_register_read): Likewise.
6240 (get_frame_register_bytes): Likewise.
6241 (has_stack_frames): Likewise.
6242 (inside_main_func): Likewise.
6243 (inside_entry_func): Likewise.
6244 (get_frame_pc_if_available): Likewise.
6245 (get_frame_address_in_block_if_available): Likewise.
6246 (frame_unwinder_is): Likewise.
6247 (safe_frame_unwind_memory): Likewise.
6248 (frame_unwind_arch): Likewise.
6249
6250 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6251
6252 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6253 type to cached_copy_status.
6254 (fprintf_frame): Adjust.
6255 (get_frame_func_if_available): Adjust.
6256 (frame_cleanup_after_sniffer): Adjust.
6257
6258 2020-08-04 Mark Wielaard <mark@klomp.org>
6259
6260 * MAINTAINERS (Write After Approval): Update email address.
6261
6262 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6263
6264 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6265 dynamic_prop::const_val.
6266
6267 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6268
6269 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6270 dynamic_prop::kind.
6271
6272 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6273
6274 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6275
6276 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6277
6278 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6279
6280 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6281 Jose E. Marchesi <jose.marchesi@oracle.com>
6282
6283 * configure.tgt: Add entry for bpf-*-*.
6284 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6285 (ALLDEPFILES): Add bpf-tdep.c.
6286 * bpf-tdep.c: New file.
6287 * MAINTAINERS: Add bpf target and maintainer.
6288 * NEWS: Mention the support for the new target.
6289
6290 2020-08-04 Tom de Vries <tdevries@suse.de>
6291
6292 PR symtab/23270
6293 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6294 Error.
6295
6296 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6297
6298 * syscalls/freebsd.xml: Regenerate.
6299
6300 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6301
6302 * syscalls/update-freebsd.sh: Fix usage and year range.
6303
6304 2020-08-03 Tom de Vries <tdevries@suse.de>
6305
6306 PR symtab/26333
6307 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6308 DW_LNE_lo_user/DW_LNE_hi_user range.
6309
6310 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6311
6312 PR ada/26318
6313 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6314 kind.
6315
6316 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6317
6318 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6319
6320 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6321
6322 * breakpoint.c (set_breakpoint_condition): Update the condition
6323 expressions after checking that the input condition string parses
6324 successfully and does not contain junk at the end.
6325
6326 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6327
6328 * breakpoint.c (set_breakpoint_condition): Update the
6329 condition string after parsing the new condition successfully.
6330
6331 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6332
6333 * proc-api.c (_STRUCTURED_PROC): Don't define.
6334 * proc-events.c: Likewise.
6335 * proc-flags.c: Likewise.
6336 * proc-why.c: Likewise.
6337 * procfs.c: Likewise.
6338
6339 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6340 * configure, config.in: Regenerate.
6341
6342 2020-07-30 Tom de Vries <tdevries@suse.de>
6343
6344 PR build/26320
6345 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6346 m_red/m_green/m_blue in a union.
6347
6348 2020-07-29 Tom de Vries <tdevries@suse.de>
6349
6350 PR tdep/26280
6351 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6352
6353 2020-07-28 Tom Tromey <tromey@adacore.com>
6354
6355 PR symtab/26270:
6356 * symtab.h (find_pc_partial_function_sym): Declare.
6357 * cli/cli-cmds.c (disassemble_command): Use
6358 find_pc_partial_function_sym. Check asm_demangle.
6359 * blockframe.c (cache_pc_function_sym): New global.
6360 (cache_pc_function_name): Remove.
6361 (clear_pc_function_cache): Update.
6362 (find_pc_partial_function_sym): New function, from
6363 find_pc_partial_function.
6364 (find_pc_partial_function): Rewrite using
6365 find_pc_partial_function_sym.
6366
6367 2020-07-28 Tom Tromey <tromey@adacore.com>
6368
6369 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6370 help. Add usage.
6371
6372 2020-07-28 Tom Tromey <tromey@adacore.com>
6373
6374 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6375 <DW_OP_GNU_variable_value>: Cast to address type.
6376
6377 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6378
6379 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6380 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6381 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6382 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6383 (nbsd_get_siginfo_type): New.
6384 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6385 (_initialize_nbsd_tdep): New.
6386
6387 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6388
6389 PR binutils/26301
6390 * configure: Regenerated.
6391
6392 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6393
6394 PR binutils/26301
6395 * configure: Regenerated.
6396
6397 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6398
6399 * python/py-frame.c: Remove 'user-regs.h' include.
6400 (frapy_read_register): Rewrite to make use of
6401 gdbpy_parse_register_id.
6402 * python/py-registers.c (gdbpy_parse_register_id): New function,
6403 moved here from python/py-unwind.c. Updated the return type, and
6404 also accepts register descriptor objects.
6405 * python/py-unwind.c: Remove 'user-regs.h' include.
6406 (pyuw_parse_register_id): Moved to python/py-registers.c.
6407 (unwind_infopy_add_saved_register): Update to use
6408 gdbpy_parse_register_id.
6409 (pending_framepy_read_register): Likewise.
6410 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6411
6412 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6413
6414 * python/py-registers.c: Add 'user-regs.h' include.
6415 (register_descriptor_iter_find): New function.
6416 (register_descriptor_iterator_object_methods): New static global
6417 methods array.
6418 (register_descriptor_iterator_object_type): Add pointer to methods
6419 array.
6420
6421 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6422
6423 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6424 for all architectures on FreeBSD 11.3 and later.
6425
6426 2020-07-27 Tom Tromey <tromey@adacore.com>
6427
6428 * gcore.h (load_corefile): Don't declare.
6429
6430 2020-07-27 Tom de Vries <tdevries@suse.de>
6431
6432 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6433 * config.in: Regenerate.
6434 * configure: Regenerate.
6435
6436 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6437
6438 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6439 ws2tcpip.h. When checking whether socklen_t type is defined, use
6440 ws2tcpip.h if it is available and sys/socket.h isn't.
6441 * configure: Regenerate.
6442 * config.in: Regenerate.
6443
6444 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6445
6446 PR fortran/23051
6447 PR fortran/26139
6448 * valops.c (value_ind): Pass address to
6449 readjust_indirect_value_type.
6450 * value.c (readjust_indirect_value_type): Make parameter
6451 non-const, and add extra address parameter. Resolve original type
6452 before using it.
6453 * value.h (readjust_indirect_value_type): Update function
6454 signature and comment.
6455
6456 2020-07-25 Tom de Vries <tdevries@suse.de>
6457
6458 PR symtab/26243
6459 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6460 entries.
6461
6462 2020-07-24 Aaron Merey <amerey@redhat.com>
6463
6464 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6465 * configure: Rebuild.
6466
6467 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6468
6469 PR corefiles/26294
6470 * corelow.c (_initialize_corelow): Add period to help text
6471 for "maintenance print core-file-backed-mappings".
6472
6473 2020-07-23 Pedro Alves <pedro@palves.net>
6474
6475 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6476 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6477 meanwhile.
6478 * frame.c (frame_cache_generation, get_frame_cache_generation):
6479 New.
6480 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6481 (get_prev_frame_if_no_cycle): On exception, don't touch
6482 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6483 * frame.h (get_frame_cache_generation): Declare.
6484
6485 2020-07-23 Tom de Vries <tdevries@suse.de>
6486
6487 PR tui/26282
6488 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6489 New default constructor.
6490
6491 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6492
6493 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6494 exclude non-statement entries.
6495
6496 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6497
6498 * NEWS (New commands): Mention new command
6499 "maintenance print core-file-backed-mappings".
6500
6501 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6502
6503 * corelow.c (gdbcmd.h): Include.
6504 (core_target::info_proc_mappings): New method.
6505 (get_current_core_target): New function.
6506 (maintenance_print_core_file_backed_mappings): New function.
6507 (_initialize_corelow): Add core-file-backed-mappings to
6508 "maint print" commands.
6509
6510 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6511
6512 * linux-tdep.c (dump_note_entry_p): New function.
6513 (linux_dump_mapping_p_ftype): New typedef.
6514 (linux_find_memory_regions_full): Add new parameter,
6515 should_dump_mapping_p.
6516 (linux_find_memory_regions): Adjust call to
6517 linux_find_memory_regions_full.
6518 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6519 call to linux_find_memory_regions_full.
6520
6521 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6522
6523 * corelow.c (solist.h, unordered_map): Include.
6524 (class core_target): Add field m_core_file_mappings and
6525 method build_file_mappings.
6526 (core_target::core_target): Call build_file_mappings.
6527 (core_target::~core_target): Free memory associated with
6528 m_core_file_mappings.
6529 (core_target::build_file_mappings): New method.
6530 (core_target::xfer_partial): Use m_core_file_mappings
6531 for memory transfers.
6532 * linux-tdep.c (linux_read_core_file_mappings): New
6533 function.
6534 (linux_core_info_proc_mappings): Rewrite to use
6535 linux_read_core_file_mappings.
6536 (linux_init_abi): Register linux_read_core_file_mappings.
6537
6538 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6539
6540 * arch-utils.c (default_read_core_file_mappings): New function.
6541 * arch-utils.c (default_read_core_file_mappings): Declare.
6542 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6543 * gdbarch.h, gdbarch.c: Regenerate.
6544
6545 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6546
6547 PR corefiles/25631
6548 * corelow.c (core_target:xfer_partial): Revise
6549 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6550 case after first checking the stratum beneath the core
6551 target.
6552 (has_all_memory): Return true.
6553 * target.c (raw_memory_xfer_partial): Revise comment
6554 regarding use of has_all_memory.
6555
6556 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6557
6558 * exec.h (section_table_xfer_memory): Revise declaration,
6559 replacing section name parameter with an optional callback
6560 predicate.
6561 * exec.c (section_table_xfer_memory): Likewise.
6562 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6563 of section_table_xfer_memory.
6564
6565 2020-07-22 Tom Tromey <tromey@adacore.com>
6566
6567 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6568 lookup_symbol_search_name.
6569
6570 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6571
6572 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6573 redundant local variable.
6574 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6575 reference, not pointer, update code accordingly.
6576
6577 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6578 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6579
6580 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6581 * jit.c (jit_breakpoint_re_set_internal): Use the
6582 `skip_jit_symbol_lookup` field.
6583
6584 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6585 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6586
6587 * jit.c (jit_read_descriptor): Define the descriptor address once,
6588 use twice.
6589 (jit_breakpoint_deleted): Move the declaration of the loop variable
6590 `iter` into the loop header.
6591 (jit_breakpoint_re_set_internal): Move the declaration of the local
6592 variable `objf_data` to the first point of definition.
6593 (jit_event_handler): Move the declaration of local variables
6594 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6595 Rename `objf` to `jited`.
6596
6597 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6598
6599 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6600 Remove.
6601 * jit.c (get_jiter_objfile_data): Update.
6602
6603 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6604 Simon Marchi <simon.marchi@polymtl.ca>
6605
6606 * jit.c (struct jit_program_space_data): Remove.
6607 (jit_program_space_key): Remove.
6608 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6609 stuff.
6610 (get_jit_program_space_data): Remove.
6611 (jit_breakpoint_deleted): Iterate on all of the program space's
6612 objfiles.
6613 (jit_inferior_init): Likewise.
6614 (jit_breakpoint_re_set_internal): Likewise. Also change return
6615 type to void.
6616 (jit_breakpoint_re_set): Pass current_program_space to
6617 jit_breakpoint_re_set_internal.
6618
6619 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6620
6621 * jit.h (struct jiter_objfile_data) <cached_code_address,
6622 jit_breakpoint>: Move to here from ...
6623 * jit.c (jit_program_space_data): ... here.
6624 (jiter_objfile_data::~jiter_objfile_data): Update.
6625 (jit_breakpoint_deleted): Update.
6626 (jit_breakpoint_re_set_internal): Update.
6627
6628 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6629
6630 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6631 checks.
6632 (jit_read_descriptor): Remove NULL check.
6633 (jit_event_handler): Add an assertion.
6634
6635 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6636
6637 * jit.h (struct jit_objfile_data): Split into...
6638 (struct jiter_objfile_data): ... this ...
6639 (struct jited_objfile_data): ... and this.
6640 * objfiles.h (struct objfile) <jit_data>: Remove.
6641 <jiter_data, jited_data>: New fields.
6642 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6643 (jiter_objfile_data::~jiter_objfile_data): ... this.
6644 (get_jit_objfile_data): Rename to ...
6645 (get_jiter_objfile_data): ... this.
6646 (add_objfile_entry): Update.
6647 (jit_read_descriptor): Use get_jiter_objfile_data.
6648 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6649 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6650 (jit_inferior_exit_hook): Use objfile's jited_data field.
6651
6652 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6653
6654 * jit.h: Forward-declare `struct minimal_symbol`.
6655 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6656 constructor, destructor, and an objfile* field.
6657 * jit.c (jit_objfile_data): Remove.
6658 (struct jit_objfile_data): Migrate from here to jit.h.
6659 (jit_objfile_data::~jit_objfile_data): New destructor
6660 implementation with code moved from free_objfile_data.
6661 (free_objfile_data): Delete.
6662 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6663 (jit_find_objf_with_entry_addr): Ditto.
6664 (jit_inferior_exit_hook): Ditto.
6665 (_initialize_jit): Remove the call to
6666 register_objfile_data_with_cleanup.
6667 * objfiles.h (struct objfile) <jit_data>: New field.
6668
6669 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6670
6671 * jit.h: Forward-declare `struct objfile`.
6672 (jit_event_handler): Add a second parameter, the JITer objfile.
6673 * jit.c (jit_read_descriptor): Change the signature to take the
6674 JITer objfile as an argument instead of the jit_program_space_data.
6675 (jit_inferior_init): Update the call to jit_read_descriptor.
6676 (jit_event_handler): Use the new JITer objfile argument when calling
6677 jit_read_descriptor.
6678 * breakpoint.c (handle_jit_event): Update the call to
6679 jit_event_handler to pass the JITer objfile.
6680
6681 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6682
6683 * gdbarch.c: Regenerate.
6684 * gdbarch.h: Regenerate.
6685 * gdbarch.sh (handle_segmentation_fault): Remove method.
6686 * infrun.c (handle_segmentation_fault): Remove.
6687 (print_signal_received_reason): Remove call to
6688 handle_segmentation_fault.
6689
6690 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6691
6692 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6693 Rename to sparc64_linux_report_signal_info and add siggnal
6694 argument.
6695 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6696 instead of sparc64_linux_handle_segmentation_fault.
6697
6698 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6699
6700 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6701 i386_linux_report_signal_info instead of
6702 i386_linux_handle_segmentation_fault.
6703 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6704 to i386_linux_report_signal_info and add siggnal argument.
6705 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6706 of i386_linux_handle_segmentation_fault.
6707 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6708 to i386_linux_report_signal_info and add siggnal argument.
6709
6710 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6711
6712 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6713 hook if present.
6714
6715 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6716
6717 * gdbarch.c: Regenerate.
6718 * gdbarch.h: Regenerate.
6719 * gdbarch.sh (report_signal_info): New method.
6720 * infrun.c (print_signal_received_reason): Invoke gdbarch
6721 report_signal_info hook if present.
6722
6723 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6724
6725 * python/py-registers.c : Add 'unordered_map' include.
6726 (gdbpy_new_reggroup): Renamed to...
6727 (gdbpy_get_reggroup): ...this. Update to only create register
6728 group descriptors when needed.
6729 (gdbpy_reggroup_iter_next): Update.
6730
6731 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6732
6733 * python/py-registers.c (gdbpy_register_object_data): New static
6734 global.
6735 (gdbpy_register_object_data_init): New function.
6736 (gdbpy_new_register_descriptor): Renamed to...
6737 (gdbpy_get_register_descriptor): ...this, and update to reuse
6738 existing register descriptors where possible.
6739 (gdbpy_register_descriptor_iter_next): Update.
6740 (gdbpy_initialize_registers): Register new gdbarch data.
6741
6742 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6743
6744 * linux-nat.c (stopped_pids): Make static.
6745
6746 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6747
6748 PR ada/26235
6749 * gdbtypes.c (ada_discrete_type_low_bound,
6750 ada_discrete_type_high_bound): Handle undefined bounds.
6751
6752 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6753
6754 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6755 declaration.
6756 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6757 function.
6758
6759 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6760
6761 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6762 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6763 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6764 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6765 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6766 method.
6767
6768 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6769
6770 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6771 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6772 which are deprecated in Guile 3.0.
6773 * configure.ac (try_guile_versions): Add "guile-3.0".
6774 * configure (try_guile_versions): Regenerate.
6775 * NEWS: Update entry.
6776
6777 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6778 Doug Evans <dje@google.com>
6779
6780 PR gdb/21104
6781 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6782 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6783 USING_GUILE_BEFORE_2_2.
6784 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6785 Change type to 'scm_t_port_type *'.
6786 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6787 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6788 parameter and honor it. Update callers.
6789 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6790 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6791 functions.
6792 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6793 USING_GUILE_BEFORE_2_2.
6794 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6795 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6796 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6797 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6798 and 'SCM_PORT_TYPE'.
6799 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6800 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6801 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6802 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6803 [!USING_GUILE_BEFORE_2_2]: New functions.
6804 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6805 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6806 'gdbscm_memory_port_read'.
6807 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6808 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6809 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6810 function.
6811 (ioscm_init_memory_port): Remove.
6812 (ioscm_init_memory_port_stream): New function
6813 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6814 function.
6815 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6816 Return scm_from_uint (0).
6817 (gdbscm_set_memory_port_read_buffer_size_x)
6818 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6819 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6820 Return scm_from_uint (0).
6821 (gdbscm_set_memory_port_write_buffer_size_x)
6822 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6823 * configure.ac (try_guile_versions): Add "guile-2.2".
6824 * configure: Regenerate.
6825 * NEWS: Add entry.
6826
6827 2020-07-18 Tom Tromey <tom@tromey.com>
6828
6829 * linux-nat.c (linux_multi_process): Remove.
6830 (linux_nat_target::supports_multi_process): Return true.
6831
6832 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6833
6834 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6835 (riscv_lookup_target_description): Return pointer out of
6836 unique_ptr.
6837 * target-descriptions.c (allocate_target_description): Add
6838 comment.
6839 (target_desc_deleter::operator()): Likewise.
6840 * target-descriptions.h (struct target_desc_deleter): Moved to
6841 gdbsupport/tdesc.h.
6842 (target_desc_up): Likewise.
6843
6844 2020-07-17 Tom Tromey <tromey@adacore.com>
6845
6846 * linux-nat.c (linux_nat_target::supports_non_stop)
6847 (linux_nat_target::always_non_stop_p): Use "true".
6848 (linux_nat_target::supports_disable_randomization): Use "true" and
6849 "false".
6850
6851 2020-07-16 Caroline Tice <cmtice@google.com>
6852
6853 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6854 (RNGLIST_HEADER_SIZE64): New constant definition.
6855 (struct dwop_section_names): Add rnglists_dwo.
6856 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6857 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6858 (struct dwo_sections): Add rnglists field.
6859 (read_attribut_reprocess): Add tag parameter.
6860 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6861 (cu_debug_rnglists_section): New function (decl & definition).
6862 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6863 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6864 die whose range is being checked; get rnglist section from
6865 cu_debug_rnglists_section, to get from either objfile or dwo file as
6866 appropriate. Add cases for DW_RLE_base_addressx,
6867 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6868 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6869 test inside if-condition and updating complaint message.
6870 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6871 dwarf2_rnglists_process.
6872 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6873 dwarf2_ranges_process.
6874 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6875 need_ranges_base and update comment appropriately. Also pass die tag
6876 to dwarf2_ranges_read.
6877 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6878 need_ranges_base and update comment appropriately. Also pass die tag
6879 to dwarf2_ranges_process.
6880 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6881 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6882 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6883 need_ranges_base and update comment appropriately. Also pass die tag
6884 to read_attribute_reprocess and dwarf2_ranges_read.
6885 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6886 and update function comment appropriately.
6887 (read_loclist_index): Call read_loclists_rnglists_header instead of
6888 read_loclist_header.
6889 (read_rnglist_index): New function.
6890 (read_attribute_reprocess): Add tag parameter. Add code for
6891 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6892 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6893
6894 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6895
6896 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6897 being resolved.
6898
6899 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6900
6901 * arch-utils.c (show_architecture): Update formatting of messages.
6902
6903 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6904
6905 * gdbtypes.h (struct type) <bounds>: Handle array and string
6906 types.
6907 * ada-lang.c (assign_aggregate): Use type::bounds on
6908 array/string type.
6909 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6910 * c-varobj.c (c_number_of_children): Likewise.
6911 (c_describe_child): Likewise.
6912 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6913 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6914 (f_type_print_base): Likewise.
6915 * f-valprint.c (f77_array_offset_tbl): Likewise.
6916 (f77_get_upperbound): Likewise.
6917 (f77_print_array_1): Likewise.
6918 * guile/scm-type.c (gdbscm_type_range): Likewise.
6919 * m2-typeprint.c (m2_array): Likewise.
6920 (m2_is_long_set_of_type): Likewise.
6921 * m2-valprint.c (get_long_set_bounds): Likewise.
6922 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6923 * python/py-type.c (typy_range): Likewise.
6924 * rust-lang.c (rust_internal_print_type): Likewise.
6925 * type-stack.c (type_stack::follow_types): Likewise.
6926 * valarith.c (value_subscripted_rvalue): Likewise.
6927 * valops.c (value_cast): Likewise.
6928
6929 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6930
6931 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6932 callers to use the equivalent accessor methods.
6933
6934 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6935
6936 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6937 (struct type) <bit_stride>: New method.
6938 (TYPE_BIT_STRIDE): Remove.
6939 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6940
6941 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6942
6943 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6944 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6945 callers to use the equivalent accessor methods instead.
6946
6947 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6948
6949 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6950 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6951 callers to use the equivalent accessor methods instead.
6952
6953 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6954
6955 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6956 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6957 to use dynamic_prop::kind.
6958
6959 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6962 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6963 to get the bound property's kind and check against
6964 PROP_UNDEFINED.
6965
6966 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6967
6968 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6969 all callers to use type::range_bounds followed by
6970 dynamic_prop::{low,high}.
6971
6972 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6973
6974 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6975 const_val, set_const_val, baton, set_locexpr, set_loclist,
6976 set_addr_offset, variant_parts, set_variant_parts,
6977 original_type, set_original_type>: New methods.
6978 <kind>: Rename to...
6979 <m_kind>: ... this. Update all users to use the new methods
6980 instead.
6981 <data>: Rename to...
6982 <m_data>: ... this. Update all users to use the new methods
6983 instead.
6984
6985 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6986
6987 * gdbtypes.c (get_discrete_bounds): Return failure if
6988 the range type's bounds are not both defined and constant
6989 values.
6990 (get_array_bounds): Update comment. Remove undefined bound check.
6991
6992 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6993
6994 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6995 the type::bounds method directly.
6996
6997 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6998
6999 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7000 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7001 are used to set the range type's bounds to use set_bounds.
7002
7003 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7004
7005 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7006
7007 2020-07-10 Pedro Alves <pedro@palves.net>
7008
7009 * gdbthread.h (inferior_ref): Define.
7010 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7011 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7012 * thread.c
7013 (scoped_restore_current_thread::restore):
7014 Adjust to gdb::ref_ptr.
7015 (scoped_restore_current_thread::~scoped_restore_current_thread):
7016 Remove manual decref handling.
7017 (scoped_restore_current_thread::scoped_restore_current_thread):
7018 Adjust to use
7019 inferior_ref::new_reference/thread_info_ref::new_reference.
7020 Incref the thread before calling get_frame_id instead of after.
7021 Let TARGET_CLOSE_ERROR propagate.
7022
7023 2020-07-10 Pedro Alves <pedro@palves.net>
7024
7025 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7026 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7027 NOT_AVAILABLE_ERROR.
7028 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7029 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7030
7031 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7032 Pedro Alves <pedro@palves.net>
7033
7034 PR gdb/26199
7035 * infrun.c (threads_are_resumed_pending_p): Delete.
7036 (do_target_wait): Remove threads_are_executing and
7037 threads_are_resumed_pending_p checks from the inferior_matches
7038 lambda. Update comments.
7039
7040 2020-07-10 Pedro Alves <pedro@palves.net>
7041
7042 PR gdb/26199
7043 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7044 executing threads.
7045
7046 2020-07-10 Pedro Alves <pedro@palves.net>
7047
7048 PR gdb/26199
7049 * infrun.c (handle_no_resumed): Handle multiple targets.
7050
7051 2020-07-10 Pedro Alves <pedro@palves.net>
7052
7053 PR gdb/26199
7054 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7055 target_is_async_p.
7056
7057 2020-07-10 Pedro Alves <pedro@palves.net>
7058
7059 PR gdb/26199
7060 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7061 threads, not all threads.
7062
7063 2020-07-10 Pedro Alves <pedro@palves.net>
7064
7065 PR gdb/26199
7066 * remote.c (remote_target::open_1): Pass remote target pointer as
7067 data to create_async_event_handler.
7068 (remote_async_inferior_event_handler): Mark async event handler
7069 before returning if the remote target still has either pending
7070 events or unacknowledged notifications.
7071
7072 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7073
7074 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7075 declaration.
7076 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7077 function.
7078
7079 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7080
7081 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7082 inferior_ptid.
7083
7084 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7085
7086 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7087 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7088 AT_FREEBSD_PS_STRINGS.
7089
7090 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7091
7092 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7093 of debugfile path on Windows.
7094
7095 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7096
7097 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7098 argument to 'data'.
7099
7100 2020-07-08 Tom Tromey <tromey@adacore.com>
7101
7102 * ada-lang.c (ada_exception_message_1): Use read_memory.
7103
7104 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7105
7106 PR python/22748
7107 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7108 special handling for inline frames.
7109 * findvar.c (value_of_register_lazy): Skip inline frames when
7110 creating lazy register values.
7111 * frame.c (frame_id_computed_p): Delete definition.
7112 * frame.h (frame_id_computed_p): Delete declaration.
7113
7114 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7115
7116 * NEWS: Mention additions to Python API.
7117 * python/py-arch.c (archpy_register_groups): New function.
7118 (arch_object_methods): Add 'register_groups' method.
7119 * python/py-registers.c (reggroup_iterator_object): New struct.
7120 (reggroup_object): New struct.
7121 (gdbpy_new_reggroup): New function.
7122 (gdbpy_reggroup_to_string): New function.
7123 (gdbpy_reggroup_name): New function.
7124 (gdbpy_reggroup_iter): New function.
7125 (gdbpy_reggroup_iter_next): New function.
7126 (gdbpy_new_reggroup_iterator): New function
7127 (gdbpy_initialize_registers): Register new types.
7128 (reggroup_iterator_object_type): Define new Python type.
7129 (gdbpy_reggroup_getset): New static global.
7130 (reggroup_object_type): Define new Python type.
7131 * python/python-internal.h
7132
7133 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7134
7135 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7136 * python/py-arch.c (archpy_registers): New function.
7137 (arch_object_methods): Add 'registers' method.
7138 * python/py-registers.c: New file.
7139 * python/python-internal.h
7140 (gdbpy_new_register_descriptor_iterator): Declare.
7141 (gdbpy_initialize_registers): Declare.
7142 * python/python.c (do_start_initialization): Call
7143 gdbpy_initialize_registers.
7144 * NEWS: Mention additions to the Python API.
7145
7146 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7147
7148 * NEWS: Mention new Python API method.
7149 * python/py-unwind.c (pending_framepy_architecture): New function.
7150 (pending_frame_object_methods): Add architecture method.
7151
7152 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7153
7154 * gdbarch.c: Regenerate.
7155 * gdbarch.h: Regenerate.
7156 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7157 (gdbarch_data): Use internal_error for the case where
7158 deprecated_set_gdbarch_data was originally needed.
7159 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7160 and use passed in obstack.
7161 (libunwind_frame_set_descr): Should no longer get back NULL from
7162 gdbarch_data.
7163 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7164 type.
7165 * user-regs.c (user_regs_init): Update parameters, and use passed
7166 in obstack.
7167 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7168 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7169
7170 2020-07-06 Tom de Vries <tdevries@suse.de>
7171
7172 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7173 End-Of-Sequence in lte_is_less_than.
7174 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7175 "gdb: Don't reorder line table entries too much when sorting".
7176
7177 2020-07-06 Tom de Vries <tdevries@suse.de>
7178
7179 PR tui/26205
7180 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7181
7182 2020-07-05 Tom de Vries <tdevries@suse.de>
7183
7184 PR build/26187
7185 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7186 std::uncaught_exceptions instead of deprecated
7187 std::uncaught_exception.
7188
7189 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7190
7191 * macroexp.h (macro_stringify): Return
7192 gdb::unique_xmalloc_ptr<char>.
7193 * macroexp.c (macro_stringify): Likewise.
7194 * macrotab.c (fixup_definition): Update.
7195
7196 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7197
7198 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7199 (lex_one_token): Update.
7200 * macroexp.c (struct macro_buffer) <release>: Return
7201 gdb::unique_xmalloc_ptr<char>.
7202 (macro_stringify): Update.
7203 (macro_expand): Update.
7204 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7205 * macroexp.h (macro_expand_next): Likewise.
7206
7207 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7208
7209 * macroexp.h (macro_lookup_ftype): Remove.
7210 (macro_expand, macro_expand_once, macro_expand_next): Remove
7211 lookup function parameters, add scope parameter.
7212 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7213 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7214 * macroscope.h (standard_macro_lookup): Change parameter type
7215 to macro_scope.
7216 * macroscope.c (standard_macro_lookup): Likewise.
7217 * c-exp.y (lex_one_token): Update.
7218 * macrocmd.c (macro_expand_command): Likewise.
7219 (macro_expand_once_command): Likewise.
7220
7221 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7222
7223 * inf-loop.c (inferior_event_handler): Remove client_data param.
7224 * inf-loop.h (inferior_event_handler): Likewise.
7225 * infcmd.c (step_1): Adjust.
7226 * infrun.c (proceed): Adjust.
7227 (fetch_inferior_event): Remove client_data param.
7228 (infrun_async_inferior_event_handler): Adjust.
7229 * infrun.h (fetch_inferior_event): Remove `void *` param.
7230 * linux-nat.c (handle_target_event): Adjust.
7231 * record-btrace.c (record_btrace_handle_async_inferior_event):
7232 Adjust.
7233 * record-full.c (record_full_async_inferior_event_handler):
7234 Adjust.
7235 * remote.c (remote_async_inferior_event_handler): Adjust.
7236
7237 2020-07-01 Tom Tromey <tom@tromey.com>
7238
7239 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7240 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7241
7242 2020-07-01 Tom Tromey <tom@tromey.com>
7243
7244 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7245 tui_gen_win_info.
7246 (tui_win_info::make_window): Merge with
7247 tui_gen_win_info::make_window.
7248 (tui_win_info::make_visible): Move from tui_gen_win_info.
7249 * tui/tui-win.c (tui_win_info::max_width): Move from
7250 tui_gen_win_info.
7251 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7252 type.
7253 <window_factory>: Likewise.
7254 * tui/tui-layout.c (tui_win_info::resize): Move from
7255 tui_gen_win_info.
7256 (make_standard_window): Change return type.
7257 (get_locator_window, tui_get_window_by_name): Likewise.
7258 (tui_layout_window::apply): Remove a cast.
7259 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7260 (struct tui_win_info): Merge with tui_gen_win_info.
7261 (struct tui_gen_win_info): Remove.
7262
7263 2020-07-01 Tom Tromey <tom@tromey.com>
7264
7265 * tui/tui-stack.h (struct tui_locator_window): Derive from
7266 tui_win_info.
7267 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7268 <can_box>: New method.
7269
7270 2020-07-01 Tom Tromey <tom@tromey.com>
7271
7272 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7273
7274 2020-07-01 Tom Tromey <tom@tromey.com>
7275
7276 * tui/tui-regs.c (tui_data_window::display_registers_from)
7277 (tui_data_window::display_registers_from)
7278 (tui_data_window::first_data_item_displayed)
7279 (tui_data_window::delete_data_content_windows): Update.
7280 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7281 Remove.
7282 (tui_data_window::check_register_values): Update.
7283 (tui_data_item_window::rerender): Add parameters. Update.
7284 (tui_data_item_window::refresh_window): Remove.
7285 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7286 virtual.
7287 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7288 tui_gen_win_info.
7289 <refresh_window, max_height, min_height>: Remove.
7290 <rerender>: Add parameters.
7291 <x, y, visible>: New members.
7292 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7293 <m_item_width>: New member.
7294
7295 2020-07-01 Tom Tromey <tom@tromey.com>
7296
7297 * tui/tui-regs.c (tui_data_window::show_register_group)
7298 (tui_data_window::check_register_values): Update.
7299 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7300 from item_no.
7301
7302 2020-07-01 Tom Tromey <tom@tromey.com>
7303
7304 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7305 useless "if".
7306
7307 2020-07-01 Tom Tromey <tom@tromey.com>
7308
7309 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7310 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7311
7312 2020-07-01 Tom Tromey <tom@tromey.com>
7313
7314 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7315 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7316 (struct tui_line_or_address): Move from tui-data.h.
7317 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7318 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7319 (tui_cmd_window, tui_source_window_base, tui_source_window)
7320 (tui_disasm_window): Don't declare.
7321 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7322 to tui-winsource.h.
7323 (SINGLE_KEY): Move to tui-stack.c.
7324
7325 2020-07-01 Tom Tromey <tom@tromey.com>
7326
7327 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7328 std::string.
7329 * tui/tui-regs.c (class tab_expansion_file): New.
7330 (tab_expansion_file::write): New method.
7331 (tui_register_format): Change return type. Use
7332 tab_expansion_file.
7333 (tui_get_register, tui_data_window::display_registers_from)
7334 (tui_data_item_window::rerender): Update.
7335 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7336 * tui/tui-io.c (tui_expand_tabs): Remove.
7337
7338 2020-07-01 Tom Tromey <tom@tromey.com>
7339
7340 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7341
7342 2020-07-01 Fangrui Song <maskray@google.com>
7343
7344 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7345
7346 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7347
7348 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7349 forms for DW_AT_associated and DW_AT_allocated attributes,
7350 which is already checked in function attr_to_dynamic_prop.
7351
7352 2020-06-30 Tom Tromey <tromey@adacore.com>
7353
7354 * dwarf2/read.c (quirk_rust_enum): Correctly call
7355 alloc_rust_variant for default-less enum.
7356
7357 2020-06-30 Tom Tromey <tromey@adacore.com>
7358
7359 PR build/26183:
7360 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7361 gdb::to_string.
7362
7363 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7364
7365 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7366 * gdbarch.h: Re-generate.
7367
7368 2020-06-28 Tom Tromey <tom@tromey.com>
7369
7370 * command.h (cmd_types): Remove.
7371 (cmd_type): Don't declare.
7372 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7373 typedef.
7374 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7375 * cli/cli-decode.c (cmd_type): Remove.
7376
7377 2020-06-27 Pedro Alves <palves@redhat.com>
7378
7379 * fork-child.c (prefork_hook): Adjust.
7380 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7381 Delete.
7382 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7383 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7384 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7385 Remove declarations.
7386 (struct inferior) <set_tty, tty>: New methods.
7387 (struct inferior) <terminal>: Rename to ...
7388 (struct inferior) <m_terminal>: ... this and make private.
7389 * main.c (captured_main_1): Adjust.
7390 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7391 (mi_cmd_inferior_tty_show): Adjust.
7392 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7393 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7394
7395 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7396
7397 * configure.ac: Add --enable-libctf: handle --disable-static
7398 properly.
7399 * acinclude.m4: sinclude ../config/enable.m4.
7400 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7401 (LIBCTF): Substitute in.
7402 (CTF_DEPS): New, likewise.
7403 (CLIBS): libctf needs symbols from libbfd: move earlier.
7404 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7405 flags.
7406 * ctfread.c: Surround in ENABLE_LIBCTF.
7407 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7408 * configure: Regenerate.
7409 * config.in: Likewise.
7410
7411 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7412
7413 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7414
7415 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7416
7417 * inferior.h (struct inferior) <terminal>: Change type to
7418 gdb::unique_xmalloc_ptr<char>.
7419 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7420 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7421 field, adjust to unique pointer.
7422 (get_inferior_io_terminal): Adjust to unique pointer.
7423
7424 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7425
7426 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7427 registers, not just the known core set of registers.
7428
7429 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7430
7431 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7432 fflags, frm, and fcsr registers.
7433 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7434 restore groups.
7435 (riscv_tdesc_unknown_reg): New function.
7436 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7437 tdesc_use_registers.
7438 * riscv-tdep.h (struct gdbarch_tdep): Add
7439 unknown_csrs_first_regnum, unknown_csrs_count,
7440 duplicate_fflags_regnum, duplicate_frm_regnum, and
7441 duplicate_fcsr_regnum fields.
7442
7443 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7444
7445 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7446 callback, use the callback (when not null) to help number unknown
7447 registers.
7448 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7449 (tdesc_use_registers): Add extra parameter to declaration.
7450
7451 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7452
7453 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7454 in the file.
7455 (class riscv_pending_register_alias): Likewise.
7456 (riscv_register_feature::register_info): Change 'required_p' field
7457 to 'required', and change its type. Add 'check' member function.
7458 (riscv_register_feature::register_info::check): Define new member
7459 function.
7460 (riscv_xreg_feature): Change initialisation of 'required' field.
7461 (riscv_freg_feature): Likewise.
7462 (riscv_virtual_feature): Likewise.
7463 (riscv_csr_feature): Likewise.
7464 (riscv_check_tdesc_feature): Take extra parameter, the csr
7465 tdesc_feature, rewrite the function to use the new
7466 riscv_register_feature::register_info::check function.
7467 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7468
7469 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7470
7471 * features/Makefile: Remove all references to the deleted files
7472 below.
7473 * features/riscv/32bit-csr.c: Deleted.
7474 * features/riscv/32bit-csr.xml: Deleted.
7475 * features/riscv/64bit-csr.c: Deleted.
7476 * features/riscv/64bit-csr.xml: Deleted.
7477 * features/riscv/rebuild-csr-xml.sh: Deleted.
7478
7479 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7480
7481 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7482 whitespace error for declaration of names member variable.
7483 (struct riscv_register_feature): Add new prefer_first_name member
7484 variable, and fix whitespace error in declaration of registers.
7485 (riscv_xreg_feature): Initialize prefer_first_name field.
7486 (riscv_freg_feature): Likewise.
7487 (riscv_virtual_feature): Likewise.
7488 (riscv_csr_feature): Likewise.
7489 (riscv_register_name): Expand on comments. Remove register name
7490 modifications for CSR and virtual registers.
7491
7492 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7493
7494 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7495 errors.
7496
7497 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7498
7499 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7500 riscv-opc.h.
7501 (class riscv_pending_register_alias): New class.
7502 (riscv_check_tdesc_feature): Take vector of pending aliases and
7503 populate it as appropriate.
7504 (riscv_setup_register_aliases): Delete.
7505 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7506 to riscv_check_tdesc_feature in all cases. Use the vector to
7507 create the register aliases.
7508
7509 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7510
7511 * sol2-tdep.c (sol2_static_transform_name): Remove.
7512 (sol2_init_abi): Don't register it.
7513 * gdbarch.sh (static_transform_name): Remove.
7514 * gdbarch.c, gdbarch.h: Regenerate.
7515
7516 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7517 gdbarch_static_transform_name.
7518 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7519 * stabsread.c (define_symbol) <'X'>: Remove.
7520 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7521 handling.
7522 <'V'>: Likewise.
7523 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7524 <'S'>: Remove call to gdbarch_static_transform_name.
7525
7526 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7527
7528 * procfs.c (procfs_pre_trace): New function.
7529 (procfs_target::create_inferior): Pass it to fork_inferior.
7530
7531 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7532
7533 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7534 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7535 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7536 sol2-tdep.o, sparc-sol2-tdep.o.
7537 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7538 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7539 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7540 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7541
7542 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7543
7544 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7545 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7546 Call sol2_init_abi.
7547 Remove calls to set_gdbarch_skip_solib_resolver,
7548 set_gdbarch_core_pid_to_str.
7549 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7550 (i386_sol2_static_transform_name): Remove.
7551 (i386_sol2_init_abi): Call sol2_init_abi.
7552 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7553 set_gdbarch_static_transform_name,
7554 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7555 Use sol2_sigtramp_p.
7556 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7557 (sol2_sigtramp_p): New function.
7558 (sol2_static_transform_name): New function.
7559 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7560 (sol2_init_abi): New function.
7561 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7562 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7563 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7564 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7565 (sparc_sol2_static_transform_name): Remove.
7566 (sparc32_sol2_init_abi): Call sol2_init_abi.
7567 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7568 set_gdbarch_static_transform_name,
7569 set_gdbarch_skip_solib_resolver,
7570 set_gdbarch_core_pid_to_str.
7571 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7572 (sparc_sol2_static_transform_name): Remove
7573 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7574 call sol2_sigtramp_p.
7575 (sparc64_sol2_init_abi): Call sol2_init_abi.
7576 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7577 set_gdbarch_static_transform_name,
7578 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7579
7580 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7581
7582 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7583 * exec.c (validate_exec_file): If from_tty, set both
7584 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7585 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7586 and from_tty, unconditionally ask a confirmation.
7587
7588 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7589
7590 * target-descriptions.c (tdesc_architecture_name): Protect against
7591 NULL pointer dereference.
7592 (maint_print_xml_tdesc_cmd): New function.
7593 (_initialize_target_descriptions): Register new 'maint print
7594 xml-tdesc' command and give it the filename completer.
7595 * NEWS: Mention new 'maint print xml-tdesc' command.
7596
7597 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7598
7599 * target-descriptions.c (class tdesc_compatible_info): New class.
7600 (struct target_desc): Change type of compatible vector.
7601 (tdesc_compatible_p): Update for change in type of
7602 target_desc::compatible.
7603 (tdesc_compatible_info_list): New function.
7604 (tdesc_compatible_info_arch_name): New function.
7605 (tdesc_add_compatible): Update for change in type of
7606 target_desc::compatible.
7607 (print_c_tdesc::visit_pre): Likewise.
7608
7609 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7610
7611 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7612 whitespace to underscore.
7613 (maint_print_c_tdesc_cmd): Use fake filename for target
7614 descriptions that came from the target.
7615 (_initialize_target_descriptions): Add filename command completion
7616 for 'maint print c-tdesc'.
7617
7618 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7619
7620 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7621 lines.
7622
7623 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7624
7625 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7626 lines.
7627 (dwarf2_find_location_expression): Likewise.
7628 (call_site_parameter_matches): Likewise.
7629 (dwarf2_compile_expr_to_ax): Likewise.
7630 (disassemble_dwarf_expression): Likewise.
7631 (loclist_describe_location): Likewise.
7632
7633 2020-06-23 Pedro Alves <palves@redhat.com>
7634
7635 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7636 progspace-and-thread.h. Include scoped-mock-context.h instead.
7637 (register_to_value_test): Use scoped_mock_context.
7638 * regcache.c: Include "scoped-mock-context.h".
7639 (cooked_read_test): Don't error out if a target is already pushed.
7640 Use scoped_mock_context. Adjust.
7641 * scoped-mock-context.h: New file.
7642
7643 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7644
7645 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7646 initializer.
7647 (ada_language::is_string_type_p): New member function.
7648 * c-lang.c (c_language_data): Delete la_is_string_type_p
7649 initializer.
7650 (cplus_language_data): Likewise.
7651 (asm_language_data): Likewise.
7652 (minimal_language_data): Likewise.
7653 * d-lang.c (d_language_data): Likewise.
7654 * f-lang.c (f_is_string_type_p): Delete function, implementation
7655 moved to f_language::is_string_type_p.
7656 (f_language_data): Delete la_is_string_type_p initializer.
7657 (f_language::is_string_type_p): New member function,
7658 implementation from f_is_string_type_p.
7659 * go-lang.c (go_is_string_type_p): Delete function, implementation
7660 moved to go_language::is_string_type_p.
7661 (go_language_data): Delete la_is_string_type_p initializer.
7662 (go_language::is_string_type_p): New member function,
7663 implementation from go_is_string_type_p.
7664 * language.c (language_defn::is_string_type_p): Define new member
7665 function.
7666 (default_is_string_type_p): Make static, add comment copied from
7667 header file.
7668 (unknown_language_data): Delete la_is_string_type_p initializer.
7669 (unknown_language::is_string_type_p): New member function.
7670 (auto_language_data): Delete la_is_string_type_p initializer.
7671 (auto_language::is_string_type_p): New member function.
7672 * language.h (language_data): Delete la_is_string_type_p field.
7673 (language_defn::is_string_type_p): Declare new function.
7674 (default_is_string_type_p): Delete desclaration, move comment to
7675 definition.
7676 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7677 moved to m2_language::is_string_type_p.
7678 (m2_language_data): Delete la_is_string_type_p initializer.
7679 (m2_language::is_string_type_p): New member function,
7680 implementation from m2_is_string_type_p.
7681 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7682 initializer.
7683 * opencl-lang.c (opencl_language_data): Likewise.
7684 * p-lang.c (pascal_is_string_type_p): Delete function,
7685 implementation moved to pascal_language::is_string_type_p.
7686 (pascal_language_data): Delete la_is_string_type_p initializer.
7687 (pascal_language::is_string_type_p): New member function,
7688 implementation from pascal_is_string_type_p.
7689 * rust-lang.c (rust_is_string_type_p): Delete function,
7690 implementation moved to rust_language::is_string_type_p.
7691 (rust_language_data): Delete la_is_string_type_p initializer.
7692 (rust_language::is_string_type_p): New member function,
7693 implementation from rust_is_string_type_p.
7694 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7695 is_string_type_p.
7696
7697 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7698
7699 * ada-lang.c (ada_language_data): Delete la_print_typedef
7700 initializer.
7701 (ada_language::print_typedef): New member function.
7702 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7703 (cplus_language_data): Likewise.
7704 (asm_language_data): Likewise.
7705 (minimal_language_data): Likewise.
7706 * d-lang.c (d_language_data): Likewise.
7707 * f-lang.c (f_language_data): Likewise.
7708 (f_language::print_typedef): New member function.
7709 * go-lang.c (go_language_data): Delete la_print_typedef
7710 initializer.
7711 * language.c (language_defn::print_typedef): Define member
7712 function.
7713 (unknown_language_data): Delete la_print_typedef initializer.
7714 (unknown_language::print_typedef): New member function.
7715 (auto_language_data): Delete la_print_typedef initializer.
7716 (auto_language::print_typedef): New member function.
7717 * language.h (language_data): Delete la_print_typedef field.
7718 (language_defn::print_typedef): Declare new member function.
7719 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7720 (default_print_typedef): Delete declaration.
7721 * m2-lang.c (m2_language_data): Delete la_print_typedef
7722 initializer.
7723 (m2_language::print_typedef): New member function.
7724 * objc-lang.c (objc_language_data): Delete la_print_typedef
7725 initializer.
7726 * opencl-lang.c (opencl_language_data): Likewise.
7727 * p-lang.c (pascal_language_data): Likewise.
7728 (pascal_language::print_typedef): New member function.
7729 * rust-lang.c (rust_print_typedef): Delete function,
7730 implementation moved to rust_language::print_typedef.
7731 (rust_language): Delete la_print_typedef initializer.
7732 (rust_language::print_typedef): New member function,
7733 implementation from rust_print_typedef.
7734 * typeprint.c (default_print_typedef): Delete.
7735
7736 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7737
7738 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7739 (ada_language::printstr): New member function.
7740 * c-lang.c (c_language_data): Delete la_printstr initializer.
7741 (cplus_language_data): Likewise.
7742 (asm_language_data): Likewise.
7743 (minimal_language_data): Likewise.
7744 * d-lang.c (d_language_data): Likewise.
7745 * f-lang.c (f_printstr): Rename to f_language::printstr.
7746 (f_language_data): Delete la_printstr initializer.
7747 (f_language::printstr): New member function, implementation from
7748 f_printstr.
7749 * go-lang.c (go_language_data): Delete la_printstr initializer.
7750 * language.c (language_defn::printstr): Define new member
7751 function.
7752 (unk_lang_printstr): Delete.
7753 (unknown_language_data): Delete la_printstr initializer.
7754 (unknown_language::printstr): New member function.
7755 (auto_language_data): Delete la_printstr initializer.
7756 (auto_language::printstr): New member function.
7757 * language.h (language_data): Delete la_printstr field.
7758 (language_defn::printstr): Declare new member function.
7759 (LA_PRINT_STRING): Update call to printstr.
7760 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7761 (m2_language_data): Delete la_printstr initializer.
7762 (m2_language::printstr): New member function, implementation from
7763 m2_printstr.
7764 * objc-lang.c (objc_language_data): Delete la_printstr
7765 initializer.
7766 * opencl-lang.c (opencl_language_data): Likewise.
7767 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7768 (pascal_language_data): Delete la_printstr initializer.
7769 (pascal_language::printstr): New member function, implementation
7770 from pascal_printstr.
7771 * p-lang.h (pascal_printstr): Delete declaration.
7772 * rust-lang.c (rust_printstr): Update header comment.
7773 (rust_language_data): Delete la_printstr initializer.
7774 (rust_language::printstr): New member function.
7775
7776 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7777
7778 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7779 (ada_language::printchar): New member function.
7780 * c-lang.c (c_language_data): Delete la_printchar initializer.
7781 (cplus_language_data): Likewise.
7782 (asm_language_data): Likewise.
7783 (minimal_language_data): Likewise.
7784 * d-lang.c (d_language_data): Likewise.
7785 * f-lang.c (f_printchar): Rename to f_language::printchar.
7786 (f_language_data): Delete la_printchar initializer.
7787 (f_language::printchar): New member function, implementation from
7788 f_printchar.
7789 * go-lang.c (go_language_data): Delete la_printchar initializer.
7790 * language.c (unk_lang_printchar): Delete.
7791 (language_defn::printchar): Define new member function.
7792 (unknown_language_data): Delete la_printchar initializer.
7793 (unknown_language::printchar): New member function.
7794 (auto_language_data): Delete la_printchar initializer.
7795 (auto_language::printchar): New member function.
7796 * language.h (language_data): Delete la_printchar field.
7797 (language_defn::printchar): Declare new member function.
7798 (LA_PRINT_CHAR): Update call to printchar.
7799 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7800 (m2_language::printchar): New member function.
7801 * objc-lang.c (objc_language_data): Delete la_printchar
7802 initializer.
7803 * opencl-lang.c (opencl_language_data): Likewise.
7804 * p-lang.c (pascal_language_data): Delete la_printchar
7805 initializer.
7806 (pascal_language::printchar): New member function.
7807 * rust-lang.c (rust_printchar): Rename to
7808 rust_language::printchar.
7809 (rust_language_data): Delete la_printchar initializer.
7810 (rust_language::printchar): New member function, implementation
7811 from rust_printchar.
7812
7813 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7814
7815 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7816 (ada_language_data): Delete la_emitchar initializer.
7817 (ada_language::emitchar): New member function, implementation from
7818 emit_char.
7819 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7820 (cplus_language_data): Likewise.
7821 (asm_language_data): Likewise.
7822 (minimal_language_data): Likewise.
7823 * d-lang.c (d_language_data): Likewise.
7824 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7825 (f_language_data): Delete la_emitchar initializer.
7826 (f_language::emitchar): New member function, implementation from
7827 f_emit_char.
7828 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7829 * language.c (unk_lang_emit_char): Delete.
7830 (language_defn::emitchar): New member function definition.
7831 (unknown_language_data): Delete la_emitchar initializer.
7832 (unknown_language::emitchar): New member function.
7833 (auto_language_data): Delete la_emitchar initializer.
7834 (auto_language::emitchar): New member function.
7835 * language.h (language_data): Delete la_emitchar field.
7836 (language_defn::emitchar): New member field declaration.
7837 (LA_EMIT_CHAR): Update call to emitchar.
7838 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7839 (m2_language_data): Delete la_emitchar initializer.
7840 (m2_language::emitchar): New member function, implementation from
7841 m2_emit_char.
7842 * objc-lang.c (objc_language_data): Delete la_emitchar
7843 initializer.
7844 * opencl-lang.c (opencl_language_data): Likewise.
7845 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7846 (pascal_language_data): Delete la_emitchar initializer.
7847 (pascal_language::emitchar): New member function, implementation
7848 from pascal_emit_char.
7849 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7850 (rust_language_data): Delete la_emitchar initializer.
7851 (rust_language::emitchar): New member function, implementation
7852 from rust_emitchar.
7853
7854 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7855
7856 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7857 (ada_language_data): Delete la_post_parser initializer.
7858 (ada_language::post_parser): New member function.
7859 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7860 (cplus_language_data): Likewise.
7861 (asm_language_data): Likewise.
7862 (minimal_language_data): Likewise.
7863 * d-lang.c (d_language_data): Likewise.
7864 * f-lang.c (f_language_data): Likewise.
7865 * go-lang.c (go_language_data): Likewise.
7866 * language.c (unknown_language_data): Likewise.
7867 (auto_language_data): Likewise.
7868 * language.h (language_data): Delete la_post_parser field.
7869 (language_defn::post_parser): New member function.
7870 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7871 * objc-lang.c (objc_language_data): Likewise.
7872 * opencl-lang.c (opencl_language_data): Likewise.
7873 * p-lang.c (pascal_language_data): Likewise.
7874 * parse.c (parse_exp_in_context): Update call to post_parser.
7875 (null_post_parser): Delete definition.
7876 * parser-defs.h (null_post_parser): Delete declaration.
7877 * rust-lang.c (rust_language_data): Delete la_post_parser
7878 initializer.
7879
7880 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * ada-lang.c (parse): Rename to ada_language::parser.
7883 (ada_language_data): Delete la_parser initializer.
7884 (ada_language::parser): New member function, implementation from
7885 parse.
7886 * c-lang.c (c_language_data): Delete la_parser initializer.
7887 (cplus_language_data): Likewise.
7888 (asm_language_data): Likewise.
7889 (minimal_language_data): Likewise.
7890 * d-lang.c (d_language_data): Likewise.
7891 (d_language::parser): New member function.
7892 * f-lang.c (f_language_data): Delete la_parser initializer.
7893 (f_language::parser): New member function.
7894 * go-lang.c (go_language_data): Delete la_parser initializer.
7895 (go_language::parser): New member function.
7896 * language.c (unk_lang_parser): Delete.
7897 (language_defn::parser): Define new member function.
7898 (unknown_language_data): Delete la_parser initializer.
7899 (unknown_language::parser): New member function.
7900 (auto_language_data): Delete la_parser initializer.
7901 (auto_language::parser): New member function.
7902 * language.h (language_data): Delete la_parser field.
7903 (language_defn::parser): Declare new member function.
7904 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7905 (m2_language::parser): New member function.
7906 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7907 * opencl-lang.c (opencl_language_data): Likewise.
7908 * p-lang.c (pascal_language_data): Likewise.
7909 (pascal_language::parser): New member function.
7910 * parse.c (parse_exp_in_context): Update call to parser.
7911 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7912 (rust_language::parser): New member function.
7913
7914 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * top.c (print_gdb_configuration): Print --with-python-libdir
7917 configuration value.
7918
7919 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7920
7921 * NEWS: Mention change to the alias command.
7922
7923 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7924
7925 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7926 (alias_command_completer)
7927 (make_alias_options_def_group): New functions.
7928 (alias_opts, alias_option_defs): New struct and array.
7929 (alias_usage_error): Update usage.
7930 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7931 Use option framework.
7932 (_initialize_cli_cmds): Update alias command help.
7933 Update aliases command help.
7934 (show_user):
7935 Add NULL for new default_args lookup_cmd argument.
7936 (valid_command_p): Rename to validate_aliased_command.
7937 Add NULL for new default_args lookup_cmd argument. Verify that the
7938 aliased_command has no default args.
7939 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7940 (lookup_cmd_1, lookup_cmd): New argument default_args.
7941 (add_alias_cmd):
7942 Add NULL for new default_args lookup_cmd argument.
7943 (print_help_for_command): Show default args under the layout
7944 alias some_alias = some_aliased_cmd some_alias_default_arg.
7945 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7946 xfree default_args in destructor.
7947 * cli/cli-script.c (process_next_line, do_define_command):
7948 Add NULL for new default_args lookup_cmd argument.
7949 * command.h: Declare new default_args argument in lookup_cmd
7950 and lookup_cmd_1.
7951 * completer.c (complete_line_internal_1):
7952 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7953 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7954 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7955 Likewise.
7956 * infcmd.c (_initialize_infcmd): Likewise.
7957 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7958 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7959 * python/py-param.c (add_setshow_generic): Likewise.
7960 * remote.c (_initialize_remote): Likewise.
7961 * top.c (execute_command): Prepend default_args if command has some.
7962 (set_verbose):
7963 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7964 * tracepoint.c (validate_actionline, encode_actions_1):
7965 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7966
7967 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7968
7969 * jit.c (jit_read_descriptor): Use bool as the return type.
7970 (jit_breakpoint_re_set_internal): Use bool as the return type.
7971 Invert the return value logic; return true if the jit breakpoint
7972 has been successfully initialized.
7973 (jit_inferior_init): Update the call to
7974 jit_breakpoint_re_set_internal.
7975
7976 2020-06-22 Pedro Alves <palves@redhat.com>
7977
7978 PR gdb/25939
7979 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7980 Use the current inferior instead. Don't return
7981 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7982 wait again.
7983 * sol-thread.c (sol_thread_target::wait): Don't reference
7984 inferior_ptid.
7985 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7986 (sol_update_thread_list_callback): Use the current inferior's pid
7987 instead of inferior_ptid.
7988
7989 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7990
7991 * procfs.c: Cleanup many comments.
7992
7993 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7994 (AFTER_WATCHFLAG): Replace by value.
7995
7996 (MAIN_PROC_NAME_FORMAT): Inline ...
7997 (create_procinfo): ... here.
7998
7999 (procfs_debug_inferior): Remove SYS_exec handling.
8000 (syscall_is_exec): Likewise.
8001 (procfs_set_exec_trap): Likewise.
8002
8003 (syscall_is_lwp_exit): Inline in callers.
8004 (syscall_is_exit): Likewise.
8005 (syscall_is_exec): Likewise.
8006 (syscall_is_lwp_create): Likewise.
8007
8008 (invalidate_cache): Remove #if 0 code.
8009
8010 (make_signal_thread_runnable): Remove.
8011 (procfs_target::resume): Remove #if 0 code.
8012
8013 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8014
8015 PR gdb/25939
8016 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8017 call ...
8018 (procfs_target::create_inferior): ... here.
8019
8020 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8021
8022 * exec.c (validate_exec_file): Ensure the build-id is up to
8023 date by calling reopen_exec_file (that checks file timestamp
8024 to decide to re-read the file).
8025
8026 2020-06-18 Pedro Alves <palves@redhat.com>
8027
8028 PR gdb/25412
8029 * gdbthread.h (delete_thread, delete_thread_silent)
8030 (find_thread_ptid): Update comments.
8031 * thread.c (current_thread_): New global.
8032 (is_current_thread): Move higher, and reimplement.
8033 (inferior_thread): Reimplement.
8034 (set_thread_exited): Use bool. Add assertions.
8035 (add_thread_silent): Simplify thread-reuse handling by always
8036 calling delete_thread.
8037 (delete_thread): Remove intro comment.
8038 (find_thread_ptid): Skip exited threads.
8039 (switch_to_thread_no_regs): Write to current_thread_.
8040 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8041 INFERIOR_PTID. Clear current_thread_.
8042
8043 2020-06-18 Pedro Alves <palves@redhat.com>
8044
8045 * aix-thread.c (pd_update): Use switch_to_thread.
8046
8047 2020-06-18 Pedro Alves <palves@redhat.com>
8048
8049 * ravenscar-thread.c (ravenscar_thread_target): Update.
8050 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8051 (ravenscar_thread_target::add_active_thread): ... this. Don't
8052 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8053 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8054
8055 2020-06-18 Pedro Alves <palves@redhat.com>
8056
8057 * nat/windows-nat.c (current_windows_thread): Remove.
8058 * nat/windows-nat.h (current_windows_thread): Remove.
8059 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8060 Adjust.
8061 (display_selectors): Adjust to fetch the current
8062 windows_thread_info based on inferior_ptid.
8063 (fake_create_process): No longer write to current_windows_thread.
8064 (windows_nat_target::get_windows_debug_event):
8065 Don't set inferior_ptid or current_windows_thread.
8066 (windows_nat_target::wait): Adjust to not rely on
8067 current_windows_thread.
8068 (do_initial_windows_stuff): Now a method of windows_nat_target.
8069 Switch to the last_ptid thread.
8070 (windows_nat_target::attach): Adjust.
8071 (windows_nat_target::detach): Use switch_to_no_thread instead of
8072 writing to inferior_ptid directly.
8073 (windows_nat_target::create_inferior): Adjust.
8074
8075 2020-06-18 Pedro Alves <palves@redhat.com>
8076
8077 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8078
8079 2020-06-18 Pedro Alves <palves@redhat.com>
8080
8081 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8082 after creating it, instead of writing to inferior_ptid. Don't
8083 write to inferior_ptid.
8084
8085 2020-06-18 Pedro Alves <palves@redhat.com>
8086
8087 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8088
8089 2020-06-18 Pedro Alves <palves@redhat.com>
8090
8091 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8092 it, instead of writing to inferior_ptid.
8093
8094 2020-06-18 Pedro Alves <palves@redhat.com>
8095
8096 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8097 to inferior_ptid.
8098
8099 2020-06-18 Pedro Alves <palves@redhat.com>
8100
8101 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8102 instead of writing to inferior_ptid directly.
8103
8104 2020-06-18 Pedro Alves <palves@redhat.com>
8105
8106 * corelow.c (core_target::close): Use switch_to_no_thread instead
8107 of writing to inferior_ptid directly.
8108 (add_to_thread_list, core_target_open): Use switch_to_thread
8109 instead of writing to inferior_ptid directly.
8110
8111 2020-06-18 Pedro Alves <palves@redhat.com>
8112
8113 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8114 inferior_ptid.
8115 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8116 inferior_ptid.
8117 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8118 inferior_ptid directly.
8119 (darwin_nat_target::init_thread_list): Switch to thread, instead
8120 of writing to inferior_ptid.
8121 (darwin_nat_target::attach): Don't write to inferior_ptid.
8122 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8123
8124 2020-06-18 Pedro Alves <palves@redhat.com>
8125
8126 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8127 thread.
8128 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8129 Instead use switch_to_thread.
8130 (gnu_nat_target::detach): Use switch_to_no_thread
8131 instead of writing to inferior_ptid directly. Used passed-in
8132 inferior instead of looking up the inferior by pid.
8133
8134 2020-06-18 Pedro Alves <palves@redhat.com>
8135
8136 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8137 inferior_ptid.
8138
8139 2020-06-18 Pedro Alves <palves@redhat.com>
8140
8141 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8142 inferior_ptid.
8143 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8144 thread.
8145 (nto_procfs_target::detach): Avoid referencing
8146 inferior_ptid. Use switch_to_no_thread instead of writing to
8147 inferior_ptid directly.
8148 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8149 instead of writing to inferior_ptid directly.
8150 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8151 to thread.
8152
8153 2020-06-18 Pedro Alves <palves@redhat.com>
8154
8155 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8156 after creating it, instead of writing to inferior_ptid.
8157 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8158 to inferior_ptid directly.
8159 (gdbsim_target::wait): Don't write to inferior_ptid.
8160
8161 2020-06-18 Pedro Alves <palves@redhat.com>
8162
8163 * remote.c (remote_target::remote_notice_new_inferior): Use
8164 switch_to_thread instead of writing to inferior_ptid directly.
8165 (remote_target::add_current_inferior_and_thread): Use
8166 switch_to_no_thread instead of writing to inferior_ptid directly.
8167 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8168 and switch_to_thread instead of using set_current_inferior or
8169 writing to inferior_ptid directly.
8170
8171 2020-06-18 Pedro Alves <palves@redhat.com>
8172
8173 * tracectf.c (ctf_target_open): Switch to added thread instead of
8174 writing to inferior_ptid directly.
8175 (ctf_target::close): Use switch_to_no_thread instead of writing to
8176 inferior_ptid directly.
8177
8178 2020-06-18 Pedro Alves <palves@redhat.com>
8179
8180 * tracefile-tfile.c (tfile_target_open): Don't write to
8181 inferior_ptid directly, instead switch to added thread.
8182 (tfile_target::close): Use switch_to_no_thread instead of writing
8183 to inferior_ptid directly.
8184
8185 2020-06-18 Pedro Alves <palves@redhat.com>
8186
8187 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8188 (procfs_target::detach): Use switch_to_no_thread
8189 instead of writing to inferior_ptid directly.
8190 (do_attach): Change return type to void. Switch to the added
8191 thread.
8192 (procfs_target::create_inferior): Switch to the added thread.
8193 (procfs_do_thread_registers): Don't write to inferior_ptid.
8194
8195 2020-06-18 Pedro Alves <palves@redhat.com>
8196
8197 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8198 of writing to inferior_ptid.
8199 (scoped_restore_exited_inferior): Delete.
8200 (handle_vfork_child_exec_or_exit): Simplify using
8201 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8202 instead of writing to inferior_ptid.
8203 (THREAD_STOPPED_BY): Delete.
8204 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8205 (thread_stopped_by_hw_breakpoint): Delete.
8206 (save_waitstatus): Use
8207 scoped_restore_current_thread+switch_to_thread, and call
8208 target_stopped_by_watchpoint instead of
8209 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8210 instead of thread_stopped_by_sw_breakpoint, and
8211 target_stopped_by_hw_breakpoint instead of
8212 thread_stopped_by_hw_breakpoint.
8213 (handle_inferior_event)
8214 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8215 inferior_ptid directly, nor
8216 set_current_inferior/set_current_program_space. Use
8217 switch_to_thread / switch_to_inferior_no_thread instead.
8218
8219 2020-06-18 Pedro Alves <palves@redhat.com>
8220
8221 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8222 instead of writing to inferior_ptid.
8223
8224 2020-06-18 Pedro Alves <palves@redhat.com>
8225
8226 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8227 added thread.
8228 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8229 to the added thread.
8230 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8231 instead of writing to inferior_ptid.
8232
8233 2020-06-18 Pedro Alves <palves@redhat.com>
8234
8235 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8236 (register_to_value_test): Mock a program_space too. Heap-allocate
8237 the address space. Don't write to inferior_ptid. Use
8238 switch_to_thread instead.
8239
8240 2020-06-18 Pedro Alves <palves@redhat.com>
8241
8242 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8243 Delete.
8244 (find_signalled_thread()): New, factored out from
8245 linux_make_corefile_notes and adjusted to handle exited threads.
8246 (linux_make_corefile_notes): Adjust to use the new
8247 find_signalled_thread.
8248
8249 2020-06-18 Pedro Alves <palves@redhat.com>
8250
8251 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8252 of saving/restoring inferior_ptid.
8253
8254 2020-06-17 Tom Tromey <tom@tromey.com>
8255
8256 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8257 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8258 declare.
8259 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8260
8261 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8262
8263 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8264 of partial symtabs.
8265
8266 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8267
8268 * regformats/reg-arm.dat: Remove.
8269 * regformats/reg-bfin.dat: Remove.
8270 * regformats/reg-cris.dat: Remove.
8271 * regformats/reg-crisv32.dat: Remove.
8272 * regformats/reg-m32r.dat: Remove.
8273 * regformats/reg-tilegx.dat: Remove.
8274 * regformats/reg-tilegx32.dat: Remove.
8275
8276 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8277
8278 * features/Makefile (WHICH): Remove arm files.
8279 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8280 * regformats/arm/arm-with-neon.dat: Remove.
8281 * regformats/arm/arm-with-vfpv2.dat: Remove.
8282 * regformats/arm/arm-with-vfpv3.dat: Remove.
8283
8284 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8285
8286 * features/Makefile (XMLTOC): Remove rx.xml.
8287
8288 2020-06-17 Pedro Alves <palves@redhat.com>
8289
8290 * gdbthread.h (thread_control_state) <trap_expected> Update
8291 comments.
8292
8293 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8294
8295 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8296 ada_language::lookup_symbol_nonlocal.
8297 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8298 (ada_language::lookup_symbol_nonlocal): New member function,
8299 implementation from ada_lookup_symbol_nonlocal.
8300 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8301 initializer.
8302 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8303 initializer.
8304 (cplus_language::lookup_symbol_nonlocal): New member function.
8305 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8306 (minimal_language_data) Likewise.
8307 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8308 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8309 initializer.
8310 (d_language::lookup_symbol_nonlocal): New member function.
8311 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8312 initializer.
8313 (f_language::lookup_symbol_nonlocal): New member function.
8314 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8315 initializer.
8316 * language.c (unknown_language_data): Likewise.
8317 (auto_language_data): Likewise.
8318 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8319 field.
8320 (language_defn::lookup_symbol_nonlocal): New member function.
8321 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8322 initializer.
8323 * objc-lang.c (objc_language_data): Likewise.
8324 * opencl-lang.c (opencl_language_data): Likewise.
8325 * p-lang.c (pascal_language_data): Likewise.
8326 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8327 rust_language::lookup_symbol_nonlocal.
8328 (rust_language_data): Delete la_lookup_symbol_nonlocal
8329 initializer.
8330 (rust_language::lookup_symbol_nonlocal): New member function,
8331 implementation from rust_lookup_symbol_nonlocal.
8332 * symtab.c (lookup_symbol_aux): Update call to
8333 lookup_symbol_nonlocal.
8334 (basic_lookup_symbol_nonlocal): Rename to...
8335 (language_defn::lookup_symbol_nonlocal): ...this, and update
8336 header comment. Remove language_defn parameter, and replace with
8337 uses of `this'.
8338 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8339
8340 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8341
8342 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8343 initializer.
8344 (ada_language::value_print_inner): New member function.
8345 * c-lang.c (c_language_data): Delete la_value_print_inner
8346 initializer.
8347 (cplus_language_data): Likewise.
8348 (asm_language_data): Likewise.
8349 (minimal_language_data): Likewise.
8350 * d-lang.c (d_language_data): Likewise.
8351 (d_language::value_print_inner): New member function.
8352 * f-lang.c (f_language_data): Delete la_value_print_inner
8353 initializer.
8354 (f_language::value_print_inner): New member function.
8355 * f-lang.h (f_value_print_innner): Rename to...
8356 (f_value_print_inner): ...this (note spelling of 'inner').
8357 * f-valprint.c (f_value_print_innner): Rename to...
8358 (f_value_print_inner): ...this (note spelling of 'inner').
8359 * go-lang.c (go_language_data): Delete la_value_print_inner
8360 initializer.
8361 (go_language::value_print_inner): New member function.
8362 * language.c (language_defn::value_print_inner): Define new member
8363 function.
8364 (unk_lang_value_print_inner): Delete.
8365 (unknown_language_data): Delete la_value_print_inner initializer.
8366 (unknown_language::value_print_inner): New member function.
8367 (auto_language_data): Delete la_value_print_inner initializer.
8368 (auto_language::value_print_inner): New member function.
8369 * language.h (language_data): Delete la_value_print_inner field.
8370 (language_defn::value_print_inner): Delcare new member function.
8371 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8372 initializer.
8373 (m2_language::value_print_inner): New member function.
8374 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8375 initializer.
8376 * opencl-lang.c (opencl_language_data): Likewise.
8377 * p-lang.c (pascal_language_data): Likewise.
8378 (pascal_language::value_print_inner): New member function.
8379 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8380 initializer.
8381 (rust_language::value_print_inner): New member function.
8382 * valprint.c (do_val_print): Update call to value_print_inner.
8383
8384 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8385
8386 * ada-lang.c (ada_language_data): Delete la_value_print
8387 initializer.
8388 (ada_language::value_print): New member function.
8389 * c-lang.c (c_language_data): Delete la_value_print initializer.
8390 (cplus_language_data): Likewise.
8391 (asm_language_data): Likewise.
8392 (minimal_language_data): Likewise.
8393 * d-lang.c (d_language_data): Likewise.
8394 * f-lang.c (f_language_data): Likewise.
8395 * go-lang.c (go_language_data): Likewise.
8396 * language.c (unk_lang_value_print): Delete.
8397 (language_defn::value_print): Define new member function.
8398 (unknown_language_data): Delete la_value_print initializer.
8399 (unknown_language::value_print): New member function.
8400 (auto_language_data): Delete la_value_print initializer.
8401 (auto_language::value_print): New member function.
8402 * language.h (language_data): Delete la_value_print field.
8403 (language_defn::value_print): Declare new member function.
8404 (LA_VALUE_PRINT): Update call to value_print.
8405 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8406 * objc-lang.c (objc_language_data): Likewise.
8407 * opencl-lang.c (opencl_language_data): Likewise.
8408 * p-lang.c (pascal_language_data): Likewise.
8409 (pascal_language::value_print): New member function.
8410 * rust-lang.c (rust_language_data): Delete la_value_print
8411 initializer.
8412
8413 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8414
8415 * ada-lang.c (ada_watch_location_expression): Rename to
8416 ada_language::watch_location_expression.
8417 (ada_language_data): Delete la_watch_location_expression
8418 initializer.
8419 (ada_language::watch_location_expression): New member function,
8420 implementation from ada_watch_location_expression.
8421 * breakpoint.c (watch_command_1): Update call to
8422 watch_location_expression.
8423 * c-lang.c (c_watch_location_expression): Rename to
8424 language_defn::watch_location_expression.
8425 (c_language_data): Delete la_watch_location_expression
8426 initializer.
8427 (cplus_language_data): Likewise.
8428 (asm_language_data): Likewise.
8429 (minimal_language_data): Likewise.
8430 * c-lang.h (c_watch_location_expression): Delete declaration.
8431 * d-lang.c (d_language_data): Delete la_watch_location_expression
8432 initializer.
8433 * f-lang.c (f_language_data): Likewise.
8434 * go-lang.c (go_language_data): Likewise.
8435 * language.c (language_defn::watch_location_expression): Member
8436 function implementation from c_watch_location_expression.
8437 (unknown_language_data): Delete la_watch_location_expression
8438 initializer.
8439 (auto_language_data): Likewise.
8440 * language.h (language_data): Delete la_watch_location_expression
8441 field.
8442 (language_defn::watch_location_expression): Declare new member
8443 function.
8444 * m2-lang.c (m2_language_data): Delete
8445 la_watch_location_expression initializer.
8446 * objc-lang.c (objc_language_data): Likewise.
8447 * opencl-lang.c (opencl_language_data): Likewise.
8448 * p-lang.c (pascal_language_data): Likewise.
8449 * rust-lang.c (rust_watch_location_expression): Rename to
8450 rust_language::watch_location_expression.
8451 (rust_language_data): Delete la_watch_location_expression
8452 initializer.
8453 (rust_language::watch_location_expression): New member function,
8454 implementation from rust_watch_location_expression.
8455
8456 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8457
8458 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8459 ada_language::collect_symbol_completion_matches.
8460 (ada_language_data): Delete la_collect_symbol_completion_matches
8461 initializer.
8462 (ada_language::collect_symbol_completion_matches): New member
8463 function, implementation from
8464 ada_collect_symbol_completion_matches.
8465 * c-lang.c (c_language_data): Delete
8466 la_collect_symbol_completion_matches initializer.
8467 (cplus_language_data): Likewise.
8468 (asm_language_data): Likewise.
8469 (minimal_language_data): Likewise.
8470 * d-lang.c (d_language_data): Likewise.
8471 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8472 f_language::collect_symbol_completion_matches.
8473 (f_language_data): Delete la_collect_symbol_completion_matches
8474 initializer.
8475 (f_language::collect_symbol_completion_matches) New member
8476 function, implementation from f_collect_symbol_completion_matches.
8477 * go-lang.c (go_language_data): Delete
8478 la_collect_symbol_completion_matches initializer.
8479 * language.c (unknown_language_data): Likewise.
8480 (auto_language_data): Likewise.
8481 * language.h (language_data): Delete
8482 la_collect_symbol_completion_matches field.
8483 (language_defn::collect_symbol_completion_matches): New member
8484 function.
8485 * m2-lang.c (m2_language_data): Delete
8486 la_collect_symbol_completion_matches initializer.
8487 * objc-lang.c (objc_language_data): Likewise.
8488 * opencl-lang.c (opencl_language_data): Likewise.
8489 * p-lang.c (pascal_language_data): Likewise.
8490 * rust-lang.c (rust_language_data): Likewise.
8491 * symtab.c (default_collect_symbol_completion_matches): Delete.
8492 (collect_symbol_completion_matches): Update call to
8493 collect_symbol_completion_matches.
8494 (collect_symbol_completion_matches_type): Likewise.
8495 * symtab.h (default_collect_symbol_completion_matches): Delete
8496 declaration.
8497
8498 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8499
8500 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8501 (ada_language_data): Delete la_word_break_characters initializer.
8502 (ada_language::word_break_characters): New member function.
8503 * c-lang.c (c_language_data): Delete la_word_break_characters
8504 initializer.
8505 (cplus_language_data): Likewise.
8506 (asm_language_data): Likewise.
8507 (minimal_language_data): Likewise.
8508 * completer.c: Update global comment.
8509 (advance_to_expression_complete_word_point): Update call to
8510 word_break_characters.
8511 (complete_files_symbols): Likewise.
8512 (complete_line_internal_1): Likewise.
8513 (default_completer_handle_brkchars): Likewise.
8514 (skip_quoted_chars): Likewise.
8515 * d-lang.c (d_language_data): Delete la_word_break_characters
8516 initializer.
8517 * f-lang.c (f_word_break_characters): Delete.
8518 (f_language_data): Delete la_word_break_characters initializer.
8519 (f_language::word_break_characters): New member function.
8520 * go-lang.c (go_language_data): Delete la_word_break_characters
8521 initializer.
8522 * language.c (unknown_language_data): Likewise.
8523 (auto_language_data): Likewise.
8524 * language.h (default_word_break_characters): Move declaration to
8525 earlier in the file.
8526 (language_data): Delete la_word_break_characters field.
8527 (language_defn::word_break_characters): New member function.
8528 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8529 initializer.
8530 * objc-lang.c (objc_language_data): Likewise.
8531 * opencl-lang.c (opencl_language_data): Likewise.
8532 * p-lang.c (pascal_language_data): Likewise.
8533 * rust-lang.c (rust_language_data): Likewise.
8534
8535 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8536
8537 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8538 (ada_language_data): Delete la_get_symbol_name_matcher
8539 initializer.
8540 (language_defn::get_symbol_name_matcher_inner): New member
8541 function.
8542 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8543 initializer.
8544 (cplus_language_data): Likewise.
8545 (cplus_language::get_symbol_name_matcher_inner): New member
8546 function.
8547 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8548 (minimal_language_data): Likewise.
8549 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8550 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8551 initializer.
8552 * dictionary.c (iter_match_first_hashed): Update call to
8553 get_symbol_name_matcher.
8554 (iter_match_next_hashed): Likewise.
8555 (iter_match_next_linear): Likewise.
8556 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8557 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8558 initializer.
8559 (f_language::get_symbol_name_matcher_inner): New member function.
8560 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8561 initializer.
8562 * language.c (default_symbol_name_matcher): Update header comment,
8563 make static.
8564 (language_defn::get_symbol_name_matcher): New definition.
8565 (language_defn::get_symbol_name_matcher_inner): Likewise.
8566 (get_symbol_name_matcher): Delete.
8567 (unknown_language_data): Delete la_get_symbol_name_matcher
8568 initializer.
8569 (auto_language_data): Likewise.
8570 * language.h (language_data): Delete la_get_symbol_name_matcher
8571 field.
8572 (language_defn::get_symbol_name_matcher): New member function.
8573 (language_defn::get_symbol_name_matcher_inner): Likewise.
8574 (default_symbol_name_matcher): Delete declaration.
8575 * linespec.c (find_methods): Update call to
8576 get_symbol_name_matcher.
8577 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8578 initializer.
8579 * minsyms.c (lookup_minimal_symbol): Update call to
8580 get_symbol_name_matcher.
8581 (iterate_over_minimal_symbols): Likewise.
8582 * objc-lang.c (objc_language_data): Delete
8583 la_get_symbol_name_matcher initializer.
8584 * opencl-lang.c (opencl_language_data): Likewise.
8585 * p-lang.c (pascal_language_data): Likewise.
8586 * psymtab.c (psymbol_name_matches): Update call to
8587 get_symbol_name_matcher.
8588 * rust-lang.c (rust_language_data): Delete
8589 la_get_symbol_name_matcher initializer.
8590 * symtab.c (symbol_matches_search_name): Update call to
8591 get_symbol_name_matcher.
8592 (compare_symbol_name): Likewise.
8593
8594 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8595
8596 * ada-lang.c (ada_language_data): Delete la_compute_program
8597 initializer.
8598 * c-lang.c (c_language_data): Likewise.
8599 (c_language::compute_program): New member function.
8600 (cplus_language_data): Delete la_compute_program initializer.
8601 (cplus_language::compute_program): New member function.
8602 (asm_language_data): Delete la_compute_program initializer.
8603 (minimal_language_data): Likewise.
8604 * c-lang.h (c_compute_program): Update comment.
8605 (cplus_compute_program): Likewise.
8606 * compile/compile-c-support.c (c_compute_program): Likewise.
8607 (cplus_compute_program): Likewise.
8608 * compile/compile.c (compile_to_object): Update call to
8609 la_compute_program.
8610 * d-lang.c (d_language_data): Delete la_compute_program
8611 initializer.
8612 * f-lang.c (f_language_data): Likewise.
8613 * go-lang.c (go_language_data): Likewise.
8614 * language.c (unknown_language_data): Likewise.
8615 (auto_language_data): Likewise.
8616 * language.h (language_data): Delete la_compute_program field.
8617 (language_defn::compute_program): New member function.
8618 * m2-lang.c (m2_language_data): Delete la_compute_program
8619 initializer.
8620 * objc-lang.c (objc_language_data): Likewise.
8621 * opencl-lang.c (opencl_language_data): Likewise.
8622 * p-lang.c (pascal_language_data): Likewise.
8623 * rust-lang.c (rust_language_data): Likewise.
8624
8625 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8626
8627 * ada-lang.c (ada_language_data) Delete
8628 la_class_name_from_physname initializer.
8629 * c-lang.c (c_language_data): Likewise.
8630 (cplus_language_data): Likewise.
8631 (cplus_language::class_name_from_physname): New member function.
8632 (asm_language_data): Delete la_class_name_from_physname
8633 initializer.
8634 (minimal_language_data): Likewise.
8635 * d-lang.c (d_language_data): Likewise.
8636 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8637 method on language_defn class.
8638 (guess_full_die_structure_name): Likewise.
8639 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8640 initializer.
8641 * go-lang.c (go_language_data): Likewise.
8642 * language.c (language_class_name_from_physname): Delete.
8643 (unk_lang_class_name): Delete.
8644 (unknown_language_data): Delete la_class_name_from_physname
8645 initializer.
8646 (auto_language_data): Likewise.
8647 * language.h (language_data): Delete la_class_name_from_physname
8648 field.
8649 (language_defn::class_name_from_physname): New function.
8650 (language_class_name_from_physname): Delete declaration.
8651 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8652 initializer.
8653 * objc-lang.c (objc_language_data): Likewise.
8654 * opencl-lang.c (opencl_language_data): Likewise.
8655 * p-lang.c (pascal_language_data): Likewise.
8656 * rust-lang.c (rust_language_data): Likewise.
8657
8658 2020-06-16 Tom Tromey <tom@tromey.com>
8659
8660 * tui/tui-data.h (STATUS_NAME): New macro.
8661 * tui/tui-layout.c (tui_remove_some_windows)
8662 (initialize_known_windows, tui_register_window)
8663 (tui_layout_split::remove_windows, initialize_layouts)
8664 (tui_new_layout_command): Don't use hard-coded window names.
8665
8666 2020-06-16 Tom Tromey <tom@tromey.com>
8667
8668 PR tui/25348:
8669 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8670 tui_initialize_readline. Only run once. Call rl_initialize.
8671 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8672 tui_initialize_readline.
8673 * tui/tui-io.c (tui_setup_io): Call
8674 tui_ensure_readline_initialized.
8675 * tui/tui-interp.c (tui_interp::init): Update.
8676
8677 2020-06-16 Tom Tromey <tom@tromey.com>
8678
8679 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8680 Also preserve the status window.
8681
8682 2020-06-16 Tom Tromey <tom@tromey.com>
8683
8684 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8685 where m_window==nullptr.
8686
8687 2020-06-15 Tom Tromey <tromey@adacore.com>
8688
8689 * windows-nat.c (windows_nat::handle_output_debug_string):
8690 Update.
8691 (windows_nat::handle_ms_vc_exception): Update.
8692 * target.h (target_read_string): Change API.
8693 * target.c (target_read_string): Change API.
8694 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8695 Update.
8696 * solib-frv.c (frv_current_sos): Update.
8697 * solib-dsbt.c (dsbt_current_sos): Update.
8698 * solib-darwin.c (darwin_current_sos): Update.
8699 * linux-thread-db.c (inferior_has_bug): Update.
8700 * expprint.c (print_subexp_standard): Update.
8701 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8702 (ada_exception_message_1): Update.
8703
8704 2020-06-15 Tom Tromey <tromey@adacore.com>
8705
8706 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8707
8708 2020-06-15 Tom Tromey <tromey@adacore.com>
8709
8710 * valprint.c (read_string): Update comment.
8711 * target.c (MIN): Remove.
8712 (target_read_string): Rewrite.
8713
8714 2020-06-15 Tom Tromey <tromey@adacore.com>
8715
8716 * corefile.c (read_memory_string): Remove.
8717 * ada-valprint.c (ada_value_print_ptr): Update.
8718 * ada-lang.h (ada_tag_name): Change return type.
8719 * ada-lang.c (type_from_tag): Update.
8720 (ada_tag_name_from_tsd): Change return type. Use
8721 target_read_string.
8722 (ada_tag_name): Likewise.
8723 * gdbcore.h (read_memory_string): Don't declare.
8724
8725 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8726
8727 * symtab.c (rbreak_command): Ignore Windows drive colon.
8728
8729 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8730
8731 * NEWS: Mention removed GDBserver host support.
8732
8733 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8734
8735 * features/riscv/rebuild-csr-xml.sh: Updated.
8736
8737 2020-06-11 Tom Tromey <tom@tromey.com>
8738
8739 PR gdb/18318:
8740 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8741
8742 2020-06-09 Jonny Grant <jg@jguk.org>
8743 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8744
8745 * main.c (captured_main_1): Don't print new line after help.
8746 (print_gdb_help): add mailing list and IRC channel information
8747 to --help. Add new lines between items in the footer. Remove
8748 quotes around bug url.
8749
8750 2020-06-11 Keith Seitz <keiths@redhat.com>
8751
8752 PR gdb/21356
8753 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8754 Resolve typedefs for type length calculations.
8755
8756 2020-06-10 Tom de Vries <tdevries@suse.de>
8757
8758 PR ada/24713
8759 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8760 (write_psymbols): Enable .gdb_index for ada.
8761 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8762 ada.
8763
8764 2020-06-10 Tom de Vries <tdevries@suse.de>
8765
8766 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8767 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8768 namei" instead of "const char *name" argument.
8769 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8770 dw2_symtab_iter_init.
8771
8772 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8773
8774 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8775 to use type::field and field::type instead.
8776
8777 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8778
8779 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8780 to use field::type instead.
8781
8782 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8783
8784 * gdbtypes.h (struct field) <type, set_type>: New methods.
8785 Rename `type` field to...
8786 <m_type>: ... this. Change references throughout to use type or
8787 set_type methods.
8788 (FIELD_TYPE): Use field::type. Change call sites that modify
8789 the field's type to use field::set_type instead.
8790
8791 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8792
8793 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8794 to use type::index_type instead.
8795
8796 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8797
8798 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8799 methods.
8800 (TYPE_INDEX_TYPE): Use type::index_type.
8801 * gdbtypes.c (create_array_type_with_stride): Likewise.
8802
8803 2020-06-07 Tom Tromey <tom@tromey.com>
8804
8805 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8806 parameter.
8807 (generic_value_print): Update.
8808
8809 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8810
8811 Revert commit 982a38f60b0.
8812 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8813
8814 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8815
8816 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8817 avoid use after free.
8818
8819 2020-06-05 Tom de Vries <tdevries@suse.de>
8820
8821 * NEWS: Fix typos.
8822
8823 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8824
8825 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8826 the per_bfd object.
8827 (dwarf2_read_debug_names): Likewise.
8828 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8829 object when re-using a per_bfd object with an index.
8830
8831 2020-06-03 Tom de Vries <tdevries@suse.de>
8832
8833 PR symtab/26046
8834 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8835 children for C++.
8836 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8837 DW_TAG_subprogram.
8838
8839 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8840
8841 * ada-lang.c (ada_language_data): Delete skip_trampoline
8842 initializer.
8843 * c-lang.c (c_language_data): Likewise.
8844 (cplus_language_data): Likewise.
8845 (cplus_language::skip_trampoline): New member function.
8846 (asm_language_data): Delete skip_trampoline initializer.
8847 (minimal_language_data): Likewise.
8848 * d-lang.c (d_language_data): Likewise.
8849 * f-lang.c (f_language_data): Likewise.
8850 * go-lang.c (go_language_data): Likewise.
8851 * language.c (unk_lang_trampoline): Delete function.
8852 (skip_language_trampoline): Update.
8853 (unknown_language_data): Delete skip_trampoline initializer.
8854 (auto_language_data): Likewise.
8855 * language.h (language_data): Delete skip_trampoline field.
8856 (language_defn::skip_trampoline): New function.
8857 * m2-lang.c (m2_language_data): Delete skip_trampoline
8858 initializer.
8859 * objc-lang.c (objc_skip_trampoline): Delete function, move
8860 implementation to objc_language::skip_trampoline.
8861 (objc_language_data): Delete skip_trampoline initializer.
8862 (objc_language::skip_trampoline): New member function with
8863 implementation from objc_skip_trampoline.
8864 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8865 initializer.
8866 * p-lang.c (pascal_language_data): Likewise.
8867 * rust-lang.c (rust_language_data): Likewise.
8868
8869 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8870
8871 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8872 (ada_language::demangle): New member function.
8873 * c-lang.c (c_language_data): Delete la_demangle initializer.
8874 (cplus_language_data): Delete la_demangle initializer.
8875 (cplus_language::demangle): New member function.
8876 (asm_language_data): Delete la_demangle initializer.
8877 (minimal_language_data): Delete la_demangle initializer.
8878 * d-lang.c (d_language_data): Delete la_demangle initializer.
8879 (d_language::demangle): New member function.
8880 * f-lang.c (f_language_data): Delete la_demangle initializer.
8881 (f_language::demangle): New member function.
8882 * go-lang.c (go_language_data): Delete la_demangle initializer.
8883 (go_language::demangle): New member function.
8884 * language.c (language_demangle): Update.
8885 (unk_lang_demangle): Delete.
8886 (unknown_language_data): Delete la_demangle initializer.
8887 (unknown_language::demangle): New member function.
8888 (auto_language_data): Delete la_demangle initializer.
8889 (auto_language::demangle): New member function.
8890 * language.h (language_data): Delete la_demangle field.
8891 (language_defn::demangle): New function.
8892 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8893 * objc-lang.c (objc_language_data): Delete la_demangle
8894 initializer.
8895 (objc_language::demangle): New member function.
8896 * opencl-lang.c (opencl_language_data): Delete la_demangle
8897 initializer.
8898 * p-lang.c (pascal_language_data): Likewise.
8899 * rust-lang.c (rust_language_data): Likewise.
8900 (rust_language::demangle): New member function.
8901
8902 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8903
8904 * ada-lang.c (ada_language_data): Delete la_print_type
8905 initializer.
8906 (ada_language::print_type): New member function.
8907 * c-lang.c (c_language_data): Delete la_print_type initializer.
8908 (c_language::print_type): New member function.
8909 (cplus_language_data): Delete la_print_type initializer.
8910 (cplus_language::print_type): New member function.
8911 (asm_language_data): Delete la_print_type initializer.
8912 (asm_language::print_type): New member function.
8913 (minimal_language_data): Delete la_print_type initializer.
8914 (minimal_language::print_type): New member function.
8915 * d-lang.c (d_language_data): Delete la_print_type initializer.
8916 (d_language::print_type): New member function.
8917 * f-lang.c (f_language_data): Delete la_print_type initializer.
8918 (f_language::print_type): New member function.
8919 * go-lang.c (go_language_data): Delete la_print_type initializer.
8920 (go_language::print_type): New member function.
8921 * language.c (unk_lang_print_type): Delete.
8922 (unknown_language_data): Delete la_print_type initializer.
8923 (unknown_language::print_type): New member function.
8924 (auto_language_data): Delete la_print_type initializer.
8925 (auto_language::print_type): New member function.
8926 * language.h (language_data): Delete la_print_type field.
8927 (language_defn::print_type): New function.
8928 (LA_PRINT_TYPE): Update.
8929 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8930 (m2_language::print_type): New member function.
8931 * objc-lang.c (objc_language_data): Delete la_print_type
8932 initializer.
8933 (objc_language::print_type): New member function.
8934 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8935 to opencl_language::print_type.
8936 (opencl_language_data): Delete la_print_type initializer.
8937 (opencl_language::print_type): New member function, implementation
8938 from opencl_print_type.
8939 * p-lang.c (pascal_language_data): Delete la_print_type
8940 initializer.
8941 (pascal_language::print_type): New member function.
8942 * rust-lang.c (rust_print_type): Delete, implementation moved to
8943 rust_language::print_type.
8944 (rust_language_data): Delete la_print_type initializer.
8945 (rust_language::print_type): New member function, implementation
8946 from rust_print_type.
8947
8948 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8949
8950 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8951 implementation moves to...
8952 (ada_language::sniff_from_mangled_name): ...here. Update return
8953 type.
8954 (ada_language_data): Delete la_sniff_from_mangled_name
8955 initializer.
8956 * c-lang.c (c_language_data): Likewise.
8957 (cplus_language_data): Likewise.
8958 (cplus_language::sniff_from_mangled_name): New member function,
8959 implementation taken from gdb_sniff_from_mangled_name.
8960 (asm_language_data): Delete la_sniff_from_mangled_name
8961 initializer.
8962 (minimal_language_data): Likewise.
8963 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8964 implementation moves to cplus_language::sniff_from_mangled_name.
8965 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8966 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8967 moves to...
8968 (d_language::sniff_from_mangled_name): ...here.
8969 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8970 * f-lang.c (f_language_data): Likewise.
8971 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8972 moves to...
8973 (go_language::sniff_from_mangled_name): ...here.
8974 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8975 * language.c (language_sniff_from_mangled_name): Delete.
8976 (unknown_language_data): Delete la_sniff_from_mangled_name
8977 initializer.
8978 (auto_language_data): Likewise.
8979 * language.h (language_data): Delete la_sniff_from_mangled_name
8980 field.
8981 (language_defn::sniff_from_mangled_name): New function.
8982 (language_sniff_from_mangled_name): Delete declaration.
8983 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8984 field.
8985 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8986 implementation moves to...
8987 (objc_language::sniff_from_mangled_name): ...here.
8988 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8989 * opencl-lang.c (opencl_language_data): Likewise.
8990 * p-lang.c (pascal_language_data): Likewise.
8991 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8992 implementation moves to...
8993 (rust_language::sniff_from_mangled_name): ...here.
8994 (rust_language_data): Delete la_sniff_from_mangled_name
8995 initializer.
8996 * symtab.c (symbol_find_demangled_name): Call
8997 sniff_from_mangled_name member function.
8998
8999 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9000
9001 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9002 initializer.
9003 * c-lang.c (c_language_data): Likewise.
9004 (cplus_language_data): Likewise.
9005 (cplus_language::search_name_hash): New member function.
9006 (asm_language_data): Delete la_search_name_hash initializer.
9007 (minimal_language_data): Likewise.
9008 * d-lang.c (d_language_data): Likewise.
9009 * dictionary.c (default_search_name_hash): Rename to...
9010 (language_defn::search_name_hash): ...this.
9011 * f-lang.c (f_language_data): Likewise.
9012 (f_language::search_name_hash): New member function.
9013 * go-lang.c (go_language_data): Delete la_search_name_hash
9014 initializer.
9015 * language.c (unknown_language_data): Likewise.
9016 (auto_language_data): Likewise.
9017 * language.h (struct language_data): Delete la_search_name_hash
9018 field.
9019 (language_defn::search_name_hash): Declare new member function.
9020 (default_search_name_hash): Delete declaration.
9021 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9022 initializer.
9023 * objc-lang.c (objc_language_data): Likewise.
9024 * opencl-lang.c (opencl_language_data): Likewise.
9025 * p-lang.c (pascal_language_data): Likewise.
9026 * rust-lang.c (rust_language_data): Likewise.
9027 * symtab.c (search_name_hash): Update call.
9028
9029 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9030
9031 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9032 initializer.
9033 * c-lang.c (class compile_instance): Declare.
9034 (c_language_data): Delete la_get_compile_instance initializer.
9035 (c_language::get_compile_instance): New member function.
9036 (cplus_language_data): Delete la_get_compile_instance initializer.
9037 (cplus_language::get_compile_instance): New member function.
9038 (asm_language_data): Delete la_get_compile_instance initializer.
9039 (minimal_language_data): Likewise.
9040 * c-lang.h (c_get_compile_context): Update comment.
9041 (cplus_get_compile_context): Update comment.
9042 * compile/compile.c (compile_to_object): Update calls, don't rely
9043 on function pointer being NULL.
9044 * d-lang.c (d_language_data): Delete la_get_compile_instance
9045 initializer.
9046 * f-lang.c (f_language_data): Likewise.
9047 * go-lang.c (go_language_data): Likewise.
9048 * language.c (unknown_language_data): Likewise.
9049 (auto_language_data): Likewise.
9050 * language.h (language_data): Delete la_get_compile_instance field.
9051 (language_defn::get_compile_instance): New member function.
9052 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9053 initializer.
9054 * objc-lang.c (objc_language_data): Likewise.
9055 * opencl-lang.c (opencl_language_data): Likewise.
9056 * p-lang.c (pascal_language_data): Likewise.
9057 * rust-lang.c (rust_language_data): Likewise.
9058
9059 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9060
9061 * ada-lang.c (ada_add_all_symbols): Update comment.
9062 (ada_iterate_over_symbols): Delete, move implementation to...
9063 (ada_language::iterate_over_symbols): ...here, a new member
9064 function, rewrite to use range based for loop.
9065 (ada_language_data): Delete la_iterate_over_symbols initializer.
9066 * c-lang.c (c_language_data): Likewise.
9067 (cplus_language_data): Likewise.
9068 (asm_language_data): Likewise.
9069 (minimal_language_data): Likewise.
9070 * d-lang.c (d_language_data): Likewise.
9071 * f-lang.c (f_language_data): Likewise.
9072 * go-lang.c (go_language_data): Likewise.
9073 * language.c (unknown_language_data): Likewise.
9074 (auto_language_data): Likewise.
9075 * language.h (language_data): Delete la_iterate_over_symbols field.
9076 (language_defn::iterate_over_symbols): New member function.
9077 (LA_ITERATE_OVER_SYMBOLS): Update.
9078 * linespec.c (iterate_over_all_matching_symtabs): Update.
9079 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9080 initializer.
9081 * objc-lang.c (objc_language_data): Likewise.
9082 * opencl-lang.c (opencl_language_data): Likewise.
9083 * p-lang.c (pascal_language_data): Likewise.
9084 * rust-lang.c (rust_language_data): Likewise.
9085
9086 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9087
9088 * ada-lang.c (ada_language_data): Delete
9089 la_lookup_transparent_type initializer.
9090 * c-lang.c (c_language_data): Likewise.
9091 (cplus_language_data): Likewise.
9092 (cplus_language::lookup_transparent_type): New member function.
9093 (asm_language_data): Delete la_lookup_transparent_type
9094 initializer.
9095 (minimal_language_data): Likewise.
9096 * d-lang.c (d_language_data): Likewise.
9097 * f-lang.c (f_language_data): Likewise.
9098 * go-lang.c (go_language_data): Likewise.
9099 * language.c (unknown_language_data): Likewise.
9100 (auto_language_data): Likewise.
9101 * language.h (struct language_data): Delete
9102 la_lookup_transparent_type field.
9103 (language_defn::lookup_transparent_type): New member function.
9104 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9105 initializer.
9106 * objc-lang.c (objc_language_data): Likewise.
9107 * opencl-lang.c (opencl_language_data): Likewise.
9108 * p-lang.c (pascal_language_data): Likewise.
9109 * rust-lang.c (rust_language_data): Likewise.
9110 * symtab.c (symbol_matches_domain): Update call.
9111
9112 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9113
9114 * ada-lang.c (ada_language_arch_info): Delete function, move
9115 implementation to...
9116 (ada_language::language_arch_info): ...here, a new member
9117 function.
9118 (ada_language_data): Delete la_language_arch_info.
9119 * c-lang.c (c_language_data): Likewise.
9120 (c_language::language_arch_info): New member function.
9121 (cplus_language_arch_info): Delete function, move
9122 implementation to...
9123 (cplus_language::language_arch_info): ...here, a new member
9124 function.
9125 (cplus_language_data): Delete la_language_arch_info.
9126 (asm_language_data): Likewise.
9127 (asm_language::language_arch_info): New member function.
9128 (minimal_language_data): Delete la_language_arch_info.
9129 (minimal_language::language_arch_info): New member function.
9130 * d-lang.c (d_language_arch_info): Delete function, move
9131 implementation to...
9132 (d_language::language_arch_info): ...here, a new member
9133 function.
9134 (d_language_data): Delete la_language_arch_info.
9135 * f-lang.c (f_language_arch_info): Delete function, move
9136 implementation to...
9137 (f_language::language_arch_info): ...here, a new member
9138 function.
9139 (f_language_data): Delete la_language_arch_info.
9140 * go-lang.c (go_language_arch_info): Delete function, move
9141 implementation to...
9142 (go_language::language_arch_info): ...here, a new member
9143 function.
9144 (go_language_data): Delete la_language_arch_info.
9145 * language.c (unknown_language_data): Likewise.
9146 (unknown_language::language_arch_info): New member function.
9147 (auto_language_data): Delete la_language_arch_info.
9148 (auto_language::language_arch_info): New member function.
9149 (language_gdbarch_post_init): Update call to
9150 la_language_arch_info.
9151 * language.h (language_data): Delete la_language_arch_info
9152 function pointer.
9153 (language_defn::language_arch_info): New function.
9154 * m2-lang.c (m2_language_arch_info): Delete function, move
9155 implementation to...
9156 (m2_language::language_arch_info): ...here, a new member
9157 function.
9158 (m2_language_data): Delete la_language_arch_info.
9159 * objc-lang.c (objc_language_arch_info): Delete function, move
9160 implementation to...
9161 (objc_language::language_arch_info): ...here, a new member
9162 function.
9163 (objc_language_data): Delete la_language_arch_info.
9164 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9165 implementation to...
9166 (opencl_language::language_arch_info): ...here, a new member
9167 function.
9168 (opencl_language_data): Delete la_language_arch_info.
9169 * p-lang.c (pascal_language_arch_info): Delete function, move
9170 implementation to...
9171 (pascal_language::language_arch_info): ...here, a new member
9172 function.
9173 (pascal_language_data): Delete la_language_arch_info.
9174 * rust-lang.c (rust_language_arch_info): Delete function, move
9175 implementation to...
9176 (rust_language::language_arch_info): ...here, a new member
9177 function.
9178 (rust_language_data): Delete la_language_arch_info.
9179
9180 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9181
9182 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9183 initializer.
9184 * c-lang.c (c_language_data): Likewise.
9185 (cplus_language_data): Likewise.
9186 (cplus_language::pass_by_reference_info): New method.
9187 (asm_language_data): Delete la_pass_by_reference initializer.
9188 (minimal_language_data): Likewise.
9189 * cp-abi.c (cp_pass_by_reference): Remove use of
9190 default_pass_by_reference.
9191 * d-lang.c (d_language_data): Likewise.
9192 * f-lang.c (f_language_data): Likewise.
9193 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9194 default_pass_by_reference.
9195 * go-lang.c (go_language_data): Likewise.
9196 * language.c (language_pass_by_reference): Update.
9197 (default_pass_by_reference): Delete.
9198 (unknown_language_data): Delete la_pass_by_reference
9199 initializer.
9200 (auto_language_data): Likewise.
9201 * language.h (struct language_data): Delete la_pass_by_reference
9202 field.
9203 (language_defn::pass_by_reference_info): New member function.
9204 (default_pass_by_reference): Delete declaration.
9205 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9206 initializer.
9207 * objc-lang.c (objc_language_data): Likewise.
9208 * opencl-lang.c (opencl_language_data): Likewise.
9209 * p-lang.c (pascal_language_data): Likewise.
9210 * rust-lang.c (rust_language_data): Likewise.
9211
9212 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9213
9214 * ada-lang.c (ada_read_var_value): Delete function, move
9215 implementation to...
9216 (ada_language::read_var_value): ...here.
9217 (ada_language_data): Delete la_read_var_value initializer.
9218 * c-lang.c (c_language_data): Likewise.
9219 (cplus_language_data): Likewise.
9220 (minimal_language_data): Likewise.
9221 * d-lang.c (d_language_data): Likewise.
9222 * f-lang.c (f_language_data): Likewise.
9223 * findvar.c (default_read_var_value): Rename to...
9224 (language_defn::read_var_value): ...this.
9225 * findvar.c (read_var_value): Update header comment, and change to
9226 call member function instead of function pointer.
9227 * go-lang.c (go_language_data): Likewise.
9228 * language.c (unknown_language_data): Delete la_read_var_value
9229 initializer.
9230 (auto_language_data): Likewise.
9231 * language.h (struct language_data): Delete la_read_var_value
9232 field.
9233 (language_defn::read_var_value): New member function.
9234 (default_read_var_value): Delete declaration.
9235 * m2-lang.c (m2_language_data): Delete la_read_var_value
9236 initializer.
9237 * objc-lang.c (objc_language_data): Likewise.
9238 * opencl-lang.c (opencl_language_data): Likewise.
9239 * p-lang.c (pascal_language_data): Likewise.
9240 * rust-lang.c (rust_language_data): Likewise.
9241 * value.h (default_read_var_value): Delete declaration.
9242
9243 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9244
9245 * ada-lang.c (ada_print_array_index): Delete function, move
9246 implementation to...
9247 (ada_language::print_array_index): ...here.
9248 (ada_language_data): Delete la_print_array_index initializer.
9249 * c-lang.c (c_language_data): Likewise.
9250 (cplus_language_data): Likewise.
9251 (minimal_language_data): Likewise.
9252 * d-lang.c (d_language_data): Likewise.
9253 * f-lang.c (f_language_data): Likewise.
9254 * go-lang.c (go_language_data): Likewise.
9255 * language.c (default_print_array_index): Delete function, move
9256 implementation to...
9257 (language_defn::print_array_index): ...here.
9258 (unknown_language_data): Delete la_print_array_index initializer.
9259 (auto_language_data): Likewise.
9260 * language.h (struct language_data): Delete la_print_array_index
9261 field.
9262 (language_defn::print_array_index): New member function.
9263 (LA_PRINT_ARRAY_INDEX): Update.
9264 (default_print_array_index): Delete declaration.
9265 * m2-lang.c (m2_language_data): Delete la_print_array_index
9266 initializer.
9267 * objc-lang.c (objc_language_data): Likewise.
9268 * opencl-lang.c (opencl_language_data): Likewise.
9269 * p-lang.c (pascal_language_data): Likewise.
9270 * rust-lang.c (rust_language_data): Likewise.
9271
9272 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9273
9274 * gdb/ada-lang.c (ada_language_defn): Convert to...
9275 (ada_language_data): ...this.
9276 (class ada_language): New class.
9277 (ada_language_defn): New static global.
9278 * gdb/c-lang.c (c_language_defn): Convert to...
9279 (c_language_data): ...this.
9280 (class c_language): New class.
9281 (c_language_defn): New static global.
9282 (cplus_language_defn): Convert to...
9283 (cplus_language_data): ...this.
9284 (class cplus_language): New class.
9285 (cplus_language_defn): New static global.
9286 (asm_language_defn): Convert to...
9287 (asm_language_data): ...this.
9288 (class asm_language): New class.
9289 (asm_language_defn): New static global.
9290 (minimal_language_defn): Convert to...
9291 (minimal_language_data): ...this.
9292 (class minimal_language): New class.
9293 (minimal_language_defn): New static global.
9294 * gdb/d-lang.c (d_language_defn): Convert to...
9295 (d_language_data): ...this.
9296 (class d_language): New class.
9297 (d_language_defn): New static global.
9298 * gdb/f-lang.c (f_language_defn): Convert to...
9299 (f_language_data): ...this.
9300 (class f_language): New class.
9301 (f_language_defn): New static global.
9302 * gdb/go-lang.c (go_language_defn): Convert to...
9303 (go_language_data): ...this.
9304 (class go_language): New class.
9305 (go_language_defn): New static global.
9306 * gdb/language.c (unknown_language_defn): Remove declaration.
9307 (current_language): Initialize to nullptr, real initialization is
9308 moved to _initialize_language.
9309 (languages): Delete global.
9310 (language_defn::languages): Define.
9311 (set_language_command): Use language_defn::languages.
9312 (set_language): Likewise.
9313 (range_error): Likewise.
9314 (language_enum): Likewise.
9315 (language_def): Likewise.
9316 (add_set_language_command): Use language_def::languages for the
9317 language list, and language_def to lookup language pointers.
9318 (skip_language_trampoline): Use language_defn::languages.
9319 (unknown_language_defn): Convert to...
9320 (unknown_language_data): ...this.
9321 (class unknown_language): New class.
9322 (unknown_language_defn): New static global.
9323 (auto_language_defn): Convert to...
9324 (auto_language_data): ...this.
9325 (class auto_language): New class.
9326 (auto_language_defn): New static global.
9327 (language_gdbarch_post_init): Use language_defn::languages.
9328 (_initialize_language): Initialize current_language.
9329 * gdb/language.h (struct language_defn): Rename to...
9330 (struct language_data): ...this.
9331 (struct language_defn): New.
9332 (auto_language_defn): Delete.
9333 (unknown_language_defn): Delete.
9334 (minimal_language_defn): Delete.
9335 (ada_language_defn): Delete.
9336 (asm_language_defn): Delete.
9337 (c_language_defn): Delete.
9338 (cplus_language_defn): Delete.
9339 (d_language_defn): Delete.
9340 (f_language_defn): Delete.
9341 (go_language_defn): Delete.
9342 (m2_language_defn): Delete.
9343 (objc_language_defn): Delete.
9344 (opencl_language_defn): Delete.
9345 (pascal_language_defn): Delete.
9346 (rust_language_defn): Delete.
9347 * gdb/m2-lang.c (m2_language_defn): Convert to...
9348 (m2_language_data): ...this.
9349 (class m2_language): New class.
9350 (m2_language_defn): New static global.
9351 * gdb/objc-lang.c (objc_language_defn): Convert to...
9352 (objc_language_data): ...this.
9353 (class objc_language): New class.
9354 (objc_language_defn): New static global.
9355 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9356 (opencl_language_data): ...this.
9357 (class opencl_language): New class.
9358 (opencl_language_defn): New static global.
9359 * gdb/p-lang.c (pascal_language_defn): Convert to...
9360 (pascal_language_data): ...this.
9361 (class pascal_language): New class.
9362 (pascal_language_defn): New static global.
9363 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9364 language pointer, update comment format.
9365 * gdb/rust-lang.c (rust_language_defn): Convert to...
9366 (rust_language_data): ...this.
9367 (class rust_language): New class.
9368 (rust_language_defn): New static global.
9369
9370 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9371
9372 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9373 member variable.
9374 <m_stmt_at_address>: New member variable.
9375 (lnp_state_machine::record_line): Don't record some lines, update
9376 tracking of is_stmt at the same address.
9377 (lnp_state_machine::lnp_state_machine): Initialise new member
9378 variables.
9379
9380 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9381
9382 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9383 "-include gnu-nat-mig.h".
9384 * gnu-nat-mig.h: New file.
9385 * gnu-nat.c: Include "gnu-nat-mig.h".
9386 (exc_server, msg_reply_server, notify_server,
9387 process_reply_server): Remove declarations.
9388
9389 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9390
9391 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9392 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9393 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9394 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9395 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9396 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9397 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9398 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9399 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9400 to gnu_nat_target class.
9401 * gnu-nat.c: Likewise.
9402 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9403 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9404 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9405 object.
9406 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9407 instead of `gnu_target'.
9408
9409 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9410
9411 * i386-gnu-tdep.c: Include "gdbcore.h"
9412 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9413 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9414 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9415 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9416 i386_gnu_sigcontext_addr): New functions
9417 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9418 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9419 tdep.
9420
9421 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9422
9423 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9424 before fork_inferior call. Avoid calling it if target_is_pushed returns
9425 true.
9426
9427 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9428
9429 * gnu-nat.h (gnu_target): New variable declaration.
9430 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9431 gnu_target.
9432 * gnu-nat.c (gnu_target): New variable.
9433 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9434 add_thread_silent, and add_thread calls.
9435 (gnu_nat_target::create_inferior): Pass gnu_target to
9436 add_thread_silent, thread_change_ptid call.
9437 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9438 call.
9439
9440 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9441
9442 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9443 (gnu_nat_target::find_memory_regions): Remove unused
9444 `old_address' variable.
9445
9446 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9447
9448 * gnu-nat.c: Include "gdbarch.h".
9449
9450 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9451
9452 * reply_mig_hack.awk (Error return): Cast function through
9453 void *, to bypass compiler function call check.
9454
9455 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9456
9457 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9458 $(srcdir)/reply_mig_hack.awk.
9459
9460 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9461
9462 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9463
9464 2020-05-30 Jonny Grant <jg@jguk.org>
9465
9466 * configure.ac (ACX_BUGURL): change bug URL to https.
9467
9468 2020-05-30 Pedro Alves <palves@redhat.com>
9469
9470 * cp-support.c (replace_typedefs_template): New.
9471 (replace_typedefs_qualified_name): Handle
9472 DEMANGLE_COMPONENT_TEMPLATE.
9473
9474 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9475
9476 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9477 dwarf2/index-cache.h, dwarf2/index-write.c,
9478 dwarf2/index-write.h, dwarf2/line-header.c,
9479 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9480 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9481 variables and fields from `dwarf2_per_objfile` to just
9482 `per_objfile` throughout.
9483
9484 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9485
9486 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9487 <push_dwarf_reg_entry_value>: Add comment.
9488
9489 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9490 Keith Seitz <keiths@redhat.com>
9491
9492 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9493 instead of PyEval_ReleaseLock.
9494 (class gdbpy_gil): Move to earlier in file.
9495 (finalize_python): Set gdb_python_initialized.
9496 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9497 when not initialized.
9498
9499 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9500
9501 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9502 <push_dwarf_reg_entry_value>: Remove assert. Override
9503 per_objfile with caller_per_objfile.
9504
9505 2020-05-28 Tom de Vries <tdevries@suse.de>
9506
9507 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9508 PR gold/15646 workaround to symbol kind "type".
9509
9510 2020-05-27 Tom Tromey <tromey@adacore.com>
9511
9512 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9513
9514 2020-05-27 Tom Tromey <tromey@adacore.com>
9515
9516 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9517 Use htab_find_with_hash.
9518 <add_abbrev>: Remove "abbrev_number" parameter.
9519 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9520 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9521 (hash_abbrev): Add comment.
9522 (abbrev_table::lookup_abbrev): Move to header file.
9523 (abbrev_table::read): Update.
9524
9525 2020-05-27 Tom Tromey <tromey@adacore.com>
9526
9527 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9528 method.
9529 <canonical_name>: New member.
9530 <raw_name>: Rename from "name".
9531 (partial_die_info): Initialize canonical_name.
9532 (scan_partial_symbols): Check raw_name.
9533 (partial_die_parent_scope, partial_die_full_name)
9534 (add_partial_symbol, add_partial_subprogram)
9535 (add_partial_enumeration, load_partial_dies): Use "name" method.
9536 (partial_die_info::name): New method.
9537 (partial_die_info::read, guess_partial_die_structure_name)
9538 (partial_die_info::fixup): Update.
9539
9540 2020-05-27 Tom Tromey <tromey@adacore.com>
9541
9542 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9543 <get_ref_die_offset>: Inline.
9544 <get_ref_die_offset_complaint>: New method.
9545 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9546 (attribute::get_ref_die_offset_complaint): Rename from
9547 get_ref_die_offset. Just issue complaint.
9548
9549 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9550
9551 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9552
9553 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9554
9555 * exec.c (exec_file_attach): Use errno value of first openp failure.
9556
9557 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9558
9559 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9560 Don't close thread handle.
9561
9562 2020-05-27 Tom Tromey <tom@tromey.com>
9563 Simon Marchi <simon.marchi@efficios.com>
9564
9565 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9566 shared_ptr.
9567 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9568 member.
9569 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9570 dwarf2_per_bfd_objfile_data_key>: New globals.
9571 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9572 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9573 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9574 shared.
9575 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9576 short-circuit when sharing.
9577 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9578 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9579
9580 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9581
9582 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9583 to...
9584 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9585 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9586
9587 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9588
9589 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9590 build_name_components, find_name_components_bounds>:
9591 Add per_objfile parameter.
9592 (struct mapped_index) <symbol_name_at>: Likewise.
9593 (struct mapped_debug_names): Remove constructor.
9594 <dwarf2_per_objfile>: Remove field.
9595 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9596 (mapped_index_base::find_name_components_bounds,
9597 mapped_index_base::build_name_components,
9598 dw2_expand_symtabs_matching_symbol): Likewise.
9599 (class mock_mapped_index) <symbol_name_at>: Likewise.
9600 (check_match): Likewise.
9601 (check_find_bounds_finds): Likewise.
9602 (test_mapped_index_find_name_component_bounds): Update.
9603 (CHECK_MATCH): Update.
9604 (dw2_expand_symtabs_matching): Update.
9605 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9606 per_objfile parameter.
9607 <find_vec_in_debug_names>: Likewise.
9608 <m_per_objfile>: New field.
9609 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9610 parameter.
9611 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9612 (dw2_debug_names_iterator::next): Update.
9613 (dw2_debug_names_lookup_symbol): Update.
9614 (dw2_debug_names_expand_symtabs_for_function): Update.
9615 (dw2_debug_names_map_matching_symbols): Update.
9616 (dw2_debug_names_expand_symtabs_matching): Update.
9617 (dwarf2_read_debug_names): Update.
9618
9619 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9620
9621 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9622 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9623 move to dwarf2_per_objfile.
9624 <read_in_chain>: Remove.
9625 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9626 remove_all_cus, age_comp_units>: New methods.
9627 <m_dwarf2_cus>: New member.
9628 (struct dwarf2_per_cu_data) <cu>: Remove.
9629 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9630 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9631 moved to methods of dwarf2_per_objfile.
9632 (dwarf2_clear_marks): Remove.
9633 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9634 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9635 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9636 (dwarf2_per_objfile::remove_all_cus): New.
9637 (class free_cached_comp_units) <~free_cached_comp_units>:
9638 Update.
9639 (load_cu): Update.
9640 (dw2_do_instantiate_symtab): Adjust.
9641 (fill_in_sig_entry_from_dwo_entry): Adjust.
9642 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9643 (cutu_reader::cutu_reader): Likewise.
9644 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9645 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9646 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9647 and dwarf2_per_objfile::age_comp_units.
9648 (load_partial_comp_unit): Update.
9649 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9650 (process_queue): Likewise.
9651 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9652 backlink.
9653 (dwarf2_read_addr_index): Likewise.
9654 (follow_die_offset): Likewise.
9655 (dwarf2_fetch_die_loc_sect_off): Likewise.
9656 (dwarf2_fetch_constant_bytes): Likewise.
9657 (dwarf2_fetch_die_type_sect_off): Likewise.
9658 (follow_die_sig_1): Likewise.
9659 (load_full_type_unit): Likewise.
9660 (read_signatured_type): Likewise.
9661 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9662 (dwarf2_cu::~dwarf2_cu): Remove.
9663 (dwarf2_per_objfile::get_cu): New.
9664 (dwarf2_per_objfile::set_cu): New.
9665 (age_cached_comp_units): Rename to...
9666 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9667 to std::unordered_map.
9668 (free_one_cached_comp_unit): Rename to...
9669 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9670 to std::unordered_map.
9671 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9672 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9673 a dwarf2_per_objfile in data.
9674 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9675 (dwarf2_clear_marks): Remove.
9676
9677 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9678
9679 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9680 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9681 (init_tu_and_read_dwo_dies): Likewise.
9682 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9683 (cutu_reader::cutu_reader): Likewise.
9684 (load_partial_comp_unit): Likewise.
9685 (process_psymtab_comp_unit): Update.
9686 (build_type_psymtabs_1): Update.
9687 (process_skeletonless_type_unit): Update.
9688 (load_full_comp_unit): Update.
9689 (find_partial_die): Update.
9690 (dwarf2_read_addr_index): Update.
9691 (read_signatured_type): Update.
9692
9693 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9694
9695 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9696 m_header_read_in>: New fields.
9697 <get_header>: New method.
9698 * dwarf2/read.c (per_cu_header_read_in): Remove.
9699 (dwarf2_per_cu_data::get_header): New.
9700 (dwarf2_per_cu_data::addr_size): Update.
9701 (dwarf2_per_cu_data::offset_size): Update.
9702 (dwarf2_per_cu_data::ref_addr_size): Update.
9703
9704 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9705
9706 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9707 (dw2_do_instantiate_symtab): Update.
9708 (queue_and_load_all_dwo_tus): Change parameter from
9709 dwarf2_per_cu_data to dwarf2_cu.
9710 (dwarf2_fetch_die_loc_sect_off): Update.
9711 (dwarf2_fetch_constant_bytes): Update.
9712 (dwarf2_fetch_die_type_sect_off): Update.
9713
9714 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9715
9716 * dwarf2/read.c (process_full_comp_unit,
9717 process_full_type_unit): Remove per_cu, per_objfile paramters.
9718 Add dwarf2_cu parameter.
9719 (process_queue): Update.
9720
9721 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9722
9723 * dwarf2/read.c (create_cu_from_index_list): Replace
9724 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9725 (create_cus_from_index_list): Likewise.
9726 (create_cus_from_index): Likewise.
9727 (create_signatured_type_table_from_index): Likewise.
9728 (create_cus_from_debug_names_list): Likewise.
9729 (create_cus_from_debug_names): Likewise.
9730 (dwarf2_read_gdb_index): Update.
9731 (dwarf2_read_debug_names): Update.
9732
9733 2020-05-27 Tom Tromey <tom@tromey.com>
9734 Simon Marchi <simon.marchi@efficios.com>
9735
9736 * dwarf2/read.h (struct dwarf2_per_objfile)
9737 <get_type_for_signatured_type, set_type_for_signatured_type>:
9738 New methods.
9739 <m_type_map>: New member.
9740 (struct signatured_type) <type>: Remove.
9741 * dwarf2/read.c
9742 (dwarf2_per_objfile::get_type_for_signatured_type,
9743 dwarf2_per_objfile::set_type_for_signatured_type): New.
9744 (get_signatured_type): Use new methods.
9745
9746 2020-05-27 Tom Tromey <tom@tromey.com>
9747 Simon Marchi <simon.marchi@efficios.com>
9748
9749 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9750 (struct dwarf2_per_objfile) <type_units>: New member.
9751 <get_type_unit_group_unshareable>: New method.
9752 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9753 num_symtabs, symtabs>: Remove; move to
9754 type_unit_group_unshareable.
9755 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9756 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9757 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9758
9759 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9760
9761 * dwarf2/read.h (struct dwarf2_per_cu_data):
9762 <dwarf2_per_objfile>: Remove.
9763 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9764 dwarf2_per_objfile.
9765 (create_signatured_type_table_from_index): Likewise.
9766 (create_signatured_type_table_from_debug_names): Likewise.
9767 (create_debug_type_hash_table): Likewise.
9768 (fill_in_sig_entry_from_dwo_entry): Likewise.
9769 (create_type_unit_group): Likewise.
9770 (read_comp_units_from_section): Likewise.
9771 (create_cus_hash_table): Likewise.
9772
9773 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9774
9775 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9776 dwarf2_per_cu_data::dwarf2_per_objfile.
9777 (compute_compunit_symtab_includes): Likewise.
9778 (dwarf2_cu::start_symtab): Likewise.
9779
9780 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9781
9782 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9783 parameter.
9784 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9785 (read_namespace_alias): Update.
9786 (lookup_die_type): Update.
9787 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9788 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9789 Update.
9790 (disassemble_dwarf_expression): Update.
9791
9792 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9793
9794 * dwarf2/read.h (struct dwarf2_queue_item): Add
9795 dwarf2_per_objfile parameter, assign new parameter.
9796 <per_objfile>: New field.
9797 * dwarf2/read.c (free_one_cached_comp_unit): Add
9798 dwarf2_per_objfile parameter.
9799 (queue_comp_unit): Likewise.
9800 (dw2_do_instantiate_symtab): Update.
9801 (process_psymtab_comp_unit): Update.
9802 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9803 (process_imported_unit_die): Update.
9804 (queue_and_load_dwo_tu): Update.
9805 (follow_die_offset): Update.
9806 (follow_die_sig_1): Update.
9807
9808 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9809
9810 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9811 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9812 (read_call_site_scope): Assign per_objfile.
9813 (dwarf2_per_cu_data::objfile): Remove.
9814 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9815 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9816 dwarf2_per_objfile parameter.
9817 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9818 dwarf2_per_objfile parameter.
9819 (dwarf_expr_reg_to_entry_parameter): Add output
9820 dwarf2_per_objfile parameter.
9821 (locexpr_get_frame_base): Update.
9822 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9823 <push_dwarf_reg_entry_value>: Update.
9824 <call_site_to_target_addr>: Update.
9825 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9826 parameter.
9827 (value_of_dwarf_reg_entry): Update.
9828 (rw_pieced_value): Update.
9829 (indirect_synthetic_pointer): Update.
9830 (dwarf2_evaluate_property): Update.
9831 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9832 parameter.
9833 (locexpr_read_variable): Update.
9834 (locexpr_get_symbol_read_needs): Update.
9835 (loclist_read_variable): Update.
9836
9837 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9838
9839 * dwarf2/read.h (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/read.c (dwarf2_fetch_die_loc_sect_off,
9844 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9845 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9846 parameter.
9847 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9848 sect_variable_value): Add dwarf2_per_objfile parameter.
9849 (class dwarf_evaluate_loc_desc) <dwarf_call,
9850 dwarf_variable_value>: Update.
9851 (fetch_const_value_from_synthetic_pointer): Add
9852 dwarf2_per_objfile parameter.
9853 (fetch_const_value_from_synthetic_pointer): Update.
9854 (coerced_pieced_ref): Update.
9855 (class symbol_needs_eval_context) <dwarf_call,
9856 dwarf_variable_value>: Update.
9857 (dwarf2_compile_expr_to_ax): Update.
9858
9859 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9860
9861 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9862 parameter.
9863 (dwarf2_evaluate_loc_desc_full): Update.
9864
9865 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9866
9867 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9868 parameter.
9869 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9870 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9871 dwarf2_per_objfile parameter.
9872 (decode_debug_loc_dwo_addresses): Likewise.
9873 (dwarf2_find_location_expression): Update.
9874 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9875 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9876 parameter.
9877 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9878 parameter.
9879 (locexpr_describe_location_1): Likewise.
9880 (locexpr_describe_location): Update.
9881
9882 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9883
9884 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9885 Remove.
9886 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9887 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9888 (dwarf2_compile_property_to_c): Update.
9889 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9890 use text offset from objfile.
9891 (locexpr_tracepoint_var_ref): Update.
9892 (locexpr_generate_c_location): Update.
9893 (loclist_describe_location): Update.
9894 (loclist_tracepoint_var_ref): Update.
9895 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9896 dwarf2_per_objfile parameter.
9897 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9898 use text offset from objfile.
9899 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9900
9901 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9902
9903 * dwarf2/expr.h (struct dwarf_expr_context)
9904 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9905 <offset>: Remove.
9906 <per_objfile>: New member.
9907 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9908 dwarf2_per_objfile parameter. Don't set offset, set
9909 per_objfile.
9910 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9911 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9912 a dwarf2_per_objfile object instead of an offset.
9913 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9914 constructor.
9915 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9916 to dwarf2_expr_executor constructor. Don't set offset.
9917 (dwarf2_fetch_cfa_info): Update.
9918 (struct dwarf2_frame_cache) <text_offset>: Remove.
9919 <per_objfile>: New field.
9920 (dwarf2_frame_cache): Update.
9921 (dwarf2_frame_prev_register): Update.
9922 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9923 <dwarf_evaluate_loc_desc>: Add constructor.
9924 (dwarf2_evaluate_loc_desc_full): Update.
9925 (dwarf2_locexpr_baton_eval): Update.
9926 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9927 Add constructor.
9928 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9929
9930 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9931
9932 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9933 addr_sized_int_type>: Move to dwarf2_cu.
9934 <int_type>: Move to dwarf2_per_objfile.
9935 (struct dwarf2_per_objfile) <int_type>: Move here.
9936 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9937 addr_sized_int_type>: Move here.
9938 (read_func_scope): Update.
9939 (read_array_type): Update.
9940 (read_tag_string_type): Update.
9941 (attr_to_dynamic_prop): Update.
9942 (dwarf2_per_cu_data::int_type): Rename to...
9943 (dwarf2_per_objfile::int_type): ... this.
9944 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9945 (dwarf2_cu::addr_sized_int_type): ... this.
9946 (read_subrange_type): Update.
9947 (dwarf2_per_cu_data::addr_type): Rename to...
9948 (dwarf2_cu::addr_type): ... this.
9949 (set_die_type): Update.
9950
9951 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9952
9953 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9954 data through per_cu->cu.
9955
9956 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9957
9958 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9959 dwarf2_per_cu_data parameter fo dwarf2_cu.
9960 (lookup_dwo_type_unit): Likewise.
9961 (read_cutu_die_from_dwo): Likewise.
9962 (lookup_dwo_unit): Likewise.
9963 (open_and_init_dwo_file): Likewise.
9964 (lookup_dwo_cutu): Likewise.
9965 (lookup_dwo_comp_unit): Likewise.
9966 (lookup_dwo_type_unit): Likewise.
9967 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9968 (cutu_reader::cutu_reader): Update.
9969
9970 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9971
9972 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9973 parameter.
9974 (process_full_type_unit): Likewise.
9975 (process_queue): Update.
9976
9977 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9978
9979 * dwarf2/read.c (recursively_compute_inclusions): Add
9980 dwarf2_per_objfile parameter.
9981 (compute_compunit_symtab_includes): Likewise.
9982 (process_cu_includes): Update.
9983
9984 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9985
9986 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9987 parameter.
9988 (create_type_unit_group): Update.
9989 (process_psymtab_comp_unit_reader): Update.
9990 (build_type_psymtabs_reader): Update.
9991
9992 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9993
9994 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9995 object through m_this_cu->cu.
9996
9997 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9998
9999 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10000 the info parameter.
10001 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10002
10003 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10004
10005 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10006 per_objfile parameter.
10007 (load_full_type_unit): Add per_objfile parameter.
10008 (read_signatured_type): Likewise.
10009 (load_full_comp_unit): Likewise.
10010 (load_cu): Likewise.
10011 (dw2_do_instantiate_symtab): Likewise.
10012 (dw2_get_file_names): Likewise.
10013 (dw2_map_symtabs_matching_filename): Update.
10014 (dw_expand_symtabs_matching_file_matcher): Update.
10015 (dw2_map_symbol_filenames): Update.
10016 (process_psymtab_comp_unit): Add per_objfile parameter.
10017 (build_type_psymtabs_1): Update.
10018 (process_skeletonless_type_unit): Update.
10019 (dwarf2_build_psymtabs_hard): Update.
10020 (load_partial_comp_unit): Add per_objfile parameter.
10021 (scan_partial_symbols): Update.
10022 (load_full_comp_unit): Add per_objfile parameter.
10023 (process_imported_unit_die): Update.
10024 (create_cus_hash_table): Update.
10025 (find_partial_die): Update.
10026 (dwarf2_read_addr_index): Update.
10027 (follow_die_offset): Update.
10028 (dwarf2_fetch_die_loc_sect_off): Update.
10029 (dwarf2_fetch_constant_bytes): Update.
10030 (dwarf2_fetch_die_type_sect_off): Update.
10031 (follow_die_sig_1): Update.
10032 (load_full_type_unit): Add per_objfile parameter.
10033 (read_signatured_type): Likewise.
10034
10035 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10036
10037 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10038 of objfile_name.
10039
10040 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10041
10042 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10043 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10044 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10045 field.
10046 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10047 (create_cus_from_index): Update.
10048 (dwarf2_read_gdb_index): Update.
10049 (create_cus_from_debug_names): Update.
10050 (dwarf2_read_debug_names): Update.
10051 (get_abbrev_section_for_cu): Update.
10052 (create_all_comp_units): Update.
10053 (read_attribute_value): Update.
10054 (get_debug_line_section): Update.
10055 * dwarf2/index-cache.c (index_cache::store): Update.
10056 * dwarf2/index-write.c (save_gdb_index_command): Update.
10057 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10058
10059 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10060
10061 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10062 member.
10063 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10064 dwarf2_per_cu_data::per_bfd.
10065 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10066 (create_type_unit_group): Likewise.
10067 (queue_comp_unit): Remove reference to
10068 per_cu->dwarf2_per_objfile.
10069 (maybe_queue_comp_unit): Likewise.
10070 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10071 (create_cus_hash_table): Assign new field.
10072
10073 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10074
10075 * dwarf2/read.c: Replace
10076 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10077 dwarf2_cu->per_objfile throughout.
10078
10079 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10080
10081 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10082 parameter, don't use per_cu->dwarf2_per_objfile.
10083 (dw2_instantiate_symtab): Likewise.
10084 (dw2_find_last_source_symtab): Update.
10085 (dw2_map_expand_apply): Update.
10086 (dw2_lookup_symbol): Update.
10087 (dw2_expand_symtabs_for_function): Update.
10088 (dw2_expand_all_symtabs): Update.
10089 (dw2_expand_symtabs_with_fullname): Update.
10090 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10091 don't use per_cu->dwarf2_per_objfile.
10092 (dw2_expand_marked_cus): Update.
10093 (dw2_find_pc_sect_compunit_symtab): Update.
10094 (dw2_debug_names_lookup_symbol): Update.
10095 (dw2_debug_names_expand_symtabs_for_function): Update.
10096 (dw2_debug_names_map_matching_symbols): Update.
10097 (dwarf2_psymtab::expand_psymtab): Update.
10098
10099 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10100
10101 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10102 <per_objfile>: New member.
10103 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10104 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10105 call to dwarf2_cu.
10106 (cutu_reader::cutu_reader): Update.
10107 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10108
10109 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10110
10111 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10112 struct dwarf2_per_objfile.
10113 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10114 dwarf2_per_bfd.
10115 * dwarf2/read.c (set_die_type): Update.
10116 (get_die_type_at_offset): Update.
10117
10118 2020-05-27 Tom Tromey <tom@tromey.com>
10119 Simon Marchi <simon.marchi@efficios.com>
10120
10121 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10122 method.
10123 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10124 get_symtab, set_symtab>: New methods.
10125 <m_symtabs>: New field.
10126 (struct dwarf2_psymtab): Derive from partial_symtab.
10127 <readin_p, get_compunit_symtab>: Declare methods.
10128 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10129 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10130 New methods.
10131 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10132 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10133 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10134 (dw2_symtab_iter_next, dw2_print_stats)
10135 (dw2_expand_symtabs_with_fullname)
10136 (dw2_expand_symtabs_matching_one)
10137 (dw_expand_symtabs_matching_file_matcher)
10138 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10139 (dw2_debug_names_iterator::next)
10140 (dw2_debug_names_map_matching_symbols)
10141 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10142 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10143 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10144 New methods.
10145 (get_compunit_symtab, process_full_comp_unit)
10146 (process_full_type_unit): Update.
10147 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10148
10149 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10150
10151 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10152 then introduce a new dwarf2_per_objfile type.
10153 <read_line_string>: Move to the new dwarf2_per_objfile type.
10154 <objfile>: Likewise.
10155 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10156 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10157 dwarf2_per_objfile->per_bfd.
10158 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10159 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10160 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10161 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10162 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10163 (dwarf2_per_objfile::locate_sections): Rename to...
10164 (dwarf2_per_bfd::locate_sections): ... this.
10165 (dwarf2_per_objfile::get_cutu): Rename to...
10166 (dwarf2_per_bfd::get_cutu): ... this.
10167 (dwarf2_per_objfile::get_cu): Rename to...
10168 (dwarf2_per_bfd::get_cu): ... this.
10169 (dwarf2_per_objfile::get_tu): Rename to...
10170 (dwarf2_per_bfd::get_tu): ... this.
10171 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10172 (dwarf2_per_bfd::allocate_per_cu): ... this.
10173 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10174 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10175 (get_gdb_index_contents_ftype): Change parameter from
10176 dwarf2_per_objfile to dwarf2_per_bfd.
10177 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10178 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10179
10180 2020-05-27 Tom Tromey <tom@tromey.com>
10181 Simon Marchi <simon.marchi@efficios.com>
10182
10183 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10184 (allocate_piece_closure): Set "per_objfile" member.
10185 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10186 (locexpr_describe_location, loclist_describe_location): Use new
10187 member.
10188 * dwarf2/read.c (read_call_site_scope)
10189 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10190 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10191 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10192 handle_data_member_location): Set per_objfile member.
10193 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10194 member.
10195 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10196
10197 2020-05-27 Tom Tromey <tom@tromey.com>
10198
10199 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10200 allocate_signatured_type>: Declare new methods.
10201 <m_num_psymtabs>: New member.
10202 (struct dwarf2_per_cu_data) <index>: New member.
10203 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10204 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10205 (create_cu_from_index_list): Use allocate_per_cu.
10206 (create_signatured_type_table_from_index)
10207 (create_signatured_type_table_from_debug_names)
10208 (create_debug_type_hash_table, add_type_unit)
10209 (read_comp_units_from_section): Use allocate_signatured_type.
10210
10211 2020-05-27 Tom Tromey <tom@tromey.com>
10212
10213 * psymtab.c (partial_map_expand_apply)
10214 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10215 (psym_lookup_global_symbol_language)
10216 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10217 (psym_print_stats, psym_expand_symtabs_for_function)
10218 (psym_map_symbol_filenames, psym_map_matching_symbols)
10219 (psym_expand_symtabs_matching)
10220 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10221 (maintenance_check_psymtabs): Update.
10222 * psympriv.h (struct partial_symtab) <readin_p,
10223 get_compunit_symtab>: Add objfile parameter.
10224 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10225 Likewise.
10226 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10227 get_compunit_symtab>: Likewise.
10228 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10229
10230 2020-05-27 Tom Tromey <tom@tromey.com>
10231
10232 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10233 member.
10234 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10235 (create_cu_from_index_list)
10236 (create_signatured_type_table_from_index)
10237 (create_signatured_type_table_from_debug_names)
10238 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10239 (dwarf2_create_include_psymtab)
10240 (create_debug_type_hash_table, add_type_unit)
10241 (create_type_unit_group, read_comp_units_from_section)
10242 (dwarf2_compute_name, create_cus_hash_table)
10243 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10244 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10245 obstack.
10246 (dw2_get_real_path): Likewise. Change argument to
10247 dwarf2_per_objfile.
10248
10249 2020-05-27 Luis Machado <luis.machado@linaro.org>
10250
10251 PR tdep/26000
10252 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10253 for ldrd (immediate).
10254
10255 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10256
10257 * command.h: Add comment giving the name of class_tui.
10258 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10259 create the fake command for the help for class_tui.
10260
10261 2020-05-26 Tom Tromey <tromey@adacore.com>
10262
10263 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10264 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10265 (val_atr): New function.
10266 (value_val_atr): Use it.
10267 * ada-valprint.c (print_optional_low_bound): Change low bound
10268 handling for enums.
10269 (val_print_packed_array_elements): Don't call discrete_position.
10270 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10271 discrete_position for enum types.
10272 * language.c (default_print_array_index): Change type.
10273 * language.h (struct language_defn) <la_print_array_index>: Add
10274 index_type parameter, change type of index_value.
10275 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10276 (default_print_array_index): Update.
10277 * valprint.c (maybe_print_array_index): Don't call
10278 value_from_longest. Update.
10279 (value_print_array_elements): Don't call discrete_position.
10280
10281 2020-05-26 Tom Tromey <tromey@adacore.com>
10282
10283 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10284 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10285
10286 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10287
10288 PR gdb/13519
10289 * avr-tdep.c (avr_integer_to_address): Return data or code
10290 address accordingly to the second 'type' argument of the
10291 function.
10292
10293 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10294
10295 * infcmd.c, inferior.h: (construct_inferior_arguments):
10296 Moved function from here to gdbsupport/common-inferior.{h,cc}
10297
10298 2020-05-23 Tom Tromey <tom@tromey.com>
10299
10300 Revert commit eca1f90c:
10301 * NEWS: Remove entry for completion styling.
10302 * completer.c (_rl_completion_prefix_display_length): Move
10303 declaration later.
10304 (gdb_fnprint): Revert.
10305 (gdb_display_match_list_1): Likewise.
10306 * cli/cli-style.c (completion_prefix_style)
10307 (completion_difference_style, completion_suffix_style): Remove.
10308 (_initialize_cli_style): Revert.
10309 * cli/cli-style.h (completion_prefix_style)
10310 (completion_difference_style, completion_suffix_style): Don't
10311 declare.
10312
10313 2020-05-24 Pedro Alves <palves@redhat.com>
10314
10315 * symtab.c (completion_list_add_name): Return boolean indication
10316 of whether the symbol matched.
10317 (completion_list_add_symbol): Don't try to remove C++ aliases if
10318 the symbol didn't match in the first place.
10319 * symtab.h (completion_list_add_name): Return bool.
10320
10321 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10322
10323 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10324 type::field.
10325
10326 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10327
10328 GDB 9.2 released.
10329
10330 2020-05-23 Tom Tromey <tom@tromey.com>
10331
10332 * NEWS: Add entry for completion styling.
10333 * completer.c (_rl_completion_prefix_display_length): Move
10334 declaration earlier.
10335 (gdb_fnprint): Use completion_style.
10336 (gdb_display_match_list_1): Likewise.
10337 * cli/cli-style.c (completion_prefix_style)
10338 (completion_difference_style, completion_suffix_style): New
10339 globals.
10340 (_initialize_cli_style): Register new globals.
10341 * cli/cli-style.h (completion_prefix_style)
10342 (completion_difference_style, completion_suffix_style): Declare.
10343
10344 2020-05-23 Pedro Alves <palves@redhat.com>
10345
10346 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10347 (parse_escape): Use ISDIGIT instead of isdigit.
10348 (puts_debug): Use gdb_isprint instead of isprint.
10349 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10350 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10351 ISSPACE instead of isspace.
10352 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10353 instead of isspace.
10354 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10355 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10356 instead of isxdigit and ISDIGIT instead of isdigit.
10357
10358 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10359
10360 * gdbtypes.h (struct type) <field>: New method.
10361 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10362 or type::field.
10363
10364 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10365
10366 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10367 (TYPE_FIELDS): Use type::fields. Change all call sites that
10368 modify the propery to use type::set_fields instead.
10369
10370 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10371
10372 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10373 type::num_fields instead.
10374
10375 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10376
10377 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10378 methods.
10379 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10380 that modify the number of fields to use type::set_num_fields
10381 instead.
10382
10383 2020-05-22 Tom Tromey <tromey@adacore.com>
10384
10385 * compile/compile-object-load.h (munmap_list_free): Don't
10386 declare.
10387
10388 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10389
10390 * annotate.c (annotate_source_line): Update return type, add call
10391 to update current symtab and line.
10392 * annotate.h (annotate_source_line): Update return type, and
10393 extend header comment.
10394 * source.c (info_line_command): Check annotation_level before
10395 calling annotate_source_line.
10396 * stack.c (print_frame_info): If calling annotate_source_line
10397 returns true, then don't print any other source line information.
10398
10399 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10400
10401 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10402
10403 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10404
10405 * coffread.c (patch_type): Remove NULL check before xfree.
10406 * corefile.c (set_gnutarget): Likewise.
10407 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10408 * exec.c (build_section_table): Likewise.
10409 * remote.c (remote_target::pass_signals): Likewise.
10410 * utils.c (n_spaces): Likewise.
10411 * cli/cli-script.c (document_command): Likewise.
10412 * i386-windows-tdep.c (core_process_module_section): Likewise.
10413 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10414
10415 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10416
10417 * symfile.c (reread_symbols): Clear objfile's section_offsets
10418 vector and section indices, re-compute them by calling
10419 sym_offsets.
10420
10421 2020-05-20 Tom Tromey <tromey@adacore.com>
10422
10423 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10424 (desc_one_bound, desc_index_type): Compute field name.
10425
10426 2020-05-20 Tom de Vries <tdevries@suse.de>
10427
10428 PR symtab/25833
10429 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10430
10431 2020-05-20 Alan Modra <amodra@gmail.com>
10432
10433 PR 25993
10434 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10435 bfd_set_filename.
10436 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10437 passed to bfd_set_filename.
10438 * symfile-mem.c (add_vsyscall_page): Likewise for string
10439 passed to symbol_file_add_from_memory.
10440 (symbol_file_add_from_memory): Make name param a const char* and
10441 don't strdup.
10442
10443 2020-05-20 Alan Modra <amodra@gmail.com>
10444
10445 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10446 rather than accessing bfd->filename directly.
10447 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10448 and use bfd_section_name.
10449 * dwarf2/frame.c (decode_frame_entry): Likewise.
10450 * exec.c (exec_set_section_address): Likewise.
10451 * solib-aix.c (solib_aix_bfd_open): Likewise.
10452 * stap-probe.c (get_stap_base_address): Likewise.
10453 * symfile.c (reread_symbols): Likewise.
10454
10455 2020-05-19 Tom Tromey <tromey@adacore.com>
10456
10457 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10458
10459 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10460
10461 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10462
10463 2020-05-19 Pedro Alves <palves@redhat.com>
10464
10465 * NEWS (set exec-file-mismatch): Adjust entry.
10466 * exec.c: Include "build-id.h".
10467 (validate_exec_file): Try to match build IDs instead of filenames.
10468 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10469 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10470 and pass down 'warn_if_slow'.
10471 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10472 gdb_bfd_open_closure to pass it down.
10473 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10474
10475 2020-05-19 Pedro Alves <palves@redhat.com>
10476
10477 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10478 * target.c (target_fileio_open_1): Rename to target_fileio_open
10479 and make extern. Use bool.
10480 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10481 (target_fileio_read_alloc_1): Adjust.
10482 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10483 (target_fileio_open_warn_if_slow): Delete declaration.
10484
10485 2020-05-19 Pedro Alves <palves@redhat.com>
10486
10487 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10488 Adjust all callers.
10489
10490 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10491
10492 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10493 whether disp is negative.
10494
10495 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10496
10497 * symfile.h (struct symfile_segment_data)
10498 <~symfile_segment_data>: Remove.
10499 <segment_info>: Change to std::vector.
10500 * symfile.c (default_symfile_segments): Update.
10501 * elfread.c (elf_symfile_segments): Update.
10502
10503 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10504
10505 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10506 <segments>: New.
10507 <segment_bases, segment_sizes>: Remove.
10508 * symfile.c (default_symfile_segments): Update.
10509 * elfread.c (elf_symfile_segments): Update.
10510 * remote.c (remote_target::get_offsets): Update.
10511 * solib-target.c (solib_target_relocate_section_addresses):
10512 Update.
10513
10514 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10515
10516 * symfile.h (struct symfile_segment_data): Initialize fields.
10517 <~symfile_segment_data>: Add.
10518 (symfile_segment_data_up): New.
10519 (struct sym_fns) <sym_segments>: Return a
10520 symfile_segment_data_up.
10521 (default_symfile_segments): Return a symfile_segment_data_up.
10522 (free_symfile_segment_data): Remove.
10523 (get_symfile_segment_data): Return a symfile_segment_data_up.
10524 * symfile.c (default_symfile_segments): Likewise.
10525 (get_symfile_segment_data): Likewise.
10526 (free_symfile_segment_data): Remove.
10527 (symfile_find_segment_sections): Update.
10528 * elfread.c (elf_symfile_segments): Return a
10529 symfile_segment_data_up.
10530 * remote.c (remote_target::get_offsets): Update.
10531 * solib-target.c (solib_target_relocate_section_addresses):
10532 Update.
10533 * symfile-debug.c (debug_sym_segments): Return a
10534 symfile_segment_data_up.
10535
10536 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10537
10538 PR build/25981
10539 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10540 Hardcode register numbers.
10541
10542 PR build/25981
10543 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10544 procfs_find_LDT_entry): Remove.
10545 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10546 procfs_find_LDT_entry): Remove.
10547 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10548 Remove.
10549
10550 2020-05-17 Pedro Alves <palves@redhat.com>
10551 Andrew Burgess <andrew.burgess@embecosm.com>
10552 Keno Fischer <keno@juliacomputing.com>
10553
10554 PR gdb/25741
10555 * breakpoint.c (build_target_condition_list): Update comments.
10556 (build_target_command_list): Update comments and skip matching
10557 locations.
10558 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10559 a separate function. Simplify "set breakpoint auto-hw off"
10560 handling.
10561 (insert_breakpoints): Update comment.
10562 (tracepoint_locations_match): New parameter. For breakpoints,
10563 compare location types too, if the caller wants to.
10564 (handle_automatic_hardware_breakpoints): New functions.
10565 (bp_location_is_less_than): Also sort by location type and
10566 hardware breakpoint length.
10567 (update_global_location_list): Handle "set breakpoint auto-hw on"
10568 here.
10569 (update_breakpoint_locations): Ask breakpoint_locations_match to
10570 ignore location types.
10571
10572 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10573
10574 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10575 type::name instead.
10576
10577 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10578
10579 * gdbtypes.h (struct type) <name, set_name>: New methods.
10580 (TYPE_CODE): Use type::name. Change all call sites used to set
10581 the name to use type::set_name instead.
10582
10583 2020-05-16 Tom Tromey <tom@tromey.com>
10584
10585 * top.c (quit_force): Update.
10586 * infrun.c (handle_no_resumed): Update.
10587 * top.h (all_uis): New function.
10588 (ALL_UIS): Remove.
10589
10590 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10591
10592 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10593
10594 2020-05-16 Pedro Alves <palves@redhat.com>
10595
10596 * ia64-linux-nat.c
10597 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10598 Declare method.
10599 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10600
10601 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10602
10603 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10604 (sparc64_adi_info): Likewise.
10605
10606 2020-05-15 Tom Tromey <tom@tromey.com>
10607
10608 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10609 block_objfile.
10610 (lookup_objfile_from_block): Remove.
10611 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10612 (lookup_global_symbol): Use block_objfile.
10613 * symtab.h (lookup_objfile_from_block): Don't declare.
10614 * printcmd.c (clear_dangling_display_expressions): Use
10615 block_objfile.
10616 * parse.c (operator_check_standard): Use block_objfile.
10617
10618 2020-05-15 Tom Tromey <tom@tromey.com>
10619
10620 * language.c (language_alloc_type_symbol): Set
10621 SYMBOL_SECTION.
10622 * symtab.c (initialize_objfile_symbol): Remove.
10623 (allocate_symbol): Remove.
10624 (allocate_template_symbol): Remove.
10625 * dwarf2/read.c (fixup_go_packaging): Use "new".
10626 (new_symbol): Use "new".
10627 (read_variable): Don't call initialize_objfile_symbol. Use
10628 "new".
10629 (read_func_scope): Use "new".
10630 * xcoffread.c (process_xcoff_symbol): Don't call
10631 initialize_objfile_symbol.
10632 (SYMBOL_DUP): Remove.
10633 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10634 "new".
10635 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10636 (allocate_template_symbol): Don't declare.
10637 (struct symbol): Add copy constructor. Change defaults.
10638 * jit.c (finalize_symtab): Use "new".
10639 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10640 Use "new".
10641 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10642 (common_block_end): Use "new".
10643 * mdebugread.c (parse_symbol): Use "new".
10644 (new_symbol): Likewise.
10645
10646 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10647
10648 * NEWS: Mention changes to help and apropos.
10649
10650 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10651
10652 * command.h (enum command_class): Improve comments, document
10653 that class_alias is for user-defined aliases, give the class
10654 name for each class, remove unused class_xdb.
10655 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10656 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10657 by a precise class.
10658 * infcmd.c (_initialize_infcmd): Likewise.
10659 * reverse.c (_initialize_reverse): Likewise.
10660 * stack.c (_initialize_stack): Likewise.
10661 * symfile.c (_initialize_symfile): Likewise.
10662 * tracepoint.c (_initialize_tracepoint): Likewise.
10663
10664 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10665
10666 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10667 when their aliased command is traversed.
10668 (help_cmd): Add fput_command_names_styled call to
10669 output command name and aliases when command has an alias.
10670
10671 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10672
10673 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10674 * cli/cli-decode.c (help_cmd_list): Declare as static,
10675 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10676 a command together with the command.
10677 (fput_command_name_styled, fput_command_names_styled): New functions.
10678 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10679 fput_command_name_styled.
10680 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10681 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10682
10683 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10684
10685 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10686 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10687 * command.h (cmd_show_list): Likewise.
10688 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10689 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10690
10691 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10692
10693 * unittests/command-def-selftests.c (traverse_command_structure):
10694 Verify all commands of a list have the same prefix command and
10695 that only the top cmdlist commands have a null prefix.
10696
10697 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10698
10699 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10700 as prefix, not one of its aliases.
10701 (set_cmd_prefix): Remove.
10702 (do_add_cmd): Centralize the setting of the prefix of a command, when
10703 command is defined after its full chain of prefix commands.
10704 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10705 (add_setshow_cmd_full): Likewise.
10706 (update_prefix_field_of_prefixed_commands): New function.
10707 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10708 update_prefix_field_of_prefixed_commands.
10709 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10710 addresses of remote_set_cmdlist and remote_show_cmdlist given
10711 as argument, not the address of an argument.
10712 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10713 * gdb/remote.c (_initialize_remote): Likewise.
10714
10715 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10716
10717 * cli/cli-cmds.c (alias_command): Check for an existing alias
10718 using lookup_cmd_composition, as valid_command_p is too strict
10719 and forbids aliases that are the prefix of an existing alias
10720 or command.
10721 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10722 command is properly recognised as a valid command.
10723
10724 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10725
10726 * unittests/help-doc-selftests.c: Rename to
10727 unittests/command-def-selftests.c
10728 * unittests/command-def-selftests.c (help_doc_tests): Update some
10729 comments.
10730 (command_structure_tests, traverse_command_structure): New namespace
10731 and function.
10732 (command_structure_invariants_tests): New function.
10733 (_initialize_command_def_selftests) Renamed from
10734 _initialize_help_doc_selftests, register command_structure_invariants
10735 selftest.
10736
10737 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10738
10739 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10740 an alias of 'show'.
10741
10742 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10743
10744 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10745 ada_is_fixed_point_type. Update all callers.
10746 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10747 all callers.
10748 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10749 Update all callers.
10750 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10751 print_fixed_point_type. Update all callers.
10752 * ada-valprint.c (ada_value_print_num): Replace call to
10753 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10754
10755 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10756
10757 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10758 processors.
10759 (cpu_supports_bts): Add CV_AMD case.
10760
10761 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10762 Simon Marchi <simon.marchi@efficios.com>
10763
10764 * infrun.c (stop_all_threads): Collect multiple wait events at
10765 each pass.
10766
10767 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10768
10769 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10770 type::code instead.
10771
10772 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10773
10774 * gdbtypes.h (struct type) <code, set_code>: New methods.
10775 (TYPE_CODE): Use type::code. Change all call sites used to set
10776 the code to use type::set_code instead.
10777
10778 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10779 Tom de Vries <tdevries@suse.de>
10780 Pedro Alves <palves@redhat.com>
10781
10782 PR threads/25478
10783 * infrun.c (stop_all_threads): Do NOT ignore
10784 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10785 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10786 received.
10787 (handle_no_resumed): Remove code handling a live inferior with no
10788 threads.
10789 * remote.c (has_single_non_exited_thread): New.
10790 (remote_target::update_thread_list): Do not delete a thread if is
10791 the last thread of the process.
10792 * thread.c (thread_select): Call delete_exited_threads instead of
10793 prune_threads.
10794
10795 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10796
10797 * infrun.c (stop_all_threads): Enable/disable thread events of all
10798 targets. Move a debug message denoting the end of the function
10799 into the SCOPED_EXIT block.
10800
10801 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10802
10803 * process-stratum-target.h: Include <set>.
10804 (all_non_exited_process_targets, switch_to_target_no_thread): New
10805 function declarations.
10806 * process-stratum-target.c (all_non_exited_process_targets)
10807 (switch_to_target_no_thread): New function implementations.
10808
10809 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10810
10811 * infrun.c (handle_inferior_event): Extract out a piece of code
10812 into...
10813 (mark_non_executing_threads): ...this new function.
10814
10815 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10816
10817 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10818 use.
10819
10820 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10821
10822 * regcache.c (regcache_read_pc_protected): New function
10823 implementation that returns 0 if the PC cannot read via
10824 'regcache_read_pc'.
10825 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10826 instead of 'regcache_read_pc'.
10827 (keep_going_pass_signal): Ditto.
10828
10829 2020-05-13 Tom Tromey <tromey@adacore.com>
10830
10831 * ada-lang.c (align_value): Remove.
10832 (ada_template_to_fixed_record_type_1): Use align_up.
10833
10834 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10835
10836 * async-event.c: Update the copyright year.
10837 * async-event.h: Update the copyright year.
10838
10839 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10840
10841 * objfiles.h (is_addr_in_objfile,
10842 shared_objfile_contains_address_p): Return bool.
10843 * objfile.c (is_addr_in_objfile,
10844 shared_objfile_contains_address_p): Return bool.
10845
10846 2020-05-11 Tom Tromey <tromey@adacore.com>
10847
10848 * cli/cli-cmds.c (info_command): Restore.
10849 (_initialize_cli_cmds): Use add_prefix_command for "info".
10850 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10851
10852 2020-05-11 Tom Tromey <tromey@adacore.com>
10853
10854 * ada-lang.c (ada_value_primitive_field): Now public.
10855 * ada-lang.h (ada_value_primitive_field): Declare.
10856 * ada-valprint.c (print_field_values): Use
10857 ada_value_primitive_field for wrapper fields.
10858
10859 2020-05-11 Tom de Vries <tdevries@suse.de>
10860
10861 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10862 MODULE_DOMAIN.
10863
10864 2020-05-11 Tom de Vries <tdevries@suse.de>
10865
10866 PR symtab/25941
10867 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10868 with length 0, if not gdb-produced.
10869 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10870
10871 2020-05-09 Tom de Vries <tdevries@suse.de>
10872
10873 PR gdb/25955
10874 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10875 calculation.
10876
10877 2020-05-09 Tom Tromey <tom@tromey.com>
10878
10879 * top.c (server_command): Now bool.
10880 * top.h (server_command): Now bool.
10881
10882 2020-05-08 Tom Tromey <tromey@adacore.com>
10883
10884 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10885 already being processed.
10886
10887 2020-05-08 Tom Tromey <tom@tromey.com>
10888
10889 * printcmd.c (struct display) <next>: Remove.
10890 <display>: New constructor.
10891 <exp_string>: Now a std::string.
10892 <enabled_p>: Now a bool.
10893 (display_number): Move definition earlier.
10894 (displays): Rename from display_chain. Now a std::vector.
10895 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10896 (display_command): Update.
10897 (do_one_display, disable_display)
10898 (enable_disable_display_command, do_enable_disable_display):
10899 Update.
10900 (free_display): Remove.
10901 (clear_displays): Rewrite.
10902 (delete_display): Update.
10903 (map_display_numbers): Use function_view. Remove "data"
10904 parameter. Update.
10905 (do_delete_display): Remove.
10906 (undisplay_command): Update.
10907 (do_one_display, do_displays, disable_display)
10908 (info_display_command): Update.
10909 (do_enable_disable_display): Remove.
10910 (enable_disable_display_command)
10911 (clear_dangling_display_expressions): Update.
10912
10913 2020-05-08 Tom Tromey <tom@tromey.com>
10914
10915 * symtab.c (set_symbol_cache_size)
10916 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10917 (maintenance_print_symbol_cache_statistics): Update.
10918 * symmisc.c (print_symbol_bcache_statistics)
10919 (print_objfile_statistics, maintenance_print_objfiles)
10920 (maintenance_info_symtabs, maintenance_check_symtabs)
10921 (maintenance_expand_symtabs, maintenance_info_line_tables):
10922 Update.
10923 * symfile-debug.c (set_debug_symfile): Update.
10924 * source.c (forget_cached_source_info): Update.
10925 * python/python.c (gdbpy_progspaces): Update.
10926 * psymtab.c (maintenance_info_psymtabs): Update.
10927 * probe.c (parse_probes): Update.
10928 * linespec.c (iterate_over_all_matching_symtabs)
10929 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10930 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10931 * exec.c (exec_target::close): Update.
10932 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10933 * breakpoint.c (print_one_breakpoint_location)
10934 (create_longjmp_master_breakpoint)
10935 (create_std_terminate_master_breakpoint): Update.
10936 * progspace.c (program_spaces): Now a std::vector.
10937 (maybe_new_address_space): Update.
10938 (add_program_space): Remove.
10939 (program_space::program_space): Update.
10940 (remove_program_space): Update.
10941 (number_of_program_spaces): Remove.
10942 (print_program_space, update_address_spaces): Update.
10943 * progspace.h (program_spaces): Change type.
10944 (ALL_PSPACES): Remove.
10945 (number_of_program_spaces): Don't declare.
10946 (struct program_space) <next>: Remove.
10947
10948 2020-05-08 Tom Tromey <tom@tromey.com>
10949
10950 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10951 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10952 (enable_break): Update.
10953 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10954 (frv_fdpic_find_canonical_descriptor): Update.
10955 (frv_fetch_objfile_link_map): Update.
10956 * progspace.c (program_space::free_all_objfiles): Update.
10957 (program_space::solibs): New method.
10958 * progspace.h (struct program_space) <solibs>: New method.
10959 * solist.h (master_so_list): Don't declare.
10960 (ALL_SO_LIBS): Remove.
10961 * solib.h (so_list_head): Remove.
10962 (update_solib_list): Update comment.
10963 * solib.c (master_so_list): Remove.
10964 (solib_used, update_solib_list, solib_add)
10965 (info_sharedlibrary_command, clear_solib)
10966 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10967
10968 2020-05-08 Tom Tromey <tom@tromey.com>
10969
10970 * extension.c (extension_languages): Now a std::array.
10971 (ALL_EXTENSION_LANGUAGES): Remove.
10972 (get_ext_lang_defn, get_ext_lang_of_file)
10973 (eval_ext_lang_from_control_command): Update.
10974 (finish_ext_lang_initialization)
10975 (auto_load_ext_lang_scripts_for_objfile)
10976 (ext_lang_type_printers::ext_lang_type_printers)
10977 (apply_ext_lang_type_printers)
10978 (ext_lang_type_printers::~ext_lang_type_printers)
10979 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10980 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10981 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10982 (get_matching_xmethod_workers, ext_lang_colorize)
10983 (ext_lang_before_prompt): Update.
10984 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10985
10986 2020-05-08 Tom Tromey <tom@tromey.com>
10987
10988 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10989 overload.
10990 <swap_string, m_string>: Remove.
10991 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10992 Update.
10993 * stabsread.c (define_symbol, read_type): Update.
10994 * linespec.c (find_linespec_symbols): Update.
10995 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10996 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10997 * dbxread.c (read_dbx_symtab): Update.
10998 * cp-support.h (cp_canonicalize_string_full)
10999 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11000 Return unique_xmalloc_ptr.
11001 * cp-support.c (inspect_type): Update.
11002 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11003 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11004 Likewise.
11005 * c-typeprint.c (print_name_maybe_canonical): Update.
11006 * break-catch-throw.c (check_status_exception_catchpoint):
11007 Update.
11008
11009 2020-05-08 Tom de Vries <tdevries@suse.de>
11010
11011 * infrun.c (follow_fork): Copy current_line and current_symtab to
11012 child thread.
11013
11014 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11015
11016 * async-event.c (struct async_signal_handler, struct
11017 async_event_handler): Reformat, remove typedef.
11018
11019 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11020
11021 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11022 access thistype->main_type->dyn_prop_list directly.
11023
11024 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11025
11026 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11027 (remove_dyn_prop): Remove. Update all users to use
11028 type::remove_dyn_prop.
11029 * gdbtypes.c (remove_dyn_prop): Rename to...
11030 (type::remove_dyn_prop): ... this.
11031
11032 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11033
11034 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11035 (add_dyn_prop): Remove. Update all users to use
11036 type::add_dyn_prop.
11037 * gdbtypes.c (add_dyn_prop): Rename to...
11038 (type::add_dyn_prop): ... this.
11039
11040 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11041
11042 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11043 (get_dyn_prop): Remove. Update all users to use
11044 type::dyn_prop.
11045 * gdbtypes.c (get_dyn_prop): Rename to...
11046 (type::dyn_prop): ... this.
11047
11048 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11049
11050 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11051
11052 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11053
11054 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11055 instruction, skip it if it's there.
11056
11057 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11058
11059 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11060
11061 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11062
11063 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11064 * gdbtypes.c (recursive_dump_type): Remove use of
11065 TYPE_INCOMPLETE.
11066
11067 2020-05-03 Tom Tromey <tom@tromey.com>
11068
11069 * breakpoint.c (catch_command, tcatch_command): Remove.
11070 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11071 add_show_prefix_cmd.
11072 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11073 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11074 Remove.
11075 (add_internal_problem_command): Use add_basic_prefix_cmd,
11076 add_show_prefix_cmd.
11077 * mips-tdep.c (set_mipsfpu_command): Remove.
11078 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11079 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11080 (_initialize_index_cache): Use add_basic_prefix_cmd.
11081 * memattr.c (dummy_cmd): Remove.
11082 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11083 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11084 (_initialize_tui_win): Use add_basic_prefix_cmd,
11085 add_show_prefix_cmd.
11086 * cli/cli-logging.c (set_logging_command): Remove.
11087 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11088 add_show_prefix_cmd.
11089 (show_logging_command): Remove.
11090 * target.c (target_command): Remove.
11091 (add_target): Use add_basic_prefix_cmd.
11092
11093 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11094
11095 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11096
11097 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11098
11099 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11100 info_command.
11101
11102 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11103
11104 * nbsd-nat.c (nbsd_enable_proc_events)
11105 (nbsd_nat_target::post_startup_inferior): Add.
11106 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11107 (nbsd_nat_target::update_thread_list): Rewrite.
11108 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11109 "PTRACE_LWP_CREATE".
11110 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11111
11112 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11113
11114 * stack.c (_initialize_stack): Remove duplicated creation
11115 of "frame" command and "f" alias.
11116
11117 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11118
11119 PR gdb/18706
11120 * gdbtypes.c (check_typedef): Calculate size of array of
11121 stubbed type.
11122
11123 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11124
11125 PR gdb/15559
11126 * i386-tdep.c (i386_push_dummy_call): Call
11127 i386_thiscall_push_dummy_call.
11128 (i386_thiscall_push_dummy_call): New function.
11129 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11130 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11131 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11132
11133 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11134
11135 * gdbarch.sh (do_read): Add shellcheck disable directive for
11136 warning SC2162.
11137
11138 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11139
11140 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11141 "referenced but not assigned" warning.
11142
11143 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11144
11145 * gdbarch.sh: Remove code that sets fallbackdefault.
11146
11147 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11148
11149 * gdbarch.sh: Use shell operators && and || instead of
11150 -a and -o.
11151
11152 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11153
11154 * gdbarch.sh: Use $(...) instead of `...`.
11155
11156 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11157
11158 * gdbarch.sh: Use double quotes around variables.
11159
11160 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11161
11162 * gdbarch.sh: Use %s with printf, instead of variables in the
11163 format string.
11164
11165 2020-04-29 Tom Tromey <tromey@adacore.com>
11166
11167 PR ada/25875:
11168 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11169 type fields here.
11170 (read_enumeration_type): Call
11171 update_enumeration_type_from_children later. Update comments.
11172 (process_enumeration_scope): Don't create type fields.
11173
11174 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11175
11176 * nbsd-tdep.c: Include "xml-syscall.h".
11177 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11178
11179 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11180
11181 * nbsd-nat.c: Include "sys/wait.h".
11182 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11183 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11184 (nbsd_nat_target::remove_exec_catchpoint)
11185 (nbsd_nat_target::set_syscall_catchpoint): Add.
11186 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11187 (nbsd_nat_target::insert_exec_catchpoint)
11188 (nbsd_nat_target::remove_exec_catchpoint)
11189 (nbsd_nat_target::set_syscall_catchpoint): Add.
11190 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11191 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11192 `nbsd_get_syscall_number'.
11193
11194 2020-04-29 Tom Tromey <tom@tromey.com>
11195
11196 * stack.c (print_block_frame_labels): Remove.
11197
11198 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11199
11200 PR gdb/17320
11201 * ada-valprint.c (val_print_packed_array_elements): Move array
11202 end bracket to new line.
11203 (ada_val_print_string): Remove extra spaces before first array
11204 element.
11205 * c-valprint.c (c_value_print_array): Likewise.
11206 * m2-valprint.c (m2_print_array_contents): Likewise.
11207 (m2_value_print_inner): Likewise.
11208 * p-valprint.c (pascal_value_print_inner): Likewise.
11209 * valprint.c (generic_val_print_array): Likewise.
11210 (value_print_array_elements): Move first array element and array
11211 end bracket to new line.
11212
11213 2020-04-29 Tom de Vries <tdevries@suse.de>
11214
11215 PR symtab/25889
11216 * linespec.c (find_method): Fix ix calculation.
11217
11218 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11219
11220 * syscalls/update-netbsd.sh: New file.
11221 * syscalls/netbsd.xml: Regenerate.
11222 * data-directory/Makefile.in: Register `netbsd.xml' in
11223 `SYSCALLS_FILES'.
11224
11225 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11226
11227 * syscalls/update-freebsd.sh: Add double quotes.
11228
11229 2020-04-28 Tom Tromey <tom@tromey.com>
11230
11231 * NEWS: Update.
11232 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11233 (cmdpy_init): Allow class_tui.
11234
11235 2020-04-28 Mark Williams <mark@myosotissp.com>
11236
11237 PR gdb/24480
11238 * dwarf2read.c: Add missing assingments to list_in_scope when
11239 start_symtab was already called.
11240
11241 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11242
11243 PR gdb/25881
11244 * dwarf2/read.c (offset_map_type): Use
11245 gdb:hash_enum<sect_offset> as hash function.
11246
11247 2020-04-28 Tom de Vries <tdevries@suse.de>
11248
11249 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11250 with DW_AT_signature.
11251
11252 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11253
11254 * configure.ac: Remove check for fs_base/gs_base in
11255 user_regs_struct.
11256 * configure: Re-generate.
11257 * config.in: Re-generate.
11258 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11259 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11260 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11261
11262 2020-04-27 Luis Machado <luis.machado@linaro.org>
11263
11264 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11265 problematic inline frame unwinding situation.
11266 * frame.c (frame_id_computed_p): New function.
11267 * frame.h (frame_id_computed_p): New prototype.
11268
11269 2020-04-26 Tom Tromey <tom@tromey.com>
11270
11271 * command.h (enum command_class) <class_pseudo>: Remove.
11272
11273 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11274
11275 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11276 and whitespace.
11277
11278 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11279
11280 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11281 `PT_GET_PROCESS_STATE' block.
11282
11283 2020-04-24 Tom Tromey <tom@tromey.com>
11284
11285 * symtab.h (symbol_get_demangled_name): Don't declare.
11286 * symtab.c (symbol_get_demangled_name): Remove.
11287 (general_symbol_info::natural_name)
11288 (general_symbol_info::demangled_name): Update.
11289
11290 2020-04-24 Tom Tromey <tom@tromey.com>
11291
11292 PR rust/25025:
11293 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11294
11295 2020-04-24 Tom Tromey <tom@tromey.com>
11296
11297 PR symtab/12707:
11298 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11299 exists.
11300 (new_symbol): Likewise.
11301 * compile/compile-object-load.c (get_out_value_type): Use
11302 symbol_matches_search_name.
11303
11304 2020-04-24 Tom Tromey <tom@tromey.com>
11305
11306 * dwarf2/read.c (add_partial_symbol): Do not call
11307 compute_and_set_names.
11308
11309 2020-04-24 Tom Tromey <tom@tromey.com>
11310
11311 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11312 overload.
11313
11314 2020-04-24 Tom Tromey <tom@tromey.com>
11315
11316 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11317 (add_psymbol_to_list): New overload. Make old overload call new
11318 one.
11319 * psympriv.h (add_psymbol_to_list): New overload.
11320
11321 2020-04-24 Tom Tromey <tom@tromey.com>
11322
11323 * dwarf2/read.c (partial_die_info::read) <case
11324 DW_AT_linkage_name>: Use value_as_string.
11325 (dwarf2_string_attr): Use value_as_string.
11326 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11327 method.
11328 * dwarf2/attribute.c (attribute::value_as_string): New method.
11329
11330 2020-04-24 Tom Tromey <tom@tromey.com>
11331
11332 * symtab.c (general_symbol_info::natural_name)
11333 (general_symbol_info::demangled_name): Check for language_rust.
11334
11335 2020-04-24 Tom Tromey <tom@tromey.com>
11336
11337 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11338 (dwarf2_physname): ... from here.
11339 (partial_die_info::read): Add Rust "{" hack.
11340
11341 2020-04-24 Tom Tromey <tom@tromey.com>
11342
11343 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11344 method.
11345 (symbol_set_demangled_name): Don't declare.
11346 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11347 symbol_set_demangled_name.
11348 (general_symbol_info::set_language)
11349 (general_symbol_info::compute_and_set_names): Update.
11350 * minsyms.c (minimal_symbol_reader::install): Update.
11351 * dwarf2/read.c (new_symbol): Update.
11352
11353 2020-04-24 Tom Tromey <tromey@adacore.com>
11354
11355 PR python/23662:
11356 * python/py-type.c (convert_field): Handle
11357 FIELD_LOC_KIND_DWARF_BLOCK.
11358 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11359 (typy_get_dynamic): Nw function.
11360 (type_object_getset): Add "dynamic".
11361 * NEWS: Add entry.
11362
11363 2020-04-24 Tom Tromey <tromey@adacore.com>
11364
11365 * ada-typeprint.c (print_choices, print_variant_part)
11366 (print_record_field_types_dynamic): New functions.
11367 (print_record_field_types): Use print_record_field_types_dynamic.
11368
11369 2020-04-24 Tom Tromey <tromey@adacore.com>
11370
11371 * dwarf2/read.c (handle_data_member_location): New overload.
11372 (dwarf2_add_field): Use it.
11373 (decode_locdesc): Add "computed" parameter. Update comment.
11374 * gdbtypes.c (is_dynamic_type_internal): Also look for
11375 FIELD_LOC_KIND_DWARF_BLOCK.
11376 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11377 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11378 virtual base classes.
11379 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11380 FIELD_LOC_KIND_DWARF_BLOCK.
11381
11382 2020-04-24 Tom Tromey <tromey@adacore.com>
11383
11384 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11385 * gdbtypes.c (is_dynamic_type_internal): Check
11386 TYPE_HAS_DYNAMIC_LENGTH.
11387 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11388 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11389 New macros.
11390 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11391 constant.
11392
11393 2020-04-24 Tom Tromey <tromey@adacore.com>
11394
11395 * dwarf2/read.c (struct variant_field): Rewrite.
11396 (struct variant_part_builder): New.
11397 (struct nextfield): Remove "variant" field. Add "offset".
11398 (struct field_info): Add "current_variant_part" and
11399 "variant_parts".
11400 (alloc_discriminant_info): Remove.
11401 (alloc_rust_variant): New function.
11402 (quirk_rust_enum): Update.
11403 (dwarf2_add_field): Set "offset" member. Don't handle
11404 DW_TAG_variant_part.
11405 (offset_map_type): New typedef.
11406 (convert_variant_range, create_one_variant)
11407 (create_one_variant_part, create_variant_parts)
11408 (add_variant_property): New functions.
11409 (dwarf2_attach_fields_to_type): Call add_variant_property.
11410 (read_structure_type): Don't handle DW_TAG_variant_part.
11411 (handle_variant_part, handle_variant): New functions.
11412 (handle_struct_member_die): Use them.
11413 (process_structure_scope): Don't handle variant parts.
11414 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11415 (struct discriminant_info): Remove.
11416 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11417 (struct main_type) <flag_discriminated_union>: Remove.
11418 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11419 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11420 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11421 Update.
11422 * valops.c (value_union_variant): Remove.
11423 * value.h (value_union_variant): Don't declare.
11424
11425 2020-04-24 Tom Tromey <tromey@adacore.com>
11426
11427 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11428 (ada_value_primitive_packed_val): Update.
11429 * ada-valprint.c (ada_value_print_1): Update.
11430 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11431 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11432 just an address. Use evaluate_for_locexpr_baton.
11433 (dwarf2_evaluate_property): Update.
11434 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11435 array_view.
11436 * findvar.c (default_read_var_value): Update.
11437 * gdbtypes.c (compute_variant_fields_inner)
11438 (resolve_dynamic_type_internal): Update.
11439 (resolve_dynamic_type): Change type of valaddr parameter.
11440 * gdbtypes.h (resolve_dynamic_type): Update.
11441 * valarith.c (value_subscripted_rvalue): Update.
11442 * value.c (value_from_contents_and_address): Update.
11443
11444 2020-04-24 Tom Tromey <tromey@adacore.com>
11445
11446 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11447 "push_initial_value" parameter.
11448 (dwarf2_evaluate_property): Likewise.
11449 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11450
11451 2020-04-24 Tom Tromey <tromey@adacore.com>
11452
11453 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11454 (variant::matches, compute_variant_fields_recurse)
11455 (compute_variant_fields_inner, compute_variant_fields): New
11456 functions.
11457 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11458 Use resolved_type after type is made.
11459 (operator==): Add new cases.
11460 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11461 (struct discriminant_range, struct variant, struct variant_part):
11462 New.
11463 (union dynamic_prop_data) <variant_parts, original_type>: New
11464 members.
11465 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11466 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11467 constants.
11468 * value.c (unpack_bits_as_long): Now public.
11469 * value.h (unpack_bits_as_long): Declare.
11470
11471 2020-04-24 Tom Tromey <tromey@adacore.com>
11472
11473 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11474 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11475
11476 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11477
11478 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11479
11480 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11481
11482 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11483 (remove_fork_catchpoint, post_startup_inferior)
11484 (post_attach): Move...
11485 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11486 (remove_fork_catchpoint, post_startup_inferior)
11487 (post_attach): ...here.
11488 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11489 (remove_fork_catchpoint, post_startup_inferior)
11490 (post_attach): Move...
11491 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11492 (remove_fork_catchpoint, post_startup_inferior)
11493 (post_attach): ...here.
11494
11495 2020-04-24 Tom Tromey <tromey@adacore.com>
11496
11497 * nat/windows-nat.h (struct windows_thread_info)
11498 <pc_adjusted>: New member.
11499 * windows-nat.c (windows_fetch_one_register): Check
11500 pc_adjusted.
11501 (windows_nat_target::get_windows_debug_event)
11502 (windows_nat_target::wait): Set pc_adjusted.
11503
11504 2020-04-24 Tom de Vries <tdevries@suse.de>
11505
11506 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11507 Run gdb-add-index inside temp dir.
11508
11509 2020-04-23 Tom Tromey <tromey@adacore.com>
11510
11511 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11512 in loop.
11513
11514 2020-04-23 Luis Machado <luis.machado@linaro.org>
11515
11516 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11517 get_frame_register instead of gdbarch_unwind_pc.
11518
11519 2020-04-23 Tom de Vries <tdevries@suse.de>
11520
11521 * symtab.c (lookup_global_symbol): Prefer def over decl.
11522
11523 2020-04-23 Tom de Vries <tdevries@suse.de>
11524
11525 PR symtab/25807
11526 * block.c (best_symbol, better_symbol): Promote to external.
11527 * block.h (best_symbol, better_symbol): Declare.
11528 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11529 decl.
11530
11531 2020-04-23 Tom Tromey <tromey@adacore.com>
11532
11533 PR ada/25837:
11534 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11535 "const char *", not a "const std::string &".
11536 <name_and_matcher::operator==>: Update.
11537 * unittests/lookup_name_info-selftests.c: Change type of
11538 "result".
11539
11540 2020-04-23 Tom Tromey <tom@tromey.com>
11541
11542 * inferior.h (iterate_over_inferiors): Don't declare.
11543 * inferior.c (iterate_over_inferiors): Remove.
11544 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11545 Remove.
11546 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11547 use iterate_over_inferiors.
11548 (darwin_resume_inferior_it)
11549 (struct resume_inferior_threads_param)
11550 (darwin_resume_inferior_threads_it): Remove.
11551 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11552
11553 2020-04-23 Tom de Vries <tdevries@suse.de>
11554
11555 * blockframe.c (find_pc_partial_function): Use
11556 find_pc_sect_compunit_symtab rather than
11557 objfile->sf->qf->find_pc_sect_compunit_symtab.
11558
11559 2020-04-22 Tom de Vries <tdevries@suse.de>
11560
11561 PR symtab/25764
11562 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11563 in psymtabs.
11564
11565 2020-04-22 Tom de Vries <tdevries@suse.de>
11566
11567 PR symtab/25801
11568 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11569 symtabs.
11570
11571 2020-04-22 Tom de Vries <tdevries@suse.de>
11572
11573 PR symtab/25700
11574 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11575 CU if already created.
11576
11577 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11578
11579 * infrun.c (displaced_step_fixup): Switch to the event_thread
11580 before calling displaced_step_restore, not after.
11581
11582 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11583
11584 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11585 its inferior is not recorded by us.
11586 (record_btrace_target_open): Replace call to
11587 all_non_exited_threads () with call to current_inferior
11588 ()->non_exited_threads ().
11589 (record_btrace_target::stop_recording): Likewise.
11590 (record_btrace_target::close): Likewise.
11591 (record_btrace_target::wait): Likewise.
11592 (record_btrace_target::record_stop_replaying): Likewise.
11593
11594 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11595
11596 * btrace.c (btrace_enable): Throw an error on double enables and
11597 when enabling recording fails.
11598 (btrace_disable): Throw an error if the thread is not recorded.
11599
11600 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11601
11602 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11603 request if we do not have a thread_info.
11604
11605 2020-04-21 Tom de Vries <tdevries@suse.de>
11606
11607 PR gdb/25471
11608 * thread.c
11609 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11610 exception in get_frame_id.
11611
11612 2020-04-20 Tom Tromey <tromey@adacore.com>
11613
11614 * python/python.c (struct gdbpy_event): Mark move constructor as
11615 noexcept.
11616 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11617 constructor as noexcept.
11618 * completer.h (struct completion_result): Mark move constructor as
11619 noexcept.
11620 * completer.c (completion_result::completion_result): Use
11621 initialization style. Don't call reset_match_list.
11622
11623 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11624
11625 * MAINTAINERS (Write After Approval): Add myself.
11626
11627 2020-04-18 Tom Tromey <tom@tromey.com>
11628
11629 * windows-tdep.c (init_w32_command_list)
11630 (w32_prefix_command_valid): Restore.
11631 (_initialize_windows_tdep): Call init_w32_command_list.
11632
11633 2020-04-18 Tom Tromey <tom@tromey.com>
11634
11635 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11636 * value.c (value_fn_field): Update.
11637 * valops.c (find_function_in_inferior)
11638 (value_allocate_space_in_inferior): Update.
11639 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11640 Update.
11641 * tui/tui-source.c (tui_source_window::set_contents): Update.
11642 * symtab.c (lookup_global_or_static_symbol)
11643 (find_function_start_sal_1, skip_prologue_sal)
11644 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11645 * symmisc.c (dump_msymbols, dump_symtab_1)
11646 (maintenance_print_one_line_table): Update.
11647 * symfile.c (init_entry_point_info, section_is_mapped)
11648 (list_overlays_command, simple_read_overlay_table)
11649 (simple_overlay_update_1): Update.
11650 * stap-probe.c (handle_stap_probe): Update.
11651 * stabsread.c (dbx_init_float_type, define_symbol)
11652 (read_one_struct_field, read_enum_type, read_range_type): Update.
11653 * source.c (info_line_command): Update.
11654 * python/python.c (gdbpy_source_objfile_script)
11655 (gdbpy_execute_objfile_script): Update.
11656 * python/py-type.c (save_objfile_types): Update.
11657 * python/py-objfile.c (py_free_objfile): Update.
11658 * python/py-inferior.c (python_new_objfile): Update.
11659 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11660 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11661 (maintenance_check_psymtabs): Update.
11662 * printcmd.c (info_address_command): Update.
11663 * objfiles.h (struct objfile) <arch>: New method, from
11664 get_objfile_arch.
11665 (get_objfile_arch): Don't declare.
11666 * objfiles.c (get_objfile_arch): Remove.
11667 (filter_overlapping_sections): Update.
11668 * minsyms.c (msymbol_is_function): Update.
11669 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11670 (output_nondebug_symbol): Update.
11671 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11672 (mdebug_expand_psymtab): Update.
11673 * machoread.c (macho_add_oso_symfile): Update.
11674 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11675 Update.
11676 * linux-fork.c (checkpoint_command): Update.
11677 * linespec.c (convert_linespec_to_sals): Update.
11678 * jit.c (finalize_symtab): Update.
11679 * infrun.c (insert_exception_resume_from_probe): Update.
11680 * ia64-tdep.c (ia64_find_unwind_table): Update.
11681 * hppa-tdep.c (internalize_unwinds): Update.
11682 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11683 Update.
11684 * gcore.c (call_target_sbrk): Update.
11685 * elfread.c (record_minimal_symbol, elf_symtab_read)
11686 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11687 (elf_gnu_ifunc_resolve_by_got): Update.
11688 * dwarf2/read.c (create_addrmap_from_index)
11689 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11690 (read_debug_names_from_section)
11691 (process_psymtab_comp_unit_reader, add_partial_symbol)
11692 (add_partial_subprogram, process_full_comp_unit)
11693 (read_file_scope, read_func_scope, read_lexical_block_scope)
11694 (read_call_site_scope, dwarf2_ranges_read)
11695 (dwarf2_record_block_ranges, dwarf2_add_field)
11696 (mark_common_block_symbol_computed, read_tag_pointer_type)
11697 (read_tag_string_type, dwarf2_init_float_type)
11698 (dwarf2_init_complex_target_type, read_base_type)
11699 (partial_die_info::read, partial_die_info::read)
11700 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11701 (dwarf2_fetch_die_loc_sect_off): Update.
11702 * dwarf2/loc.c (dwarf2_find_location_expression)
11703 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11704 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11705 (dwarf2_loc_desc_get_symbol_read_needs)
11706 (locexpr_describe_location_piece, locexpr_describe_location_1)
11707 (loclist_describe_location): Update.
11708 * dwarf2/index-write.c (write_debug_names): Update.
11709 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11710 * dtrace-probe.c (dtrace_process_dof): Update.
11711 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11712 (process_one_symbol): Update.
11713 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11714 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11715 (coff_read_enum_type): Update.
11716 * cli/cli-cmds.c (edit_command, list_command): Update.
11717 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11718 * breakpoint.c (create_overlay_event_breakpoint)
11719 (create_longjmp_master_breakpoint)
11720 (create_std_terminate_master_breakpoint)
11721 (create_exception_master_breakpoint, get_sal_arch): Update.
11722 * block.c (block_gdbarch): Update.
11723 * annotate.c (annotate_source_line): Update.
11724
11725 2020-04-17 Tom Tromey <tromey@adacore.com>
11726
11727 * auto-load.c (show_auto_load_cmd): Remove.
11728 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11729 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11730 (maintenance_print_arc_command): Remove.
11731 * tui/tui-win.c (tui_command): Remove.
11732 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11733 * tui/tui-layout.c (tui_layout_command): Remove.
11734 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11735 * python/python.c (user_set_python, user_show_python): Remove.
11736 (_initialize_python): Use add_basic_prefix_cmd,
11737 add_show_prefix_cmd.
11738 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11739 (install_gdb_commands): Use add_basic_prefix_cmd,
11740 add_show_prefix_cmd.
11741 (info_guile_command): Remove.
11742 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11743 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11744 add_show_prefix_cmd.
11745 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11746 Remove do_set and do_show parameters.
11747 * cli/cli-style.c (set_style, show_style): Remove.
11748 (_initialize_cli_style): Use add_basic_prefix_cmd,
11749 add_show_prefix_cmd.
11750 (cli_style_option::add_setshow_commands): Remove do_set and
11751 do_show parameters.
11752 (cli_style_option::add_setshow_commands): Use
11753 add_basic_prefix_cmd, add_show_prefix_cmd.
11754 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11755 (set_style_name): Remove.
11756 * cli/cli-dump.c (dump_command, append_command): Remove.
11757 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11758 (tekhex_dump_command, binary_dump_command)
11759 (binary_append_command): Remove.
11760 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11761 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11762 (init_w32_command_list): Remove; move into ...
11763 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11764 * valprint.c (set_print, show_print, set_print_raw)
11765 (show_print_raw): Remove.
11766 (_initialize_valprint): Use add_basic_prefix_cmd,
11767 add_show_prefix_cmd.
11768 * typeprint.c (set_print_type, show_print_type): Remove.
11769 (_initialize_typeprint): Use add_basic_prefix_cmd,
11770 add_show_prefix_cmd.
11771 * record.c (set_record_command, show_record_command): Remove.
11772 (_initialize_record): Use add_basic_prefix_cmd,
11773 add_show_prefix_cmd.
11774 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11775 add_show_prefix_cmd.
11776 (info_command, show_command, set_debug, show_debug): Remove.
11777 * top.h (set_history, show_history): Don't declare.
11778 * top.c (set_history, show_history): Remove.
11779 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11780 (unset_tdesc_cmd): Remove.
11781 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11782 add_show_prefix_cmd.
11783 * symtab.c (info_module_command): Remove.
11784 (_initialize_symtab): Use add_basic_prefix_cmd.
11785 * symfile.c (overlay_command): Remove.
11786 (_initialize_symfile): Use add_basic_prefix_cmd.
11787 * sparc64-tdep.c (info_adi_command): Remove.
11788 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11789 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11790 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11791 add_show_prefix_cmd.
11792 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11793 (_initialize_serial): Use add_basic_prefix_cmd,
11794 add_show_prefix_cmd.
11795 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11796 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11797 add_show_prefix_cmd.
11798 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11799 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11800 add_show_prefix_cmd.
11801 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11802 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11803 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11804 add_show_prefix_cmd.
11805 * remote.c (remote_command, set_remote_cmd): Remove.
11806 (_initialize_remote): Use add_basic_prefix_cmd.
11807 * record-full.c (set_record_full_command)
11808 (show_record_full_command): Remove.
11809 (_initialize_record_full): Use add_basic_prefix_cmd,
11810 add_show_prefix_cmd.
11811 * record-btrace.c (cmd_set_record_btrace)
11812 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11813 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11814 (cmd_show_record_btrace_pt): Remove.
11815 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11816 add_show_prefix_cmd.
11817 * ravenscar-thread.c (set_ravenscar_command)
11818 (show_ravenscar_command): Remove.
11819 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11820 add_show_prefix_cmd.
11821 * mips-tdep.c (show_mips_command, set_mips_command)
11822 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11823 add_show_prefix_cmd.
11824 * maint.c (maintenance_command, maintenance_info_command)
11825 (maintenance_check_command, maintenance_print_command)
11826 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11827 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11828 add_show_prefix_cmd.
11829 (show_per_command_cmd): Remove.
11830 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11831 Remove.
11832 (maintenance_show_test_settings_cmd): Remove.
11833 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11834 add_show_prefix_cmd.
11835 * maint-test-options.c (maintenance_test_options_command):
11836 Remove.
11837 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11838 * macrocmd.c (macro_command): Remove
11839 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11840 * language.c (set_check, show_check): Remove.
11841 (_initialize_language): Use add_basic_prefix_cmd,
11842 add_show_prefix_cmd.
11843 * infcmd.c (unset_command): Remove.
11844 (_initialize_infcmd): Use add_basic_prefix_cmd.
11845 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11846 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11847 add_show_prefix_cmd.
11848 * go32-nat.c (go32_info_dos_command): Remove.
11849 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11850 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11851 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11852 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11853 (_initialize_frame): Use add_basic_prefix_cmd,
11854 add_show_prefix_cmd.
11855 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11856 (_initialize_dcache): Use add_basic_prefix_cmd,
11857 add_show_prefix_cmd.
11858 * cp-support.c (maint_cplus_command): Remove.
11859 (_initialize_cp_support): Use add_basic_prefix_cmd.
11860 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11861 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11862 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11863 add_basic_prefix_cmd, add_show_prefix_cmd.
11864 * breakpoint.c (save_command): Remove.
11865 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11866 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11867 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11868 add_show_prefix_cmd.
11869 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11870 (set_ada_command, show_ada_command): Remove.
11871 (_initialize_ada_language): Use add_basic_prefix_cmd,
11872 add_show_prefix_cmd.
11873 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11874
11875 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11876
11877 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11878 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11879
11880 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11881
11882 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11883 warning messages.
11884
11885 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11886
11887 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11888 import table is not at beginning of .idata section.
11889
11890 2020-04-16 Pedro Alves <palves@redhat.com>
11891
11892 * inferior.c (delete_inferior): Use delete operator directly
11893 instead of delete_program_space.
11894 * progspace.c (add_program_space): New, factored out from
11895 program_space::program_space.
11896 (remove_program_space): New, factored out from
11897 delete_program_space.
11898 (program_space::program_space): Remove intro comment. Rewrite.
11899 (program_space::~program_space): Remove intro comment. Call
11900 remove_program_space.
11901 (delete_program_space): Delete.
11902 * progspace.h (program_space::program_space): Make explicit. Move
11903 intro comment here, adjusted.
11904 (program_space::~program_space): Move intro comment here,
11905 adjusted.
11906 (delete_program_space): Remove.
11907
11908 2020-04-16 Tom Tromey <tromey@adacore.com>
11909
11910 * windows-nat.c (windows_nat::handle_access_violation): New
11911 function.
11912 * nat/windows-nat.h (handle_access_violation): Declare.
11913 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11914 windows-nat.c. Call handle_access_violation.
11915
11916 2020-04-16 Tom de Vries <tdevries@suse.de>
11917
11918 PR symtab/25791
11919 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11920 CUs without psymtab.
11921
11922 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11923
11924 * python/python.c (do_start_initialization): Don't call
11925 PyEval_InitThreads for Python 3.9 and beyond.
11926
11927 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11928
11929 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11930 thread functions.
11931 (obsd_nat_target::wait): Likewise.
11932
11933 2020-04-15 Tom Tromey <tromey@adacore.com>
11934
11935 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11936 (DEBUG_EXCEPT): Use debug_printf.
11937
11938 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11939
11940 * completer.c (class completion_tracker::completion_hash_entry)
11941 <hash_name>: New member function.
11942 (completion_tracker::discard_completions): New callback to hash a
11943 completion_hash_entry, pass this to htab_create_alloc.
11944
11945 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11946
11947 * windows-nat.c (windows_make_so): Warn rather than stopping with
11948 an error if realpath() fails.
11949
11950 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11951
11952 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11953 (nbsd_nat_target::info_proc): Add do_status.
11954
11955 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11956 Tom de Vries <tdevries@suse.de>
11957
11958 PR symtab/25718
11959 * psympriv.h (struct partial_symtab::read_symtab)
11960 (struct partial_symtab::expand_psymtab)
11961 (struct partial_symtab::read_dependencies): Update comments.
11962 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11963 read_symtab for includer.
11964 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11965 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11966 (struct dwarf2_include_psymtab::m_readin): Remove.
11967 (struct dwarf2_include_psymtab::includer): New member function.
11968 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11969
11970 2020-04-14 Tom de Vries <tdevries@suse.de>
11971
11972 PR symtab/25720
11973 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11974 with NULL symbol_matcher and lookup_name.
11975 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11976 and lookup_name.
11977 * dwarf2/read.c (dw2_expand_symtabs_matching)
11978 (dw2_debug_names_expand_symtabs_matching): Same.
11979 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11980 Make lookup_name a pointer. Update comment.
11981 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11982 lookup_name being a pointer.
11983 * symfile.c (expand_symtabs_matching): Same.
11984 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11985 * linespec.c (iterate_over_all_matching_symtabs): Same.
11986
11987 2020-04-13 Tom Tromey <tom@tromey.com>
11988
11989 * run-on-main-thread.c: Update include.
11990 * unittests/main-thread-selftests.c: Update include.
11991 * tui/tui-win.c: Update include.
11992 * tui/tui-io.c: Update include.
11993 * tui/tui-interp.c: Update include.
11994 * tui/tui-hooks.c: Update include.
11995 * top.h: Update include.
11996 * top.c: Update include.
11997 * ser-base.c: Update include.
11998 * remote.c: Update include.
11999 * remote-notif.c: Update include.
12000 * remote-fileio.c: Update include.
12001 * record-full.c: Update include.
12002 * record-btrace.c: Update include.
12003 * python/python.c: Update include.
12004 * posix-hdep.c: Update include.
12005 * mingw-hdep.c: Update include.
12006 * mi/mi-main.c: Update include.
12007 * mi/mi-interp.c: Update include.
12008 * main.c: Update include.
12009 * linux-nat.c: Update include.
12010 * interps.c: Update include.
12011 * infrun.c: Update include.
12012 * inf-loop.c: Update include.
12013 * event-top.c: Update include.
12014 * event-loop.c: Move to ../gdbsupport/.
12015 * event-loop.h: Move to ../gdbsupport/.
12016 * async-event.h: Update include.
12017 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12018
12019 2020-04-13 Tom Tromey <tom@tromey.com>
12020
12021 * tui/tui-win.c: Include async-event.h.
12022 * remote.c: Include async-event.h.
12023 * remote-notif.c: Include async-event.h.
12024 * record-full.c: Include async-event.h.
12025 * record-btrace.c: Include async-event.h.
12026 * infrun.c: Include async-event.h.
12027 * event-top.c: Include async-event.h.
12028 * event-loop.h: Move some declarations to async-event.h.
12029 * event-loop.c: Don't include ser-event.h or top.h. Move some
12030 code to async-event.c.
12031 * async-event.h: New file.
12032 * async-event.c: New file.
12033 * Makefile.in (COMMON_SFILES): Add async-event.c.
12034 (HFILES_NO_SRCDIR): Add async-event.h.
12035
12036 2020-04-13 Tom Tromey <tom@tromey.com>
12037
12038 * utils.c (flush_streams): New function.
12039 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12040
12041 2020-04-13 Tom Tromey <tom@tromey.com>
12042
12043 * event-loop.c (handle_file_event): Use warning, not
12044 printf_unfiltered.
12045
12046 2020-04-13 Tom Tromey <tom@tromey.com>
12047
12048 * event-loop.c: Include <chrono>.
12049
12050 2020-04-13 Tom Tromey <tom@tromey.com>
12051
12052 * gdb_select.h: Move to ../gdbsupport/.
12053 * event-loop.c: Update include path.
12054 * top.c: Update include path.
12055 * ser-base.c: Update include path.
12056 * ui-file.c: Update include path.
12057 * ser-tcp.c: Update include path.
12058 * guile/scm-ports.c: Update include path.
12059 * posix-hdep.c: Update include path.
12060 * ser-unix.c: Update include path.
12061 * gdb_usleep.c: Update include path.
12062 * mingw-hdep.c: Update include path.
12063 * inflow.c: Update include path.
12064 * infrun.c: Update include path.
12065 * event-top.c: Update include path.
12066
12067 2020-04-13 Tom Tromey <tom@tromey.com>
12068
12069 * configure: Rebuild.
12070 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12071
12072 2020-04-13 Tom Tromey <tom@tromey.com>
12073
12074 * event-loop.h (start_event_loop): Don't declare.
12075 * event-loop.c (start_event_loop): Move...
12076 * main.c (start_event_loop): ...here. Now static.
12077
12078 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12079
12080 * MAINTAINERS: Update my email address.
12081
12082 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12083
12084 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12085 IP_ALL.
12086
12087 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12088
12089 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12090 (nbsd_nat_target::info_proc): Add do_cmdline.
12091
12092 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12093
12094 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12095 (nbsd_nat_target::info_proc): Add do_cwd.
12096
12097 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12098
12099 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12100
12101 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12102
12103 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12104 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12105 (nbsd_nat_target::info_proc): New functions.
12106 * nbsd-nat.c (kinfo_get_vmmap): New function.
12107 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12108 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12109 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12110 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12111 functions.
12112 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12113 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12114 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12115 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12116 (KINFO_VME_FLAG_GROWS_DOWN): New.
12117
12118 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12119
12120 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12121 bit shift.
12122
12123 2020-04-10 Tom Tromey <tromey@adacore.com>
12124
12125 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12126
12127 2020-04-10 Tom Tromey <tromey@adacore.com>
12128
12129 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12130 separate debug files.
12131
12132 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12133
12134 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12135 Move to...
12136 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12137 ... here.
12138 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12139 Check for STATUS_WX86_BREAKPOINT.
12140 (windows_nat_target::wait): Same.
12141
12142 2020-04-10 Tom de Vries <tdevries@suse.de>
12143
12144 PR cli/25808
12145 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12146
12147 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12148
12149 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12150 (Write After Approval): Remove Tom de Vries.
12151
12152 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12153
12154 revert partially:
12155 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12156
12157 * buildsym.c (record_line): Fix undefined behavior and preserve
12158 lines at eof.
12159
12160 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12161
12162 * auxv.h (svr4_auxv_parse): New.
12163 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12164 and generic_auxv_parse.
12165 (svr4_auxv_parse): Add.
12166 * obsd-tdep.c: Include "auxv.h".
12167 (obsd_auxv_parse): Remove.
12168 (obsd_init_abi): Remove comment.
12169 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12170 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12171 * nbsd-tdep.c: Include "auxv.h".
12172 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12173
12174 2020-04-08 Tom Tromey <tromey@adacore.com>
12175
12176 * nat/windows-nat.h (last_wait_event): Don't declare.
12177 (wait_for_debug_event): Update comment.
12178 * nat/windows-nat.c (last_wait_event): Now static.
12179
12180 2020-04-08 Tom Tromey <tromey@adacore.com>
12181
12182 * windows-nat.c (wait_for_debug_event): Move to
12183 nat/windows-nat.c.
12184 * nat/windows-nat.h (wait_for_debug_event): Declare.
12185 * nat/windows-nat.c (wait_for_debug_event): Move from
12186 windows-nat.c. No longer static.
12187
12188 2020-04-08 Tom Tromey <tromey@adacore.com>
12189
12190 * windows-nat.c (get_windows_debug_event): Use
12191 fetch_pending_stop.
12192 * nat/windows-nat.h (fetch_pending_stop): Declare.
12193 * nat/windows-nat.c (fetch_pending_stop): New function.
12194
12195 2020-04-08 Tom Tromey <tromey@adacore.com>
12196
12197 * windows-nat.c (windows_continue): Use matching_pending_stop and
12198 continue_last_debug_event.
12199 * nat/windows-nat.h (matching_pending_stop)
12200 (continue_last_debug_event): Declare.
12201 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12202 (matching_pending_stop, continue_last_debug_event): New
12203 functions.
12204
12205 2020-04-08 Tom Tromey <tromey@adacore.com>
12206
12207 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12208 (handle_exception_result): Move to nat/windows-nat.h.
12209 (DEBUG_EXCEPTION_SIMPLE): Remove.
12210 (windows_nat::handle_ms_vc_exception): New function.
12211 (handle_exception): Move to nat/windows-nat.c.
12212 (get_windows_debug_event): Update.
12213 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12214 nat/windows-nat.c.
12215 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12216 (handle_exception_result): Move from windows-nat.c.
12217 (handle_exception): Declare.
12218 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12219 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12220 windows-nat.c.
12221
12222 2020-04-08 Tom Tromey <tromey@adacore.com>
12223
12224 * windows-nat.c (exception_count, event_count): Remove.
12225 (handle_exception, get_windows_debug_event)
12226 (do_initial_windows_stuff): Update.
12227
12228 2020-04-08 Tom Tromey <tromey@adacore.com>
12229
12230 * windows-nat.c (windows_nat::handle_load_dll)
12231 (windows_nat::handle_unload_dll): Rename. No longer static.
12232 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12233 Declare.
12234
12235 2020-04-08 Tom Tromey <tromey@adacore.com>
12236
12237 * complaints.h (stop_whining): Declare at top-level.
12238 (complaint): Don't declare stop_whining.
12239
12240 2020-04-08 Tom Tromey <tromey@adacore.com>
12241
12242 * windows-nat.c (windows_nat::handle_output_debug_string):
12243 Rename. No longer static.
12244 * nat/windows-nat.h (handle_output_debug_string): Declare.
12245
12246 2020-04-08 Tom Tromey <tromey@adacore.com>
12247
12248 * windows-nat.c (current_process_handle, current_process_id)
12249 (main_thread_id, last_sig, current_event, last_wait_event)
12250 (current_windows_thread, desired_stop_thread_id, pending_stops)
12251 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12252 (display_selectors, fake_create_process)
12253 (get_windows_debug_event): Update.
12254 * nat/windows-nat.h (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 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12258 * nat/windows-nat.c (current_process_handle, current_process_id)
12259 (main_thread_id, last_sig, current_event, last_wait_event)
12260 (current_windows_thread, desired_stop_thread_id, pending_stops)
12261 (siginfo_er): New globals. Move from windows-nat.c.
12262
12263 2020-04-08 Tom Tromey <tromey@adacore.com>
12264
12265 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12266 (handle_load_dll): Update.
12267 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12268
12269 2020-04-08 Tom Tromey <tromey@adacore.com>
12270
12271 * windows-nat.c (enum thread_disposition_type): Move to
12272 nat/windows-nat.h.
12273 (windows_nat::thread_rec): Rename from thread_rec. No longer
12274 static.
12275 (windows_add_thread, windows_nat_target::fetch_registers)
12276 (windows_nat_target::store_registers, handle_exception)
12277 (windows_nat_target::resume, get_windows_debug_event)
12278 (windows_nat_target::get_tib_address)
12279 (windows_nat_target::thread_name)
12280 (windows_nat_target::thread_alive): Update.
12281 * nat/windows-nat.h (enum thread_disposition_type): Move from
12282 windows-nat.c.
12283 (thread_rec): Declare.
12284
12285 2020-04-08 Tom Tromey <tromey@adacore.com>
12286
12287 * windows-nat.c: Add "using namespace".
12288 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12289 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12290
12291 2020-04-08 Tom Tromey <tromey@adacore.com>
12292
12293 * nat/windows-nat.h (struct windows_thread_info): Declare
12294 destructor.
12295 * nat/windows-nat.c (~windows_thread_info): New.
12296
12297 2020-04-08 Tom Tromey <tromey@adacore.com>
12298
12299 PR gdb/22992
12300 * windows-nat.c (current_event): Update comment.
12301 (last_wait_event, desired_stop_thread_id): New globals.
12302 (struct pending_stop): New.
12303 (pending_stops): New global.
12304 (windows_nat_target) <stopped_by_sw_breakpoint>
12305 <supports_stopped_by_sw_breakpoint>: New methods.
12306 (windows_fetch_one_register): Add assertions. Adjust PC.
12307 (windows_continue): Handle pending stops. Suspend other threads
12308 when stepping. Use last_wait_event
12309 (wait_for_debug_event): New function.
12310 (get_windows_debug_event): Use wait_for_debug_event. Handle
12311 pending stops. Queue spurious stops.
12312 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12313 (windows_nat_target::kill): Use wait_for_debug_event.
12314 * nat/windows-nat.h (struct windows_thread_info)
12315 <stopped_at_software_breakpoint>: New field.
12316 * nat/windows-nat.c (windows_thread_info::resume): Clear
12317 stopped_at_software_breakpoint.
12318
12319 2020-04-08 Tom Tromey <tromey@adacore.com>
12320
12321 * windows-nat.c (enum thread_disposition_type): New.
12322 (thread_rec): Replace "get_context" parameter with "disposition";
12323 change type.
12324 (windows_add_thread, windows_nat_target::fetch_registers)
12325 (windows_nat_target::store_registers, handle_exception)
12326 (windows_nat_target::resume, get_windows_debug_event)
12327 (windows_nat_target::get_tib_address)
12328 (windows_nat_target::thread_name)
12329 (windows_nat_target::thread_alive): Update.
12330
12331 2020-04-08 Tom Tromey <tromey@adacore.com>
12332
12333 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12334 (windows_continue): Use windows_continue::resume.
12335 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12336 resume>: Declare new methods.
12337 * nat/windows-nat.c: New file.
12338 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12339
12340 2020-04-08 Tom Tromey <tromey@adacore.com>
12341
12342 * windows-nat.c (windows_add_thread, windows_delete_thread)
12343 (windows_nat_target::fetch_registers)
12344 (windows_nat_target::store_registers, fake_create_process)
12345 (windows_nat_target::resume, windows_nat_target::resume)
12346 (get_windows_debug_event, windows_nat_target::wait)
12347 (windows_nat_target::pid_to_str)
12348 (windows_nat_target::get_tib_address)
12349 (windows_nat_target::get_ada_task_ptid)
12350 (windows_nat_target::thread_name)
12351 (windows_nat_target::thread_alive): Use lwp, not tid.
12352
12353 2020-04-08 Tom Tromey <tromey@adacore.com>
12354
12355 * windows-nat.c (handle_exception)
12356 (windows_nat_target::thread_name): Update.
12357 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12358 <name>: Now unique_xmalloc_ptr.
12359
12360 2020-04-08 Tom Tromey <tromey@adacore.com>
12361
12362 * windows-nat.c (thread_rec)
12363 (windows_nat_target::fetch_registers): Update.
12364 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12365 Update comment.
12366 <debug_registers_changed, reload_context>: Now bool.
12367
12368 2020-04-08 Tom Tromey <tromey@adacore.com>
12369
12370 * windows-nat.c (windows_add_thread): Use new.
12371 (windows_init_thread_list, windows_delete_thread): Use delete.
12372 (get_windows_debug_event): Update.
12373 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12374 destructor, and initializers.
12375
12376 2020-04-08 Tom Tromey <tromey@adacore.com>
12377
12378 * windows-nat.c (struct windows_thread_info): Remove.
12379 * nat/windows-nat.h: New file.
12380
12381 2020-04-08 Tom Tromey <tromey@adacore.com>
12382
12383 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12384 (thread_rec, windows_add_thread, windows_delete_thread)
12385 (windows_continue): Update.
12386
12387 2020-04-08 Tom Tromey <tromey@adacore.com>
12388
12389 * windows-nat.c (struct windows_thread_info): Remove typedef.
12390 (thread_head): Remove.
12391 (thread_list): New global.
12392 (thread_rec, windows_add_thread, windows_init_thread_list)
12393 (windows_delete_thread, windows_continue): Update.
12394
12395 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12396
12397 * windows-tdep.h (windows_init_abi): Add comment.
12398 (cygwin_init_abi): New declaration.
12399 * windows-tdep.c: Split signal enumeration in two, one for
12400 Windows and one for Cygwin.
12401 (windows_gdb_signal_to_target): Only deal with signal of the
12402 Windows OS ABI.
12403 (cygwin_gdb_signal_to_target): New function.
12404 (windows_init_abi): Rename to windows_init_abi_common, don't set
12405 gdb_signal_to_target gdbarch method. Add new new function with
12406 this name.
12407 (cygwin_init_abi): New function.
12408 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12409 comment. Don't call windows_init_abi.
12410 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12411 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12412 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12413 i386_windows_init_abi_common, don't call windows_init_abi. Add
12414 a new function of this name.
12415 (i386_cygwin_init_abi): New function.
12416 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12417 OS ABI Cygwin.
12418
12419 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12420
12421 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12422 parameter.c.
12423 (dwarf2_read_gdb_index): Update.
12424
12425 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12426
12427 * nbsd-tdep.c: Include "objfiles.h".
12428 (nbsd_skip_solib_resolver): New.
12429 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12430
12431 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12432
12433 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12434 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12435 with DW_LLE_base_addressx are being emitted in DWARFv5.
12436 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12437 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12438 unsigned integer.
12439
12440 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12441
12442 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12443 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12444 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12445 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12446 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12447 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12448 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12449
12450
12451 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12452
12453 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12454 (read_loclist_index): New function definition.
12455 (lookup_loclist_base): New function definition.
12456 (read_loclist_header): New function definition.
12457 (dwarf2_cu): Add loclist_base and loclist_header field.
12458 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12459 (read_full_die_1): Read the value of DW_AT_loclists_base.
12460 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12461 (read_attribute_value): Handle DW_FORM_loclistx.
12462 (skip_one_die): Handle DW_FORM_loclistx.
12463 (loclist_header): New structure declaration.
12464 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12465
12466 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12467
12468 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12469 constructor. Remove `addr` parameter from other constructor and
12470 add `per_cu` parameter.
12471 * dwarf2/read.c (create_partial_symtab): Update.
12472
12473 2020-04-07 Tom de Vries <tdevries@suse.de>
12474
12475 PR symtab/25796
12476 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12477 (partial_die_info::fixup): Inherit has_const_value.
12478
12479 2020-04-07 Tom de Vries <tdevries@suse.de>
12480
12481 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12482 symbols without address.
12483
12484 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12485
12486 * nbsd-nat.h (struct thread_info): Add forward declaration.
12487 (nbsd_nat_target::thread_alive): Add.
12488 (nbsd_nat_target::thread_name): Likewise.
12489 (nbsd_nat_target::update_thread_list): Likewise.
12490 (update_thread_list::post_attach): Likewise.
12491 (post_attach::pid_to_str): Likewise.
12492 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12493 (nbsd_thread_lister): Add.
12494 (nbsd_nat_target::thread_alive): Likewise.
12495 (nbsd_nat_target::thread_name): Likewise.
12496 (nbsd_add_threads): Likewise.
12497 (update_thread_list::post_attach): Likewise.
12498 (nbsd_nat_target::update_thread_list): Likewise.
12499 (post_attach::pid_to_str): Likewise.
12500
12501 2020-04-06 Tom Tromey <tromey@adacore.com>
12502
12503 * ada-valprint.c (print_variant_part): Extract the variant field.
12504 (print_field_values): Use the field as the outer value when
12505 recursing.
12506
12507 2020-04-06 Tom Tromey <tromey@adacore.com>
12508
12509 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12510 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12511 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12512 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12513 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12514
12515 2020-04-06 Tom Tromey <tromey@adacore.com>
12516
12517 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12518 TYPE_CODE_ERROR.
12519
12520 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12521
12522 * nbsd-tdep.c: Include "gdbarch.h".
12523 Define enum with NetBSD signal numbers.
12524 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12525 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12526 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12527 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12528 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12529 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12530 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12531 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12532 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12533 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12534 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12535 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12536
12537 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12538
12539 PR gdb/25325
12540 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12541
12542 2020-04-03 Tom Tromey <tromey@adacore.com>
12543
12544 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12545 Read constant block.
12546
12547 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12548
12549 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12550 (gdb_bfd_get_full_section_contents): New declaration.
12551 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12552 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12553 gdb_bfd_get_full_section_contents.
12554
12555 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12556
12557 * exec.c (build_section_table): Replace internal_error with
12558 gdb_assert.
12559 (section_table_xfer_memory_partial): Likewise.
12560 * mdebugread.c (parse_partial_symbols): Likewise.
12561 * psymtab.c (lookup_partial_symbol): Likewise.
12562 * utils.c (wrap_here): Likewise.
12563
12564 2020-04-02 Tom Tromey <tromey@adacore.com>
12565
12566 * f-lang.c (build_fortran_types): Use arch_type to initialize
12567 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12568
12569 2020-04-02 Tom Tromey <tromey@adacore.com>
12570
12571 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12572 of attributes.
12573
12574 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12575 Bernd Edlinger <bernd.edlinger@hotmail.de>
12576 Tom Tromey <tromey@adacore.com>
12577
12578 * buildsym.c (buildsym_compunit::record_line): Remove
12579 deduplication code.
12580
12581 2020-04-02 Tom de Vries <tdevries@suse.de>
12582
12583 PR ada/24671
12584 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12585
12586 2020-04-02 Tom de Vries <tdevries@suse.de>
12587
12588 * dwarf2/read.c (dwarf2_gdb_index_functions,
12589 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12590 NULL.
12591 * psymtab.c (psym_lookup_global_symbol_language): New function.
12592 (psym_functions): Init psym_lookup_global_symbol_language with
12593 psym_lookup_global_symbol_language.
12594 * symfile-debug.c (debug_sym_quick_functions): Init
12595 lookup_global_symbol_language with NULL.
12596 * symfile.c (set_initial_language): Remove fixme comment.
12597 * symfile.h (struct quick_symbol_functions): Add
12598 lookup_global_symbol_language.
12599 * symtab.c (find_quick_global_symbol_language): New function.
12600 (find_main_name): Use find_quick_global_symbol_language.
12601
12602 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12603
12604 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12605
12606 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12607
12608 * buildsym.c (record_line): Fix undefined behavior and preserve
12609 lines at eof.
12610
12611 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12612
12613 * buildsym.c (record_line): Fix the resizing condition.
12614
12615 2020-04-01 Tom Tromey <tom@tromey.com>
12616
12617 * value.h (value_literal_complex): Add comment.
12618 * valops.c (value_literal_complex): Refer to value.h.
12619
12620 2020-04-01 Tom Tromey <tom@tromey.com>
12621
12622 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12623 (scalar_type): New rule, from typebase.
12624 (typebase): Use scalar_type. Recognize complex types.
12625 (field_name): Handle FLOAT_KEYWORD.
12626 (ident_tokens): Add _Complex and __complex__.
12627
12628 2020-04-01 Tom Tromey <tom@tromey.com>
12629
12630 PR exp/25299:
12631 * valarith.c (promotion_type, complex_binop): New functions.
12632 (scalar_binop): Handle complex numbers. Use promotion_type.
12633 (value_pos, value_neg, value_complement): Handle complex numbers.
12634
12635 2020-04-01 Tom Tromey <tom@tromey.com>
12636
12637 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12638 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12639 (parse_number): Handle complex numbers.
12640
12641 2020-04-01 Tom Tromey <tom@tromey.com>
12642
12643 * c-valprint.c (c_decorations): Change complex suffix to "i".
12644
12645 2020-04-01 Tom Tromey <tom@tromey.com>
12646
12647 * valprint.c (generic_value_print_complex): Use accessors.
12648 * value.h (value_real_part, value_imaginary_part): Declare.
12649 * valops.c (value_real_part, value_imaginary_part): New
12650 functions.
12651 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12652
12653 2020-04-01 Tom Tromey <tom@tromey.com>
12654
12655 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12656 (read_range_type): Update.
12657 * mdebugread.c (basic_type): Update.
12658 * go-lang.c (build_go_types): Use init_complex_type.
12659 * gdbtypes.h (struct main_type) <complex_type>: New member.
12660 (init_complex_type): Update.
12661 (arch_complex_type): Don't declare.
12662 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12663 Make name if none given. Use alloc_type_copy. Look for cached
12664 complex type.
12665 (arch_complex_type): Remove.
12666 (gdbtypes_post_init): Use init_complex_type.
12667 * f-lang.c (build_fortran_types): Use init_complex_type.
12668 * dwarf2/read.c (read_base_type): Update.
12669 * d-lang.c (build_d_types): Use init_complex_type.
12670 * ctfread.c (read_base_type): Update.
12671
12672 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12673
12674 * infrun.c (stop_all_threads): Update assertion, plus when
12675 stopping threads, take into account that we might be trying
12676 to stop an all-stop target.
12677 (stop_waiting): Call 'stop_all_threads' if there exists a
12678 non-stop target.
12679
12680 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12681
12682 * target.h (exists_non_stop_target): New function declaration.
12683 * target.c (exists_non_stop_target): New function.
12684
12685 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12686
12687 PR gdb/24789
12688 * eval.c (is_integral_or_integral_reference): New function.
12689 (evaluate_subexp_standard): Allow integer references in
12690 pointer arithmetic.
12691
12692 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12693
12694 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12695 check for no ptid in the stop reply when the target is non-stop.
12696
12697 2020-04-01 Tom Tromey <tromey@adacore.com>
12698
12699 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12700 "name" parameter to rvalue reference. Initialize m_name_holder.
12701 <lookup_name_info>: New overloads.
12702 <name>: Return gdb::string_view.
12703 <c_str>: New method.
12704 <make_ignore_params>: Update.
12705 <search_name_hash>: Update.
12706 <language_lookup_name>: Return const char *.
12707 <m_name>: Change type.
12708 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12709 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12710 (lookup_name_info::match_any): Update.
12711 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12712 Update.
12713 * minsyms.c (linkage_name_str): Update.
12714 * language.c (default_symbol_name_matcher): Update.
12715 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12716 Update.
12717 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12718 (ada_lookup_name_info::ada_lookup_name_info): Update.
12719 (literal_symbol_name_matcher): Update.
12720
12721 2020-04-01 Tom Tromey <tromey@adacore.com>
12722
12723 * psymtab.c (psymtab_search_name): Remove function.
12724 (psym_lookup_symbol): Create search name and lookup name here.
12725 (lookup_partial_symbol): Remove "name" parameter; add
12726 lookup_name.
12727 (psym_expand_symtabs_for_function): Update.
12728
12729 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12730
12731 PR tui/25597:
12732 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12733
12734 2020-03-31 Tom Tromey <tromey@adacore.com>
12735
12736 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12737 memcpy.
12738
12739 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12740
12741 * features/riscv/32bit-csr.xml: Regenerated.
12742 * features/riscv/64bit-csr.xml: Regenerated.
12743
12744 2020-03-30 Tom Tromey <tromey@adacore.com>
12745
12746 * ada-valprint.c (print_variant_part): Update.
12747 * ada-lang.h (ada_which_variant_applies): Update.
12748 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12749 outer_valaddr parameters; replace with "outer" value parameter.
12750 (to_fixed_variant_branch_type): Update.
12751
12752 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12753
12754 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12755 <list>. Remove inclusion of observable.h.
12756 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12757 (struct arch_lwp_info): New struct.
12758 (class ppc_linux_dreg_interface): New class.
12759 (struct ppc_linux_process_info): New struct.
12760 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12761 <low_new_clone, low_forget_process, low_prepare_to_resume>
12762 <copy_thread_dreg_state, mark_thread_stale>
12763 <mark_debug_registers_changed, register_hw_breakpoint>
12764 <clear_hw_breakpoint, register_wp, clear_wp>
12765 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12766 <num_memory_accesses, get_trigger_type>
12767 <create_watchpoint_request, hwdebug_point_cmp>
12768 <init_arch_lwp_info, get_arch_lwp_info>
12769 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12770 methods.
12771 <struct ptid_hash>: New inner struct.
12772 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12773 members.
12774 (saved_dabr_value, hwdebug_info, max_slots_number)
12775 (struct hw_break_tuple, struct thread_points, ppc_threads)
12776 (have_ptrace_hwdebug_interface)
12777 (hwdebug_find_thread_points_by_tid)
12778 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12779 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12780 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12781 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12782 use m_dreg_interface.
12783 (hwdebug_point_cmp): Change to...
12784 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12785 reference arguments instead of pointers.
12786 (ppc_linux_nat_target::ranged_break_num_registers): Use
12787 m_dreg_interface.
12788 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12789 m_dreg_interface. Call register_hw_breakpoint.
12790 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12791 m_dreg_interface. Call clear_hw_breakpoint.
12792 (get_trigger_type): Change to...
12793 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12794 comment.
12795 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12796 use m_dreg_interface. Call register_hw_breakpoint.
12797 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12798 use m_dreg_interface. Call clear_hw_breakpoint.
12799 (can_use_watchpoint_cond_accel): Change to...
12800 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12801 method. Update comment, use m_dreg_interface and
12802 m_process_info.
12803 (calculate_dvc): Change to...
12804 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12805 m_dreg_interface.
12806 (num_memory_accesses): Change to...
12807 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12808 (check_condition): Change to...
12809 (ppc_linux_nat_target::check_condition): ...this method.
12810 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12811 comment, use m_dreg_interface.
12812 (create_watchpoint_request): Change to...
12813 (ppc_linux_nat_target::create_watchpoint_request): ...this
12814 method. Use m_dreg_interface.
12815 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12816 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12817 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12818 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12819 (ppc_linux_nat_target::low_forget_process)
12820 (ppc_linux_nat_target::low_new_fork)
12821 (ppc_linux_nat_target::low_new_clone)
12822 (ppc_linux_nat_target::low_delete_thread)
12823 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12824 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12825 only call mark_thread_stale.
12826 (ppc_linux_thread_exit): Remove.
12827 (ppc_linux_nat_target::stopped_data_address): Change to...
12828 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12829 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12830 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12831 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12832 comment. Call low_stopped_data_address.
12833 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12834 m_dreg_interface.
12835 (ppc_linux_nat_target::masked_watch_num_registers): Use
12836 m_dreg_interface.
12837 (ppc_linux_nat_target::copy_thread_dreg_state)
12838 (ppc_linux_nat_target::mark_thread_stale)
12839 (ppc_linux_nat_target::mark_debug_registers_changed)
12840 (ppc_linux_nat_target::register_hw_breakpoint)
12841 (ppc_linux_nat_target::clear_hw_breakpoint)
12842 (ppc_linux_nat_target::register_wp)
12843 (ppc_linux_nat_target::clear_wp)
12844 (ppc_linux_nat_target::init_arch_lwp_info)
12845 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12846 (_initialize_ppc_linux_nat): Remove observer callback.
12847
12848 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12849
12850 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12851 (ppc_linux_nat_target::auxv_parse)
12852 (ppc_linux_nat_target::read_description)
12853 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12854 Move up.
12855
12856 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12857
12858 * linux-nat.h (low_new_clone): New method.
12859 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12860
12861 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12862
12863 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12864 (dbx_expand_psymtab): ... this.
12865 (start_psymtab): Update.
12866 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12867 (mdebug_expand_psymtab): ... this.
12868 (parse_partial_symbols): Update.
12869 (new_psymtab): Update.
12870 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12871 (xcoff_expand_psymtab): ... this.
12872 (xcoff_start_psymtab): Update.
12873
12874 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12875
12876 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12877 <expand_dependencies>: ... this.
12878 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12879 (partial_symtab::expand_dependencies): ... this.
12880 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12881 Update.
12882 (dwarf2_psymtab::expand_psymtab): Update.
12883 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12884 * mdebugread.c (psymtab_to_symtab_1): Update.
12885 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12886
12887 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12888
12889 * psympriv.h (discard_psymtab): Remove.
12890 * dbxread.c (dbx_end_psymtab): Update.
12891 * xcoffread.c (xcoff_end_psymtab): Update.
12892
12893 2020-03-28 Tom Tromey <tom@tromey.com>
12894
12895 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12896 comment.
12897
12898 2020-03-28 Tom Tromey <tom@tromey.com>
12899
12900 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12901
12902 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12903
12904 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12905
12906 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12907
12908 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12909
12910 2020-03-26 Tom Tromey <tom@tromey.com>
12911
12912 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12913 (mark_common_block_symbol_computed, read_tag_string_type)
12914 (attr_to_dynamic_prop, read_subrange_type): Update.
12915 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12916 to be methods on struct attribute.
12917 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12918 (read_call_site_scope, partial_die_info::read)
12919 (partial_die_info::read, lookup_die_type, follow_die_ref):
12920 Update.
12921 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12922 from dwarf2_get_ref_die_offset.
12923 (attribute::constant_value): New method, from
12924 dwarf2_get_attr_constant_value.
12925 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12926 Declare method.
12927 <constant_value>: New method.
12928
12929 2020-03-26 Tom Tromey <tom@tromey.com>
12930
12931 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12932 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12933 (dwarf_type_encoding_name): Move to stringify.c.
12934 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12935 * dwarf2/stringify.c: New file.
12936 * dwarf2/stringify.h: New file.
12937
12938 2020-03-26 Tom Tromey <tom@tromey.com>
12939
12940 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12941 Rewrite.
12942
12943 2020-03-26 Tom Tromey <tom@tromey.com>
12944
12945 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12946 methods.
12947 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12948 (lookup_ranges_base): Likewise.
12949 (read_cutu_die_from_dwo, read_full_die_1): Update.
12950
12951 2020-03-26 Tom Tromey <tom@tromey.com>
12952
12953 * dwarf2/read.c (read_import_statement, read_file_scope)
12954 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12955 (read_lexical_block_scope, read_call_site_scope)
12956 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12957 (handle_struct_member_die, process_structure_scope)
12958 (update_enumeration_type_from_children)
12959 (process_enumeration_scope, read_array_type, read_common_block)
12960 (read_namespace, read_module, read_subroutine_type): Update.
12961 (sibling_die): Remove.
12962
12963 2020-03-26 Tom Tromey <tom@tromey.com>
12964
12965 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12966 (build_type_psymtabs_reader, read_structure_type)
12967 (read_enumeration_type, read_full_die_1): Update.
12968 (dwarf2_attr_no_follow): Move to die.h.
12969 * dwarf2/die.h (struct die_info) <attr>: New method.
12970
12971 2020-03-26 Tom Tromey <tom@tromey.com>
12972
12973 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12974 <base_address>: Now an optional.
12975 (dwarf2_find_base_address, dwarf2_rnglists_process)
12976 (dwarf2_ranges_process, fill_in_loclist_baton)
12977 (dwarf2_symbol_mark_computed): Update.
12978
12979 2020-03-26 Tom Tromey <tom@tromey.com>
12980
12981 * dwarf2/read.c (struct die_info): Move to die.h.
12982 * dwarf2/die.h: New file.
12983
12984 2020-03-26 Tom Tromey <tom@tromey.com>
12985
12986 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12987 * dwarf2/read.c
12988 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12989 Move to line-header.c.
12990 (read_checked_initial_length_and_offset, read_formatted_entries):
12991 Likewise.
12992 (dwarf_decode_line_header): Split into two.
12993 * dwarf2/line-header.c
12994 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12995 Move from read.c.
12996 (read_checked_initial_length_and_offset, read_formatted_entries):
12997 Likewise.
12998 (dwarf_decode_line_header): New function, split from read.c.
12999
13000 2020-03-26 Tom Tromey <tom@tromey.com>
13001
13002 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13003 Declare method.
13004 * dwarf2/read.c (read_attribute_value): Update.
13005 (dwarf2_per_objfile::read_line_string): Rename from
13006 read_indirect_line_string.
13007 (read_formatted_entries): Update.
13008
13009 2020-03-26 Tom Tromey <tom@tromey.com>
13010
13011 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13012 variable.
13013
13014 2020-03-26 Tom Tromey <tom@tromey.com>
13015
13016 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13017 const.
13018 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13019 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13020 parameter const.
13021
13022 2020-03-26 Tom Tromey <tom@tromey.com>
13023
13024 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13025 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13026 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13027 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13028
13029 2020-03-26 Tom Tromey <tom@tromey.com>
13030
13031 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13032 file_names_size, file_full_name, file_file_name>: Use const.
13033 <file_name_at, file_names>: Add const overload.
13034 * dwarf2/line-header.c (line_header::file_file_name)
13035 (line_header::file_full_name): Update.
13036
13037 2020-03-26 Tom Tromey <tom@tromey.com>
13038
13039 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13040 (macro_start_file, consume_improper_spaces)
13041 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13042 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13043 (dwarf_decode_macros): Move to macro.c.
13044 * dwarf2/macro.c: New file.
13045 * dwarf2/macro.h: New file.
13046 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13047
13048 2020-03-26 Tom Tromey <tom@tromey.com>
13049
13050 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13051 method.
13052 * dwarf2/section.c: New method. From
13053 read_indirect_string_at_offset_from.
13054 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13055 (read_indirect_string_at_offset_from): Move to section.c.
13056 (read_indirect_string_at_offset): Rewrite.
13057 (read_indirect_line_string_at_offset): Remove.
13058 (read_indirect_string, read_indirect_line_string)
13059 (dwarf_decode_macro_bytes): Update.
13060
13061 2020-03-26 Tom Tromey <tom@tromey.com>
13062
13063 * dwarf2/section.h (struct dwarf2_section_info)
13064 <overload_complaint>: Declare.
13065 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13066 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13067 Rename from dwarf2_section_buffer_overflow_complaint.
13068 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13069 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13070
13071 2020-03-26 Tom Tromey <tom@tromey.com>
13072
13073 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13074 Declare.
13075 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13076 Move from read.c.
13077 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13078 to section.c.
13079
13080 2020-03-26 Tom Tromey <tom@tromey.com>
13081
13082 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13083
13084 2020-03-26 Tom Tromey <tom@tromey.com>
13085
13086 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13087 "builder".
13088 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13089 parameter.
13090 (dwarf_decode_macros): Update.
13091
13092 2020-03-26 Tom Tromey <tom@tromey.com>
13093
13094 * dwarf2/read.c (read_attribute_value): Update.
13095 (read_indirect_string_from_dwz): Move to dwz.c; change into
13096 method.
13097 (dwarf_decode_macro_bytes): Update.
13098 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13099 * dwarf2/dwz.c: New file.
13100 * Makefile.in (COMMON_SFILES): Add dwz.c.
13101
13102 2020-03-26 Tom Tromey <tom@tromey.com>
13103
13104 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13105 * dwarf2/read.c: Add include.
13106 * dwarf2/index-write.c: Add include.
13107 * dwarf2/index-cache.c: Add include.
13108 * dwarf2/dwz.h: New file.
13109
13110 2020-03-25 Tom Tromey <tom@tromey.com>
13111
13112 * compile/compile-object-load.c (get_out_value_type): Mention
13113 correct symbol name in error message.
13114
13115 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13116
13117 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13118
13119 2020-03-25 Tom de Vries <tdevries@suse.de>
13120
13121 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13122 * symmisc.c (dump_symtab_1): Print user and includes fields.
13123 (maintenance_info_symtabs): Same.
13124
13125 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13126
13127 PR gdb/25534
13128 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13129 (riscv_regcache_cooked_write): New function.
13130 (riscv_push_dummy_call): Use new function.
13131 (riscv_return_value): Likewise.
13132
13133 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13134
13135 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13136 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13137 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13138 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13139 * infrun.c (follow_fork): Likewise.
13140 (follow_fork_inferior): Likewise.
13141 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13142 * linux-nat.h (class linux_nat_target): Likewise.
13143 * remote.c (class remote_target) <follow_fork>: Likewise.
13144 (remote_target::follow_fork): Likewise.
13145 * target-delegates.c: Re-generate.
13146 * target.c (default_follow_fork): Likewise.
13147 (target_follow_fork): Likewise.
13148 * target.h (struct target_ops) <follow_fork>: Likewise.
13149 (target_follow_fork): Likewise.
13150
13151 2020-03-24 Tom de Vries <tdevries@suse.de>
13152
13153 * psymtab.c (maintenance_info_psymtabs): Print user field.
13154
13155 2020-03-20 Tom Tromey <tromey@adacore.com>
13156
13157 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13158 const.
13159 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13160 const.
13161
13162 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13163
13164 * ptrace.m4: Don't check for ptrace declaration.
13165 * config.in: Re-generate.
13166 * configure: Re-generate.
13167 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13168 not defined.
13169
13170 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13171
13172 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13173 `PTRACE_TYPE_RET'.
13174 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13175 * sparc-nat.c (gdb_ptrace): Likewise.
13176 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13177
13178 2020-03-20 Tom Tromey <tromey@adacore.com>
13179
13180 * c-exp.y (lex_one_token): Fix assert.
13181
13182 2020-03-20 Tom Tromey <tromey@adacore.com>
13183
13184 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13185 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13186 strncpy call.
13187
13188 2020-03-20 Tom Tromey <tromey@adacore.com>
13189
13190 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13191
13192 2020-03-20 Tom Tromey <tromey@adacore.com>
13193
13194 * ada-valprint.c (print_variant_part): Remove parameters; switch
13195 to value-based API.
13196 (print_field_values): Likewise.
13197 (ada_val_print_struct_union): Likewise.
13198 (ada_value_print_1): Update.
13199
13200 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13201
13202 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13203 nbsd_nat_target instead of inf_ptrace_target.
13204 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13205 nbsd_nat_target.
13206
13207 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13208
13209 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13210 it to the ptrace call.
13211 * (store_registers): Likewise.
13212
13213 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13214
13215 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13216 it to the ptrace call.
13217 * (store_registers): Likewise.
13218
13219 2020-03-19 Luis Machado <luis.machado@linaro.org>
13220
13221 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13222 valid, fetch vg value from ptrace.
13223
13224 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13225 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13226 * inf-ptrace.c: Likewise.
13227 * (gdb_ptrace): Add.
13228 * (inf_ptrace_target::resume): Update.
13229 * (inf_ptrace_target::xfer_partial): Likewise.
13230 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13231 * (inf_ptrace_peek_poke): Update.
13232
13233 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13234
13235 * x86-bsd-nat.c (gdb_ptrace): New.
13236 * (x86bsd_dr_set): Add new argument `ptid'.
13237 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13238 x86bsd_dr_set_addr): Update.
13239
13240 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13241
13242 * remote.c (remote_target::process_stop_reply): Handle events for
13243 all threads differently.
13244
13245 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13246
13247 * completer.c (completion_tracker::remove_completion): Define new
13248 function.
13249 * completer.h (completion_tracker::remove_completion): Declare new
13250 function.
13251 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13252 when adding a C++ function symbol.
13253
13254 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13255
13256 * completer.c (completion_tracker::completion_hash_entry): Define
13257 new class.
13258 (advance_to_filename_complete_word_point): Call
13259 recompute_lowest_common_denominator.
13260 (completion_tracker::completion_tracker): Call discard_completions
13261 to setup the hash table.
13262 (completion_tracker::discard_completions): Allow for being called
13263 from the constructor, pass new equal function, and element deleter
13264 when constructing the hash table. Initialise new class member
13265 variables.
13266 (completion_tracker::maybe_add_completion): Remove use of
13267 m_entries_vec, and store more information into m_entries_hash.
13268 (completion_tracker::recompute_lcd_visitor): New function, most
13269 content taken from...
13270 (completion_tracker::recompute_lowest_common_denominator):
13271 ...here, this now just visits each item in the hash calling the
13272 above visitor.
13273 (completion_tracker::build_completion_result): Remove use of
13274 m_entries_vec, call recompute_lowest_common_denominator.
13275 * completer.h (completion_tracker::have_completions): Remove use
13276 of m_entries_vec.
13277 (completion_tracker::completion_hash_entry): Declare new class.
13278 (completion_tracker::recompute_lowest_common_denominator): Change
13279 function signature.
13280 (completion_tracker::recompute_lcd_visitor): Declare new function.
13281 (completion_tracker::m_entries_vec): Delete.
13282 (completion_tracker::m_entries_hash): Initialize to NULL.
13283 (completion_tracker::m_lowest_common_denominator_valid): New
13284 member variable.
13285 (completion_tracker::m_lowest_common_denominator_max_length): New
13286 member variable.
13287
13288 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13289
13290 * regformats/regdef.h: Put reg in gdb namespace.
13291
13292 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13293
13294 * i386-bsd-nat.c (gdb_ptrace): New.
13295 * (i386bsd_fetch_inferior_registers,
13296 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13297 * (i386bsd_fetch_inferior_registers,
13298 i386bsd_store_inferior_registers) Use gdb_ptrace.
13299
13300 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13301
13302 * amd64-bsd-nat.c (gdb_ptrace): New.
13303 * (amd64bsd_fetch_inferior_registers,
13304 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13305 * (amd64bsd_fetch_inferior_registers,
13306 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13307
13308 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13309
13310 * user-regs.c (user_reg::read): Rename to...
13311 (user_reg::xread): ...this.
13312 * (append_user_reg): Rename argument `read' to `xread'.
13313 * (user_reg_add_builtin): Likewise.
13314 * (user_reg_add): Likewise.
13315 * (value_of_user_reg): Likewise.
13316
13317 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13318
13319 * sparc-nat.c (gdb_ptrace): New.
13320 * sparc-nat.c (sparc_fetch_inferior_registers)
13321 (sparc_store_inferior_registers) Remove obsolete comment.
13322 * sparc-nat.c (sparc_fetch_inferior_registers)
13323 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13324 * sparc-nat.c (sparc_fetch_inferior_registers)
13325 (sparc_store_inferior_registers) Use gdb_ptrace.
13326
13327 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13328
13329 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13330 it to the ptrace call.
13331 * sh-nbsd-nat.c (store_registers): Likewise.
13332
13333 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13334
13335 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13336 nbsd_nat_target instead of inf_ptrace_target.
13337 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13338 nbsd_nat_target.
13339
13340 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13341
13342 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13343
13344 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13345
13346 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13347 <sys/sysctl.h>.
13348 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13349
13350 2020-03-17 Tom de Vries <tdevries@suse.de>
13351
13352 PR gdb/23710
13353 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13354 fields.
13355 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13356 fields.
13357 (process_imported_unit_die): Skip import of c++ CUs.
13358
13359 2020-03-16 Tom Tromey <tom@tromey.com>
13360
13361 * p-valprint.c (pascal_object_print_value): Initialize
13362 base_value.
13363
13364 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13365 Shahab Vahedi <shahab@synopsys.com>
13366
13367 * Makefile.in: Add arch/arc.o
13368 * configure.tgt: Likewise.
13369 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13370 (_initialize_arc_tdep): Don't initialize old target descriptions.
13371 (arc_read_description): New function to cache target descriptions.
13372 * arc-tdep.h (arc_read_description): Add proto type.
13373 * arch/arc.c: New file.
13374 * arch/arc.h: Likewise.
13375 * features/Makefile: Replace old target descriptions with new.
13376 * features/arc-arcompact.c: Remove.
13377 * features/arc-arcompact.xml: Likewise.
13378 * features/arc-v2.c: Likewise
13379 * features/arc-v2.xml: Likewise
13380 * features/arc/aux-arcompact.xml: New file.
13381 * features/arc/aux-v2.xml: Likewise.
13382 * features/arc/core-arcompact.xml: Likewise.
13383 * features/arc/core-v2.xml: Likewise.
13384 * features/arc/aux-arcompact.c: Generate.
13385 * features/arc/aux-v2.c: Likewise.
13386 * features/arc/core-arcompact.c: Likewise.
13387 * features/arc/core-v2.c: Likewise.
13388 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13389
13390 2020-03-16 Tom Tromey <tromey@adacore.com>
13391
13392 PR gdb/25663:
13393 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13394 putting value into bcache.
13395
13396 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13397
13398 PR gdb/21500
13399 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13400 to...
13401 (amd64_windows_init_abi_common): ... this. Don't set size of
13402 long type.
13403 (amd64_windows_init_abi): New function.
13404 (amd64_cygwin_init_abi): New function.
13405 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13406 the Cygwin OS ABI.
13407 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13408 comment.
13409
13410 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13411
13412 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13413 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13414 (pe_import_directory_entry): New struct type.
13415 (is_linked_with_cygwin_dll): New function.
13416 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13417 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13418 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13419
13420 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13421
13422 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13423 i386_cygwin_core_osabi_sniffer.
13424
13425 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13426
13427 * i386-cygwin-tdep.c: Rename to...
13428 * i386-windows-tdep.c: ... this.
13429 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13430 i386-windows-tdep.c.
13431 * configure.tgt: Likewise.
13432
13433 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13434
13435 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13436 * osabi.c (gdb_osabi_names): Add "Windows".
13437 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13438 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13439 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13440 i386_cygwin_osabi_sniffer.
13441 (_initialize_i386_cygwin_tdep): Register OS ABI
13442 GDB_OSABI_WINDOWS for i386.
13443 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13444 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13445 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13446 for x86-64.
13447 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13448 when the target matches '*-*-mingw*'.
13449
13450 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13451
13452 * defs.h (enum gdb_osabi): Move to...
13453 * osabi.h (enum gdb_osabi): ... here.
13454 * gdbarch.sh: Include osabi.h in gdbarch.h.
13455 * gdbarch.h: Re-generate.
13456
13457 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13458
13459 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13460 function.
13461 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13462
13463 2020-03-14 Tom Tromey <tom@tromey.com>
13464
13465 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13466 for C++.
13467 (c_type_print_modifier): Likewise. Add "language" parameter.
13468 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13469 (c_type_print_base_1): Update.
13470 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13471 constants.
13472 * type-stack.c (type_stack::insert): Handle tp_atomic and
13473 tp_restrict.
13474 (type_stack::follow_type_instance_flags): Likewise.
13475 (type_stack::follow_types): Likewise. Merge type-following code.
13476 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13477 (space_identifier, cv_with_space_id)
13478 (const_or_volatile_or_space_identifier_noopt)
13479 (const_or_volatile_or_space_identifier): Remove.
13480 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13481 rules.
13482 (ptr_operator, typebase): Update.
13483 (enum token_flag) <FLAG_C>: New constant.
13484 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13485 "_Atomic".
13486 (lex_one_token): Handle FLAG_C.
13487
13488 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13489
13490 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13491 it to the ptrace call.
13492 * m68k-bsd-nat.c (store_registers): Likewise.
13493
13494 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13495
13496 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13497 gdb_byte *.
13498 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13499 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13500 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13501
13502 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13503
13504 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13505 nbsd_nat_target instead of inf_ptrace_target.
13506 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13507 nbsd_nat_target.
13508
13509 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13510
13511 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13512 register_t.
13513
13514 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13515
13516 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13517 it to the ptrace call.
13518 * alpha-bsd-nat.c (store_registers): Likewise.
13519
13520 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13521
13522 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13523 includes.
13524 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13525 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13526 fill_fpregset): Likewise.
13527
13528 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13529
13530 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13531 nbsd_nat_target instead of inf_ptrace_target.
13532 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13533 nbsd_nat_target.
13534
13535 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13536
13537 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13538 register_t.
13539
13540 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13541
13542 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13543 it to the ptrace call.
13544 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13545 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13546 * arm-nbsd-nat.c (store_register): Likewise.
13547 * arm-nbsd-nat.c (store_regs): Likewise.
13548 * arm-nbsd-nat.c (store_fp_register): Likewise.
13549 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13550
13551 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13552
13553 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13554 nbsd_nat_target instead of inf_ptrace_target.
13555 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13556 nbsd_nat_target.
13557
13558 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13559
13560 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13561 it to the ptrace call.
13562 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13563
13564 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13565
13566 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13567 it to the ptrace call.
13568 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13569
13570 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13571
13572 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13573 gdb_byte *.
13574 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13575
13576 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13577
13578 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13579 instead of inf_ptrace_target.
13580 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13581 nbsd_nat_target.
13582
13583 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13584
13585 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13586 register_t.
13587
13588 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13589
13590 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13591 register_t.
13592
13593 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13594
13595 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13596 register_t.
13597
13598 2020-03-13 Tom Tromey <tom@tromey.com>
13599
13600 * value.h (val_print): Don't declare.
13601 * valprint.h (val_print_array_elements)
13602 (val_print_scalar_formatted, generic_val_print): Don't declare.
13603 * valprint.c (generic_val_print_array): Take a struct value.
13604 (generic_val_print_ptr, generic_val_print_memberptr)
13605 (generic_val_print_bool, generic_val_print_int)
13606 (generic_val_print_char, generic_val_print_complex)
13607 (generic_val_print): Remove.
13608 (generic_value_print): Update.
13609 (do_val_print): Remove unused parameters. Don't call
13610 la_val_print.
13611 (val_print): Remove.
13612 (common_val_print): Update. Don't call value_check_printable.
13613 (val_print_scalar_formatted, val_print_array_elements): Remove.
13614 * rust-lang.c (rust_val_print): Remove.
13615 (rust_language_defn): Update.
13616 * p-valprint.c (pascal_val_print): Remove.
13617 (pascal_value_print_inner): Update.
13618 (pascal_object_print_val_fields, pascal_object_print_val):
13619 Remove.
13620 (pascal_object_print_static_field): Update.
13621 * p-lang.h (pascal_val_print): Don't declare.
13622 * p-lang.c (pascal_language_defn): Update.
13623 * opencl-lang.c (opencl_language_defn): Update.
13624 * objc-lang.c (objc_language_defn): Update.
13625 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13626 * m2-lang.h (m2_val_print): Don't declare.
13627 * m2-lang.c (m2_language_defn): Update.
13628 * language.h (struct language_defn) <la_val_print>: Remove.
13629 * language.c (unk_lang_value_print_inner): Rename. Change
13630 argument types.
13631 (unknown_language_defn, auto_language_defn): Update.
13632 * go-valprint.c (go_val_print): Remove.
13633 * go-lang.h (go_val_print): Don't declare.
13634 * go-lang.c (go_language_defn): Update.
13635 * f-valprint.c (f_val_print): Remove.
13636 * f-lang.h (f_value_print): Don't declare.
13637 * f-lang.c (f_language_defn): Update.
13638 * d-valprint.c (d_val_print): Remove.
13639 * d-lang.h (d_value_print): Don't declare.
13640 * d-lang.c (d_language_defn): Update.
13641 * cp-valprint.c (cp_print_value_fields)
13642 (cp_print_value_fields_rtti, cp_print_value): Remove.
13643 (cp_print_static_field): Update.
13644 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13645 (c_val_print_struct, c_val_print_union, c_val_print_int)
13646 (c_val_print_memberptr, c_val_print): Remove.
13647 * c-lang.h (c_val_print_array, cp_print_value_fields)
13648 (cp_print_value_fields_rtti): Don't declare.
13649 * c-lang.c (c_language_defn, cplus_language_defn)
13650 (asm_language_defn, minimal_language_defn): Update.
13651 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13652 (ada_val_print_enum): Take a struct value.
13653 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13654 (ada_val_print): Remove.
13655 (ada_value_print_1): Update.
13656 (printable_val_type): Remove.
13657 * ada-lang.h (ada_val_print): Don't declare.
13658 * ada-lang.c (ada_language_defn): Update.
13659
13660 2020-03-13 Tom Tromey <tom@tromey.com>
13661
13662 * valprint.c (do_val_print): Update.
13663 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13664 a struct value.
13665 (value_to_value_object_no_release): Declare.
13666 * python/py-value.c (value_to_value_object_no_release): New
13667 function.
13668 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13669 struct value.
13670 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13671 function.
13672 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13673 a struct value.
13674 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13675 Declare.
13676 (gdbscm_apply_val_pretty_printer): Take a struct value.
13677 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13678 value.
13679 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13680 value.
13681 * extension-priv.h (struct extension_language_ops)
13682 <apply_val_pretty_printer>: Take a struct value.
13683 * cp-valprint.c (cp_print_value): Create a struct value.
13684 (cp_print_value): Update.
13685
13686 2020-03-13 Tom Tromey <tom@tromey.com>
13687
13688 * ada-valprint.c (print_field_values): Call common_val_print.
13689
13690 2020-03-13 Tom Tromey <tom@tromey.com>
13691
13692 * ada-valprint.c (val_print_packed_array_elements): Remove
13693 bitoffset and val parameters. Call common_val_print.
13694 (ada_val_print_string): Remove offset, address, and original_value
13695 parameters.
13696 (ada_val_print_array): Update.
13697 (ada_value_print_array): New function.
13698 (ada_value_print_1): Call it.
13699
13700 2020-03-13 Tom Tromey <tom@tromey.com>
13701
13702 * ada-valprint.c (ada_value_print): Use common_val_print.
13703
13704 2020-03-13 Tom Tromey <tom@tromey.com>
13705
13706 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13707
13708 2020-03-13 Tom Tromey <tom@tromey.com>
13709
13710 * ada-valprint.c (ada_value_print_num): New function.
13711 (ada_value_print_1): Use it.
13712
13713 2020-03-13 Tom Tromey <tom@tromey.com>
13714
13715 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13716
13717 2020-03-13 Tom Tromey <tom@tromey.com>
13718
13719 * ada-valprint.c (ada_value_print_ptr): New function.
13720 (ada_value_print_1): Use it.
13721
13722 2020-03-13 Tom Tromey <tom@tromey.com>
13723
13724 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13725 call common_val_print.
13726 (ada_val_print_1): Update.
13727 (ada_value_print_1): New function.
13728 (ada_value_print_inner): Rewrite.
13729
13730 2020-03-13 Tom Tromey <tom@tromey.com>
13731
13732 * cp-valprint.c (cp_print_value_fields): Update.
13733 (cp_print_value): New function.
13734
13735 2020-03-13 Tom Tromey <tom@tromey.com>
13736
13737 * m2-valprint.c (m2_value_print_inner): Use
13738 cp_print_value_fields.
13739 * cp-valprint.c (cp_print_value_fields): New function.
13740 * c-valprint.c (c_value_print_struct): New function.
13741 (c_value_print_inner): Use c_value_print_struct.
13742 * c-lang.h (cp_print_value_fields): Declare.
13743
13744 2020-03-13 Tom Tromey <tom@tromey.com>
13745
13746 * c-valprint.c (c_value_print_array): New function.
13747 (c_value_print_inner): Use it.
13748
13749 2020-03-13 Tom Tromey <tom@tromey.com>
13750
13751 * c-valprint.c (c_value_print_memberptr): New function.
13752 (c_value_print_inner): Use it.
13753
13754 2020-03-13 Tom Tromey <tom@tromey.com>
13755
13756 * c-valprint.c (c_value_print_int): New function.
13757 (c_value_print_inner): Use it.
13758
13759 2020-03-13 Tom Tromey <tom@tromey.com>
13760
13761 * c-valprint.c (c_value_print_ptr): New function.
13762 (c_value_print_inner): Use it.
13763
13764 2020-03-13 Tom Tromey <tom@tromey.com>
13765
13766 * c-valprint.c (c_value_print_inner): Rewrite.
13767
13768 2020-03-13 Tom Tromey <tom@tromey.com>
13769
13770 * valprint.c (generic_value_print_complex): New function.
13771 (generic_value_print): Use it.
13772
13773 2020-03-13 Tom Tromey <tom@tromey.com>
13774
13775 * valprint.c (generic_val_print_float): Don't call
13776 val_print_scalar_formatted.
13777 (generic_val_print, generic_value_print): Update.
13778
13779 2020-03-13 Tom Tromey <tom@tromey.com>
13780
13781 * valprint.c (generic_value_print_char): New function
13782 (generic_value_print): Use it.
13783
13784 2020-03-13 Tom Tromey <tom@tromey.com>
13785
13786 * valprint.c (generic_value_print_int): New function.
13787 (generic_value_print): Use it.
13788
13789 2020-03-13 Tom Tromey <tom@tromey.com>
13790
13791 * valprint.c (generic_value_print_bool): New function.
13792 (generic_value_print): Use it.
13793
13794 2020-03-13 Tom Tromey <tom@tromey.com>
13795
13796 * valprint.c (generic_val_print_func): Simplify.
13797 (generic_val_print, generic_value_print): Update.
13798
13799 2020-03-13 Tom Tromey <tom@tromey.com>
13800
13801 * valprint.c (generic_val_print_flags): Remove.
13802 (generic_val_print, generic_value_print): Update.
13803 (val_print_type_code_flags): Add original_value parameter.
13804
13805 2020-03-13 Tom Tromey <tom@tromey.com>
13806
13807 * valprint.c (generic_val_print): Update.
13808 (generic_value_print): Update.
13809 * valprint.c (generic_val_print_enum): Don't call
13810 val_print_scalar_formatted.
13811
13812 2020-03-13 Tom Tromey <tom@tromey.com>
13813
13814 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13815 * valprint.c (generic_value_print_ptr): New function.
13816
13817 2020-03-13 Tom Tromey <tom@tromey.com>
13818
13819 * valprint.c (generic_value_print): Rewrite.
13820
13821 2020-03-13 Tom Tromey <tom@tromey.com>
13822
13823 * p-valprint.c (pascal_object_print_value_fields)
13824 (pascal_object_print_value): New functions.
13825
13826 2020-03-13 Tom Tromey <tom@tromey.com>
13827
13828 * p-valprint.c (pascal_value_print_inner): Rewrite.
13829
13830 2020-03-13 Tom Tromey <tom@tromey.com>
13831
13832 * f-valprint.c (f_value_print_innner): Rewrite.
13833
13834 2020-03-13 Tom Tromey <tom@tromey.com>
13835
13836 * m2-valprint.c (m2_print_unbounded_array): New overload.
13837 (m2_print_unbounded_array): Update.
13838 (m2_print_array_contents): Take a struct value.
13839 (m2_value_print_inner): Rewrite.
13840
13841 2020-03-13 Tom Tromey <tom@tromey.com>
13842
13843 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13844 (d_value_print_inner): New function.
13845 * d-lang.h (d_value_print_inner): Declare.
13846 * d-lang.c (d_language_defn): Use d_value_print_inner.
13847
13848 2020-03-13 Tom Tromey <tom@tromey.com>
13849
13850 * go-valprint.c (go_value_print_inner): New function.
13851 * go-lang.h (go_value_print_inner): Declare.
13852 * go-lang.c (go_language_defn): Use go_value_print_inner.
13853
13854 2020-03-13 Tom Tromey <tom@tromey.com>
13855
13856 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13857 API.
13858 (rust_val_print): Rewrite.
13859 (rust_value_print_inner): New function, from rust_val_print.
13860 (rust_language_defn): Use rust_value_print_inner.
13861
13862 2020-03-13 Tom Tromey <tom@tromey.com>
13863
13864 * ada-valprint.c (ada_value_print_inner): New function.
13865 * ada-lang.h (ada_value_print_inner): Declare.
13866 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13867
13868 2020-03-13 Tom Tromey <tom@tromey.com>
13869
13870 * f-valprint.c (f_value_print_innner): New function.
13871 * f-lang.h (f_value_print_innner): Declare.
13872 * f-lang.c (f_language_defn): Use f_value_print_innner.
13873
13874 2020-03-13 Tom Tromey <tom@tromey.com>
13875
13876 * p-valprint.c (pascal_value_print_inner): New function.
13877 * p-lang.h (pascal_value_print_inner): Declare.
13878 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13879
13880 2020-03-13 Tom Tromey <tom@tromey.com>
13881
13882 * m2-valprint.c (m2_value_print_inner): New function.
13883 * m2-lang.h (m2_value_print_inner): Declare.
13884 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13885
13886 2020-03-13 Tom Tromey <tom@tromey.com>
13887
13888 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13889 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13890 * c-valprint.c (c_value_print_inner): New function.
13891 * c-lang.h (c_value_print_inner): Declare.
13892 * c-lang.c (c_language_defn, cplus_language_defn)
13893 (asm_language_defn, minimal_language_defn): Use
13894 c_value_print_inner.
13895
13896 2020-03-13 Tom Tromey <tom@tromey.com>
13897
13898 * p-valprint.c (pascal_object_print_value_fields): Now static.
13899 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13900
13901 2020-03-13 Tom Tromey <tom@tromey.com>
13902
13903 * c-valprint.c (c_val_print_array): Simplify.
13904
13905 2020-03-13 Tom Tromey <tom@tromey.com>
13906
13907 * valprint.c (value_print_array_elements): New function.
13908 * valprint.h (value_print_array_elements): Declare.
13909
13910 2020-03-13 Tom Tromey <tom@tromey.com>
13911
13912 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13913 * mips-tdep.c (mips_print_register): Use
13914 value_print_scalar_formatted.
13915
13916 2020-03-13 Tom Tromey <tom@tromey.com>
13917
13918 * valprint.h (value_print_scalar_formatted): Declare.
13919 * valprint.c (value_print_scalar_formatted): New function.
13920
13921 2020-03-13 Tom Tromey <tom@tromey.com>
13922
13923 * valprint.h (generic_value_print): Declare.
13924 * valprint.c (generic_value_print): New function.
13925
13926 2020-03-13 Tom Tromey <tom@tromey.com>
13927
13928 * valprint.c (do_val_print): Call la_value_print_inner, if
13929 available.
13930 * rust-lang.c (rust_language_defn): Update.
13931 * p-lang.c (pascal_language_defn): Update.
13932 * opencl-lang.c (opencl_language_defn): Update.
13933 * objc-lang.c (objc_language_defn): Update.
13934 * m2-lang.c (m2_language_defn): Update.
13935 * language.h (struct language_defn) <la_value_print_inner>: New
13936 member.
13937 * language.c (unknown_language_defn, auto_language_defn): Update.
13938 * go-lang.c (go_language_defn): Update.
13939 * f-lang.c (f_language_defn): Update.
13940 * d-lang.c (d_language_defn): Update.
13941 * c-lang.c (c_language_defn, cplus_language_defn)
13942 (asm_language_defn, minimal_language_defn): Update.
13943 * ada-lang.c (ada_language_defn): Update.
13944
13945 2020-03-13 Tom Tromey <tom@tromey.com>
13946
13947 * c-valprint.c (c_value_print): Use common_val_print.
13948
13949 2020-03-13 Tom Tromey <tom@tromey.com>
13950
13951 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13952
13953 2020-03-13 Tom Tromey <tom@tromey.com>
13954
13955 * f-valprint.c (f77_print_array_1, f_val_print): Use
13956 common_val_print.
13957
13958 2020-03-13 Tom Tromey <tom@tromey.com>
13959
13960 * riscv-tdep.c (riscv_print_one_register_info): Use
13961 common_val_print.
13962
13963 2020-03-13 Tom Tromey <tom@tromey.com>
13964
13965 * mi/mi-main.c (output_register): Use common_val_print.
13966
13967 2020-03-13 Tom Tromey <tom@tromey.com>
13968
13969 * infcmd.c (default_print_one_register_info): Use
13970 common_val_print.
13971
13972 2020-03-13 Tom Tromey <tom@tromey.com>
13973
13974 * valprint.h (common_val_print_checked): Declare.
13975 * valprint.c (common_val_print_checked): New function.
13976 * stack.c (print_frame_arg): Use common_val_print_checked.
13977
13978 2020-03-13 Tom Tromey <tom@tromey.com>
13979
13980 * valprint.c (do_val_print): New function, from val_print.
13981 (val_print): Use do_val_print.
13982 (common_val_print): Use do_val_print.
13983
13984 2020-03-13 Tom Tromey <tom@tromey.com>
13985
13986 * valprint.c (value_print): Use scoped_value_mark.
13987
13988 2020-03-13 Tom de Vries <tdevries@suse.de>
13989
13990 PR symtab/25646
13991 * psymtab.c (partial_symtab::partial_symtab): Don't set
13992 globals_offset and statics_offset. Push element onto
13993 current_global_psymbols and current_static_psymbols stacks.
13994 (concat): New function.
13995 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13996 element from current_global_psymbols and current_static_psymbols
13997 stacks. Concat popped elements to global_psymbols and
13998 static_symbols.
13999 (add_psymbol_to_list): Use current_global_psymbols and
14000 current_static_psymbols stacks.
14001 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14002 current_static_psymbols fields.
14003
14004 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14005
14006 * corelow.c (sniff_core_bfd): Remove.
14007 (class core_target) <m_core_vec>: Remove.
14008 (core_target::core_target): Update.
14009 (core_file_fns): Remove.
14010 (deprecated_add_core_fns): Remove.
14011 (default_core_sniffer): Remove.
14012 (sniff_core_bfd): Remove.
14013 (default_check_format): Remove.
14014 (gdb_check_format): Remove.
14015 (core_target_open): Update.
14016 (core_target::get_core_register_section): Update.
14017 (get_core_registers_cb): Update.
14018 (core_target::fetch_registers): Update.
14019 * gdbcore.h (struct core_fns): Remove.
14020 (deprecated_add_core_fns): Remove.
14021 (default_core_sniffer): Remove.
14022 (default_check_format): Remove.
14023
14024 2020-03-12 Tom Tromey <tom@tromey.com>
14025
14026 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14027 CORE_ADDR.
14028 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14029
14030 2020-03-12 Tom Tromey <tom@tromey.com>
14031
14032 * remote.c (remote_target::download_tracepoint)
14033 (remote_target::enable_tracepoint)
14034 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14035 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14036 sprintf_vma.
14037
14038 2020-03-12 Tom Tromey <tom@tromey.com>
14039
14040 * symfile-mem.c: Update CORE_ADDR size assert.
14041
14042 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14043
14044 * selftest.m4: Move to gdbsupport/.
14045 * acinclude.m4: Update path to selftest.m4.
14046
14047 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14048
14049 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14050 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14051 gdbarch-selfselftests.c and selftest-arch.c.
14052 (SUBDIR_UNITTESTS_OBS): Rename to...
14053 (SELFTESTS_OBS): ... this.
14054 (COMMON_SFILES): Remove disasm-selftests.c and
14055 gdbarch-selftests.c.
14056 * configure.ac: Don't add selftest-arch.{c,o} to
14057 CONFIG_{SRCS,OBS}.
14058 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14059 preprocessor conditions.
14060
14061 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14062
14063 * configure.ac: Don't source bfd/development.sh.
14064 * selftest.m4: Modify comment.
14065 * configure: Re-generate.
14066
14067 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14068
14069 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14070 not "true" or "false".
14071 * configure: Re-generate.
14072
14073 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14074
14075 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14076 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14077 renamed to arm_nbsd_supply_gregset.
14078 (fetch_register): Update to call arm_nbsd_supply_gregset.
14079 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14080 (arm_netbsd_nat_target::fetch_registers): Update.
14081 (fetch_elfcore_registers): Removed.
14082 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14083 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14084 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14085 not require NetBSD system headers.
14086 (arm_nbsd_regset): New struct.
14087 (arm_nbsd_iterate_over_regset_sections): New function.
14088 (arm_netbsd_init_abi_common): Updated to call
14089 set_gdbarch_iterate_over_regset_sections.
14090 * arm-nbsd-tdep.h: New file.
14091
14092 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14093
14094 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14095 recursion.
14096
14097 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14098
14099 * configure: Re-generate.
14100
14101 2020-03-11 Tom Tromey <tromey@adacore.com>
14102
14103 * ada-typeprint.c (print_choices): Fix comment.
14104
14105 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14106
14107 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14108 previous item in the list, when the list has no items.
14109
14110 2020-03-11 Tom de Vries <tdevries@suse.de>
14111
14112 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14113 PROP_LOCLIST handling code.
14114
14115 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14116
14117 * buildsym-legacy.c (record_line): Pass extra parameter to
14118 record_line.
14119 * buildsym.c (buildsym_compunit::record_line): Take an extra
14120 parameter, reduce duplication in the line table, and record the
14121 is_stmt flag in the line table.
14122 * buildsym.h (buildsym_compunit::record_line): Add extra
14123 parameter.
14124 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14125 non-statement lines.
14126 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14127 this to the symtab builder.
14128 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14129 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14130 through to dwarf_record_line_1.
14131 * infrun.c (process_event_stop_test): When stepping, don't stop at
14132 a non-statement instruction, and only refresh the step info when
14133 we land in the middle of a line's range. Also add an extra
14134 comment.
14135 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14136 field.
14137 * record-btrace.c (btrace_find_line_range): Only record lines
14138 marked as is-statement.
14139 * stack.c (frame_show_address): Show the frame address if we are
14140 in a non-statement sal.
14141 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14142 (maintenance_print_one_line_table): Print a header for the is_stmt
14143 column, and include is_stmt information in the output.
14144 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14145 preference to non-statements.
14146 (find_pcs_for_symtab_line): Prefer is-statement entries.
14147 (find_line_common): Likewise.
14148 * symtab.h (struct linetable_entry): Add is_stmt field.
14149 (struct symtab_and_line): Likewise.
14150 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14151 arranging the line table.
14152
14153 2020-03-07 Tom de Vries <tdevries@suse.de>
14154
14155 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14156 DIE.
14157
14158 2020-03-07 Tom Tromey <tom@tromey.com>
14159
14160 * valops.c (value_literal_complex): Remove obsolete comment.
14161 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14162 comment.
14163
14164 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14165
14166 * infrun.h: Forward-declare thread_info.
14167 (set_step_info): Add thread_info parameter, add doc.
14168 * infrun.c (set_step_info): Add thread_info parameter, move doc
14169 to header.
14170 * infrun.c (process_event_stop_test): Pass thread to
14171 set_step_info call.
14172 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14173 set_step_info.
14174 (prepare_one_step): Add thread_info parameter, pass it to
14175 set_step_frame and prepare_one_step (recursive) call.
14176 (step_1): Pass thread to prepare_one_step call.
14177 (step_command_fsm::should_stop): Pass thread to
14178 prepare_one_step.
14179 (until_next_fsm): Pass thread to set_step_frame call.
14180 (finish_command): Pass thread to set_step_info call.
14181
14182 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14183
14184 * windows-tdep.c (windows_solib_create_inferior_hook):
14185 Check if inferior is running.
14186
14187 2020-03-06 Tom de Vries <tdevries@suse.de>
14188
14189 * NEWS: Fix "the the".
14190 * ctfread.c: Same.
14191
14192 2020-03-06 Tom de Vries <tdevries@suse.de>
14193
14194 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14195
14196 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14197
14198 * .dir-locals.el: Add a comment referencing the other copies of
14199 this file.
14200
14201 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14202
14203 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14204 psargs.
14205
14206 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14207
14208 * .gitattributes: New file.
14209
14210 2020-03-04 Tom Tromey <tom@tromey.com>
14211
14212 * symmisc.c (print_symbol_bcache_statistics)
14213 (print_objfile_statistics): Update.
14214 * symfile.c (allocate_symtab): Use intern.
14215 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14216 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14217 macro_cache>: Remove.
14218 <string_cache>: New member.
14219 (struct objfile) <intern>: New methods.
14220 * elfread.c (elf_symtab_read): Use intern.
14221 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14222 (dwarf2_compute_name, dwarf2_physname)
14223 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14224 names.
14225 (guess_partial_die_structure_name): Update.
14226 (partial_die_info::fixup): Intern name.
14227 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14228 name.
14229 (dwarf2_name): Intern name. Update.
14230 * buildsym.c (buildsym_compunit::get_macro_table): Use
14231 string_cache.
14232
14233 2020-03-04 Tom Tromey <tom@tromey.com>
14234
14235 * jit.c (bfd_open_from_target_memory): Make "target" const.
14236 * corefile.c (gnutarget): Now const.
14237 * gdbcore.h (gnutarget): Now const.
14238
14239 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14240
14241 * NEWS: Mention support for WOW64 processes.
14242 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14243 (amd64_windows_segment_register_p): Remove static.
14244 (_initialize_amd64_windows_nat): Update.
14245 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14246 * i386-windows-nat.c (context_offset): Update.
14247 (i386_mappings): Rename and remove static.
14248 (i386_windows_segment_register_p): Remove static.
14249 (_initialize_i386_windows_nat): Update.
14250 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14251 (STATUS_WX86_SINGLE_STEP): New macro.
14252 (EnumProcessModulesEx): New macro.
14253 (Wow64SuspendThread): New macro.
14254 (Wow64GetThreadContext): New macro.
14255 (Wow64SetThreadContext): New macro.
14256 (Wow64GetThreadSelectorEntry): New macro.
14257 (windows_set_context_register_offsets): Add static.
14258 (windows_set_segment_register_p): Likewise.
14259 (windows_add_thread): Adapt for WOW64 processes.
14260 (windows_fetch_one_register): Likewise.
14261 (windows_nat_target::fetch_registers): Likewise.
14262 (windows_store_one_register): Likewise.
14263 (display_selector): Likewise.
14264 (display_selectors): Likewise.
14265 (handle_exception): Likewise.
14266 (windows_continue): Likewise.
14267 (windows_nat_target::resume): Likewise.
14268 (windows_add_all_dlls): Likewise.
14269 (do_initial_windows_stuff): Likewise.
14270 (windows_nat_target::attach): Likewise.
14271 (windows_get_exec_module_filename): Likewise.
14272 (windows_nat_target::create_inferior): Likewise.
14273 (windows_xfer_siginfo): Likewise.
14274 (_initialize_loadable): Initialize Wow64SuspendThread,
14275 Wow64GetThreadContext, Wow64SetThreadContext,
14276 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14277 * windows-nat.h (windows_set_context_register_offsets):
14278 Remove declaration.
14279 (windows_set_segment_register_p): Likewise.
14280 (i386_windows_segment_register_p): Add declaration.
14281 (amd64_windows_segment_register_p): Likewise.
14282
14283 2020-03-04 Luis Machado <luis.machado@linaro.org>
14284
14285 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14286 in "info registers" for AArch64/ARM.
14287
14288 The change caused "info registers" to not print GPR's.
14289
14290 gdb/ChangeLog:
14291
14292 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14293
14294 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14295 when reg->group is empty and reggroup is not.
14296
14297 2020-03-03 Tom Tromey <tromey@adacore.com>
14298
14299 * dwarf2/frame.c (struct dwarf2_frame_cache)
14300 <checked_tailcall_bottom, entry_cfa_sp_offset,
14301 entry_cfa_sp_offset_p>: Remove members.
14302 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14303 (dwarf2_frame_prev_register): Don't call
14304 dwarf2_tailcall_sniffer_first.
14305 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14306 * frame-unwind.c (add_unwinder): New fuction.
14307 (frame_unwind_init): Use it. Add tailcall unwinder.
14308
14309 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14310 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14311
14312 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14313 value should be printed as true.
14314
14315 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14316
14317 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14318 (windows_init_abi): Set and use windows_so_ops.
14319
14320 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14321
14322 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14323 when verifying if dealing with a convenience variable.
14324
14325 2020-03-03 Luis Machado <luis.machado@linaro.org>
14326
14327 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14328
14329 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14330
14331 * infrun.c (gdbarch_supports_displaced_stepping): New.
14332 (use_displaced_stepping): Break up conditions in smaller pieces.
14333 Use gdbarch_supports_displaced_stepping.
14334 (displaced_step_prepare_throw): Use
14335 gdbarch_supports_displaced_stepping.
14336
14337 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14338
14339 * NEWS: Mention new behaviour of the history filename.
14340 * top.c (write_history_p): Add comment.
14341 (show_write_history_p): Add header comment, give a different
14342 message when history writing is on, but the history filename is
14343 empty.
14344 (history_filename): Add comment.
14345 (history_filename_empty): New function.
14346 (show_history_filename): Add header comment, give a different
14347 message when the filename is empty.
14348 (init_history): Compare history_filename against nullptr, and only
14349 read history if the filename is not empty.
14350 (set_history_filename): Add header comment, and only make
14351 non-empty filenames absolute.
14352 (init_main): Make the filename argument to 'set history filename'
14353 optional.
14354
14355 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14356
14357 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14358 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14359 (fetch_fp_register): Update.
14360 (fetch_fp_regs): Update.
14361 (store_fp_register): Update.
14362 (store_fp_regs): Update.
14363 (arm_netbsd_nat_target::read_description): New function.
14364 (fetch_elfcore_registers): Update.
14365
14366 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14367
14368 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14369 general_thread if the stop reply is missing a thread-id.
14370 (remote_target::process_stop_reply): Use the first non-exited
14371 thread if the target didn't pass a thread-id.
14372 * infrun.c (do_target_wait): Move call to
14373 switch_to_inferior_no_thread to ....
14374 (do_target_wait_1): ... here.
14375
14376 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14377
14378 * debuginfod-support.c: Include defs.h first.
14379
14380 2020-02-28 Tom de Vries <tdevries@suse.de>
14381
14382 * symfile.c (set_initial_language): Use default language for lookup.
14383
14384 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14385
14386 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14387 reader variable, pass `this` to read_cutu_die_from_dwo.
14388
14389 2020-02-27 Aaron Merey <amerey@redhat.com>
14390
14391 * source.c (open_source_file): Check for nullptr when computing
14392 srcpath.
14393
14394 2020-02-27 Tom Tromey <tromey@adacore.com>
14395
14396 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14397 member.
14398 (dwarf2_add_field): Don't update nfields.
14399 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14400
14401 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14402
14403 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14404 abs.
14405
14406 2020-02-26 Tom Tromey <tom@tromey.com>
14407
14408 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14409 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14410 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14411 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14412 per_cu_data.
14413
14414 2020-02-26 Tom Tromey <tom@tromey.com>
14415
14416 * dwarf2/index-write.c (psym_index_map): Change type.
14417 (add_address_entry_worker, write_one_signatured_type)
14418 (recursively_count_psymbols, recursively_write_psymbols)
14419 (class debug_names, psyms_seen_size, write_gdbindex)
14420 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14421
14422 2020-02-26 Aaron Merey <amerey@redhat.com>
14423
14424 * Makefile.in: Handle optional debuginfod support.
14425 * NEWS: Update.
14426 * README: Add --with-debuginfod summary.
14427 * config.in: Regenerate.
14428 * configure: Regenerate.
14429 * configure.ac: Handle optional debuginfod support.
14430 * debuginfod-support.c: debuginfod helper functions.
14431 * debuginfod-support.h: Ditto.
14432 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14433 summary.
14434 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14435 when a dwz file cannot be found.
14436 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14437 debuginfo file cannot be found.
14438 * source.c (open_source_file): Query debuginfod servers when a
14439 source file cannot be found.
14440 * top.c (print_gdb_configuration): Include
14441 --{with,without}-debuginfod in the output.
14442
14443 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14444
14445 * thread.c (thr_try_catch_cmd): Print thread name.
14446
14447 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14448
14449 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14450 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14451 dwarf2_fetch_die_type_sect_off): Move to...
14452 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14453 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14454 dwarf2_fetch_die_type_sect_off): ... here.
14455 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14456 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14457 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14458
14459 2020-02-26 Tom de Vries <tdevries@suse.de>
14460
14461 PR gdb/25603
14462 * symfile.c (set_initial_language): Exit-early if
14463 language_mode == language_mode_manual.
14464
14465 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14466
14467 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14468 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14469 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14470
14471 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14472
14473 * gdbtypes.c (create_array_type_with_stride): Handle negative
14474 array strides.
14475 * valarith.c (value_subscripted_rvalue): Likewise.
14476
14477 2020-02-25 Luis Machado <luis.machado@linaro.org>
14478
14479 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14480
14481 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14482
14483 * loc.h (dwarf2_get_die_type): Move to...
14484 * read.h (dwarf2_get_die_type): ... here.
14485 * read.c (dwarf2_get_die_type): Move doc to header.
14486
14487 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14488
14489 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14490 'gnulib/Makefile.in' to the list.
14491
14492 2020-02-24 Tom Tromey <tom@tromey.com>
14493
14494 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14495 Remove.
14496 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14497 XOBNEWVEC.
14498
14499 2020-02-24 Tom Tromey <tom@tromey.com>
14500
14501 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14502 New method.
14503 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14504 (dw2_do_instantiate_symtab, dw2_get_file_names)
14505 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14506
14507 2020-02-24 Tom Tromey <tom@tromey.com>
14508
14509 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14510 make_scoped_restore.
14511 (dwarf2_psymtab::read_symtab): Don't clear
14512 reading_partial_symbols.
14513
14514 2020-02-24 Tom de Vries <tdevries@suse.de>
14515
14516 PR gdb/25592
14517 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14518
14519 2020-02-24 Tom de Vries <tdevries@suse.de>
14520
14521 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14522 commands layout next/prev/regs.
14523
14524 2020-02-22 Tom Tromey <tom@tromey.com>
14525
14526 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14527 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14528
14529 2020-02-22 Tom Tromey <tom@tromey.com>
14530
14531 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14532
14533 2020-02-22 Tom Tromey <tom@tromey.com>
14534
14535 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14536 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14537 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14538 * tui/tui.c (_initialize_tui): Add usage text.
14539
14540 2020-02-22 Tom Tromey <tom@tromey.com>
14541
14542 * tui/tui-win.c (tui_set_focus_command)
14543 (tui_set_win_height_command): Use error_no_arg.
14544 (_initialize_tui_win): Update help text.
14545 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14546
14547 2020-02-22 Tom Tromey <tom@tromey.com>
14548
14549 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14550 * tui/tui-disasm.h (struct tui_disasm_window)
14551 <display_start_addr>: Declare.
14552 * tui/tui-source.h (struct tui_source_window)
14553 <display_start_addr>: Declare.
14554 * tui/tui-winsource.h (struct tui_source_window_base)
14555 <show_source_line, display_start_addr>: New methods.
14556 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14557 Rename and move to protected section.
14558 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14559 (tui_source_window_base::do_erase_source_content): Update.
14560 (tui_source_window_base::show_source_line): Now a method.
14561 (tui_source_window_base::show_source_content)
14562 (tui_source_window_base::tui_source_window_base)
14563 (tui_source_window_base::rerender)
14564 (tui_source_window_base::refill)
14565 (tui_source_window_base::do_scroll_horizontal)
14566 (tui_source_window_base::set_is_exec_point_at)
14567 (tui_source_window_base::update_breakpoint_info)
14568 (tui_source_window_base::update_exec_info): Update.
14569 * tui/tui-source.c (tui_source_window::set_contents)
14570 (tui_source_window::showing_source_p)
14571 (tui_source_window::do_scroll_vertical)
14572 (tui_source_window::location_matches_p)
14573 (tui_source_window::line_is_displayed): Update.
14574 (tui_source_window::display_start_addr): New method.
14575 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14576 (tui_disasm_window::do_scroll_vertical)
14577 (tui_disasm_window::location_matches_p): Update.
14578 (tui_disasm_window::display_start_addr): New method.
14579
14580 2020-02-22 Tom Tromey <tom@tromey.com>
14581
14582 * NEWS: Add entry for gdb.register_window_type.
14583 * tui/tui-layout.h (window_factory): New typedef.
14584 (tui_register_window): Declare.
14585 * tui/tui-layout.c (saved_tui_windows): New global.
14586 (tui_apply_current_layout): Use it.
14587 (tui_register_window): New function.
14588 * python/python.c (do_start_initialization): Call
14589 gdbpy_initialize_tui.
14590 (python_GdbMethods): Add "register_window_type" function.
14591 * python/python-internal.h (gdbpy_register_tui_window)
14592 (gdbpy_initialize_tui): Declare.
14593 * python/py-tui.c: New file.
14594 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14595
14596 2020-02-22 Tom Tromey <tom@tromey.com>
14597
14598 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14599
14600 2020-02-22 Tom Tromey <tom@tromey.com>
14601
14602 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14603 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14604 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14605 (tui_set_win_focus_to): Move from tui-win.c.
14606
14607 2020-02-22 Tom Tromey <tom@tromey.com>
14608
14609 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14610 functions.
14611 (known_window_types): New global.
14612 (tui_get_window_by_name): Reimplement.
14613 (initialize_known_windows): New function.
14614 (validate_window_name): Rewrite.
14615 (_initialize_tui_layout): Call initialize_known_windows.
14616
14617 2020-02-22 Tom Tromey <tom@tromey.com>
14618
14619 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14620 Remove constants.
14621 * tui/tui-winsource.h (struct tui_source_window_base)
14622 <tui_source_window_base>: Remove parameter.
14623 * tui/tui-winsource.c
14624 (tui_source_window_base::tui_source_window_base): Remove
14625 parameter.
14626 (tui_source_window_base::refill): Update.
14627 * tui/tui-stack.h (struct tui_locator_window)
14628 <tui_locator_window>: Update.
14629 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14630 Default the constructor.
14631 * tui/tui-regs.h (struct tui_data_item_window)
14632 <tui_data_item_window>: Default the constructor.
14633 (struct tui_data_window) <tui_data_window>: Likewise.
14634 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14635 Default the constructor.
14636 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14637 Default the constructor.
14638 <type>: Remove.
14639 (struct tui_win_info) <tui_win_info>: Default the constructor.
14640 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14641 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14642 Default the constructor.
14643
14644 2020-02-22 Tom Tromey <tom@tromey.com>
14645
14646 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14647 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14648 * tui/tui-win.c (tui_resize_all): Don't call
14649 tui_delete_invisible_windows.
14650 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14651 done.
14652 (tui_set_layout): Update.
14653 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14654 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14655 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14656
14657 2020-02-22 Tom Tromey <tom@tromey.com>
14658
14659 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14660 correctly.
14661
14662 2020-02-22 Tom Tromey <tom@tromey.com>
14663
14664 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14665
14666 2020-02-22 Tom Tromey <tom@tromey.com>
14667
14668 * tui/tui-winsource.h (struct tui_source_window_iterator)
14669 <inner_iterator>: New etytypedef.
14670 <tui_source_window_iterator>: Take "end" parameter.
14671 <tui_source_window_iterator>: Take iterator.
14672 <operator*, advance>: Update.
14673 <m_iter>: Change type.
14674 <m_end>: New field.
14675 (struct tui_source_windows) <begin, end>: Update.
14676 * tui/tui-layout.c (tui_windows): New global.
14677 (tui_apply_current_layout): Clear tui_windows.
14678 (tui_layout_window::apply): Update tui_windows.
14679 * tui/tui-data.h (tui_windows): Declare.
14680 (all_tui_windows): Now inline function.
14681 (class tui_window_iterator, struct all_tui_windows): Remove.
14682
14683 2020-02-22 Tom Tromey <tom@tromey.com>
14684
14685 PR tui/17850:
14686 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14687 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14688 "height" argument.
14689 (class tui_layout_window) <get_sizes>: Likewise.
14690 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14691 argument.
14692 <get_sizes>: Add "height" argument.
14693 <m_vertical>: New field.
14694 * tui/tui-layout.c (tui_layout_split::clone): Update.
14695 (tui_layout_split::get_sizes): Add "height" argument.
14696 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14697 (tui_new_layout_command): Parse "-horizontal".
14698 (_initialize_tui_layout): Update help string.
14699 (tui_layout_split::specification): Add "-horizontal" when needed.
14700 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14701 argument.
14702 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14703 New methods.
14704
14705 2020-02-22 Tom Tromey <tom@tromey.com>
14706
14707 * tui/tui-layout.h (enum tui_adjust_result): New.
14708 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14709 (class tui_layout_window) <adjust_size>: Return
14710 tui_adjust_result. Rewrite.
14711 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14712 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14713
14714 2020-02-22 Tom Tromey <tom@tromey.com>
14715
14716 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14717 parameter and return types.
14718 (class tui_layout_base) <specification>: Add "depth".
14719 (class tui_layout_window) <specification>: Add "depth".
14720 (class tui_layout_split) <specification>: Add "depth".
14721 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14722 and return types.
14723 (tui_new_layout_command): Parse sub-layouts.
14724 (_initialize_tui_layout): Update help string.
14725 (tui_layout_window::specification): Add "depth".
14726 (add_layout_command): Update.
14727
14728 2020-02-22 Tom Tromey <tom@tromey.com>
14729
14730 * NEWS: Add "tui new-layout" item.
14731 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14732 Add new-layout command to help text.
14733 (validate_window_name): New function.
14734 (tui_new_layout_command): New function.
14735 (_initialize_tui_layout): Register "new-layout".
14736 (tui_layout_window::specification): New method.
14737 (tui_layout_window::specification): New method.
14738 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14739 method.
14740 (class tui_layout_window) <specification>: New method.
14741 (class tui_layout_split) <specification>: New method.
14742
14743 2020-02-22 Tom Tromey <tom@tromey.com>
14744
14745 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14746 * tui/tui-win.c (window_name_completer): Update comment.
14747 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14748 Declare method.
14749 (class tui_layout_window) <replace_window>: Likewise.
14750 (class tui_layout_split) <replace_window>: Likewise.
14751 (tui_set_layout): Don't declare.
14752 (tui_set_initial_layout): Declare function.
14753 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14754 (asm_regs_layout): New globals.
14755 (tui_current_layout, show_layout): Remove.
14756 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14757 (find_layout, tui_apply_layout): New function.
14758 (layout_completer): Remove.
14759 (tui_next_layout): Reimplement.
14760 (tui_next_layout_command): New function.
14761 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14762 (tui_regs_layout): Reimplement.
14763 (tui_regs_layout_command): New function.
14764 (extract_display_start_addr): Rewrite.
14765 (next_layout, prev_layout): Remove.
14766 (tui_layout_window::replace_window): New method.
14767 (tui_layout_split::replace_window): New method.
14768 (destroy_layout): New function.
14769 (layout_list): New global.
14770 (add_layout_command): New function.
14771 (initialize_layouts): Update.
14772 (tui_layout_command): New function.
14773 (_initialize_tui_layout): Install "layout" commands.
14774 * tui/tui-data.h (enum tui_layout_type): Remove.
14775 (tui_current_layout): Don't declare.
14776
14777 2020-02-22 Tom Tromey <tom@tromey.com>
14778
14779 * tui/tui-regs.c (tui_reg_layout): Remove.
14780 (tui_reg_command): Use tui_regs_layout.
14781 * tui/tui-layout.h (tui_reg_command): Declare.
14782 * tui/tui-layout.c (tui_reg_command): New function.
14783
14784 2020-02-22 Tom Tromey <tom@tromey.com>
14785
14786 * tui/tui.c (tui_rl_delete_other_windows): Call
14787 tui_remove_some_windows.
14788 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14789 Declare method.
14790 (class tui_layout_window) <remove_windows>: New method.
14791 (class tui_layout_split) <remove_windows>: Declare.
14792 (tui_remove_some_windows): Declare.
14793 * tui/tui-layout.c (tui_remove_some_windows): New function.
14794 (tui_layout_split::remove_windows): New method.
14795
14796 2020-02-22 Tom Tromey <tom@tromey.com>
14797
14798 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14799 * tui/tui-layout.h (tui_next_layout): Declare.
14800 * tui/tui-layout.c (tui_next_layout): New function.
14801
14802 2020-02-22 Tom Tromey <tom@tromey.com>
14803
14804 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14805 correct coordinates.
14806
14807 2020-02-22 Tom Tromey <tom@tromey.com>
14808
14809 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14810 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14811 DATA_WIN case.
14812
14813 2020-02-22 Tom Tromey <tom@tromey.com>
14814
14815 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14816 TUI_DISASM_WIN, not tui_win_list.
14817
14818 2020-02-22 Tom Tromey <tom@tromey.com>
14819
14820 * valprint.c (generic_val_print_enum_1)
14821 (val_print_type_code_flags): Style member names.
14822 * rust-lang.c (val_print_struct, rust_print_enum)
14823 (rust_print_struct_def, rust_internal_print_type): Style member
14824 names.
14825 * p-valprint.c (pascal_object_print_value_fields): Style member
14826 names. Only call fprintf_symbol_filtered for static members.
14827 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14828 * f-valprint.c (f_val_print): Style member names.
14829 * f-typeprint.c (f_type_print_base): Style member names.
14830 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14831 call fprintf_symbol_filtered for static members.
14832 (cp_print_class_member): Style member names.
14833 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14834 member names.
14835 * ada-valprint.c (ada_print_scalar): Style enum names.
14836 (ada_val_print_enum): Likewise.
14837 * ada-typeprint.c (print_enum_type): Style enum names.
14838
14839 2020-02-21 Tom Tromey <tom@tromey.com>
14840
14841 * psympriv.h (struct partial_symtab): Update comment.
14842
14843 2020-02-21 Tom Tromey <tromey@adacore.com>
14844
14845 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14846 type is CORE_ADDR.
14847
14848 2020-02-21 Tom de Vries <tdevries@suse.de>
14849
14850 PR gdb/25534
14851 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14852 if dependencies[i]->user != NULL.
14853
14854 2020-02-21 Ali Tamur <tamur@google.com>
14855
14856 * dwarf2/read.c (dwarf2_name): Add null check.
14857
14858 2020-02-20 Tom Tromey <tom@tromey.com>
14859
14860 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14861 ">=", in binary search.
14862 (dwarf2_find_containing_comp_unit): New overload.
14863 (run_test): New self-test.
14864 (_initialize_dwarf2_read): Register new test.
14865
14866 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14867
14868 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14869 * riscv-tdep.h: Likewise.
14870 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14871 rv32-only CSR.
14872 * features/riscv/64bit-csr.xml: Regenerated.
14873
14874 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14875 Tom Tromey <tom@tromey.com>
14876
14877 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14878 of 'fputc_unfiltered'.
14879 (putchar_unfiltered): Call 'fputc_unfiltered'.
14880 (fputc_unfiltered): Call 'fputs_unfiltered'.
14881
14882 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14883
14884 * config.in: Regenerate.
14885 * configure: Regenerate.
14886 * configure.ac: Add --with-python-libdir option.
14887 * main.c: Use WITH_PYTHON_LIBDIR.
14888
14889 2020-02-19 Tom Tromey <tom@tromey.com>
14890
14891 * symtab.c (general_symbol_info::compute_and_set_names): Use
14892 obstack_strndup. Simplify call to symbol_set_demangled_name.
14893
14894 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14895
14896 * dwarf2/read.c (allocate_signatured_type_table,
14897 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14898 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14899 Remove objfile parameter, update all callers.
14900
14901 2020-02-19 Doug Evans <dje@google.com>
14902
14903 PR rust/25535
14904 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14905 rust_enum_variant calculation.
14906
14907 2020-02-19 Tom Tromey <tromey@adacore.com>
14908
14909 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14910
14911 2020-02-19 Tom Tromey <tromey@adacore.com>
14912
14913 * ada-lang.c (cache_symbol): Use obstack_strdup.
14914
14915 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14916
14917 * configure: Regenerate.
14918
14919 2020-02-19 Tom Tromey <tromey@adacore.com>
14920
14921 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14922 NULL check.
14923
14924 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14925
14926 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14927
14928 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14929
14930 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14931 if GDBSERVER is not defined.
14932 (riscv_tdesc_cache): Likewise, also store const target_desc.
14933 (STATIC_IN_GDB): Define.
14934 (riscv_create_target_description): Update declaration with
14935 STATIC_IN_GDB.
14936 (riscv_lookup_target_description): New function, only define if
14937 GDBSERVER is not defined.
14938 * arch/riscv.h (riscv_create_target_description): Declare only
14939 when GDBSERVER is defined.
14940 (riscv_lookup_target_description): New declaration when GDBSERVER
14941 is not defined.
14942 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14943 (riscv_linux_read_features): ...this, and return
14944 riscv_gdbarch_features instead of target_desc.
14945 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14946 (riscv_linux_read_description): Rename to...
14947 (riscv_linux_read_features): ...this.
14948 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14949 Update to use riscv_gdbarch_features and
14950 riscv_lookup_target_description.
14951 * riscv-tdep.c (riscv_find_default_target_description): Use
14952 riscv_lookup_target_description instead of
14953 riscv_create_target_description.
14954
14955 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14956
14957 * valprint.c (generic_val_print_enum_1): When printing a flag
14958 enum with value 0 and there is no enumerator with value 0, print
14959 just "0" instead of "(unknown: 0x0)".
14960
14961 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14962
14963 * valprint.c (generic_val_print_enum_1): Print unknown part of
14964 flag enum in hex.
14965
14966 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14967
14968 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14969 flag enums to contain duplicate enumerators.
14970 * valprint.c (generic_val_print_enum_1): Update comment.
14971
14972 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14973
14974 * dwarf2/read.c: Include "count-one-bits.h".
14975 (update_enumeration_type_from_children): If an enumerator has
14976 multiple bits set, don't treat the enumeration as a "flag enum".
14977 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14978 of flag enums have 0 or 1 bit set.
14979
14980 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14981
14982 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14983 conversion.
14984 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14985 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14986 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14987 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14988 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14989
14990 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14991
14992 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14993
14994 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14995
14996 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14997 displaced_step_closure_up.
14998 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14999 (struct displaced_step_closure_up):
15000 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15001 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15002 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15003 Likewise.
15004 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15005 * gdbarch.c, gdbarch.h: Re-generate.
15006 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15007 displaced_step_closure_up.
15008 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15009 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15010 * infrun.h (displaced_step_closure_up): New type alias.
15011 (struct displaced_step_inferior_state) <step_closure>: Change
15012 type to displaced_step_closure_up.
15013 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15014 displaced_step_closure_up.
15015 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15016
15017 2020-02-14 Tom Tromey <tom@tromey.com>
15018
15019 * minidebug.c (gnu_debug_key): New global.
15020 (find_separate_debug_file_in_section): Use it.
15021
15022 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15023
15024 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15025 std::unique_ptr.
15026 * gdbarch.c: Re-generate.
15027 * gdbarch.h: Re-generate.
15028 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15029 change.
15030 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15031 type to std::unique_ptr.
15032 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15033 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15034 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15035 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15036 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15037 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15038 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15039 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15040 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15041
15042 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15043
15044 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15045 std::unique_ptr.
15046 (displaced_step_clear): Rename to...
15047 (displaced_step_reset): ... this. Just call displaced->reset ().
15048 (displaced_step_clear_cleanup): Rename to...
15049 (displaced_step_reset_cleanup): ... this.
15050 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15051 (displaced_step_fixup): Likewise.
15052 (resume_1): Likewise.
15053 (handle_inferior_event): Restore child's memory before calling
15054 displaced_step_fixup on the parent.
15055 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15056 to std::unique_ptr.
15057 <step_closure>: Change type to std::unique_ptr.
15058
15059 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15060
15061 * arm-tdep.c: Include count-one-bits.h.
15062 (cleanup_block_store_pc): Use count_one_bits.
15063 (cleanup_block_load_pc): Use count_one_bits.
15064 (arm_copy_block_xfer): Use count_one_bits.
15065 (thumb2_copy_block_xfer): Use count_one_bits.
15066 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15067 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15068 (thumb_get_next_pcs_raw): Use count_one_bits.
15069 (arm_get_next_pcs_raw): Use count_one_bits_l.
15070 * arch/arm.c (bitcount): Remove.
15071 * arch/arm.h (bitcount): Remove.
15072
15073 2020-02-14 Tom Tromey <tromey@adacore.com>
15074
15075 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15076 Update.
15077 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15078 * dwarf2/loc.c (call_site_find_chain_1): Return
15079 unique_xmalloc_ptr.
15080 (call_site_find_chain): Likewise.
15081
15082 2020-02-14 Richard Biener <rguenther@suse.de>
15083
15084 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15085 on expression with division operators.
15086
15087 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15088
15089 * MAINTAINERS (Write After Approval): Adding myself.
15090
15091 2020-02-12 Tom Tromey <tom@tromey.com>
15092
15093 * event-loop.c (event_data, gdb_event, event_handler_func):
15094 Remove.
15095
15096 2020-02-12 Tom Tromey <tom@tromey.com>
15097
15098 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15099 (dwarf2_frame_objfile_data): Add comment.
15100 (find_comp_unit, set_comp_unit): New functions.
15101 (dwarf2_frame_find_fde): Use find_comp_unit.
15102 (dwarf2_build_frame_info): Use set_comp_unit.
15103
15104 2020-02-12 Tom Tromey <tom@tromey.com>
15105
15106 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15107 (comp_unit): Don't initialize objfile.
15108 (execute_cfa_program): Add text_offset parameter.
15109 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15110 (dwarf2_frame_cache): Update.
15111 (dwarf2_build_frame_info): Don't set "objfile" member.
15112
15113 2020-02-12 Tom Tromey <tom@tromey.com>
15114
15115 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15116 (decode_frame_entry): Likewise.
15117 (dwarf2_build_frame_info): Update.
15118
15119 2020-02-12 Tom Tromey <tom@tromey.com>
15120
15121 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15122 (decode_frame_entry_1): Use the comp_unit obstack.
15123
15124 2020-02-12 Tom Tromey <tom@tromey.com>
15125
15126 * dwarf2/frame.c (struct comp_unit): Add initializers and
15127 constructor.
15128 (dwarf2_frame_objfile_data): Store a comp_unit.
15129 (dwarf2_frame_find_fde): Update.
15130 (dwarf2_build_frame_info): Use "new".
15131
15132 2020-02-12 Tom Tromey <tom@tromey.com>
15133
15134 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15135 (dwarf2_fde_table): Typedef for std::vector.
15136 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15137 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15138 (decode_frame_entry): Update.
15139 (dwarf2_build_frame_info): Use "new".
15140
15141 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15142
15143 * arm-tdep.c (arm_gdbarch_init): Update.
15144 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15145 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15146 have_neon, is_m>: Change to bool.
15147
15148 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15149
15150 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15151
15152 2020-02-12 Tom Tromey <tom@tromey.com>
15153
15154 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15155
15156 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15157
15158 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15159 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15160
15161 2020-02-11 Tom Tromey <tom@tromey.com>
15162
15163 * psymtab.h: Update comment.
15164
15165 2020-02-11 Tom Tromey <tom@tromey.com>
15166
15167 * gdb_obstack.h (struct auto_obstack): Use
15168 DISABLE_COPY_AND_ASSIGN.
15169
15170 2020-02-11 Tom Tromey <tom@tromey.com>
15171
15172 * dwarf2/frame.h (struct objfile): Don't forward declare.
15173
15174 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15175
15176 * cris-tdep.c (cris_supply_gregset): Change signature to match
15177 what struct regset expects.
15178 (cris_regset): New struct.
15179 (fetch_core_registers): Remove.
15180 (cris_iterate_over_regset_sections): New function.
15181 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15182 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15183
15184 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15185
15186 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15187 registers.
15188
15189 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15190
15191 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
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 * configure: Re-generate.
15200
15201 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15202
15203 * acinclude: Update warning.m4 path.
15204 * warning.m4: Move to gdbsupport.
15205
15206 2020-02-11 Tom Tromey <tromey@adacore.com>
15207
15208 * remote.c (remote_console_output): Update.
15209 * printcmd.c (printf_command): Update.
15210 * event-loop.c (gdb_wait_for_event): Update.
15211 * linux-nat.c (sigchld_handler): Update.
15212 * remote-sim.c (gdb_os_write_stdout): Update.
15213 (gdb_os_flush_stdout): Update.
15214 (gdb_os_flush_stderr): Update.
15215 (gdb_os_write_stderr): Update.
15216 * exceptions.c (print_exception): Update.
15217 * remote-fileio.c (remote_fileio_func_read): Update.
15218 (remote_fileio_func_write): Update.
15219 * tui/tui.c (tui_enable): Update.
15220 * tui/tui-interp.c (tui_interp::init): Update.
15221 * utils.c (init_page_info): Update.
15222 (putchar_unfiltered, fputc_unfiltered): Update.
15223 (gdb_flush): Update.
15224 (emit_style_escape): Update.
15225 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15226 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15227 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15228 (stderr_file::write): Update.
15229 (stderr_file::puts): Update.
15230 * ui-file.h (ui_file_isatty, ui_file_write)
15231 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15232 (ui_file_puts): Don't declare.
15233
15234 2020-02-10 Tom de Vries <tdevries@suse.de>
15235
15236 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15237 sentinel to char *.
15238
15239 2020-02-09 Tom de Vries <tdevries@suse.de>
15240
15241 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15242 filename if it matches "<artificial>".
15243
15244 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15245
15246 * windows-tdep.c (struct enum_value_name): New struct.
15247 (create_enum): New function.
15248 (windows_get_siginfo_type): Create and use enum types.
15249
15250 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15251
15252 * NEWS: Mention $_siginfo support for Windows.
15253 * windows-nat.c (handle_exception): Set siginfo_er.
15254 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15255 (windows_xfer_siginfo): New function.
15256 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15257 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15258 (init_windows_gdbarch_data): New function.
15259 (get_windows_gdbarch_data): New function.
15260 (windows_get_siginfo_type): New function.
15261 (windows_init_abi): Register windows_get_siginfo_type.
15262 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15263
15264 2020-02-08 Tom Tromey <tom@tromey.com>
15265
15266 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15267 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15268 <keep>: Declare method.
15269 <m_keep>: Remove member.
15270 <~cutu_reader>: Remove.
15271 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15272 (cutu_reader::cutu_reader): Update.
15273 (cutu_reader::keep): Rename from ~cutu_reader.
15274 (process_psymtab_comp_unit, build_type_psymtabs_1)
15275 (process_skeletonless_type_unit, load_partial_comp_unit)
15276 (load_full_comp_unit, dwarf2_read_addr_index)
15277 (read_signatured_type): Update.
15278
15279 2020-02-08 Tom Tromey <tom@tromey.com>
15280
15281 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15282 "want_partial_unit" parameter.
15283 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15284 Inline check for DW_TAG_partial_unit.
15285 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15286
15287 2020-02-08 Tom Tromey <tom@tromey.com>
15288
15289 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15290 read.c.
15291 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15292 read.c.
15293
15294 2020-02-08 Tom Tromey <tom@tromey.com>
15295
15296 * dwarf2/read.c (read_address): Move to comp-unit.c.
15297 (dwarf2_rnglists_process, dwarf2_ranges_process)
15298 (read_attribute_value, dwarf_decode_lines_1)
15299 (var_decode_location, decode_locdesc): Update.
15300 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15301 read.c. Remove "cu" parameter.
15302 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15303 method.
15304
15305 2020-02-08 Tom Tromey <tom@tromey.com>
15306
15307 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15308 (read_indirect_line_string): Update.
15309 * dwarf2/comp-unit.c (read_offset): Remove.
15310 (read_comp_unit_head): Update.
15311 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15312 method.
15313 (read_offset): Don't declare.
15314
15315 2020-02-08 Tom Tromey <tom@tromey.com>
15316
15317 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15318 * dwarf2/read.c (struct comp_unit_head): Move to
15319 dwarf2/comp-unit.h.
15320 (enum class rcuh_kind): Move to comp-unit.h.
15321 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15322 (read_comp_unit_head, error_check_comp_unit_head)
15323 (read_and_check_comp_unit_head): Move to comp-unit.c.
15324 (read_offset, dwarf_unit_type_name): Likewise.
15325 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15326 (cutu_reader::cutu_reader, read_call_site_scope)
15327 (find_partial_die, follow_die_offset): Update.
15328 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15329
15330 2020-02-08 Tom Tromey <tom@tromey.com>
15331
15332 * dwarf2/read.c (read_offset_1): Move to leb.c.
15333 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15334 (dwarf_decode_macro_bytes): Update.
15335 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15336 * dwarf2/leb.h (read_offset): Declare.
15337
15338 2020-02-08 Tom Tromey <tom@tromey.com>
15339
15340 * dwarf2/read.c (dwarf2_section_size): Remove.
15341 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15342 Update.
15343 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15344
15345 2020-02-08 Tom Tromey <tom@tromey.com>
15346
15347 * dwarf2/read.c (read_initial_length): Move to leb.c.
15348 * dwarf2/leb.h (read_initial_length): Declare.
15349 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15350 handle_nonstd parameter.
15351 * dwarf2/frame.c (read_initial_length): Remove.
15352 (decode_frame_entry_1): Update.
15353
15354 2020-02-08 Tom Tromey <tom@tromey.com>
15355
15356 * dwarf2/loc.c (dwarf2_find_location_expression)
15357 (dwarf_evaluate_loc_desc::get_tls_address)
15358 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15359 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15360 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15361 (dwarf2_compile_property_to_c)
15362 (dwarf2_loc_desc_get_symbol_read_needs)
15363 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15364 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15365 (loclist_describe_location, loclist_tracepoint_var_ref)
15366 (loclist_generate_c_location): Update.
15367 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15368 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15369 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15370 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15371 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15372 (dwarf2_per_cu_data::addr_size)
15373 (dwarf2_per_cu_data::ref_addr_size)
15374 (dwarf2_per_cu_data::text_offset)
15375 (dwarf2_per_cu_data::addr_type): Now methods.
15376 (per_cu_header_read_in): Make per_cu "const".
15377 (dwarf2_version): Remove.
15378 (dwarf2_per_cu_data::int_type): Now a method.
15379 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15380 (set_die_type, read_array_type, read_subrange_index_type)
15381 (read_tag_string_type, read_subrange_type): Update.
15382 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15383 offset_size, ref_addr_size, text_offset, addr_type, version,
15384 objfile, int_type, addr_sized_int_type>: Declare methods.
15385
15386 2020-02-08 Tom Tromey <tom@tromey.com>
15387
15388 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15389 Move earlier.
15390
15391 2020-02-08 Tom Tromey <tom@tromey.com>
15392
15393 * dwarf2/read.h (dwarf_line_debug): Declare.
15394 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15395 * dwarf2/read.c: Move line_header code to new files.
15396 (dwarf_line_debug): No longer static.
15397 * dwarf2/line-header.c: New file.
15398 * dwarf2/line-header.h: New file.
15399
15400 2020-02-08 Tom Tromey <tom@tromey.com>
15401
15402 * dwarf2/read.c (struct line_header) <file_full_name,
15403 file_file_name>: Return unique_xmalloc_ptr.
15404 (line_header::file_file_name): Update.
15405 (line_header::file_full_name): Update.
15406 (dw2_get_file_names_reader): Update.
15407 (macro_start_file): Update.
15408
15409 2020-02-08 Tom Tromey <tom@tromey.com>
15410
15411 * dwarf2/read.c (struct line_header) <file_full_name,
15412 file_file_name>: Declare methods.
15413 (dw2_get_file_names_reader): Update.
15414 (file_file_name): Now a method.
15415 (file_full_name): Likewise.
15416 (macro_start_file): Update.
15417
15418 2020-02-08 Tom Tromey <tom@tromey.com>
15419
15420 * dwarf2/read.c (dwarf_always_disassemble)
15421 (show_dwarf_always_disassemble): Move to loc.c.
15422 (_initialize_dwarf2_read): Move "always-disassemble" registration
15423 to loc.c.
15424 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15425 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15426 static.
15427 (show_dwarf_always_disassemble): Move from read.c.
15428 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15429
15430 2020-02-08 Tom Tromey <tom@tromey.com>
15431
15432 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15433 (create_quick_file_names_table): Return htab_up.
15434 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15435 Update.
15436 * dwarf2/read.h (struct dwarf2_per_objfile)
15437 <quick_file_names_table>: Now htab_up.
15438
15439 2020-02-08 Tom Tromey <tom@tromey.com>
15440
15441 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15442
15443 2020-02-08 Tom Tromey <tom@tromey.com>
15444
15445 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15446 Rewrite.
15447 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15448 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15449 (abbrev_table::abbrev_table): No longer inline.
15450 (ABBREV_HASH_SIZE): Remove.
15451 (abbrev_table::m_abbrevs): Now an htab_up.
15452
15453 2020-02-08 Tom Tromey <tom@tromey.com>
15454
15455 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15456 (cutu_reader): Update.
15457 (build_type_psymtabs_1): Update.
15458 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15459 (abbrev_table::alloc_abbrev): Update.
15460 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15461 (abbrev_table::read): New static method, renamed from
15462 abbrev_table_read_table.
15463 (abbrev_table::alloc_abbrev)
15464 (abbrev_table::add_abbrev): Now private.
15465 (abbrev_table::abbrev_table): Now private.
15466 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15467
15468 2020-02-08 Tom Tromey <tom@tromey.com>
15469
15470 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15471 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15472 htab_up.
15473
15474 2020-02-08 Tom Tromey <tom@tromey.com>
15475
15476 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15477 htab_up.
15478 (lookup_dwo_unit_in_dwp): Update.
15479 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15480 on obstack.
15481
15482 2020-02-08 Tom Tromey <tom@tromey.com>
15483
15484 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15485 obstack.
15486
15487 2020-02-08 Tom Tromey <tom@tromey.com>
15488
15489 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15490 line_header_hash.
15491 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15492 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15493 Change type to htab_up.
15494
15495 2020-02-08 Tom Tromey <tom@tromey.com>
15496
15497 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15498 htab_up. Don't allocate on obstack.
15499 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15500 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15501 Change type to htab_up.
15502
15503 2020-02-08 Tom Tromey <tom@tromey.com>
15504
15505 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15506 Change type to htab_up.
15507 * dwarf2/read.c (create_signatured_type_table_from_index)
15508 (create_signatured_type_table_from_debug_names)
15509 (create_all_type_units, add_type_unit)
15510 (lookup_dwo_signatured_type, lookup_signatured_type)
15511 (process_skeletonless_type_unit): Update.
15512 (create_debug_type_hash_table, create_debug_types_hash_table):
15513 Change type of types_htab.
15514 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15515 htab_up. Don't allocate on obstack.
15516 (create_cus_hash_table): Change type of cus_htab parameter.
15517 (struct dwo_file) <cus, tus>: Now htab_up.
15518 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15519 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15520 (queue_and_load_all_dwo_tus): Update.
15521 * dwarf2/index-write.c (write_gdbindex): Update.
15522 (write_debug_names): Update.
15523
15524 2020-02-08 Tom Tromey <tom@tromey.com>
15525
15526 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15527 dwarf2/read.c. Remove "next" member. Add constructor ntad
15528 destructor.
15529 (struct dwarf2_per_objfile) <queue>: New member.
15530 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15531 dwarf2/read.h.
15532 (dwarf2_queue, dwarf2_queue_tail): Remove.
15533 (class dwarf2_queue_guard): Add parameter to constructor. Use
15534 DISABLE_COPY_AND_ASSIGN.
15535 <m_per_objfile>: New member.
15536 <~dwarf2_queue_guard>: Rewrite.
15537 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15538 Update.
15539 (~dwarf2_queue_item): New.
15540
15541 2020-02-08 Tom Tromey <tom@tromey.com>
15542
15543 * dwarf2/read.c (struct die_info) <has_children>: New member.
15544 (dw2_get_file_names_reader): Remove has_children.
15545 (dw2_get_file_names): Update.
15546 (read_cutu_die_from_dwo): Remove has_children.
15547 (cutu_reader::init_tu_and_read_dwo_dies)
15548 (cutu_reader::cutu_reader): Update.
15549 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15550 Remove has_children.
15551 (build_type_psymtabs_1, process_skeletonless_type_unit)
15552 (load_partial_comp_unit, load_full_comp_unit): Update.
15553 (create_dwo_cu_reader): Remove has_children.
15554 (create_cus_hash_table, read_die_and_children): Update.
15555 (read_full_die_1,read_full_die): Remove has_children.
15556 (read_signatured_type): Update.
15557 (class cutu_reader) <has_children>: Remove.
15558
15559 2020-02-08 Tom Tromey <tom@tromey.com>
15560
15561 * dwarf2/expr.c: Rename from dwarf2expr.c.
15562 * dwarf2/expr.h: Rename from dwarf2expr.h.
15563 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15564 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15565 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15566 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15567 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15568 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15569 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15570 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15571 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15572 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15573 * dwarf2/loc.c: Rename from dwarf2loc.c.
15574 * dwarf2/loc.h: Rename from dwarf2loc.h.
15575 * dwarf2/read.c: Rename from dwarf2read.c.
15576 * dwarf2/read.h: Rename from dwarf2read.h.
15577 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15578 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15579 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15580 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15581 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15582 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15583 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15584 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15585 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15586 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15587 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15588 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15589 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15590 Update.
15591 * Makefile.in (COMMON_SFILES): Update.
15592 (HFILES_NO_SRCDIR): Update.
15593
15594 2020-02-08 Tom Tromey <tom@tromey.com>
15595
15596 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15597 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15598
15599 2020-02-08 Tom Tromey <tom@tromey.com>
15600
15601 * dwarf2read.h (struct die_info): Don't declare.
15602
15603 2020-02-08 Tom Tromey <tom@tromey.com>
15604
15605 * dwarf2read.h (die_info_ptr): Remove typedef.
15606
15607 2020-02-08 Tom Tromey <tom@tromey.com>
15608
15609 * dwarf2read.c (read_call_site_scope)
15610 (handle_data_member_location, dwarf2_add_member_fn)
15611 (mark_common_block_symbol_computed, read_common_block)
15612 (attr_to_dynamic_prop, partial_die_info::read)
15613 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15614 (dwarf2_symbol_mark_computed, set_die_type): Update.
15615 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15616 method.
15617 (attr_form_is_block): Don't declare.
15618 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15619
15620 2020-02-08 Tom Tromey <tom@tromey.com>
15621
15622 * dwarf2read.c (dwarf2_find_base_address, )
15623 (read_call_site_scope, rust_containing_type)
15624 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15625 (handle_data_member_location, dwarf2_add_member_fn)
15626 (get_alignment, read_structure_type, process_structure_scope)
15627 (mark_common_block_symbol_computed, read_common_block)
15628 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15629 (partial_die_info::read, read_attribute_value, new_symbol)
15630 (lookup_die_type, dwarf2_get_ref_die_offset)
15631 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15632 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15633 (dwarf2_symbol_mark_computed): Update.
15634 * dwarf2/attribute.h (struct attribute) <value_as_address,
15635 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15636 methods.
15637 (value_as_address, attr_form_is_section_offset)
15638 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15639 * dwarf2/attribute.c (attribute::value_as_address)
15640 (attribute::form_is_section_offset, attribute::form_is_constant)
15641 (attribute::form_is_ref): Now methods.
15642
15643 2020-02-08 Tom Tromey <tom@tromey.com>
15644
15645 * dwarf2read.c (struct attribute, DW_STRING)
15646 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15647 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15648 (attr_form_is_block, attr_form_is_section_offset)
15649 (attr_form_is_constant, attr_form_is_ref): Move.
15650 * dwarf2/attribute.h: New file.
15651 * dwarf2/attribute.c: New file, from dwarf2read.c.
15652 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15653
15654 2020-02-08 Tom Tromey <tom@tromey.com>
15655
15656 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15657 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15658 Move.
15659 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15660 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15661 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15662 abbrev.c.
15663 * dwarf2/abbrev.h: New file.
15664 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15665 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15666
15667 2020-02-08 Tom Tromey <tom@tromey.com>
15668
15669 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15670 (dwarf2_section_size, dwarf2_get_section_info)
15671 (create_signatured_type_table_from_debug_names)
15672 (create_addrmap_from_aranges, read_debug_names_from_section)
15673 (get_gdb_index_contents_from_section, read_comp_unit_head)
15674 (error_check_comp_unit_head, read_abbrev_offset)
15675 (create_debug_type_hash_table, init_cu_die_reader)
15676 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15677 (read_comp_units_from_section, create_cus_hash_table)
15678 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15679 (create_dwp_v2_section, dwarf2_rnglists_process)
15680 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15681 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15682 (read_indirect_string_from_dwz, read_addr_index_1)
15683 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15684 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15685 (fill_in_loclist_baton): Update.
15686 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15687 get_containing_section, get_bfd_owner, get_bfd_section,
15688 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15689 (dwarf2_read_section, get_section_name, get_section_file_name)
15690 (get_containing_section, get_section_bfd_owner)
15691 (get_section_bfd_section, get_section_name, get_section_file_name)
15692 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15693 declare.
15694 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15695 (dwarf2_section_info::get_bfd_owner)
15696 (dwarf2_section_info::get_bfd_section)
15697 (dwarf2_section_info::get_name)
15698 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15699 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15700 (dwarf2_section_info::read): Now methods.
15701 * dwarf-index-write.c (class debug_names): Update.
15702
15703 2020-02-08 Tom Tromey <tom@tromey.com>
15704
15705 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15706 Move to dwarf2/section.h.
15707 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15708 (get_section_bfd_section, get_section_name)
15709 (get_section_file_name, get_section_id, get_section_flags)
15710 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15711 dwarf2/section.c.
15712 * dwarf2/section.h: New file.
15713 * dwarf2/section.c: New file, from dwarf2read.c.
15714 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15715
15716 2020-02-08 Tom Tromey <tom@tromey.com>
15717
15718 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15719 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15720 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15721 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15722 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15723 * dwarf2/leb.h: New file, from dwarf2read.c.
15724 * dwarf2/leb.c: New file, from dwarf2read.c.
15725 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15726 Remove.
15727 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15728 (COMMON_SFILES): Add dwarf2/leb.c.
15729
15730 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15731
15732 GDB 9.1 released.
15733
15734 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15735
15736 PR gdb/25190:
15737 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15738 * gdb/remote.c (remote_console_output): Update.
15739 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15740 (ui_file_puts): ...this.
15741 * gdb/ui-file.h (ui_file_puts): Add declaration.
15742 * gdb/utils.c (emit_style_escape): Update.
15743 (flush_wrap_buffer): Update.
15744 (fputs_maybe_filtered): Update.
15745 (fputs_unfiltered): Add function.
15746
15747 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15748
15749 * gdb/event-loop.c (gdb_wait_for_event): Update.
15750 * gdb/printcmd.c (printf_command): Update.
15751 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15752 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15753 (gdb_os_flush_stderr): Update.
15754 * gdb/remote.c (remote_console_output): Update.
15755 * gdb/ui-file.c (gdb_flush): Rename to...
15756 (ui_file_flush): ...this.
15757 (stderr_file::write): Update.
15758 (stderr_file::puts): Update.
15759 * gdb/ui-file.h (gdb_flush): Rename to...
15760 (ui_file_flush): ...this.
15761 * gdb/utils.c (gdb_flush): Add function.
15762 * gdb/utils.h (gdb_flush): Add declaration.
15763
15764 2020-02-07 Tom Tromey <tromey@adacore.com>
15765
15766 PR breakpoints/24915:
15767 * source.c (find_and_open_source): Do not check basenames_may_differ.
15768
15769 2020-02-07 Tom Tromey <tom@tromey.com>
15770
15771 * README: Update gdbserver documentation.
15772 * gdbserver: Move to top level.
15773 * configure.tgt (build_gdbserver): Remove.
15774 * configure.ac: Remove --enable-gdbserver.
15775 * configure: Rebuild.
15776 * Makefile.in (distclean): Don't mention gdbserver.
15777
15778 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15779
15780 * source-cache.c (source_cache::ensure): Surround
15781 get_plain_source_lines with a try/catch.
15782 (source_cache::get_line_charpos): Get rid of try/catch
15783 and only check for the return value of "ensure".
15784 * tui/tui-source.c (tui_source_window::set_contents):
15785 Simplify "nlines" calculation.
15786
15787 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15788
15789 * MAINTAINERS (Write After Approval): Add myself.
15790
15791 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15792
15793 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15794 function call.
15795
15796 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15797
15798 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15799
15800 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15801
15802 * nat/riscv-linux-tdesc.h: New file.
15803 * nat/riscv-linux-tdesc.c: New file, taking code from...
15804 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15805 ... here.
15806 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15807 NATDEPFILES.
15808
15809 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15810
15811 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15812 we don't set the fake simulator ptid to the null_ptid.
15813
15814 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15815
15816 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15817 * gdbthread.h (class thread_info) <resumed>: Likewise.
15818 * infrun.c (resume_1): Likewise.
15819 (proceed): Likewise.
15820 (infrun_thread_stop_requested): Likewise.
15821 (stop_all_threads): Likewise.
15822 (handle_inferior_event): Likewise.
15823 (restart_threads): Likewise.
15824 (finish_step_over): Likewise.
15825 (keep_going_stepped_thread): Likewise.
15826 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15827 (linux_handle_extended_wait): Likewise.
15828 * record-btrace.c (get_thread_current_frame_id): Likewise.
15829 * record-full.c (record_full_wait_1): Likewise.
15830 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15831 * target.c (target_resume): Likewise.
15832 * thread.c (set_running_thread): Likewise.
15833
15834 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15835
15836 * f-valprint.c (f77_print_array_1): Changed datatype of index
15837 variable to LONGEST from int to enable it to contain bound
15838 values correctly.
15839
15840 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15841
15842 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15843 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15844 offsets according to FLEN determined.
15845 (riscv_linux_nat_target::read_description): Determine FLEN
15846 dynamically.
15847 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15848 according to FLEN determined.
15849 (riscv_linux_nat_target::store_registers): Likewise.
15850
15851 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15852
15853 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15854 when reg->group is empty and reggroup is not.
15855
15856 2020-01-31 Tom Tromey <tromey@adacore.com>
15857
15858 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15859 Call beneath target's mourn_inferior after unpushing.
15860
15861 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15862
15863 PR tui/9765
15864 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15865 have enough lines to fill the screen, still return the lowest
15866 address we found.
15867
15868 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15869
15870 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15871 '-', '<', and '>' commands.
15872
15873 2020-01-29 Pedro Alves <palves@redhat.com>
15874 Sergio Durigan Junior <sergiodj@redhat.com>
15875
15876 * infcmd.c (construct_inferior_arguments): Assert that
15877 'argc' is greater than 0.
15878
15879 2020-01-29 Luis Machado <luis.machado@linaro.org>
15880
15881 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15882 (BRK_INSN_MASK): Define to 0xd4200000.
15883 (aarch64_program_breakpoint_here_p): New function.
15884 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15885 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15886 breakpoint.c.
15887 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15888 breakpoint.h
15889 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15890 call gdbarch_program_breakpoint_here_p.
15891 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15892 default_program_breakpoint_here_p, changed return type to bool and
15893 simplified.
15894 * breakpoint.h (program_breakpoint_here): Moved prototype to
15895 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15896 return type to bool.
15897 * gdbarch.c: Regenerate.
15898 * gdbarch.h: Regenerate.
15899 * gdbarch.sh (program_breakpoint_here_p): New method.
15900 * infrun.c (handle_signal_stop): Call
15901 gdbarch_program_breakpoint_here_p.
15902
15903 2020-01-26 Tom Tromey <tom@tromey.com>
15904
15905 * ctfread.c (struct ctf_fp_info): Reindent.
15906 (_initialize_ctfread): Remove.
15907
15908 2020-01-26 Tom Tromey <tom@tromey.com>
15909
15910 * psymtab.c (partial_map_expand_apply)
15911 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15912 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15913 (psym_print_stats, psym_expand_symtabs_for_function)
15914 (psym_map_symbol_filenames, psym_map_matching_symbols)
15915 (psym_expand_symtabs_matching)
15916 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15917 (maintenance_check_psymtabs): Use new methods.
15918 * psympriv.h (struct partial_symtab) <readin_p,
15919 get_compunit_symtab>: New methods.
15920 <readin, compunit_symtab>: Remove members.
15921 (struct standard_psymtab): New.
15922 (struct legacy_psymtab): Derive from standard_psymtab.
15923 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15924 standard_psymtab.
15925 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15926
15927 2020-01-26 Tom Tromey <tom@tromey.com>
15928
15929 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15930 read_dependencies. Add assert.
15931 * psymtab.c (partial_symtab::read_dependencies): New method.
15932 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15933 method.
15934 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15935 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15936 read_dependencies.
15937 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15938 Add assert.
15939
15940 2020-01-26 Tom Tromey <tom@tromey.com>
15941
15942 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15943 Call expand_psymtab.
15944 (xcoff_read_symtab): Call expand_psymtab.
15945 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15946 legacy_expand_psymtab.
15947 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15948 method.
15949 (struct legacy_psymtab) <expand_psymtab>: Implement.
15950 <legacy_expand_psymtab>: New member.
15951 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15952 (parse_partial_symbols): Set legacy_expand_psymtab.
15953 (psymtab_to_symtab_1): Change argument order. Call
15954 expand_psymtab.
15955 (new_psymtab): Set legacy_expand_psymtab.
15956 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15957 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15958 expand_psymtab.
15959 (dwarf2_psymtab::expand_psymtab): Rename from
15960 psymtab_to_symtab_1. Call expand_psymtab.
15961 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15962 (dbx_end_psymtab): Likewise.
15963 (dbx_psymtab_to_symtab_1): Change argument order. Call
15964 expand_psymtab.
15965 (dbx_read_symtab): Call expand_psymtab.
15966 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15967 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15968 (ctf_psymtab::read_symtab): Call expand_psymtab.
15969
15970 2020-01-26 Tom Tromey <tom@tromey.com>
15971
15972 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15973 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15974 messages.
15975 * mdebugread.c (mdebug_read_symtab): Remove prints.
15976 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15977 assert.
15978 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15979
15980 2020-01-26 Tom Tromey <tom@tromey.com>
15981
15982 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15983 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15984 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15985 legacy_symtab.
15986 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15987 * psymtab.c (psymtab_to_symtab): Call method.
15988 (dump_psymtab): Update.
15989 * psympriv.h (struct partial_symtab): Add virtual destructor.
15990 <read_symtab>: New method.
15991 (struct legacy_symtab): New.
15992 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15993 (struct pst_map) <pst>: Now a legacy_psymtab.
15994 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15995 (new_psymtab): Use legacy_psymtab.
15996 * dwarf2read.h (struct dwarf2_psymtab): New.
15997 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15998 * dwarf2read.c (dwarf2_create_include_psymtab)
15999 (dwarf2_build_include_psymtabs, create_type_unit_group)
16000 (create_partial_symtab, process_psymtab_comp_unit_reader)
16001 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16002 (set_partial_user): Use dwarf2_psymtab.
16003 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16004 (psymtab_to_symtab_1, process_full_comp_unit)
16005 (process_full_type_unit, dwarf2_ranges_read)
16006 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16007 (dwarf_decode_lines): Use dwarf2_psymtab.
16008 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16009 (add_address_entry_worker, write_one_signatured_type)
16010 (recursively_count_psymbols, recursively_write_psymbols)
16011 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16012 (write_debug_names): Likewise.
16013 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16014 <pst>: Now a legacy_psymtab.
16015 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16016 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16017 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16018 * ctfread.c (struct ctf_psymtab): New.
16019 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16020 ctf_psymtab.
16021 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16022 (create_partial_symtab): Return a ctf_psymtab.
16023 (scan_partial_symbols): Update.
16024
16025 2020-01-26 Tom Tromey <tom@tromey.com>
16026
16027 * xcoffread.c (xcoff_start_psymtab): Use new.
16028 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16029 renamed from start_psymtab_common.
16030 * psympriv.h (struct partial_symtab): Add new constructor.
16031 (start_psymtab_common): Don't declare.
16032 * mdebugread.c (parse_partial_symbols): Use new.
16033 * dwarf2read.c (create_partial_symtab): Use new.
16034 * dbxread.c (start_psymtab): Use new.
16035 * ctfread.c (create_partial_symtab): Use new.
16036
16037 2020-01-26 Tom Tromey <tom@tromey.com>
16038
16039 * xcoffread.c (xcoff_end_psymtab): Use new.
16040 * psymtab.c (start_psymtab_common): Use new.
16041 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16042 Update.
16043 * psympriv.h (struct partial_symtab): Add parameters to
16044 constructor. Don't inline.
16045 (allocate_psymtab): Don't declare.
16046 * mdebugread.c (new_psymtab): Use new.
16047 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16048 * dbxread.c (dbx_end_psymtab): Use new.
16049
16050 2020-01-26 Tom Tromey <tom@tromey.com>
16051
16052 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16053 allocate_psymtab. Update documentation.
16054 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16055 allocate_psymtab. Do not use new.
16056 (allocate_psymtab): Use new. Update.
16057
16058 2020-01-26 Tom Tromey <tom@tromey.com>
16059
16060 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16061 * psymtab.c (psym_print_stats): Update.
16062 * psympriv.h (struct partial_symtab) <readin,
16063 psymtabs_addrmap_supported, anonymous>: Now bool.
16064 * mdebugread.c (psymtab_to_symtab_1): Update.
16065 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16066 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16067 (process_full_comp_unit, process_full_type_unit): Update.
16068 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16069 * ctfread.c (psymtab_to_symtab): Update.
16070
16071 2020-01-26 Tom Tromey <tom@tromey.com>
16072
16073 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16074 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16075 * psymtab.c (psymtab_storage): Delete psymtabs.
16076 (psymtab_storage::allocate_psymtab): Use new.
16077 (psymtab_storage::discard_psymtab): Use delete.
16078 * psympriv.h (struct partial_symtab): Add constructor and
16079 initializers.
16080
16081 2020-01-26 Tom Tromey <tom@tromey.com>
16082
16083 * machoread.c: Do not include psympriv.h.
16084
16085 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16086
16087 * NEWS: Mention the new option and the set/show commands.
16088
16089 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16090
16091 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16092 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16093 (validate_exec_file): New variables, enums, functions.
16094 (exec_file_locate_attach, print_section_info): Style the filenames.
16095 (_initialize_exec): Install show_exec_file_mismatch_command and
16096 set_exec_file_mismatch_command.
16097 * gdbcore.h (validate_exec_file): Declare.
16098 * infcmd.c (attach_command): Call validate_exec_file.
16099 * remote.c ( remote_target::remote_add_inferior): Likewise.
16100
16101 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16102
16103 * frame.c (find_frame_sal): Move call to get_next_frame into more
16104 inner scope.
16105 * inline-frame.c (inilne_state) <inline_state>: Update argument
16106 types.
16107 (inilne_state) <skipped_symbol>: Rename to...
16108 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16109 (skip_inline_frames): Build vector of skipped symbols and use this
16110 to reate the inline_state.
16111 (inline_skipped_symbol): Add a comment and some assertions, fetch
16112 skipped symbol from the list.
16113
16114 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16115
16116 * buildsym.c (lte_is_less_than): Delete.
16117 (buildsym_compunit::end_symtab_with_blockvector): Create local
16118 lambda function to sort line table entries, and use
16119 std::stable_sort instead of std::sort.
16120 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16121 markers when looking for a previous line.
16122
16123 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16124
16125 * dwarf2read.c (lnp_state_machine::record_line): Include
16126 end_sequence parameter in debug print out. Record the line if we
16127 are at an end_sequence marker even if it's not the start of a
16128 statement.
16129 * symmisc.c (maintenance_print_one_line_table): Print end of
16130 sequence markers with 'END' not '0'.
16131
16132 2020-01-24 Pedro Alves <palves@redhat.com>
16133
16134 PR gdb/25410
16135 * thread.c (scoped_restore_current_thread::restore): Use
16136 switch_to_inferior_no_thread.
16137 * exec.c: Include "progspace-and-thread.h".
16138 (add_target_sections, remove_target_sections):
16139 scoped_restore_current_pspace_and_thread instead of
16140 scoped_restore_current_thread.
16141 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16142 and aspace to the inferior before calling clone_program_space.
16143 Remove stale comment.
16144
16145 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16146
16147 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16148 (arm_netbsd_nat_target::fetch_registers): ...this.
16149 (arm_nbsd_nat_target::store_registers): Rename to...
16150 (arm_netbsd_nat_target::store_registers): ...this.
16151
16152 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16153
16154 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16155 register_t.
16156
16157 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16158
16159 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16160 Update comment.
16161 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16162 Likewise.
16163 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16164 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16165 the correct replacement (iterate_over_regset_sections).
16166 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16167 Update comment.
16168
16169 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16170
16171 PR gdb/23718
16172 * gdb/python/python.c (execute_gdb_command): Call
16173 async_enable_stdin in catch block.
16174
16175 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16176
16177 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16178 SWITCH_THRU_ALL_UIS.
16179
16180 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16181
16182 PR tui/9765
16183 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16184 comment, add extra parameter, and update to store previous symbol
16185 when appropriate.
16186 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16187 add extra parameter.
16188 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16189 remove unneeded parameter, add try/catch around gdb_print_insn,
16190 rewrite to add items to asm_lines vector.
16191 (tui_find_backward_disassembly_start_address): New function.
16192 (tui_find_disassembly_address): Updated throughout.
16193 (tui_disasm_window::set_contents): Update for changes to
16194 tui_disassemble.
16195 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16196 number of lines to scroll.
16197
16198 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16199
16200 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16201 (SECT_OFF_DATA): Likewise.
16202 (SECT_OFF_RODATA): Likewise.
16203 (SECT_OFF_TEXT): Likewise.
16204 (SECT_OFF_BSS): Likewise.
16205 (struct objfile) <text_section_offset, data_section_offset>: New
16206 methods.
16207 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16208 objfile::text_section_offset.
16209 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16210 * coffread.c (coff_symtab_read): Likewise.
16211 (enter_linenos): Likewise.
16212 (process_coff_symbol): Likewise.
16213 * ctfread.c (get_objfile_text_range): Likewise.
16214 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16215 Use objfile::data_section_offset.
16216 * dwarf2-frame.c (execute_cfa_program): Use
16217 objfile::text_section_offset.
16218 (dwarf2_frame_find_fde): Likewise.
16219 * dwarf2read.c (create_addrmap_from_index): Likewise.
16220 (create_addrmap_from_aranges): Likewise.
16221 (dw2_find_pc_sect_compunit_symtab): Likewise.
16222 (process_psymtab_comp_unit_reader): Likewise.
16223 (add_partial_symbol): Likewise.
16224 (add_partial_subprogram): Likewise.
16225 (process_full_comp_unit): Likewise.
16226 (read_file_scope): Likewise.
16227 (read_func_scope): Likewise.
16228 (read_lexical_block_scope): Likewise.
16229 (read_call_site_scope): Likewise.
16230 (dwarf2_rnglists_process): Likewise.
16231 (dwarf2_ranges_process): Likewise.
16232 (dwarf2_ranges_read): Likewise.
16233 (dwarf_decode_lines_1): Likewise.
16234 (new_symbol): Likewise.
16235 (dwarf2_fetch_die_loc_sect_off): Likewise.
16236 (dwarf2_per_cu_text_offset): Likewise.
16237 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16238 * hppa-tdep.c (read_unwind_info): Likewise.
16239 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16240 * psympriv.h (struct partial_symtab): Likewise.
16241 * psymtab.c (find_pc_sect_psymtab): Likewise.
16242 * solib-svr4.c (enable_break): Likewise.
16243 * stap-probe.c (relocate_address): Use
16244 objfile::data_section_offset.
16245 * xcoffread.c (enter_line_range): Use
16246 objfile::text_section_offset.
16247 (read_xcoff_symtab): Likewise.
16248
16249 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16250
16251 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16252 declaration to narrower scopes.
16253
16254 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16255
16256 * darwin-nat.h (struct darwin_exception_msg, enum
16257 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16258 Move up.
16259 (class darwin_nat_target) <wait_1, check_new_threads,
16260 decode_exception_message, decode_message, stop_inferior,
16261 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16262 * darwin-nat.c (darwin_check_new_threads): Rename to...
16263 (darwin_nat_target::check_new_threads): ... this.
16264 (darwin_suspend_inferior_it): Remove.
16265 (darwin_decode_exception_message): Rename to...
16266 (darwin_nat_target::decode_exception_message): ... this.
16267 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16268 (darwin_decode_message): Rename to...
16269 (darwin_nat_target::decode_message): ... this.
16270 (cancel_breakpoint): Rename to...
16271 (darwin_nat_target::cancel_breakpoint): ... this.
16272 (darwin_wait): Rename to...
16273 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16274 instead of iterate_over_inferiors.
16275 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16276 (darwin_stop_inferior): Rename to...
16277 (darwin_nat_target::stop_inferior): ... this.
16278 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16279 (darwin_init_thread_list): Rename to...
16280 (darwin_nat_target::init_thread_list): ... this.
16281 (darwin_ptrace_him): Rename to...
16282 (darwin_nat_target::ptrace_him): ... this.
16283 (darwin_nat_target::create_inferior): Pass lambda function to
16284 fork_inferior.
16285 (darwin_nat_target::detach): Call stop_inferior instead of
16286 darwin_stop_inferior.
16287 * fork-inferior.h (fork_inferior): Change init_trace_fun
16288 parameter to gdb::function_view.
16289 * fork-inferior.c (fork_inferior): Likewise.
16290
16291 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16292
16293 * i386-cygwin-tdep.c (core_process_module_section): Update.
16294 * windows-nat.c (struct lm_info_windows): Add text_offset.
16295 (windows_xfer_shared_libraries): Update.
16296 * windows-tdep.c (windows_xfer_shared_library):
16297 Add text_offset_cached argument.
16298 * windows-tdep.h (windows_xfer_shared_library): Update.
16299
16300 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16301
16302 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16303
16304 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16305
16306 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16307 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16308 replace with range-based for.
16309 (gdbsim_interrupt_inferior): Remove.
16310 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16311 with a range-based for. Inline code from
16312 gdbsim_interrupt_inferior.
16313
16314 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16315
16316 * infrun.c (proceed): Fix indentation.
16317
16318 2020-01-21 Tom Tromey <tromey@adacore.com>
16319
16320 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16321 * python/python.c (python_extension_ops): Update.
16322 (gdbpy_colorize): New function.
16323 * python/lib/gdb/__init__.py (colorize): New function.
16324 * extension.h (ext_lang_colorize): Declare.
16325 * extension.c (ext_lang_colorize): New function.
16326 * extension-priv.h (struct extension_language_ops) <colorize>: New
16327 member.
16328 * cli/cli-style.c (_initialize_cli_style): Update help text.
16329
16330 2020-01-21 Luis Machado <luis.machado@linaro.org>
16331
16332 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16333 <cond>: Change type to bool.
16334 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16335 (aarch64_displaced_step_cb): Likewise.
16336 (aarch64_displaced_step_tb): Likewise.
16337
16338 2020-01-21 Luis Machado <luis.machado@linaro.org>
16339
16340 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16341 output.
16342
16343 2020-01-21 Luis Machado <luis.machado@linaro.org>
16344
16345 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16346 <pc_adjust>: Adjust the documentation.
16347 (aarch64_displaced_step_fixup): Check if PC really moved before
16348 adjusting it.
16349
16350 2020-01-19 Tom Tromey <tom@tromey.com>
16351
16352 * disasm.c (~gdb_disassembler): New destructor.
16353 (gdb_buffered_insn_length): Call disassemble_free_target.
16354 * disasm.h (class gdb_disassembler): Declare destructor. Use
16355 DISABLE_COPY_AND_ASSIGN.
16356
16357 2020-01-19 Tom Tromey <tom@tromey.com>
16358
16359 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16360 (die_reader_func_ftype): Remove.
16361 (cutu_reader): New class.
16362 (dw2_get_file_names_reader): Remove "data" parameter.
16363 (dw2_get_file_names): Use cutu_reader.
16364 (create_debug_type_hash_table): Update.
16365 (read_cutu_die_from_dwo): Update comment.
16366 (lookup_dwo_unit): Add dwo_name parameter.
16367 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16368 die_reader_func_ftype and data parameters.
16369 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16370 Remove die_reader_func_ftype and data parameters.
16371 (~cutu_reader): New; from init_cutu_and_read_dies.
16372 (cutu_reader::cutu_reader): Rename from
16373 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16374 and data parameters.
16375 (init_cutu_and_read_dies_simple): Remove.
16376 (struct process_psymtab_comp_unit_data): Remove.
16377 (process_psymtab_comp_unit_reader): Remove data parameter; add
16378 want_partial_unit and pretend_language parameters.
16379 (process_psymtab_comp_unit): Use cutu_reader.
16380 (build_type_psymtabs_reader): Remove data parameter.
16381 (build_type_psymtabs_1): Use cutu_reader.
16382 (process_skeletonless_type_unit): Likewise.
16383 (load_partial_comp_unit_reader): Remove.
16384 (load_partial_comp_unit): Use cutu_reader.
16385 (load_full_comp_unit_reader): Remove.
16386 (load_full_comp_unit): Use cutu_reader.
16387 (struct create_dwo_cu_data): Remove.
16388 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16389 dwo_unit parameters.
16390 (create_cus_hash_table): Use cutu_reader.
16391 (struct dwarf2_read_addr_index_data): Remove.
16392 (dwarf2_read_addr_index_reader): Remove.
16393 (dwarf2_read_addr_index): Use cutu_reader.
16394 (read_signatured_type_reader): Remove.
16395 (read_signatured_type): Use cutu_reader.
16396
16397 2020-01-19 Tom Tromey <tom@tromey.com>
16398
16399 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16400 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16401 (tui_wrefresh): Declare.
16402 * tui/tui-wingeneral.c (suppress_output): New global.
16403 (tui_suppress_output, ~tui_suppress_output): New constructor and
16404 destructor.
16405 (tui_wrefresh): New function.
16406 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16407 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16408 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16409 method.
16410 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16411 tui_wrefresh.
16412 (tui_data_window::no_refresh): New method.
16413 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16414 (tui_reg_command): Use tui_suppress_output
16415 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16416 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16417 method.
16418 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16419
16420 2020-01-19 Tom Tromey <tom@tromey.com>
16421
16422 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16423 Handle case where symtab is null.
16424
16425 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16426
16427 * linux-fork.c (one_fork_p): Simplify.
16428
16429 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16430
16431 * top.c (struct qt_args): Remove.
16432 (kill_or_detach): Change return type to void, replace `void *`
16433 parameter with a proper one.
16434 (print_inferior_quit_action): Likewise.
16435 (quit_confirm): Use range-based for loop to iterate over inferiors.
16436 (quit_force): Likewise.
16437
16438 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16439
16440 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16441 `void *` parameter with proper parameters.
16442 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16443 (print_one_inferior): Change return type to void, replace `void *`
16444 parameter with proper parameters.
16445 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16446 inferiors.
16447 (get_other_inferior): Remove.
16448 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16449 inferiors.
16450
16451 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16452
16453 * mi/mi-interp.c (report_initial_inferior): Remove.
16454 (mi_interp::init): Use range-based for to iterate over inferiors.
16455
16456 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16457
16458 * python/py-inferior.c (build_inferior_list): Remove.
16459 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16460
16461 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16462
16463 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16464 (btrace_stitch_trace): Likewise.
16465 * charset.c (intermediate_encoding): Likewise (vaild).
16466 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16467 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16468 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16469
16470 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16471
16472 * windows-tdep.c (windows_get_tlb_type):
16473 Add rtl_user_process_parameters type.
16474
16475 2020-01-16 Pedro Alves <palves@redhat.com>
16476 Norbert Lange <nolange79@gmail.com>
16477
16478 PR build/24805
16479 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16480 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16481 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16482 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16483 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16484 (ps_plog): Redeclare exported functions with default visibility.
16485
16486 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16487
16488 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16489 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16490
16491 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16492
16493 * infcmd.c (post_create_inferior): Use get_thread_regcache
16494 instead of get_current_regcache.
16495
16496 2020-01-14 Tom Tromey <tom@tromey.com>
16497
16498 PR symtab/12535:
16499 * python/python.c (gdbpy_decode_line): Treat empty string the same
16500 as no argument.
16501
16502 2020-01-14 Tom Tromey <tom@tromey.com>
16503
16504 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16505
16506 2020-01-14 Tom Tromey <tom@tromey.com>
16507
16508 * nat/linux-btrace.c: Don't include <config.h>.
16509 * nat/linux-ptrace.c: Don't include <config.h>.
16510 * nat/x86-linux-dregs.c: Don't include <config.h>.
16511
16512 2020-01-14 Tom Tromey <tom@tromey.com>
16513
16514 * configure: Rebuild.
16515 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16516
16517 2020-01-14 Tom Tromey <tom@tromey.com>
16518
16519 * nat/x86-linux-dregs.c: Include configh.h.
16520 * nat/linux-ptrace.c: Include configh.h.
16521 * nat/linux-btrace.c: Include configh.h.
16522 * defs.h: Include config.h, bfd.h.
16523 * configure.ac: Don't source common.host.
16524 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16525 * configure: Rebuild.
16526 * acinclude.m4: Update path.
16527 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16528 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16529 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16530 (CLIBS): Add LIBSUPPORT.
16531 (CDEPS): Likewise.
16532 (COMMON_SFILES): Remove gdbsupport files.
16533 (HFILES_NO_SRCDIR): Likewise.
16534 (stamp-version): Update path to create-version.sh.
16535 (ALLDEPFILES): Remove gdbsupport files.
16536
16537 2020-01-14 Tom Tromey <tom@tromey.com>
16538
16539 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16540 USE_WIN32API when needed.
16541 * configure.ac (USE_WIN32API): Don't define.
16542 (WIN32LIBS): Use WIN32APILIBS.
16543 * configure: Rebuild.
16544
16545 2020-01-14 Tom Tromey <tom@tromey.com>
16546
16547 * configure: Rebuild.
16548 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16549
16550 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16551
16552 * skip.c (skip_function_command): Make skip w/o arguments use the
16553 name of the inlined function if pc is inside any inlined function.
16554
16555 2020-01-14 Luis Machado <luis.machado@linaro.org>
16556
16557 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16558 * infrun.c (resume_1): Likewise.
16559 (handle_inferior_event): Remove stale comment.
16560 * linux-nat.c (linux_nat_target::resume): Update comments.
16561 (save_stop_reason): Likewise.
16562 (linux_nat_filter_event): Likewise.
16563 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16564
16565 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16566
16567 * elfread.c (record_minimal_symbol): Set section index to 0 for
16568 non-allocatable sections.
16569
16570
16571 2020-01-13 Ali Tamur <tamur@google.com>
16572
16573 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16574 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16575 to gdb::optional. Update comments.
16576 (dwo_file): Update comments.
16577 (read_attribute): Update API to take an additional out parameter,
16578 need_reprocess. This is used to mark attributes that need other
16579 attributes (e.g. str_offsets_base) for correct computation which may not
16580 have been read yet.
16581 (read_attribute_reprocess): New function declaration.
16582 (read_addr_index): Likewise.
16583 (read_dwo_str_index): Likewise.
16584 (read_stub_str_index): Likewise.
16585 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16586 (lookup_addr_base): New function definition.
16587 (lookup_ranges_base): Likewise.
16588 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16589 lookup_ranges_base.
16590 (init_cutu_and_read_dies): Update comments.
16591 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16592 unit. This is used to inherit parent's str_offsets_base and addr_base.
16593 Update comments.
16594 (init_cutu_and_read_dies_simple): Reflect API changes.
16595 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16596 (create_cus_hash_table): Change API to take parent compile unit.
16597 Reflect API changes.
16598 (open_and_init_dwo_file): Reflect API changes.
16599 (dwarf2_get_pc_bounds): Update comments.
16600 (dwarf2_record_block_ranges): Likewise.
16601 (read_full_die_1): Change implementation to reprocess attributes that
16602 need str_offsets_base and addr_base.
16603 (partial_die_info::read): Likewise.
16604 (read_attribute_reprocess): New function definition.
16605 (read_attribute_value): Change API to take an additional out parameter,
16606 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16607 when a non-dwo compile unit has index based attributes.
16608 (read_attribute): Reflect API changes.
16609 (read_addr_index_1): Reflect API changes. Update comments.
16610 (dwarf2_read_addr_index_data): Reflect API changes.
16611 (dwarf2_read_addr_index): Likewise.
16612 (read_str_index): Change API and implementation. This becomes a helper
16613 to be used by the new string index related methods. Update error
16614 message and comments.
16615 (read_dwo_str_index): New function definition.
16616 (read_stub_str_index): Likewise.
16617 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16618 * symfile.h (dwarf2_debug_sections): Likewise.
16619 * xcoffread.c (dwarf2_debug_sections): Likewise.
16620
16621 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16622
16623 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16624 core_reg_sect type to gdb_byte *.
16625 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16626 * cris-tdep.c (fetch_core_registers): Likewise.
16627 * corelow.c (core_target::get_core_register_section): Change
16628 type of `contents` to gdb::byte_vector.
16629
16630 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16631
16632 * tui/tui-wingeneral.c (box_win): Position the title in the center
16633 of the border.
16634
16635 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16636
16637 * corelow.c (core_target::get_core_register_section): Use
16638 std::vector instead of alloca.
16639
16640 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16641
16642 * warning.m4: Add -Wmissing-declarations to build_warnings.
16643 * configure: Re-generate.
16644
16645 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16646
16647 * python/python.c (init__gdb_module): Add declaration.
16648
16649 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16650
16651 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16652 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16653 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16654 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16655 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16656 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16657 * ada-exp.y (_initialize_ada_exp): Add declaration.
16658 * ada-lang.c (_initialize_ada_language): Add declaration.
16659 * ada-tasks.c (_initialize_tasks): Add declaration.
16660 * agent.c (_initialize_agent): Add declaration.
16661 * aix-thread.c (_initialize_aix_thread): Add declaration.
16662 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16663 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16664 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16665 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16666 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16667 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16668 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16669 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16670 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16671 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16672 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16673 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16674 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16675 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16676 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16677 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16678 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16679 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16680 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16681 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16682 * annotate.c (_initialize_annotate): Add declaration.
16683 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16684 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16685 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16686 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16687 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16688 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16689 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16690 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16691 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16692 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16693 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16694 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16695 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16696 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16697 * auto-load.c (_initialize_auto_load): Add declaration.
16698 * auxv.c (_initialize_auxv): Add declaration.
16699 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16700 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16701 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16702 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16703 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16704 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16705 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16706 * breakpoint.c (_initialize_breakpoint): Add declaration.
16707 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16708 * btrace.c (_initialize_btrace): Add declaration.
16709 * charset.c (_initialize_charset): Add declaration.
16710 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16711 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16712 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16713 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16714 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16715 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16716 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16717 * coffread.c (_initialize_coffread): Add declaration.
16718 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16719 * compile/compile.c (_initialize_compile): Add declaration.
16720 * complaints.c (_initialize_complaints): Add declaration.
16721 * completer.c (_initialize_completer): Add declaration.
16722 * copying.c (_initialize_copying): Add declaration.
16723 * corefile.c (_initialize_core): Add declaration.
16724 * corelow.c (_initialize_corelow): Add declaration.
16725 * cp-abi.c (_initialize_cp_abi): Add declaration.
16726 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16727 * cp-support.c (_initialize_cp_support): Add declaration.
16728 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16729 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16730 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16731 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16732 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16733 * ctfread.c (_initialize_ctfread): Add declaration.
16734 * d-lang.c (_initialize_d_language): Add declaration.
16735 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16736 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16737 * dbxread.c (_initialize_dbxread): Add declaration.
16738 * dcache.c (_initialize_dcache): Add declaration.
16739 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16740 * disasm.c (_initialize_disasm): Add declaration.
16741 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16742 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16743 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16744 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16745 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16746 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16747 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16748 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16749 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16750 * elfread.c (_initialize_elfread): Add declaration.
16751 * exec.c (_initialize_exec): Add declaration.
16752 * extension.c (_initialize_extension): Add declaration.
16753 * f-lang.c (_initialize_f_language): Add declaration.
16754 * f-valprint.c (_initialize_f_valprint): Add declaration.
16755 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16756 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16757 * filesystem.c (_initialize_filesystem): Add declaration.
16758 * findcmd.c (_initialize_mem_search): Add declaration.
16759 * findvar.c (_initialize_findvar): Add declaration.
16760 * fork-child.c (_initialize_fork_child): Add declaration.
16761 * frame-base.c (_initialize_frame_base): Add declaration.
16762 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16763 * frame.c (_initialize_frame): Add declaration.
16764 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16765 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16766 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16767 * gcore.c (_initialize_gcore): Add declaration.
16768 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16769 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16770 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16771 * gdbarch.c (_initialize_gdbarch): Add declaration.
16772 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16773 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16774 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16775 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16776 * go-lang.c (_initialize_go_language): Add declaration.
16777 * go32-nat.c (_initialize_go32_nat): Add declaration.
16778 * guile/guile.c (_initialize_guile): Add declaration.
16779 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16780 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16781 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16782 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16783 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16784 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16785 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16786 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16787 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16788 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16789 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16790 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16791 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16792 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16793 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16794 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16795 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16796 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16797 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16798 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16799 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16800 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16801 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16802 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16803 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16804 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16805 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16806 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16807 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16808 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16809 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16810 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16811 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16812 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16813 * infcall.c (_initialize_infcall): Add declaration.
16814 * infcmd.c (_initialize_infcmd): Add declaration.
16815 * inflow.c (_initialize_inflow): Add declaration.
16816 * infrun.c (_initialize_infrun): Add declaration.
16817 * interps.c (_initialize_interpreter): Add declaration.
16818 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16819 * jit.c (_initialize_jit): Add declaration.
16820 * language.c (_initialize_language): Add declaration.
16821 * linux-fork.c (_initialize_linux_fork): Add declaration.
16822 * linux-nat.c (_initialize_linux_nat): Add declaration.
16823 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16824 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16825 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16826 * m2-lang.c (_initialize_m2_language): Add declaration.
16827 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16828 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16829 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16830 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16831 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16832 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16833 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16834 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16835 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16836 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16837 * machoread.c (_initialize_machoread): Add declaration.
16838 * macrocmd.c (_initialize_macrocmd): Add declaration.
16839 * macroscope.c (_initialize_macroscope): Add declaration.
16840 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16841 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16842 * maint.c (_initialize_maint_cmds): Add declaration.
16843 * mdebugread.c (_initialize_mdebugread): Add declaration.
16844 * memattr.c (_initialize_mem): Add declaration.
16845 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16846 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16847 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16848 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16849 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16850 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16851 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16852 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16853 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16854 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16855 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16856 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16857 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16858 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16859 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16860 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16861 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16862 * mipsread.c (_initialize_mipsread): Add declaration.
16863 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16864 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16865 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16866 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16867 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16868 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16869 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16870 * nto-procfs.c (_initialize_procfs): Add declaration.
16871 * objc-lang.c (_initialize_objc_language): Add declaration.
16872 * observable.c (_initialize_observer): Add declaration.
16873 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16874 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16875 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16876 * osabi.c (_initialize_gdb_osabi): Add declaration.
16877 * osdata.c (_initialize_osdata): Add declaration.
16878 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16879 * parse.c (_initialize_parse): Add declaration.
16880 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16881 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16882 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16883 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16884 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16885 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16886 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16887 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16888 * printcmd.c (_initialize_printcmd): Add declaration.
16889 * probe.c (_initialize_probe): Add declaration.
16890 * proc-api.c (_initialize_proc_api): Add declaration.
16891 * proc-events.c (_initialize_proc_events): Add declaration.
16892 * proc-service.c (_initialize_proc_service): Add declaration.
16893 * procfs.c (_initialize_procfs): Add declaration.
16894 * producer.c (_initialize_producer): Add declaration.
16895 * psymtab.c (_initialize_psymtab): Add declaration.
16896 * python/python.c (_initialize_python): Add declaration.
16897 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16898 * record-btrace.c (_initialize_record_btrace): Add declaration.
16899 * record-full.c (_initialize_record_full): Add declaration.
16900 * record.c (_initialize_record): Add declaration.
16901 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16902 * regcache.c (_initialize_regcache): Add declaration.
16903 * reggroups.c (_initialize_reggroup): Add declaration.
16904 * remote-notif.c (_initialize_notif): Add declaration.
16905 * remote-sim.c (_initialize_remote_sim): Add declaration.
16906 * remote.c (_initialize_remote): Add declaration.
16907 * reverse.c (_initialize_reverse): Add declaration.
16908 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16909 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16910 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16911 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16912 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16913 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16914 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16915 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16916 Add declaration.
16917 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16918 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16919 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16920 * rust-exp.y (_initialize_rust_exp): Add declaration.
16921 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16922 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16923 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16924 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16925 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16926 * score-tdep.c (_initialize_score_tdep): Add declaration.
16927 * ser-go32.c (_initialize_ser_dos): Add declaration.
16928 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16929 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16930 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16931 * ser-uds.c (_initialize_ser_socket): Add declaration.
16932 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16933 * serial.c (_initialize_serial): Add declaration.
16934 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16935 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16936 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16937 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16938 * skip.c (_initialize_step_skip): Add declaration.
16939 * sol-thread.c (_initialize_sol_thread): Add declaration.
16940 * solib-aix.c (_initialize_solib_aix): Add declaration.
16941 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16942 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16943 * solib-frv.c (_initialize_frv_solib): Add declaration.
16944 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16945 * solib-target.c (_initialize_solib_target): Add declaration.
16946 * solib.c (_initialize_solib): Add declaration.
16947 * source-cache.c (_initialize_source_cache): Add declaration.
16948 * source.c (_initialize_source): Add declaration.
16949 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16950 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16951 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16952 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16953 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16954 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16955 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16956 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16957 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16958 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16959 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16960 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16961 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16962 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16963 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16964 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16965 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16966 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16967 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16968 * stabsread.c (_initialize_stabsread): Add declaration.
16969 * stack.c (_initialize_stack): Add declaration.
16970 * stap-probe.c (_initialize_stap_probe): Add declaration.
16971 * std-regs.c (_initialize_frame_reg): Add declaration.
16972 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16973 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16974 * symfile.c (_initialize_symfile): Add declaration.
16975 * symmisc.c (_initialize_symmisc): Add declaration.
16976 * symtab.c (_initialize_symtab): Add declaration.
16977 * target.c (_initialize_target): Add declaration.
16978 * target-connection.c (_initialize_target_connection): Add
16979 declaration.
16980 * target-dcache.c (_initialize_target_dcache): Add declaration.
16981 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16982 * thread.c (_initialize_thread): Add declaration.
16983 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16984 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16985 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16986 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16987 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16988 * tracectf.c (_initialize_ctf): Add declaration.
16989 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16990 * tracefile.c (_initialize_tracefile): Add declaration.
16991 * tracepoint.c (_initialize_tracepoint): Add declaration.
16992 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16993 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16994 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16995 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16996 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16997 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16998 * tui/tui.c (_initialize_tui): Add declaration.
16999 * typeprint.c (_initialize_typeprint): Add declaration.
17000 * ui-style.c (_initialize_ui_style): Add declaration.
17001 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17002 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17003 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17004 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17005 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17006 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17007 * unittests/filtered_iterator-selftests.c
17008 (_initialize_filtered_iterator_selftests): Add declaration.
17009 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17010 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17011 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17012 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17013 * unittests/main-thread-selftests.c
17014 (_initialize_main_thread_selftests): Add declaration.
17015 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17016 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17017 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17018 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17019 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17020 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17021 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17022 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17023 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17024 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17025 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17026 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17027 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17028 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17029 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17030 declaration.
17031 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17032 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17033 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17034 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17035 * user-regs.c (_initialize_user_regs): Add declaration.
17036 * utils.c (_initialize_utils): Add declaration.
17037 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17038 * valops.c (_initialize_valops): Add declaration.
17039 * valprint.c (_initialize_valprint): Add declaration.
17040 * value.c (_initialize_values): Add declaration.
17041 * varobj.c (_initialize_varobj): Add declaration.
17042 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17043 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17044 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17045 * windows-nat.c (_initialize_windows_nat): Add declaration.
17046 (_initialize_check_for_gdb_ini): Add declaration.
17047 (_initialize_loadable): Add declaration.
17048 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17049 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17050 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17051 * xcoffread.c (_initialize_xcoffread): Add declaration.
17052 * xml-support.c (_initialize_xml_support): Add declaration.
17053 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17054 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17055 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17056 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17057
17058 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17059
17060 * regformats/regdat.sh: Generate declaration for init function.
17061
17062 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17063
17064 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17065 up.
17066 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17067 close_one_inferior>: New methods.
17068 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17069 pass down target to find_inferior_pid.
17070 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17071 Pass down target to find_inferior_ptid.
17072 (gdbsim_target::create_inferior): Pass down target to
17073 add_thread_silent.
17074 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17075 target down to find_inferior_ptid and switch_to_thread.
17076 (gdbsim_target::close): Update to call close_one_inferior.
17077 (struct resume_data): Remove.
17078 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17079 directly, rather than through a void pointer.
17080 (gdbsim_target::resume): Update to call resume_one_inferior.
17081
17082 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17083
17084 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17085
17086 2020-01-12 Pedro Alves <palves@redhat.com>
17087
17088 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17089 directly for the current inferior instead of
17090 discard_all_inferiors.
17091 (discard_all_inferiors): Delete.
17092
17093 2020-01-11 Tom Tromey <tom@tromey.com>
17094
17095 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17096 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17097 deprecated_safe_get_selected_frame.
17098
17099 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17100
17101 * inferior.c (print_inferior): Switch inferior before printing it.
17102
17103 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17104 Pedro Alves <palves@redhat.com>
17105
17106 * progspace-and-thread.c (switch_to_program_space_and_thread):
17107 Assert there's an inferior for PSPACE. Use
17108 switch_to_inferior_no_thread to switch the inferior too.
17109 * progspace.c (program_space::~program_space): Call
17110 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17111 (program_space::free_all_objfiles): Don't call clear_symtab_users
17112 here.
17113 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17114
17115 2020-01-10 Pedro Alves <palves@redhat.com>
17116
17117 * NEWS: Mention multi-target debugging, "info connections", and
17118 "add-inferior -no-connection".
17119
17120 2020-01-10 Pedro Alves <palves@redhat.com>
17121
17122 * infrun.c: Include "target-connection.h".
17123 (check_multi_target_resumption): New.
17124 (proceed): Call it.
17125 * target-connection.c (make_target_connection_string): Make
17126 extern.
17127 * target-connection.h (make_target_connection_string): Declare.
17128
17129 2020-01-10 Pedro Alves <palves@redhat.com>
17130
17131 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17132 * inferior.c (uiout_field_connection): New function.
17133 (print_inferior): Add new "connection-id" column.
17134 (add_inferior_command): Show connection number/string of added
17135 inferior.
17136 * process-stratum-target.h
17137 (process_stratum_target::connection_string): New virtual method.
17138 (process_stratum_target::connection_number): New field.
17139 * remote.c (remote_target::connection_string): New override.
17140 * target-connection.c: New file.
17141 * target-connection.h: New file.
17142 * target.c (decref_target): Remove process_stratum targets from
17143 the connection list.
17144 (target_stack::push): Add process_stratum targets to the
17145 connection list.
17146
17147 2020-01-10 Pedro Alves <palves@redhat.com>
17148
17149 Revert:
17150 2016-04-12 Pedro Alves <palves@redhat.com>
17151 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17152 Remove references to name.
17153 * serial.h (struct serial) <name>: Delete.
17154
17155 2020-01-10 Pedro Alves <palves@redhat.com>
17156
17157 * gdbarch-selftests.c (register_to_value_test): Remove "target
17158 already pushed" check.
17159
17160 2020-01-10 Pedro Alves <palves@redhat.com>
17161 John Baldwin <jhb@FreeBSD.org>
17162
17163 * aarch64-linux-nat.c
17164 (aarch64_linux_nat_target::thread_architecture): Adjust.
17165 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17166 (task_command_1): Likewise.
17167 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17168 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17169 (aix_thread_target::store_registers)
17170 (aix_thread_target::thread_alive): Adjust.
17171 * amd64-fbsd-tdep.c: Include "inferior.h".
17172 (amd64fbsd_get_thread_local_address): Pass down target.
17173 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17174 thread's gdbarch instead of target_gdbarch.
17175 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17176 get_last_target_status.
17177 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17178 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17179 inferiors.
17180 (update_inserted_breakpoint_locations): Skip if inferiors with no
17181 execution.
17182 (update_global_location_list): When handling moribund locations,
17183 find representative inferior for location's pspace, and use thread
17184 count of its process_stratum target.
17185 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17186 * bsd-uthread.c (bsd_uthread_target::wait): Use
17187 as_process_stratum_target and adjust thread_change_ptid and
17188 add_thread calls.
17189 (bsd_uthread_target::update_thread_list): Use
17190 as_process_stratum_target and adjust find_thread_ptid,
17191 thread_change_ptid and add_thread calls.
17192 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17193 find_thread_ptid call.
17194 * corelow.c (add_to_thread_list): Adjust add_thread call.
17195 (core_target_open): Adjust add_thread_silent and thread_count
17196 calls.
17197 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17198 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17199 * event-top.c (async_disconnect): Pop targets from all inferiors.
17200 * exec.c (add_target_sections): Push exec target on all inferiors
17201 sharing the program space.
17202 (remove_target_sections): Remove the exec target from all
17203 inferiors sharing the program space.
17204 (exec_on_vfork): New.
17205 * exec.h (exec_on_vfork): Declare.
17206 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17207 Pass it down.
17208 (fbsd_nat_target::update_thread_list): Adjust.
17209 (fbsd_nat_target::resume): Adjust.
17210 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17211 down.
17212 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17213 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17214 get_thread_arch_regcache call.
17215 * fork-child.c (gdb_startup_inferior): Pass target down to
17216 startup_inferior and set_executing.
17217 * gdbthread.h (struct process_stratum_target): Forward declare.
17218 (add_thread, add_thread_silent, add_thread_with_info)
17219 (in_thread_list): Add process_stratum_target parameter.
17220 (find_thread_ptid(inferior*, ptid_t)): New overload.
17221 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17222 parameter.
17223 (all_threads()): Delete overload.
17224 (all_threads, all_non_exited_threads): Add process_stratum_target
17225 parameter.
17226 (all_threads_safe): Use brace initialization.
17227 (thread_count): Add process_stratum_target parameter.
17228 (set_resumed, set_running, set_stop_requested, set_executing)
17229 (threads_are_executing, finish_thread_state): Add
17230 process_stratum_target parameter.
17231 (switch_to_thread): Use is_current_thread.
17232 * i386-fbsd-tdep.c: Include "inferior.h".
17233 (i386fbsd_get_thread_local_address): Pass down target.
17234 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17235 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17236 have_inferiors check.
17237 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17238 (inf_ptrace_target::attach): Adjust.
17239 * infcall.c (run_inferior_call): Adjust.
17240 * infcmd.c (run_command_1): Pass target to
17241 scoped_finish_thread_state.
17242 (proceed_thread_callback): Skip inferiors with no execution.
17243 (continue_command): Rename 'all_threads' local to avoid hiding
17244 'all_threads' function. Adjust get_last_target_status call.
17245 (prepare_one_step): Adjust set_running call.
17246 (signal_command): Use user_visible_resume_target. Compare thread
17247 pointers instead of inferior_ptid.
17248 (info_program_command): Adjust to pass down target.
17249 (attach_command): Mark target's 'thread_executing' flag.
17250 (stop_current_target_threads_ns): New, factored out from ...
17251 (interrupt_target_1): ... this. Switch inferior before making
17252 target calls.
17253 * inferior-iter.h
17254 (struct all_inferiors_iterator, struct all_inferiors_range)
17255 (struct all_inferiors_safe_range)
17256 (struct all_non_exited_inferiors_range): Filter on
17257 process_stratum_target too. Remove explicit.
17258 * inferior.c (inferior::inferior): Push dummy target on target
17259 stack.
17260 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17261 Add process_stratum_target parameter, and pass it down.
17262 (have_live_inferiors): Adjust.
17263 (switch_to_inferior_and_push_target): New.
17264 (add_inferior_command, clone_inferior_command): Handle
17265 "-no-connection" parameter. Use
17266 switch_to_inferior_and_push_target.
17267 (_initialize_inferior): Mention "-no-connection" option in
17268 the help of "add-inferior" and "clone-inferior" commands.
17269 * inferior.h: Include "process-stratum-target.h".
17270 (interrupt_target_1): Use bool.
17271 (struct inferior) <push_target, unpush_target, target_is_pushed,
17272 find_target_beneath, top_target, process_target, target_at,
17273 m_stack>: New.
17274 (discard_all_inferiors): Delete.
17275 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17276 (all_inferiors, all_non_exited_inferiors): Add
17277 process_stratum_target parameter.
17278 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17279 (target_last_proc_target): New global.
17280 (follow_fork_inferior): Push target on new inferior. Pass target
17281 to add_thread_silent. Call exec_on_vfork. Handle target's
17282 reference count.
17283 (follow_fork): Adjust get_last_target_status call. Also consider
17284 target.
17285 (follow_exec): Push target on new inferior.
17286 (struct execution_control_state) <target>: New field.
17287 (user_visible_resume_target): New.
17288 (do_target_resume): Call target_async.
17289 (resume_1): Set target's threads_executing flag. Consider resume
17290 target.
17291 (commit_resume_all_targets): New.
17292 (proceed): Also consider resume target. Skip threads of inferiors
17293 with no execution. Commit resumtion in all targets.
17294 (start_remote): Pass current inferior to wait_for_inferior.
17295 (infrun_thread_stop_requested): Consider target as well. Pass
17296 thread_info pointer to clear_inline_frame_state instead of ptid.
17297 (infrun_thread_thread_exit): Consider target as well.
17298 (random_pending_event_thread): New inferior parameter. Use it.
17299 (do_target_wait): Rename to ...
17300 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17301 down.
17302 (threads_are_resumed_pending_p, do_target_wait): New.
17303 (prepare_for_detach): Adjust calls.
17304 (wait_for_inferior): New inferior parameter. Handle it. Use
17305 do_target_wait_1 instead of do_target_wait.
17306 (fetch_inferior_event): Adjust. Switch to representative
17307 inferior. Pass target down.
17308 (set_last_target_status): Add process_stratum_target parameter.
17309 Save target in global.
17310 (get_last_target_status): Add process_stratum_target parameter and
17311 handle it.
17312 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17313 (context_switch): Check inferior_ptid == null_ptid before calling
17314 inferior_thread().
17315 (get_inferior_stop_soon): Pass down target.
17316 (wait_one): Rename to ...
17317 (poll_one_curr_target): ... this.
17318 (struct wait_one_event): New.
17319 (wait_one): New.
17320 (stop_all_threads): Adjust.
17321 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17322 event's target.
17323 (switch_back_to_stepped_thread): Also consider target.
17324 (print_stop_event): Update.
17325 (normal_stop): Update. Also consider the resume target.
17326 * infrun.h (wait_for_inferior): Remove declaration.
17327 (user_visible_resume_target): New declaration.
17328 (get_last_target_status, set_last_target_status): New
17329 process_stratum_target parameter.
17330 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17331 process_stratum_target parameter, and use it.
17332 (clear_inline_frame_state (thread_info*)): New.
17333 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17334 process_stratum_target parameter.
17335 (clear_inline_frame_state (thread_info*)): Declare.
17336 * linux-fork.c (delete_checkpoint_command): Pass target down to
17337 find_thread_ptid.
17338 (checkpoint_command): Adjust.
17339 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17340 instead of just tweaking inferior_ptid.
17341 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17342 (exit_lwp): Pass target down to find_thread_ptid.
17343 (attach_proc_task_lwp_callback): Pass target down to
17344 add_thread/set_running/set_executing.
17345 (linux_nat_target::attach): Pass target down to
17346 thread_change_ptid.
17347 (get_detach_signal): Pass target down to find_thread_ptid.
17348 Consider last target status's target.
17349 (linux_resume_one_lwp_throw, resume_lwp)
17350 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17351 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17352 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17353 (linux_nat_target::async_wait_fd): New.
17354 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17355 target down.
17356 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17357 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17358 * linux-thread-db.c (struct thread_db_info::process_target): New
17359 field.
17360 (add_thread_db_info): Save target.
17361 (get_thread_db_info): New process_stratum_target parameter. Also
17362 match target.
17363 (delete_thread_db_info): New process_stratum_target parameter.
17364 Also match target.
17365 (thread_from_lwp): Adjust to pass down target.
17366 (thread_db_notice_clone): Pass down target.
17367 (check_thread_db_callback): Pass down target.
17368 (try_thread_db_load_1): Always push the thread_db target.
17369 (try_thread_db_load, record_thread): Pass target down.
17370 (thread_db_target::detach): Pass target down. Always unpush the
17371 thread_db target.
17372 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17373 target down. Always unpush the thread_db target.
17374 (find_new_threads_callback, thread_db_find_new_threads_2)
17375 (thread_db_target::update_thread_list): Pass target down.
17376 (thread_db_target::pid_to_str): Pass current inferior down.
17377 (thread_db_target::get_thread_local_address): Pass target down.
17378 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17379 target down.
17380 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17381 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17382 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17383 (procfs_init_inferior): Rename to ...
17384 (procfs_target::procfs_init_inferior): ... this and adjust.
17385 (procfs_target::create_inferior, procfs_notice_thread)
17386 (procfs_do_thread_registers): Adjust.
17387 * ppc-fbsd-tdep.c: Include "inferior.h".
17388 (ppcfbsd_get_thread_local_address): Pass down target.
17389 * proc-service.c (ps_xfer_memory): Switch current inferior and
17390 program space as well.
17391 (get_ps_regcache): Pass target down.
17392 * process-stratum-target.c
17393 (process_stratum_target::thread_address_space)
17394 (process_stratum_target::thread_architecture): Pass target down.
17395 * process-stratum-target.h
17396 (process_stratum_target::threads_executing): New field.
17397 (as_process_stratum_target): New.
17398 * ravenscar-thread.c
17399 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17400 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17401 down.
17402 * record-btrace.c (record_btrace_target::info_record): Adjust.
17403 (record_btrace_target::record_method)
17404 (record_btrace_target::record_is_replaying)
17405 (record_btrace_target::fetch_registers)
17406 (get_thread_current_frame_id, record_btrace_target::resume)
17407 (record_btrace_target::wait, record_btrace_target::stop): Pass
17408 target down.
17409 * record-full.c (record_full_wait_1): Switch to event thread.
17410 Pass target down.
17411 * regcache.c (regcache::regcache)
17412 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17413 process_stratum_target parameter and handle it.
17414 (current_thread_target): New global.
17415 (get_thread_regcache): Add process_stratum_target parameter and
17416 handle it. Switch inferior before calling target method.
17417 (get_thread_regcache): Pass target down.
17418 (get_thread_regcache_for_ptid): Pass target down.
17419 (registers_changed_ptid): Add process_stratum_target parameter and
17420 handle it.
17421 (registers_changed_thread, registers_changed): Pass target down.
17422 (test_get_thread_arch_aspace_regcache): New.
17423 (current_regcache_test): Define a couple local test_target_ops
17424 instances and use them for testing.
17425 (readwrite_regcache): Pass process_stratum_target parameter.
17426 (cooked_read_test, cooked_write_test): Pass mock_target down.
17427 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17428 (get_thread_arch_aspace_regcache): Add process_stratum_target
17429 parameter.
17430 (regcache::target): New method.
17431 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17432 (regcache::registers_changed_ptid): Add process_stratum_target
17433 parameter.
17434 (regcache::m_target): New field.
17435 (registers_changed_ptid): Add process_stratum_target parameter.
17436 * remote.c (remote_state::supports_vCont_probed): New field.
17437 (remote_target::async_wait_fd): New method.
17438 (remote_unpush_and_throw): Add remote_target parameter.
17439 (get_current_remote_target): Adjust.
17440 (remote_target::remote_add_inferior): Push target.
17441 (remote_target::remote_add_thread)
17442 (remote_target::remote_notice_new_inferior)
17443 (get_remote_thread_info): Pass target down.
17444 (remote_target::update_thread_list): Skip threads of inferiors
17445 bound to other targets. (remote_target::close): Don't discard
17446 inferiors. (remote_target::add_current_inferior_and_thread)
17447 (remote_target::process_initial_stop_replies)
17448 (remote_target::start_remote)
17449 (remote_target::remote_serial_quit_handler): Pass down target.
17450 (remote_target::remote_unpush_target): New remote_target
17451 parameter. Unpush the target from all inferiors.
17452 (remote_target::remote_unpush_and_throw): New remote_target
17453 parameter. Pass it down.
17454 (remote_target::open_1): Check whether the current inferior has
17455 execution instead of checking whether any inferior is live. Pass
17456 target down.
17457 (remote_target::remote_detach_1): Pass down target. Use
17458 remote_unpush_target.
17459 (extended_remote_target::attach): Pass down target.
17460 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17461 (remote_target::append_resumption): Pass down target.
17462 (remote_target::append_pending_thread_resumptions)
17463 (remote_target::remote_resume_with_hc, remote_target::resume)
17464 (remote_target::commit_resume): Pass down target.
17465 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17466 (remote_target::interrupt_query)
17467 (remote_target::remove_new_fork_children)
17468 (remote_target::check_pending_events_prevent_wildcard_vcont)
17469 (remote_target::remote_parse_stop_reply)
17470 (remote_target::process_stop_reply): Pass down target.
17471 (first_remote_resumed_thread): New remote_target parameter. Pass
17472 it down.
17473 (remote_target::wait_as): Pass down target.
17474 (unpush_and_perror): New remote_target parameter. Pass it down.
17475 (remote_target::readchar, remote_target::remote_serial_write)
17476 (remote_target::getpkt_or_notif_sane_1)
17477 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17478 down target.
17479 (remote_target::mourn_inferior): Pass down target. Use
17480 remote_unpush_target.
17481 (remote_target::core_of_thread)
17482 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17483 (remote_target::pid_to_exec_file)
17484 (remote_target::thread_handle_to_thread_info): Pass down target.
17485 (remote_target::async_wait_fd): New.
17486 * riscv-fbsd-tdep.c: Include "inferior.h".
17487 (riscv_fbsd_get_thread_local_address): Pass down target.
17488 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17489 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17490 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17491 Adjust.
17492 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17493 * solib-svr4.c (enable_break): Pass down target.
17494 * spu-multiarch.c (parse_spufs_run): Pass down target.
17495 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17496 * target-delegates.c: Regenerate.
17497 * target.c (g_target_stack): Delete.
17498 (current_top_target): Return the current inferior's top target.
17499 (target_has_execution_1): Refer to the passed-in inferior's top
17500 target.
17501 (target_supports_terminal_ours): Check whether the initial
17502 inferior was already created.
17503 (decref_target): New.
17504 (target_stack::push): Incref/decref the target.
17505 (push_target, push_target, unpush_target): Adjust.
17506 (target_stack::unpush): Defref target.
17507 (target_is_pushed): Return bool. Adjust to refer to the current
17508 inferior's target stack.
17509 (dispose_inferior): Delete, and inline parts ...
17510 (target_preopen): ... here. Only dispose of the current inferior.
17511 (target_detach): Hold strong target reference while detaching.
17512 Pass target down.
17513 (target_thread_name): Add assertion.
17514 (target_resume): Pass down target.
17515 (target_ops::beneath, find_target_at): Adjust to refer to the
17516 current inferior's target stack.
17517 (get_dummy_target): New.
17518 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17519 has a thread running.
17520 (initialize_targets): Rename to ...
17521 (_initialize_target): ... this.
17522 * target.h: Include "gdbsupport/refcounted-object.h".
17523 (struct target_ops): Inherit refcounted_object.
17524 (target_ops::shortname, target_ops::longname): Make const.
17525 (target_ops::async_wait_fd): New method.
17526 (decref_target): Declare.
17527 (struct target_ops_ref_policy): New.
17528 (target_ops_ref): New typedef.
17529 (get_dummy_target): Declare function.
17530 (target_is_pushed): Return bool.
17531 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17532 (all_matching_threads_iterator::all_matching_threads_iterator):
17533 Handle filter target.
17534 * thread-iter.h (struct all_matching_threads_iterator, struct
17535 all_matching_threads_range, class all_non_exited_threads_range):
17536 Filter by target too. Remove explicit.
17537 * thread.c (threads_executing): Delete.
17538 (inferior_thread): Pass down current inferior.
17539 (clear_thread_inferior_resources): Pass down thread pointer
17540 instead of ptid_t.
17541 (add_thread_silent, add_thread_with_info, add_thread): Add
17542 process_stratum_target parameter. Use it for thread and inferior
17543 searches.
17544 (is_current_thread): New.
17545 (thread_info::deletable): Use it.
17546 (find_thread_ptid, thread_count, in_thread_list)
17547 (thread_change_ptid, set_resumed, set_running): New
17548 process_stratum_target parameter. Pass it down.
17549 (set_executing): New process_stratum_target parameter. Pass it
17550 down. Adjust reference to 'threads_executing'.
17551 (threads_are_executing): New process_stratum_target parameter.
17552 Adjust reference to 'threads_executing'.
17553 (set_stop_requested, finish_thread_state): New
17554 process_stratum_target parameter. Pass it down.
17555 (switch_to_thread): Also match inferior.
17556 (switch_to_thread): New process_stratum_target parameter. Pass it
17557 down.
17558 (update_threads_executing): Reimplement.
17559 * top.c (quit_force): Pop targets from all inferior.
17560 (gdb_init): Don't call initialize_targets.
17561 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17562 Declare.
17563 (windows_add_thread, windows_delete_thread): Adjust.
17564 (get_windows_debug_event): Rename to ...
17565 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17566 * tracefile-tfile.c (tfile_target_open): Pass down target.
17567 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17568 Forward declare.
17569 (switch_to_thread): Add process_stratum_target parameter.
17570 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17571 parameter. Use it.
17572 (mi_on_resume): Pass target down.
17573 * nat/fork-inferior.c (startup_inferior): Add
17574 process_stratum_target parameter. Pass it down.
17575 * nat/fork-inferior.h (startup_inferior): Add
17576 process_stratum_target parameter.
17577 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17578
17579 2020-01-10 Pedro Alves <palves@redhat.com>
17580
17581 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17582 directly. Instead find the first thread in the thread list and
17583 use switch_to_thread.
17584
17585 2020-01-10 Pedro Alves <palves@redhat.com>
17586
17587 * remote.c (remote_target::remote_add_inferior): Don't bind a
17588 process to the current inferior if the current inferior is already
17589 bound to a process.
17590
17591 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17592 Pedro Alves <palves@redhat.com>
17593
17594 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17595 If no process is specified, return null_ptid instead of
17596 inferior_ptid.
17597 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17598 TARGET_WAITKIND_SIGNALLED with no pid.
17599
17600 2020-01-10 Pedro Alves <palves@redhat.com>
17601
17602 * remote.c (first_remote_resumed_thread): New.
17603 (remote_target::wait_as): Use it as default event_ptid instead of
17604 inferior_ptid.
17605
17606 2020-01-10 Pedro Alves <palves@redhat.com>
17607
17608 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17609
17610 2020-01-10 Pedro Alves <palves@redhat.com>
17611
17612 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17613 not -1.
17614
17615 2020-01-10 Pedro Alves <palves@redhat.com>
17616
17617 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17618 ptid to get_last_target_status.
17619 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17620 ptid to get_last_target_status.
17621 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17622 get_last_target_status.
17623 (info_program_command): Don't pass a target_waitstatus to
17624 get_last_target_status.
17625 * infrun.c (init_wait_for_inferior): Use
17626 nullify_last_target_wait_ptid.
17627 (get_last_target_status): Handle nullptr arguments.
17628 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17629 (print_stop_event): Don't pass a ptid to get_last_target_status.
17630 (normal_stop): Don't pass a ptid to get_last_target_status.
17631 * infrun.h (get_last_target_status, set_last_target_status): Move
17632 comments here and update.
17633 (nullify_last_target_wait_ptid): Declare.
17634 * linux-fork.c (fork_load_infrun_state): Remove local extern
17635 declaration of nullify_last_target_wait_ptid.
17636 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17637 to get_last_target_status.
17638
17639 2020-01-10 Pedro Alves <palves@redhat.com>
17640
17641 * gdbthread.h (scoped_restore_current_thread)
17642 <dont_restore, restore, m_dont_restore>: Declare.
17643 * thread.c (thread_alive): Add assertion. Return bool.
17644 (switch_to_thread_if_alive): New.
17645 (prune_threads): Switch inferior/thread.
17646 (print_thread_info_1): Switch thread before calling target methods.
17647 (scoped_restore_current_thread::restore): New, factored out from
17648 ...
17649 (scoped_restore_current_thread::~scoped_restore_current_thread):
17650 ... this.
17651 (scoped_restore_current_thread::scoped_restore_current_thread):
17652 Add assertion.
17653 (thread_apply_all_command, thread_select): Use
17654 switch_to_thread_if_alive.
17655 * infrun.c (proceed, restart_threads, handle_signal_stop)
17656 (switch_back_to_stepped_thread): Switch current thread before
17657 calling target methods.
17658
17659 2020-01-10 Pedro Alves <palves@redhat.com>
17660
17661 * inferior.c (switch_to_inferior_no_thread): New function,
17662 factored out from ...
17663 (inferior_command): ... here.
17664 * inferior.h (switch_to_inferior_no_thread): Declare.
17665 * mi/mi-main.c (run_one_inferior): Use
17666 switch_to_inferior_no_thread.
17667
17668 2020-01-10 Pedro Alves <palves@redhat.com>
17669
17670 * infcmd.c (kill_command): Remove dead code.
17671
17672 2020-01-10 Pedro Alves <palves@redhat.com>
17673
17674 * remote.c (remote_target::mourn_inferior): No longer check
17675 whether the target is running.
17676
17677 2020-01-10 Pedro Alves <palves@redhat.com>
17678
17679 * corelow.c (core_target::has_execution): Change parameter type to
17680 inferior pointer.
17681 * inferior.c (number_of_live_inferiors): Use
17682 inferior::has_execution instead of target_has_execution_1.
17683 * inferior.h (inferior::has_execution): New.
17684 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17685 inferior::has_execution instead of target_has_execution_1.
17686 * process-stratum-target.c
17687 (process_stratum_target::has_execution): Change parameter type to
17688 inferior pointer. Check the inferior's PID instead of
17689 inferior_ptid.
17690 * process-stratum-target.h
17691 (process_stratum_target::has_execution): Change parameter type to
17692 inferior pointer.
17693 * record-full.c (record_full_core_target::has_execution): Change
17694 parameter type to inferior pointer.
17695 * target.c (target_has_execution_1): Change parameter type to
17696 inferior pointer.
17697 (target_has_execution_current): Adjust.
17698 * target.h (target_ops::has_execution): Change parameter type to
17699 inferior pointer.
17700 (target_has_execution_1): Change parameter type to inferior
17701 pointer. Change return type to bool.
17702 * tracefile.h (tracefile_target::has_execution): Change parameter
17703 type to inferior pointer.
17704
17705 2020-01-10 Pedro Alves <palves@redhat.com>
17706
17707 * exceptions.c (print_flush): Remove current_top_target() check.
17708
17709 2020-01-10 Pedro Alves <palves@redhat.com>
17710
17711 * remote.c (show_remote_exec_file): Show the current inferior's
17712 exec-file instead of the command variable's value.
17713
17714 2020-01-10 Pedro Alves <palves@redhat.com>
17715
17716 * record-full.c (record_full_resume_ptid): New global.
17717 (record_full_target::resume): Set it.
17718 (record_full_wait_1): Use record_full_resume_ptid instead of
17719 inferior_ptid.
17720
17721 2020-01-10 Pedro Alves <palves@redhat.com>
17722
17723 * gdbthread.h (scoped_restore_current_thread)
17724 <dont_restore, restore, m_dont_restore>: Declare.
17725 * thread.c (thread_alive): Add assertion. Return bool.
17726 (switch_to_thread_if_alive): New.
17727 (prune_threads): Switch inferior/thread.
17728 (print_thread_info_1): Switch thread before calling target methods.
17729 (scoped_restore_current_thread::restore): New, factored out from
17730 ...
17731 (scoped_restore_current_thread::~scoped_restore_current_thread):
17732 ... this.
17733 (scoped_restore_current_thread::scoped_restore_current_thread):
17734 Add assertion.
17735 (thread_apply_all_command, thread_select): Use
17736 switch_to_thread_if_alive.
17737
17738 2020-01-10 George Barrett <bob@bob131.so>
17739
17740 * stap-probe.c (stap_modify_semaphore): Don't check for null
17741 semaphores.
17742 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17743 for null semaphores.
17744
17745 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17746
17747 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17748 all source windows, and maintain horizontal scroll status while
17749 doing so.
17750
17751 2020-01-09 Tom Tromey <tom@tromey.com>
17752
17753 PR tui/18932:
17754 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17755 update_source_window, not print_source_lines.
17756
17757 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17758
17759 * tui/tui.c (tui_enable): Register tui hooks after calling
17760 tui_display_main.
17761
17762 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17763
17764 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17765
17766 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17767
17768 * thread.c (print_thread_info_1): Fix indentation.
17769
17770 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17771
17772 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17773 unique_xmalloc_ptr outside the if to always free the demangled name.
17774
17775 2020-01-08 Tom Tromey <tromey@adacore.com>
17776
17777 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17778 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17779 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17780 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17781 Remove.
17782 (section_offsets): New typedef.
17783 * symtab.c (fixup_section, get_msymbol_address): Update.
17784 * symmisc.c (dump_msymbols): Update.
17785 * symfile.h (relative_addr_info_to_section_offsets)
17786 (symfile_map_offsets_to_segments): Update.
17787 * symfile.c (build_section_addr_info_from_objfile)
17788 (init_objfile_sect_indices): Update.
17789 (struct place_section_arg): Change type of "offsets".
17790 (place_section): Update.
17791 (relative_addr_info_to_section_offsets): Change type of
17792 "section_offsets". Remove "num_sections" parameter.
17793 (default_symfile_offsets, syms_from_objfile_1)
17794 (set_objfile_default_section_offset): Update.
17795 (reread_symbols): No need to preserve section offsets by hand.
17796 (symfile_map_offsets_to_segments): Change type of "offsets".
17797 * stap-probe.c (relocate_address): Update.
17798 * stabsread.h (process_one_symbol): Update.
17799 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17800 (solib_target_relocate_section_addresses): Update.
17801 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17802 Update.
17803 * solib-frv.c (frv_relocate_main_executable): Update.
17804 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17805 * solib-aix.c (solib_aix_get_section_offsets): Change return
17806 type.
17807 (solib_aix_solib_create_inferior_hook): Update.
17808 * remote.c (remote_target::get_offsets): Update.
17809 * psymtab.c (find_pc_sect_psymtab): Update.
17810 * psympriv.h (struct partial_symbol) <address, text_low,
17811 text_high>: Update.
17812 * objfiles.h (obj_section_offset): Update.
17813 (struct objfile) <section_offsets>: Change type.
17814 <num_sections>: Remove.
17815 (objfile_relocate): Update.
17816 * objfiles.c (entry_point_address_query): Update
17817 (relocate_one_symbol): Change type of "section_offsets".
17818 (objfile_relocate1, objfile_relocate1): Change type of
17819 "new_offsets".
17820 (objfile_rebase1): Update.
17821 * mipsread.c (mipscoff_symfile_read): Update.
17822 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17823 parameter.
17824 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17825 (parse_external, psymtab_to_symtab_1): Update.
17826 * machoread.c (macho_symfile_offsets): Update.
17827 * ia64-tdep.c (ia64_find_unwind_table): Update.
17828 * hppa-tdep.c (read_unwind_info): Update.
17829 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17830 * dwarf2read.c (create_addrmap_from_index)
17831 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17832 (process_psymtab_comp_unit_reader, add_partial_symbol)
17833 (add_partial_subprogram, process_full_comp_unit)
17834 (read_file_scope, read_func_scope, read_lexical_block_scope)
17835 (read_call_site_scope, dwarf2_rnglists_process)
17836 (dwarf2_ranges_process, dwarf2_ranges_read)
17837 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17838 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17839 Update.
17840 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17841 Update.
17842 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17843 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17844 (process_one_symbol): Change type of "section_offsets".
17845 * ctfread.c (get_objfile_text_range): Update.
17846 * coffread.c (coff_symtab_read, enter_linenos)
17847 (process_coff_symbol): Update.
17848 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17849 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17850
17851 2020-01-08 Tom Tromey <tromey@adacore.com>
17852
17853 * dwarf2read.c (parse_macro_definition): Use std::string.
17854 (parse_macro_definition): Likewise.
17855
17856 2020-01-08 Tom Tromey <tromey@adacore.com>
17857
17858 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17859 (ATTR_ALLOC_CHUNK): Remove.
17860
17861 2020-01-08 Tom Tromey <tromey@adacore.com>
17862
17863 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17864
17865 2020-01-08 Tom Tromey <tromey@adacore.com>
17866
17867 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17868 (dwarf2_compute_name, open_dwo_file): Likewise.
17869 (process_enumeration_scope): Use std::vector.
17870 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17871 (partial_die_info::fixup, dwarf2_start_subfile)
17872 (guess_full_die_structure_name, dwarf2_name): Likewise.
17873 (determine_prefix): Update.
17874 (guess_full_die_structure_name): Make return type const.
17875 (partial_die_full_name): Return unique_xmalloc_ptr.
17876 (DW_FIELD_ALLOC_CHUNK): Remove.
17877
17878 2020-01-07 Tom Tromey <tromey@adacore.com>
17879
17880 PR build/24937:
17881 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17882
17883 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17884
17885 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17886
17887 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17888
17889 * stack.c (print_frame_info): Move disassemble_next_line code
17890 inside source_print block.
17891
17892 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17893
17894 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17895 gdb/signals.h, as we are now using native signal symbols.
17896
17897 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17898
17899 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17900 overflow by an early check of content vs threshold.
17901 * tui/tui-source.c (tui_source_window::line_is_displayed):
17902 Likewise.
17903
17904 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17905
17906 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17907
17908 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17909
17910 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17911 export table if no section contains it's RVA.
17912
17913 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17914
17915 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17916
17917 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17918
17919 * source.c (print_source_lines_base): Set last_line_listed.
17920
17921 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17922
17923 * tui/tui-disasm.c: Remove trailing spaces.
17924
17925 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17926 Pedro Alves <palves@redhat.com>
17927
17928 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17929 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17930 (windows_gdb_signal_to_target): New function, uses the above
17931 enumeration to convert GDB internal signal codes to equivalent
17932 Windows codes.
17933 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17934 * windows-nat.c: Include "gdb_wait.h".
17935 (get_windows_debug_event): Extract the fatal exception from the
17936 exit status and convert to the equivalent Posix signal number.
17937 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17938 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17939 * gdbsupport/gdb_wait.c: New file, implements
17940 windows_status_to_termsig.
17941 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17942 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17943
17944 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17945
17946 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17947 show_layout.
17948
17949 2020-01-05 Luis Machado <luis.machado@linaro.org>
17950
17951 * aarch64-linux-nat.c
17952 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17953 and bfd_mach_aarch64.
17954
17955 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17956
17957 * ui-file.c (stdio_file::can_emit_style_escape)
17958 (tee_file::can_emit_style_escape): Ensure style is used also on
17959 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17960 to gdb_stdout.
17961 * main.c (set_gdb_data_directory): Use file style to output the
17962 warning that the given pathname is not a directory.
17963 * top.c (show_history_filename, gdb_safe_append_history)
17964 (show_gdb_datadir): Use file style.
17965
17966 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17967
17968 * solib-target.c (struct lm_info_target):
17969 Change offsets to be a unique_xmalloc_ptr.
17970 (solib_target_relocate_section_addresses): Update.
17971
17972 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17973
17974 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17975
17976 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17977
17978 * MAINTAINERS (Write After Approval): Add myself.
17979
17980 2020-01-02 Luis Machado <luis.machado@linaro.org>
17981
17982 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17983 Cell BE architecture.
17984 * target.h (struct target_ops) <thread_architecture>: Likewise.
17985
17986 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17987
17988 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17989
17990 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17991
17992 * MAINTAINERS (Write After Approval): Add myself.
17993
17994 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17995
17996 * gdbarch.sh: Update copyright year range of generated files.
17997
17998 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17999
18000 Update copyright year range in all GDB files.
18001
18002 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18003
18004 * copyright.py: Convert to Python 3.
18005
18006 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18007
18008 * copyright.py: Adapt after move of gnulib directory from gdb
18009 directory to toplevel directory.
18010
18011 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18012
18013 * copyright.py (main): Exit if run from the wrong directory.
18014
18015 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18016
18017 * top.c (print_gdb_version): Change copyright year to 2020.
18018
18019 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18020
18021 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18022
18023 For older changes see ChangeLog-2019.
18024 \f
18025 Local Variables:
18026 mode: change-log
18027 left-margin: 8
18028 fill-column: 74
18029 version-control: never
18030 coding: utf-8
18031 End:
This page took 0.388931 seconds and 5 git commands to generate.