[gdb/ada] Handle shrink resize in replace_operator_with_call
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-07 Tom de Vries <tdevries@suse.de>
2
3 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
4
5 2020-12-06 Tom Tromey <tom@tromey.com>
6
7 PR ada/26999
8 * ada-lang.c (replace_operator_with_call): Rewrite.
9
10 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
11
12 PR breakpoints/27009
13 * s390-tdep.h (op_bc): Correct BC opcode value.
14
15 2020-12-06 Joel Brobecker <brobecker@adacore.com>
16
17 * gmp-utils.h (gdb_mpz::safe_export): New private method.
18 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
19 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
20 (gdb_mpz::safe_export): New method.
21 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
22 Update function description.
23 (check_as_integer_raises_out_of_range_error): New function.
24 (gdb_mpz_as_integer_out_of_range): New function.
25 (_initialize_gmp_utils_selftests): Register
26 gdb_mpz_as_integer_out_of_range as a selftest.
27
28 2020-12-05 Joel Brobecker <brobecker@adacore.com>
29
30 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
31 TARGET_CHAR_BIT.
32 (gdb_mpz::write): Likewise.
33
34 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
35
36 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
37 number of displaced step buffers.
38
39 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
40
41 * displaced-stepping.h (struct displaced_step_buffer): Rename
42 to...
43 (struct displaced_step_buffers): ... this.
44 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
45 <struct displaced_step_buffer>: New inner class.
46 <m_buffers>: New.
47 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
48 to...
49 (displaced_step_buffers::prepare): ... this, adjust for multiple
50 buffers.
51 (displaced_step_buffer::finish): Rename to...
52 (displaced_step_buffers::finish): ... this, adjust for multiple
53 buffers.
54 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
55 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
56 adjust for multiple buffers.
57 (displaced_step_buffer::restore_in_ptid): Rename to...
58 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
59 multiple buffers.
60 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
61 for num_disp_step_buffers.
62 * linux-tdep.c (struct linux_gdbarch_data)
63 <num_disp_step_buffers>: New field.
64 (struct linux_info) <disp_step_buf>: Rename to...
65 <disp_step_bufs>: ... this, change type to
66 displaced_step_buffers.
67 (linux_displaced_step_prepare): Use
68 linux_gdbarch_data::num_disp_step_buffers to create that number
69 of buffers.
70 (linux_displaced_step_finish): Adjust.
71 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
72 (linux_displaced_step_restore_all_in_ptid): Adjust.
73 (linux_init_abi): Change supports_displaced_step parameter for
74 num_disp_step_buffers, save it in linux_gdbarch_data.
75 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
76 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
77 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
78 supports_displaced_step parameter for num_disp_step_buffers.
79 (amd64_linux_init_abi): Adjust.
80 (amd64_x32_linux_init_abi): Adjust.
81 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
82 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
83 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
84 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
85 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
86 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
87 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
88 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
89 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
90 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
91 * m68k-linux-tdep.c (m68k_linux_init_abi):
92 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
93 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
94 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
95 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
96 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
97 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
98 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
99 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
100 Change type to displaced_step_buffers.
101 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
102 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
103 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
104 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
105 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
106 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
107 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
108
109 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
110
111 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
112 obkstack.
113 (_initialize_linux_tdep): Register pre-init gdb data instead of
114 post-init.
115
116 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
117
118 * displaced-stepping.h (struct
119 displaced_step_copy_insn_closure): Adjust comments.
120 (struct displaced_step_inferior_state) <step_thread,
121 step_gdbarch, step_closure, step_original, step_copy,
122 step_saved_copy>: Remove fields.
123 (struct displaced_step_thread_state): New.
124 (struct displaced_step_buffer): New.
125 * displaced-stepping.c (displaced_step_buffer::prepare): New.
126 (write_memory_ptid): Move from infrun.c.
127 (displaced_step_instruction_executed_successfully): New,
128 factored out of displaced_step_finish.
129 (displaced_step_buffer::finish): New.
130 (displaced_step_buffer::copy_insn_closure_by_addr): New.
131 (displaced_step_buffer::restore_in_ptid): New.
132 * gdbarch.sh (displaced_step_location): Remove.
133 (displaced_step_prepare, displaced_step_finish,
134 displaced_step_copy_insn_closure_by_addr,
135 displaced_step_restore_all_in_ptid): New.
136 * gdbarch.c: Re-generate.
137 * gdbarch.h: Re-generate.
138 * gdbthread.h (class thread_info) <displaced_step_state>: New
139 field.
140 (thread_step_over_chain_remove): New declaration.
141 (thread_step_over_chain_next): New declaration.
142 (thread_step_over_chain_length): New declaration.
143 * thread.c (thread_step_over_chain_remove): Make non-static.
144 (thread_step_over_chain_next): New.
145 (global_thread_step_over_chain_next): Use
146 thread_step_over_chain_next.
147 (thread_step_over_chain_length): New.
148 (global_thread_step_over_chain_enqueue): Add debug print.
149 (global_thread_step_over_chain_remove): Add debug print.
150 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
151 Remove.
152 * infrun.c (get_displaced_stepping_state): New.
153 (displaced_step_in_progress_any_inferior): Remove.
154 (displaced_step_in_progress_thread): Adjust.
155 (displaced_step_in_progress): Adjust.
156 (displaced_step_in_progress_any_thread): New.
157 (get_displaced_step_copy_insn_closure_by_addr): Remove.
158 (gdbarch_supports_displaced_stepping): Use
159 gdbarch_displaced_step_prepare_p.
160 (displaced_step_reset): Change parameter from inferior to
161 thread.
162 (displaced_step_prepare_throw): Implement using
163 gdbarch_displaced_step_prepare.
164 (write_memory_ptid): Move to displaced-step.c.
165 (displaced_step_restore): Remove.
166 (displaced_step_finish): Implement using
167 gdbarch_displaced_step_finish.
168 (start_step_over): Allow starting more than one displaced step.
169 (prepare_for_detach): Handle possibly multiple threads doing
170 displaced steps.
171 (handle_inferior_event): Handle possibility that fork event
172 happens while another thread displaced steps.
173 * linux-tdep.h (linux_displaced_step_prepare): New.
174 (linux_displaced_step_finish): New.
175 (linux_displaced_step_copy_insn_closure_by_addr): New.
176 (linux_displaced_step_restore_all_in_ptid): New.
177 (linux_init_abi): Add supports_displaced_step parameter.
178 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
179 (linux_displaced_step_prepare): New.
180 (linux_displaced_step_finish): New.
181 (linux_displaced_step_copy_insn_closure_by_addr): New.
182 (linux_displaced_step_restore_all_in_ptid): New.
183 (linux_init_abi): Add supports_displaced_step parameter,
184 register displaced step methods if true.
185 (_initialize_linux_tdep): Register inferior_execd observer.
186 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
187 supports_displaced_step parameter, adjust call to
188 linux_init_abi. Remove call to
189 set_gdbarch_displaced_step_location.
190 (amd64_linux_init_abi): Adjust call to
191 amd64_linux_init_abi_common.
192 (amd64_x32_linux_init_abi): Likewise.
193 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
194 linux_init_abi. Remove call to
195 set_gdbarch_displaced_step_location.
196 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
197 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
198 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
199 linux_init_abi.
200 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
201 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
202 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
203 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
204 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
205 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
206 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
207 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
208 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
209 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
210 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
211 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
212 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
213 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
214 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
215 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
216 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
217 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
218 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
219 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
220 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
221 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
222 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
223 linux_init_abi. Remove call to
224 set_gdbarch_displaced_step_location.
225 * arm-tdep.c (arm_pc_is_thumb): Call
226 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
227 get_displaced_step_copy_insn_closure_by_addr.
228 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
229 clear gdbarch methods.
230 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
231 (get_ppc_per_inferior): New function.
232 (ppc_displaced_step_prepare): New function.
233 (ppc_displaced_step_finish): New function.
234 (ppc_displaced_step_restore_all_in_ptid): New function.
235 (rs6000_gdbarch_init): Register new gdbarch methods.
236 * s390-tdep.c (s390_gdbarch_init): Don't call
237 set_gdbarch_displaced_step_location, set new gdbarch methods.
238
239 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
240
241 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
242 * aarch64-tdep.h: Include displaced-stepping.h.
243 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
244 Move here.
245 (displaced_step_copy_insn_closure_up): Move here.
246 (struct buf_displaced_step_copy_insn_closure): Move here.
247 (struct displaced_step_inferior_state): Move here.
248 (debug_displaced): Move here.
249 (displaced_debug_printf_1): Move here.
250 (displaced_debug_printf): Move here.
251 * displaced-stepping.c: New file.
252 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
253 * gdbarch.h: Re-generate.
254 * inferior.h: Include displaced-stepping.h.
255 * infrun.h (debug_displaced): Move to displaced-stepping.h.
256 (displaced_debug_printf_1): Likewise.
257 (displaced_debug_printf): Likewise.
258 (struct displaced_step_copy_insn_closure): Likewise.
259 (displaced_step_copy_insn_closure_up): Likewise.
260 (struct buf_displaced_step_copy_insn_closure): Likewise.
261 (struct displaced_step_inferior_state): Likewise.
262 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
263 (displaced_debug_printf_1): Likewise.
264 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
265 Likewise.
266 (_initialize_infrun): Don't register "set/show debug displaced".
267
268 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
269
270 * linux-tdep.c (get_linux_inferior_data): Add inferior
271 parameter.
272 (linux_vsyscall_range): Pass current inferior.
273
274 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
275
276 * infrun.c (displaced_step_prepare_throw): Change return type to
277 displaced_step_prepare_status.
278 (displaced_step_prepare): Likewise.
279 (displaced_step_finish): Change return type to
280 displaced_step_finish_status.
281 (resume_1): Adjust.
282 (stop_all_threads): Adjust.
283 * displaced-stepping.h: New file.
284
285 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
286
287 * infrun.c (displaced_step_fixup): Rename to...
288 (displaced_step_finish): ... this, update all callers.
289
290 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
291
292 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
293 (get_displaced_step_copy_insn_closure_by_addr): ... this.
294 Update all users.
295 (displaced_step_closure): Rename to...
296 (displaced_step_copy_insn_closure): ... this. Update all users.
297 (displaced_step_closure_up): Rename to...
298 (displaced_step_copy_insn_closure_up). ... this. Update all
299 users.
300 (buf_displaced_step_closure): Rename to...
301 (buf_displaced_step_copy_insn_closure): ... this. Update all
302 users.
303 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
304 (get_displaced_step_copy_insn_closure_by_addr): ... this.
305 Update all users.
306 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
307 (aarch64_displaced_step_copy_insn_closure): ... this. Update
308 all users.
309 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
310 (amd64_displaced_step_copy_insn_closure): ... this. Update all
311 users.
312 * arm-tdep.h (arm_displaced_step_closure): Rename to...
313 (arm_displaced_step_copy_insn_closure): ... this. Update all
314 users.
315 * i386-tdep.h (i386_displaced_step_closure): Rename to...
316 (i386_displaced_step_copy_insn_closure): ... this. Update all
317 users.
318 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
319 (ppc_displaced_step_copy_insn_closure): ... this. Update all
320 users.
321 * s390-tdep.c (s390_displaced_step_closure): Rename to...
322 (s390_displaced_step_copy_insn_closure): ... this. Update all
323 users.
324 * gdbarch.h: Re-generate.
325 * gdbarch.c: Re-generate.
326
327 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
328
329 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
330 (global_thread_step_over_chain_enqueue): ... this. Update all
331 users.
332 (thread_step_over_chain_remove): Rename to...
333 (global_thread_step_over_chain_remove): ... this. Update all
334 users.
335 (thread_step_over_chain_next): Rename to...
336 (global_thread_step_over_chain_next): ... this. Update all
337 users.
338 * infrun.h (step_over_queue_head): Rename to...
339 (global_thread_step_over_chain_head): ... this. Update all
340 users.
341 * infrun.c (step_over_queue_head): Rename to...
342 (global_thread_step_over_chain_head): ... this. Update all
343 users.
344 * thread.c (step_over_chain_remove): Rename to...
345 (thread_step_over_chain_remove): ... this. Update all users.
346 (thread_step_over_chain_next): Rename to...
347 (global_thread_step_over_chain_next): ... this. Update all
348 users.
349 (thread_step_over_chain_enqueue): Rename to...
350 (global_thread_step_over_chain_enqueue): ... this. Update all
351 users.
352 (thread_step_over_chain_remove): Rename to...
353 (global_thread_step_over_chain_remove): ... this. Update all
354 users.
355
356 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
357
358 * infrun.c (get_displaced_stepping_state): Remove, change
359 callers to access the field directly.
360
361 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
362
363 * infrun.c (handle_inferior_event): Restore displaced step
364 buffer bytes in child process when handling fork, even if fork
365 happened in another thread than the displaced-stepping one.
366
367 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
368
369 * infrun.c (infrun_inferior_execd): New function.
370 (_initialize_infrun): Attach inferior_execd observer.
371
372 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
373
374 * observable.h (inferior_execd): Declare new observable.
375 * observable.c (inferior_execd): Declare new observable.
376 * infrun.c (follow_exec): Notify inferior_execd observer.
377 * jit.c (jit_inferior_created_hook): Make static.
378 (_initialize_jit): Register inferior_execd observer.
379 * jit.h (jit_inferior_created_hook): Remove declaration.
380 * solib.c (_initialize_solib): Register inferior_execd observer.
381
382 2020-12-04 Tom de Vries <tdevries@suse.de>
383
384 PR gdb/27003
385 * completer.c (completion_tracker::build_completion_result): Don't
386 access match_list[0][-1].
387
388 2020-12-04 Tom Tromey <tromey@adacore.com>
389
390 * linespec.c (struct linespec_token): Rename; remove typedef.
391 * guile/scm-block.c (struct block_smob): Remove typedef.
392 (struct block_syms_progress_smob): Likewise.
393 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
394 * guile/scm-symtab.c (symtab_smob): Remove typedef.
395 (struct sal_smob): Remove typedef.
396 * guile/scm-param.c (struct param_smob): Remove typedef.
397 * guile/scm-progspace.c (struct pspace_smob): Rename.
398 * guile/scm-objfile.c (struct objfile_smob): Rename.
399 * guile/scm-iterator.c (struct iterator_smob): Rename.
400 * guile/scm-frame.c (struct frame_smob): Rename.
401 * guile/scm-arch.c (struct arch_smob): Rename.
402 * guile/scm-type.c (struct field_smob): Remove typedef.
403 (struct type_smob): Rename.
404 * guile/scm-cmd.c (struct command_smob): Remove typedef.
405 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
406 * guile/scm-value.c (struct value_smob): Remove typedef.
407 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
408 * guile/guile-internal.h (struct scheme_variable)
409 (struct scheme_function, struct scheme_integer_constant)
410 (struct gdb_smob, struct chained_gdb_smob)
411 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
412 (objfile_smob, pspace_smob, type_smob): Remove typedef.
413 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
414 (struct pretty_printer_worker_smob): Remove typedef.
415 * guile/scm-exception.c (struct exception_smob): Remove typedef.
416 * python/py-block.c (struct block_object): Remove typedef.
417 (block_syms_iterator_object): Update.
418 (set_block): Update.
419 (block_syms_iterator_object): Remove typedef.
420 * python/py-inferior.c (struct membuf_object): Remove typedef.
421 * python/py-symtab.c (struct symtab_object): Remove typedef.
422 (set_symtab): Update.
423 (sal_object): Remove typedef.
424 (set_sal): Update.
425 * python/py-frame.c (frame_object): Remove typedef.
426 * python/py-record-btrace.c (struct btpy_list_object): Remove
427 typedef.
428 * python/py-arch.c (struct arch_object): Remove typedef.
429 * python/py-linetable.c (struct linetable_entry_object)
430 (linetable_object, struct ltpy_iterator_object): Remove typedef.
431 * python/py-events.h (eventregistry_object): Remove typedef.
432 (struct events_object): Remove typedef.
433 * python/python-internal.h (gdbpy_breakpoint_object): Remove
434 typedef.
435 (thread_object): Remove typedef.
436 * python/py-progspace.c (pspace_object): Remove typedef.
437 * python/py-value.c (struct value_object): Remove typedef.
438 * python/py-record.h (recpy_record_object): Remove typedef.
439 (struct recpy_element_object): Remove typedef.
440 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
441 * python/py-objfile.c (objfile_object): Remove typedef.
442 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
443 * python/py-type.c (type_object): Remove typedef.
444 (typy_iterator_object): Update.
445 (set_type): Update.
446 (field_object): Remove typedef.
447 (typy_iterator_object): Remove typedef.
448 * python/py-registers.c (register_descriptor_iterator_object):
449 Remove typedef.
450 (struct register_descriptor_object)
451 (struct reggroup_iterator_object, struct reggroup_object): Remove
452 typedef.
453 * python/py-record.c (recpy_gap_object): Remove typedef.
454 * python/py-symbol.c (symbol_object): Remove typedef.
455 (set_symbol): Update.
456 * python/py-event.h (event_object): Remove typedef.
457 * python/py-param.c (parmpy_object): Remove typedef.
458 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
459 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
460 (unwind_info_object, struct cached_frame_info): Likewise.
461
462 2020-12-04 Tom Tromey <tromey@adacore.com>
463
464 * value.c (value_internal_function_name): Make return type const.
465 * value.h (value_internal_function_name): Make return type const.
466
467 2020-12-04 Luis Machado <luis.machado@linaro.org>
468
469 * aarch64-tdep.c (submask, bit, bits): Remove.
470 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
471 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
472 (aarch64_decode_cb, aarch64_decode_tb)
473 (aarch64_decode_ldr_literal): Use sbits to extract a signed
474 immediate.
475 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
476
477 2020-12-04 Tom de Vries <tdevries@suse.de>
478
479 PR tdep/27007
480 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
481
482 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
483
484 PR gdb/26876
485 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
486 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
487
488 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
489
490 * arch/riscv.c: Include 'rv32e-xregs.c'.
491 (riscv_create_target_description): Update to handle rv32e.
492 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
493 member variable.
494 <operator==>: Update to account for new field.
495 <hash>: Likewise.
496 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
497 * features/riscv/rv32e-xregs.c: Generated.
498 * features/riscv/rv32e-xregs.xml: New file.
499 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
500 file.
501 (riscv_debug_infcall): Likewise.
502 (riscv_debug_unwinder): Likewise.
503 (riscv_debug_gdbarch): Likewise.
504 (enum riscv_register_required_status): Delete.
505 (struct riscv_register_feature): Add constructor, delete default
506 constructor, copy, and assign constructors.
507 (struct riscv_register_feature::register_info) <required>: Delete.
508 <check>: Update comment and arguments.
509 (struct riscv_register_feature) <name>: Change to member function.
510 <prefer_first_name>: Delete.
511 <tdesc_feature>: New member function.
512 <registers>: Rename to...
513 <m_registers>: ...this.
514 <m_feature_name>: New member variable.
515 (riscv_register_feature::register_info::check): Update arguments.
516 (riscv_xreg_feature): Rewrite as class, create a single static
517 instance of the class.
518 (riscv_freg_feature): Likewise.
519 (riscv_virtual_feature): Likewise.
520 (riscv_csr_feature): Likewise.
521 (riscv_create_csr_aliases): Has become a member function inside
522 riscv_csr_feature class.
523 (riscv_abi_embedded): New function definition.
524 (riscv_register_name): Adjust to use new feature objects.
525 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
526 and adjust available argument registers.
527 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
528 (riscv_check_tdesc_feature): Delete.
529 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
530 (riscv_gdbarch_init): Delete target description checking code, and
531 instead call to the new feature objects to perform the checks.
532 Reorder handling of no abi information case, allows small code
533 simplification.
534 (_initialize_riscv_tdep): Remove call, this is now done in the
535 riscv_csr_feature constructor.
536 * riscv-tdep.h (riscv_abi_embedded): Declare.
537
538 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
539
540 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
541 DECLARE_CSR_ALIAS.
542
543 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * riscv-tdep.c (riscv_is_unknown_csr): New function,
546 implementation moved from riscv_register_reggroup_p.
547 (riscv_register_reggroup_p): Update group handling for unknown
548 CSRs.
549
550 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
551
552 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
553 (dwarf2_get_dwz_file): Convert 'filename' to a
554 std::string. Use dwz_search_other_debugdirs to search for DWZ
555 files in the debug-file-directories provided by the user as well.
556
557 2020-12-01 Tom Tromey <tom@tromey.com>
558
559 * parse.c (expr_builder::expr_builder): Initialize expout.
560 (expr_builder::release): Use expression::resize.
561 (expression::expression, expression::~expression)
562 (expression::resize): New methods.
563 (write_exp_elt): Use expression::resize.
564 (prefixify_expression): Update.
565 (increase_expout_size): Use expression::resize.
566 * expression.h (struct expression): Add constructor, destructor.
567 <resize>: New method.
568 (expression_up): Change type.
569
570 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
571 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
572 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
573 set region.
574
575 2020-11-30 Tom de Vries <tdevries@suse.de>
576
577 PR symtab/26905
578 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
579 is_reference parameter.
580 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
581
582 2020-11-30 Tom Tromey <tom@tromey.com>
583
584 * rust-lang.c (rust_op_name): Remove.
585 (exp_descriptor_rust): Update.
586 * parser-defs.h (op_name_standard): Don't declare.
587 (struct exp_descriptor) <op_name>: Remove.
588 * parse.c (exp_descriptor_standard): Update.
589 * opencl-lang.c (exp_descriptor_opencl): Update.
590 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
591 * f-lang.c (op_name_f): Remove.
592 (f_language::exp_descriptor_tab): Update.
593 * expression.h (op_name): Update.
594 * expprint.c (op_name): Rewrite.
595 (op_name_standard): Remove.
596 (dump_raw_expression, dump_subexp): Update.
597 * c-lang.c (exp_descriptor_c): Update.
598 * ax-gdb.c (gen_expr): Update.
599 * ada-lang.c (ada_op_name): Remove.
600 (ada_exp_descriptor): Update.
601
602 2020-11-30 Tom Tromey <tom@tromey.com>
603
604 * eval.c (init_array_element): Remove.
605 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
606
607 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
608
609 PR tui/26973
610 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
611 static locator win info.
612
613 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
614
615 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
616 program.
617
618 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
619
620 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
621 is always initialized.
622
623 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
624 * MAINTAINERS (Write After Approval): Add myself.
625
626 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
627
628 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
629 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
630
631 2020-11-25 Tom Tromey <tom@tromey.com>
632
633 * eval.c (evaluate_subexp_standard): Remove unnecessary
634 variables.
635
636 2020-11-25 Tom Tromey <tom@tromey.com>
637
638 * d-lang.c: Include parser-defs.h.
639 * rust-lang.c: Include parser-defs.h.
640 * c-lang.h: Do not include parser-defs.h.
641
642 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
643
644 * regcache.h (struct cached_reg): Remove typedef.
645
646 2020-11-24 Joel Brobecker <brobecker@adacore.com>
647
648 * README: Fix the URL of the MPFR library.
649
650 2020-11-24 Joel Brobecker <brobecker@adacore.com>
651
652 * README: Document the --with-libgmp-prefix configure option.
653
654 2020-11-24 Joel Brobecker <brobecker@adacore.com>
655
656 * NEWS: Add entry documenting support for DWARF-based fixed
657 point types.
658
659 2020-11-24 Joel Brobecker <brobecker@adacore.com>
660
661 * NEWS: Document that building GDB now requires GMP.
662
663 2020-11-24 Joel Brobecker <brobecker@adacore.com>
664
665 * typeprint.c (print_type_scalar): Add handling of
666 TYPE_CODE_FIXED_POINT.
667
668 2020-11-24 Joel Brobecker <brobecker@adacore.com>
669
670 * valarith.c (fixed_point_binop): Replace the
671 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
672 users accordingly.
673
674 2020-11-24 Joel Brobecker <brobecker@adacore.com>
675
676 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
677 replacing fixed_point_scaling_factor. All callers updated
678 throughout this project.
679 (fixed_point_scaling_factor): Delete declaration.
680 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
681 fixed_point_scaling_factor. Adjust implementation accordingly.
682
683 2020-11-24 Joel Brobecker <brobecker@adacore.com>
684
685 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
686 replacing the fixed_point_type_base_type function. All callers
687 updated throughout this project.
688 (fixed_point_type_base_type): Remove declaration.
689 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
690 fixed_point_type_base_type. Adjust implementation accordingly.
691
692 2020-11-24 Joel Brobecker <brobecker@adacore.com>
693
694 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
695 New methods.
696 (INIT_FIXED_POINT_SPECIFIC): Adjust.
697 (TYPE_FIXED_POINT_INFO): Delete macro.
698 (allocate_fixed_point_type_info): Change return type to void.
699 * gdbtypes.c (copy_type_recursive): Replace the use of
700 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
701 (fixed_point_scaling_factor): Likewise.
702 (allocate_fixed_point_type_info): Change return type to void.
703 Adjust implementation accordingly.
704 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
705 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
706
707 2020-11-24 Joel Brobecker <brobecker@adacore.com>
708
709 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
710 into one single gdb::array_view parameter.
711 (gdb_mpz::write): Likewise.
712 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
713 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
714 into one single gdb::array_view parameter.
715 Adjust implementation accordingly.
716 (gdb_mpz::write): Likewise.
717 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
718 * unittests/gmp-utils-selftests.c: Adapt following changes above.
719 * valarith.c, valops.c, valprint.c, value.c: Likewise.
720
721 2020-11-24 Joel Brobecker <brobecker@adacore.com>
722
723 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
724 Change return type to std::string. Update all callers.
725 * gmp-utils.c (gmp_string_printf): Likewise.
726
727 2020-11-24 Joel Brobecker <brobecker@adacore.com>
728
729 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
730 instead of mpq_set_ui to initialize our GMP rational.
731
732 2020-11-23 Tom de Vries <tdevries@suse.de>
733
734 * debuginfod-support.c (debuginfod_source_query)
735 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
736
737 2020-11-21 Tom Tromey <tom@tromey.com>
738
739 * breakpoint.c (watchpoint_exp_is_const): Return bool.
740
741 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
742
743 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
744 Pass 2.0 to pow.
745 (gdb_mpz_write_all_from_small): Likewise.
746
747 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
748
749 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
750 of abs.
751
752 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
753
754 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
755 ctf_arc_open_by_name.
756
757 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
758
759 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
760 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
761
762 2020-11-20 Pedro Alves <pedro@palves.net>
763
764 * language.c (language_arch_info::lookup_primitive_type): Use
765 gdb::function_view instead of gdb::function.
766 (template language_lookup_primitive_type): Rename to ...
767 (language_lookup_primitive_type_1): ... this, and make static.
768 (language_lookup_primitive_type(const struct language_defn *,
769 struct gdbarch *, const char *): Make non-template.
770 (language_lookup_primitive_type(const struct language_defn *,
771 struct gdbarch *, std::function<bool (struct type *)>): Make
772 non-template and use gdb::function_view.
773 * language.h (language_arch_info::lookup_primitive_type): Use
774 gdb::function_view instead of std::function.
775 (language_lookup_primitive_type): No longer template.
776 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
777 lambda instead of a std::function.
778
779 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
780
781 PR tdep/26916
782 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
783 and STOCFH.
784
785 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
786
787 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
788
789 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
790
791 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
792 in `loop_cb` parameter.
793 * gdbarch.c: Re-generate.
794 * gdbarch.h: Re-generate.
795 * arch-utils.c (default_read_core_file_mappings): Remove `other`
796 parameter.
797 * arch-utils.h (default_read_core_file_mappings): Likewise.
798 * corelow.c (core_target::build_file_mappings): Likewise.
799 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
800 (linux_core_info_proc_mappings): Likewise.
801
802 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
803
804 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
805 * NEWS: Mention new options.
806 * f-array-walker.h: New file.
807 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
808 (repack_array_slices): New static global.
809 (show_repack_array_slices): New function.
810 (fortran_array_slicing_debug): New static global.
811 (show_fortran_array_slicing_debug): New function.
812 (value_f90_subarray): Delete.
813 (skip_undetermined_arglist): Delete.
814 (class fortran_array_repacker_base_impl): New class.
815 (class fortran_lazy_array_repacker_impl): New class.
816 (class fortran_array_repacker_impl): New class.
817 (fortran_value_subarray): Complete rewrite.
818 (set_fortran_list): New static global.
819 (show_fortran_list): Likewise.
820 (_initialize_f_language): Register new commands.
821 (fortran_adjust_dynamic_array_base_address_hack): New function.
822 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
823 Declare.
824 * f-valprint.c: Include 'f-array-walker.h'.
825 (class fortran_array_printer_impl): New class.
826 (f77_print_array_1): Delete.
827 (f77_print_array): Delete.
828 (fortran_print_array): New.
829 (f_value_print_inner): Update to call fortran_print_array.
830 * gdbtypes.c: Include 'f-lang.h'.
831 (resolve_dynamic_type_internal): Call
832 fortran_adjust_dynamic_array_base_address_hack.
833
834 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
835
836 * breakpoint.c (struct watch_options): New struct.
837 (watch_option_defs): New static global.
838 (make_watch_options_def_group): New function.
839 (watch_maybe_just_location): Convert option parsing.
840 (watch_command_completer): New function.
841 (_initialize_breakpoint): Build help text using options mechanism.
842
843 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
844
845 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
846 (watch_command_1): Update parameter types. Convert locals to
847 bool.
848 (watch_command_wrapper): Change parameter type.
849 (watch_maybe_just_location): Change locals to bool.
850 (rwatch_command_wrapper): Update parameter type.
851 (awatch_command_wrapper): Update parameter type.
852 * breakpoint.h (watch_command_wrapper): Change parameter type.
853 (rwatch_command_wrapper): Update parameter type.
854 (awatch_command_wrapper): Update parameter type.
855 * eval.c (fetch_subexp_value): Change parameter type.
856 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
857 'false' not '0'.
858 * value.h (fetch_subexp_value): Change parameter type in
859 declaration.
860
861 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
862
863 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
864 skip_spaces.
865
866 2020-11-18 Keith Seitz <keiths@redhat.com>
867
868 * linux-tdep.c (dump_note_entry_p): Return true instead of
869 checking `filename'.
870
871 2020-11-18 Tom de Vries <tdevries@suse.de>
872
873 * debuginfod-support.c (debuginfod_source_query)
874 (debuginfod_debuginfo_query): Also do early exit if
875 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
876
877 2020-11-18 Tom de Vries <tdevries@suse.de>
878
879 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
880 warning.
881
882 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
883
884 * gdbtypes.h (get_array_bounds): Return bool, adjust some
885 callers. Move doc here.
886 * gdbtypes.c (get_array_bounds): Return bool
887
888 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
889
890 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
891 assert.
892 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
893 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
894 case to the default.
895
896 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
897
898 * printcmd.c: Include 'safe-ctype.c'.
899 (skip_over_slash_fmt): New function.
900 (print_command_completer): Call skip_over_slash_fmt.
901 (display_and_x_command_completer): New function.
902 (_initialize_printcmd): Add command completion for 'x' and
903 'display'.
904
905 2020-11-16 Pedro Alves <pedro@palves.net>
906
907 * frame.c (get_prev_frame): Move get_frame_id call from here ...
908 (get_prev_frame_always_1): ... to here.
909 * inline-frame.c (inline_frame_this_id): Mention
910 get_prev_frame_always_1 in comment.
911
912 2020-11-15 Joel Brobecker <brobecker@adacore.com>
913
914 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
915 handling.
916 (value_less): Add fixed-point handling.
917
918 2020-11-15 Joel Brobecker <brobecker@adacore.com>
919
920 * eval.c (binop_promote): Add fixed-point type handling.
921 * valarith.c (fixed_point_binop): New function.
922 (scalar_binop): Add fixed-point type handling.
923 (value_neg): Add fixed-point type handling.
924 * valops.c (value_cast_to_fixed_point): New function.
925 (value_cast): Add fixed-point type handling.
926
927 2020-11-15 Joel Brobecker <brobecker@adacore.com>
928
929 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
930 range types.
931 * c-typeprint.c (c_type_print_varspec_prefix)
932 (c_type_print_varspec_suffix, c_type_print_base_1): Add
933 TYPE_CODE_FIXED_POINT handling.
934 * p-typeprint.c (pascal_type_print_varspec_prefix)
935 (pascal_type_print_varspec_suffix): Likewise.
936 * typeprint.c (print_type_fixed_point): New function.
937 * typeprint.h (print_type_fixed_point): Add declaration.
938
939 2020-11-15 Joel Brobecker <brobecker@adacore.com>
940
941 * printcmd.c (print_scalar_formatted): Add fixed-point type
942 handling when options->format is set.
943
944 2020-11-15 Joel Brobecker <brobecker@adacore.com>
945
946 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
947 * dwarf2/read.c (get_dwarf2_rational_constant)
948 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
949 (has_zero_over_zero_small_attribute): New functions.
950 read_base_type, set_die_type): Add fixed-point type handling.
951 * gdb-gdb.py.in: Add fixed-point type handling.
952 * gdbtypes.c: #include "gmp-utils.h".
953 (create_range_type, set_type_code): Add fixed-point type handling.
954 (init_fixed_point_type): New function.
955 (is_integral_type, is_scalar_type): Add fixed-point type handling.
956 (print_fixed_point_type_info): New function.
957 (recursive_dump_type, copy_type_recursive): Add fixed-point type
958 handling.
959 (fixed_point_type_storage): New typedef.
960 (fixed_point_objfile_key): New static global.
961 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
962 (fixed_point_type_base_type, fixed_point_scaling_factor): New
963 functions.
964 * gdbtypes.h: #include "gmp-utils.h".
965 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
966 (union type_specific) <fixed_point_info>: New field.
967 (struct fixed_point_type_info): New struct.
968 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
969 (init_fixed_point_type, is_fixed_point_type)
970 (fixed_point_type_base_type, fixed_point_scaling_factor)
971 (allocate_fixed_point_type_info): Add declarations.
972 * valprint.c (generic_val_print_fixed_point): New function.
973 (generic_value_print): Add fixed-point type handling.
974 * value.c (value_as_address, unpack_long): Add fixed-point type
975 handling.
976
977 2020-11-15 Joel Brobecker <brobecker@adacore.com>
978
979 * utils.h (uinteger_pow): Add declaration.
980 * utils.c (uinteger_pow): Moved here (without changes)...
981 * valarith.c (uinteger_pow): ... from here.
982
983 2020-11-15 Joel Brobecker <brobecker@adacore.com>
984
985 * gmp-utils.h, gmp-utils.c: New file.
986 * unittests/gmp-utils-selftests.c: New file.
987 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
988 unittests/gmp-utils-selftests.c.
989 (COMMON_SFILES) Add gmp-utils.c.
990 (HFILES_NO_SRCDIR): Add gmp-utils.h.
991
992 2020-11-15 Joel Brobecker <brobecker@adacore.com>
993
994 * configure.ac: Generate an error if a usable GMP library
995 could not be found.
996 * configure: Regenerate.
997
998 2020-11-15 Joel Brobecker <brobecker@adacore.com>
999
1000 * configure.ac: Add support for --with-libgmp-prefix.
1001 * Makefile.in (LIBGMP): New variable.
1002 (CLIBS): Include $(LIBGMP).
1003 * configure, config.in: Regenerate
1004
1005 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1006
1007 PR cli/26879
1008 * f-exp.y (COMPLETE): New token.
1009 (exp): Two new rules for tab-completion.
1010 (saw_name_at_eof): New static global.
1011 (last_was_structop): Likewise.
1012 (yylex): Set new variables, and return COMPLETE token at the end
1013 of the input stream in some cases.
1014
1015 2020-11-14 Tom Tromey <tom@tromey.com>
1016
1017 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1018
1019 2020-11-14 Tom Tromey <tom@tromey.com>
1020
1021 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1022
1023 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1024
1025 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1026
1027 2020-11-13 Tom Tromey <tom@tromey.com>
1028
1029 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1030 (convert_escape, parse_one_string): Constify.
1031
1032 2020-11-13 Keith Seitz <keiths@redhat.com>
1033
1034 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1035 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1036 outside of ELF segments" warning for debugin
1037
1038 2020-11-13 Keith Seitz <keiths@redhat.com>
1039
1040 PR gdb/23034
1041 * elfread.c (elf_symfile_segments): Output a BFD file name
1042 for the "Loadable section ... outside of ELF segments" warning.
1043
1044 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1045
1046 PR gdb/26835
1047 * arm-tdep.c (class arm_instruction_reader): New.
1048 (target_arm_instruction_reader): New.
1049 (arm_analyze_prologue): Add instruction reader parameter and use
1050 it. Use arm_expand_immediate.
1051 (class target_arm_instruction_reader): Adjust.
1052 (arm_skip_prologue): Adjust.
1053 (arm_expand_immediate): New.
1054 (arm_scan_prologue): Adjust.
1055 (arm_analyze_prologue_test): New.
1056 (class test_arm_instruction_reader): New.
1057
1058 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1059
1060 * f-lang.c (fortran_argument_convert): Add declaration. Add
1061 header comment, taken from f-lang.h. Make static.
1062 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1063 (fortran_argument_convert): Delete declaration.
1064
1065 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1066
1067 * ada-exp.y (find_primitive_type): Make parameter const.
1068 * ada-lang.c (enum ada_primitive_types): Delete.
1069 (ada_language::language_arch_info): Update.
1070 * c-lang.c (enum c_primitive_types): Delete.
1071 (c_language_arch_info): Update.
1072 (enum cplus_primitive_types): Delete.
1073 (cplus_language::language_arch_info): Update.
1074 * d-lang.c (enum d_primitive_types): Delete.
1075 (d_language::language_arch_info): Update.
1076 * f-lang.c (enum f_primitive_types): Delete.
1077 (f_language::language_arch_info): Update.
1078 * go-lang.c (enum go_primitive_types): Delete.
1079 (go_language::language_arch_info): Update.
1080 * language.c (auto_or_unknown_language::language_arch_info):
1081 Update.
1082 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1083 (language_string_char_type): Add header comment, call function in
1084 language_arch_info.
1085 (language_bool_type): Likewise
1086 (language_arch_info::bool_type): Define.
1087 (language_lookup_primitive_type_1): Delete.
1088 (language_lookup_primitive_type): Rewrite as a templated function
1089 to call function in language_arch_info, then instantiate twice.
1090 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1091 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1092 (language_arch_info::lookup_primitive_type): Define twice with
1093 different signatures.
1094 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1095 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1096 member function in language_arch_info.
1097 * language.h (language_arch_info): Complete rewrite.
1098 (language_lookup_primitive_type): Make templated.
1099 * m2-lang.c (enum m2_primitive_types): Delete.
1100 (m2_language::language_arch_info): Update.
1101 * opencl-lang.c (OCL_P_TYPE): Delete.
1102 (enum opencl_primitive_types): Delete.
1103 (opencl_type_data): Delete.
1104 (builtin_opencl_type): Delete.
1105 (lookup_opencl_vector_type): Update.
1106 (opencl_language::language_arch_info): Update, lots of content
1107 moved from...
1108 (build_opencl_types): ...here. This function is now deleted.
1109 (_initialize_opencl_language): Delete.
1110 * p-lang.c (enum pascal_primitive_types): Delete.
1111 (pascal_language::language_arch_info): Update.
1112 * rust-lang.c (enum rust_primitive_types): Delete.
1113 (rust_language::language_arch_info): Update.
1114
1115 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1116
1117 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1118 dwarf2_queue_guard.
1119
1120 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1121
1122 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1123 comment.
1124
1125 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1126
1127 * dwarf2/read.c (dwarf_read_debug_printf,
1128 dwarf_read_debug_printf_v): New macros, use throughout the file.
1129
1130 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1131
1132 PR tdep/27015
1133 * arc-linux-tdep.c (collect_register): Populate "eret" by
1134 "pc" value from the regcache when asked for "pc" value.
1135
1136 2020-11-12 Tom Tromey <tom@tromey.com>
1137
1138 PR rust/26799:
1139 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1140 exist.
1141
1142 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1143
1144 * features/Makefile (XMLTOC): Add rx.xml.
1145 (FEATURE_XMLFILES): Remove rx.xml.
1146 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1147 * features/rx.c: Regenerate.
1148 * features/rx.xml: Wrap in `target` tags, and reindent.
1149 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1150 structure.
1151 (maint_print_c_tdesc_opt_def): New typedef.
1152 (maint_print_c_tdesc_opt_defs): New static global.
1153 (make_maint_print_c_tdesc_options_def_group): New function.
1154 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1155 print single feature C file for target descriptions containing a
1156 single feature.
1157 (maint_print_c_tdesc_cmd_completer): New function.
1158 (_initialize_target_descriptions): Update call to register command
1159 completer, and include command line flag in help text.
1160
1161 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1162
1163 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1164 numbers.
1165 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1166 enum values.
1167
1168 2020-11-10 Tom Tromey <tom@tromey.com>
1169
1170 * value.h (internalvar_name): Update.
1171 * value.c (internalvar_name): Make return type const.
1172
1173 2020-11-10 Tom Tromey <tom@tromey.com>
1174
1175 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1176 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1177 const.
1178
1179 2020-11-10 Tom Tromey <tom@tromey.com>
1180
1181 * objc-lang.h (value_nsstring): Update.
1182 * objc-lang.c (value_nsstring): Make "ptr" const.
1183
1184 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * expprint.c (print_subexp_funcall): Increment expression position
1187 after reading argument count.
1188 * f-lang.c (print_subexp_f): Skip over opcode before calling
1189 common function.
1190 (dump_subexp_body_f): Likewise.
1191
1192 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1193
1194 PR python/26832
1195 * configure: Regenerate.
1196 * configure.ac: Check for python modules ctypes instead of
1197 itertools.
1198
1199 2020-11-06 Pedro Alves <pedro@palves.net>
1200
1201 * macroexp.c (struct macro_buffer): Split in two classes. Add
1202 uses adjusted.
1203 (struct shared_macro_buffer): New, factored out from struct
1204 macro_buffer.
1205 (struct growable_macro_buffer): New, factored out from struct
1206 macro_buffer.
1207 (set_token, get_comment, get_identifier, get_pp_number)
1208 (get_character_constant, get_string_literal, get_punctuator)
1209 (get_next_token_for_substitution): Constify parameters.
1210 (substitute_args): Constify locals.
1211
1212 2020-11-05 Tom Tromey <tom@tromey.com>
1213
1214 * dwarf2/read.c (read_cutu_die_from_dwo)
1215 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1216 (build_type_psymtabs_1): Update.
1217 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1218 parameter.
1219 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1220 Don't read section. Add assert.
1221
1222 2020-11-04 Tom Tromey <tromey@adacore.com>
1223
1224 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1225
1226 2020-11-04 Tom Tromey <tromey@adacore.com>
1227
1228 * ada-typeprint.c (ada_print_type): Handle __T types.
1229
1230 2020-11-04 Tom Tromey <tromey@adacore.com>
1231
1232 * dwarf2/read.c (add_partial_symbol, process_die):
1233 Handle DW_TAG_array_type.
1234 (is_type_tag_for_partial): Add "lang" parameter.
1235 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1236
1237 2020-11-04 Tom Tromey <tromey@adacore.com>
1238
1239 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1240
1241 2020-11-04 Tom Tromey <tromey@adacore.com>
1242
1243 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1244 array.
1245
1246 2020-11-04 Tom Tromey <tromey@adacore.com>
1247
1248 * gdbtypes.c (update_static_array_size): Handle bit stride.
1249
1250 2020-11-04 Tom Tromey <tromey@adacore.com>
1251
1252 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1253
1254 2020-11-04 Tom Tromey <tromey@adacore.com>
1255
1256 * ada-lang.c (ada_is_any_packed_array_type): New function.
1257 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1258
1259 2020-11-04 Tom Tromey <tromey@adacore.com>
1260
1261 * dwarf2/read.c (recognize_bound_expression)
1262 (quirk_ada_thick_pointer): New functions.
1263 (read_array_type): Call quirk_ada_thick_pointer.
1264 (set_die_type): Add "skip_data_location" parameter.
1265 (quirk_ada_thick_pointer): New function.
1266 (process_structure_scope): Call quirk_ada_thick_pointer.
1267 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1268 (decode_packed_array_bitsize): Handle thick pointers without
1269 parallel types.
1270 (ada_is_gnat_encoded_packed_array_type): Rename from
1271 ada_is_packed_array_type.
1272 (ada_is_constrained_packed_array_type): Update.
1273 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1274 (ada_value_print_1): Use ada_get_decoded_value.
1275
1276 2020-11-04 Tom Tromey <tromey@adacore.com>
1277
1278 * ada-lang.c (recursively_update_array_bitsize): New function.
1279 (decode_constrained_packed_array_type): Call it.
1280
1281 2020-11-04 Tom Tromey <tromey@adacore.com>
1282
1283 * ada-lang.c (to_fixed_array_type): Error if
1284 decode_constrained_packed_array_type returns NULL.
1285
1286 2020-11-04 Tom Tromey <tromey@adacore.com>
1287
1288 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1289
1290 2020-11-02 Tom Tromey <tromey@adacore.com>
1291
1292 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1293 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1294 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1295 * amd64-ravenscar-thread.c: New file.
1296 * amd64-ravenscar-thread.h: New file.
1297 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1298 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1299
1300 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1301
1302 * main.c (execute_cmdargs): New function.
1303 (captured_main_1): Make use of execute_cmdargs.
1304
1305 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1306
1307 * NEWS: Mention changes to config file search path.
1308 * main.c
1309
1310 2020-11-02 Tom Tromey <tromey@adacore.com>
1311
1312 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1313 (python_GdbModuleDef): Move earlier. Now static.
1314 (do_start_initialization): Consolidate some IS_PY3K blocks.
1315
1316 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1317
1318 * aarch64-linux-tdep.c: Fix indentation.
1319 * aarch64-ravenscar-thread.c: Fix indentation.
1320 * aarch64-tdep.c: Fix indentation.
1321 * aarch64-tdep.h: Fix indentation.
1322 * ada-lang.c: Fix indentation.
1323 * ada-lang.h: Fix indentation.
1324 * ada-tasks.c: Fix indentation.
1325 * ada-typeprint.c: Fix indentation.
1326 * ada-valprint.c: Fix indentation.
1327 * ada-varobj.c: Fix indentation.
1328 * addrmap.c: Fix indentation.
1329 * addrmap.h: Fix indentation.
1330 * agent.c: Fix indentation.
1331 * aix-thread.c: Fix indentation.
1332 * alpha-bsd-nat.c: Fix indentation.
1333 * alpha-linux-tdep.c: Fix indentation.
1334 * alpha-mdebug-tdep.c: Fix indentation.
1335 * alpha-nbsd-tdep.c: Fix indentation.
1336 * alpha-obsd-tdep.c: Fix indentation.
1337 * alpha-tdep.c: Fix indentation.
1338 * amd64-bsd-nat.c: Fix indentation.
1339 * amd64-darwin-tdep.c: Fix indentation.
1340 * amd64-linux-nat.c: Fix indentation.
1341 * amd64-linux-tdep.c: Fix indentation.
1342 * amd64-nat.c: Fix indentation.
1343 * amd64-obsd-tdep.c: Fix indentation.
1344 * amd64-tdep.c: Fix indentation.
1345 * amd64-windows-tdep.c: Fix indentation.
1346 * annotate.c: Fix indentation.
1347 * arc-tdep.c: Fix indentation.
1348 * arch-utils.c: Fix indentation.
1349 * arch/arm-get-next-pcs.c: Fix indentation.
1350 * arch/arm.c: Fix indentation.
1351 * arm-linux-nat.c: Fix indentation.
1352 * arm-linux-tdep.c: Fix indentation.
1353 * arm-nbsd-tdep.c: Fix indentation.
1354 * arm-pikeos-tdep.c: Fix indentation.
1355 * arm-tdep.c: Fix indentation.
1356 * arm-tdep.h: Fix indentation.
1357 * arm-wince-tdep.c: Fix indentation.
1358 * auto-load.c: Fix indentation.
1359 * auxv.c: Fix indentation.
1360 * avr-tdep.c: Fix indentation.
1361 * ax-gdb.c: Fix indentation.
1362 * ax-general.c: Fix indentation.
1363 * bfin-linux-tdep.c: Fix indentation.
1364 * block.c: Fix indentation.
1365 * block.h: Fix indentation.
1366 * blockframe.c: Fix indentation.
1367 * bpf-tdep.c: Fix indentation.
1368 * break-catch-sig.c: Fix indentation.
1369 * break-catch-syscall.c: Fix indentation.
1370 * break-catch-throw.c: Fix indentation.
1371 * breakpoint.c: Fix indentation.
1372 * breakpoint.h: Fix indentation.
1373 * bsd-uthread.c: Fix indentation.
1374 * btrace.c: Fix indentation.
1375 * build-id.c: Fix indentation.
1376 * buildsym-legacy.h: Fix indentation.
1377 * buildsym.c: Fix indentation.
1378 * c-typeprint.c: Fix indentation.
1379 * c-valprint.c: Fix indentation.
1380 * c-varobj.c: Fix indentation.
1381 * charset.c: Fix indentation.
1382 * cli/cli-cmds.c: Fix indentation.
1383 * cli/cli-decode.c: Fix indentation.
1384 * cli/cli-decode.h: Fix indentation.
1385 * cli/cli-script.c: Fix indentation.
1386 * cli/cli-setshow.c: Fix indentation.
1387 * coff-pe-read.c: Fix indentation.
1388 * coffread.c: Fix indentation.
1389 * compile/compile-cplus-types.c: Fix indentation.
1390 * compile/compile-object-load.c: Fix indentation.
1391 * compile/compile-object-run.c: Fix indentation.
1392 * completer.c: Fix indentation.
1393 * corefile.c: Fix indentation.
1394 * corelow.c: Fix indentation.
1395 * cp-abi.h: Fix indentation.
1396 * cp-namespace.c: Fix indentation.
1397 * cp-support.c: Fix indentation.
1398 * cp-valprint.c: Fix indentation.
1399 * cris-linux-tdep.c: Fix indentation.
1400 * cris-tdep.c: Fix indentation.
1401 * darwin-nat-info.c: Fix indentation.
1402 * darwin-nat.c: Fix indentation.
1403 * darwin-nat.h: Fix indentation.
1404 * dbxread.c: Fix indentation.
1405 * dcache.c: Fix indentation.
1406 * disasm.c: Fix indentation.
1407 * dtrace-probe.c: Fix indentation.
1408 * dwarf2/abbrev.c: Fix indentation.
1409 * dwarf2/attribute.c: Fix indentation.
1410 * dwarf2/expr.c: Fix indentation.
1411 * dwarf2/frame.c: Fix indentation.
1412 * dwarf2/index-cache.c: Fix indentation.
1413 * dwarf2/index-write.c: Fix indentation.
1414 * dwarf2/line-header.c: Fix indentation.
1415 * dwarf2/loc.c: Fix indentation.
1416 * dwarf2/macro.c: Fix indentation.
1417 * dwarf2/read.c: Fix indentation.
1418 * dwarf2/read.h: Fix indentation.
1419 * elfread.c: Fix indentation.
1420 * eval.c: Fix indentation.
1421 * event-top.c: Fix indentation.
1422 * exec.c: Fix indentation.
1423 * exec.h: Fix indentation.
1424 * expprint.c: Fix indentation.
1425 * f-lang.c: Fix indentation.
1426 * f-typeprint.c: Fix indentation.
1427 * f-valprint.c: Fix indentation.
1428 * fbsd-nat.c: Fix indentation.
1429 * fbsd-tdep.c: Fix indentation.
1430 * findvar.c: Fix indentation.
1431 * fork-child.c: Fix indentation.
1432 * frame-unwind.c: Fix indentation.
1433 * frame-unwind.h: Fix indentation.
1434 * frame.c: Fix indentation.
1435 * frv-linux-tdep.c: Fix indentation.
1436 * frv-tdep.c: Fix indentation.
1437 * frv-tdep.h: Fix indentation.
1438 * ft32-tdep.c: Fix indentation.
1439 * gcore.c: Fix indentation.
1440 * gdb_bfd.c: Fix indentation.
1441 * gdbarch.sh: Fix indentation.
1442 * gdbarch.c: Re-generate
1443 * gdbarch.h: Re-generate.
1444 * gdbcore.h: Fix indentation.
1445 * gdbthread.h: Fix indentation.
1446 * gdbtypes.c: Fix indentation.
1447 * gdbtypes.h: Fix indentation.
1448 * glibc-tdep.c: Fix indentation.
1449 * gnu-nat.c: Fix indentation.
1450 * gnu-nat.h: Fix indentation.
1451 * gnu-v2-abi.c: Fix indentation.
1452 * gnu-v3-abi.c: Fix indentation.
1453 * go32-nat.c: Fix indentation.
1454 * guile/guile-internal.h: Fix indentation.
1455 * guile/scm-cmd.c: Fix indentation.
1456 * guile/scm-frame.c: Fix indentation.
1457 * guile/scm-iterator.c: Fix indentation.
1458 * guile/scm-math.c: Fix indentation.
1459 * guile/scm-ports.c: Fix indentation.
1460 * guile/scm-pretty-print.c: Fix indentation.
1461 * guile/scm-value.c: Fix indentation.
1462 * h8300-tdep.c: Fix indentation.
1463 * hppa-linux-nat.c: Fix indentation.
1464 * hppa-linux-tdep.c: Fix indentation.
1465 * hppa-nbsd-nat.c: Fix indentation.
1466 * hppa-nbsd-tdep.c: Fix indentation.
1467 * hppa-obsd-nat.c: Fix indentation.
1468 * hppa-tdep.c: Fix indentation.
1469 * hppa-tdep.h: Fix indentation.
1470 * i386-bsd-nat.c: Fix indentation.
1471 * i386-darwin-nat.c: Fix indentation.
1472 * i386-darwin-tdep.c: Fix indentation.
1473 * i386-dicos-tdep.c: Fix indentation.
1474 * i386-gnu-nat.c: Fix indentation.
1475 * i386-linux-nat.c: Fix indentation.
1476 * i386-linux-tdep.c: Fix indentation.
1477 * i386-nto-tdep.c: Fix indentation.
1478 * i386-obsd-tdep.c: Fix indentation.
1479 * i386-sol2-nat.c: Fix indentation.
1480 * i386-tdep.c: Fix indentation.
1481 * i386-tdep.h: Fix indentation.
1482 * i386-windows-tdep.c: Fix indentation.
1483 * i387-tdep.c: Fix indentation.
1484 * i387-tdep.h: Fix indentation.
1485 * ia64-libunwind-tdep.c: Fix indentation.
1486 * ia64-libunwind-tdep.h: Fix indentation.
1487 * ia64-linux-nat.c: Fix indentation.
1488 * ia64-linux-tdep.c: Fix indentation.
1489 * ia64-tdep.c: Fix indentation.
1490 * ia64-tdep.h: Fix indentation.
1491 * ia64-vms-tdep.c: Fix indentation.
1492 * infcall.c: Fix indentation.
1493 * infcmd.c: Fix indentation.
1494 * inferior.c: Fix indentation.
1495 * infrun.c: Fix indentation.
1496 * iq2000-tdep.c: Fix indentation.
1497 * language.c: Fix indentation.
1498 * linespec.c: Fix indentation.
1499 * linux-fork.c: Fix indentation.
1500 * linux-nat.c: Fix indentation.
1501 * linux-tdep.c: Fix indentation.
1502 * linux-thread-db.c: Fix indentation.
1503 * lm32-tdep.c: Fix indentation.
1504 * m2-lang.c: Fix indentation.
1505 * m2-typeprint.c: Fix indentation.
1506 * m2-valprint.c: Fix indentation.
1507 * m32c-tdep.c: Fix indentation.
1508 * m32r-linux-tdep.c: Fix indentation.
1509 * m32r-tdep.c: Fix indentation.
1510 * m68hc11-tdep.c: Fix indentation.
1511 * m68k-bsd-nat.c: Fix indentation.
1512 * m68k-linux-nat.c: Fix indentation.
1513 * m68k-linux-tdep.c: Fix indentation.
1514 * m68k-tdep.c: Fix indentation.
1515 * machoread.c: Fix indentation.
1516 * macrocmd.c: Fix indentation.
1517 * macroexp.c: Fix indentation.
1518 * macroscope.c: Fix indentation.
1519 * macrotab.c: Fix indentation.
1520 * macrotab.h: Fix indentation.
1521 * main.c: Fix indentation.
1522 * mdebugread.c: Fix indentation.
1523 * mep-tdep.c: Fix indentation.
1524 * mi/mi-cmd-catch.c: Fix indentation.
1525 * mi/mi-cmd-disas.c: Fix indentation.
1526 * mi/mi-cmd-env.c: Fix indentation.
1527 * mi/mi-cmd-stack.c: Fix indentation.
1528 * mi/mi-cmd-var.c: Fix indentation.
1529 * mi/mi-cmds.c: Fix indentation.
1530 * mi/mi-main.c: Fix indentation.
1531 * mi/mi-parse.c: Fix indentation.
1532 * microblaze-tdep.c: Fix indentation.
1533 * minidebug.c: Fix indentation.
1534 * minsyms.c: Fix indentation.
1535 * mips-linux-nat.c: Fix indentation.
1536 * mips-linux-tdep.c: Fix indentation.
1537 * mips-nbsd-tdep.c: Fix indentation.
1538 * mips-tdep.c: Fix indentation.
1539 * mn10300-linux-tdep.c: Fix indentation.
1540 * mn10300-tdep.c: Fix indentation.
1541 * moxie-tdep.c: Fix indentation.
1542 * msp430-tdep.c: Fix indentation.
1543 * namespace.h: Fix indentation.
1544 * nat/fork-inferior.c: Fix indentation.
1545 * nat/gdb_ptrace.h: Fix indentation.
1546 * nat/linux-namespaces.c: Fix indentation.
1547 * nat/linux-osdata.c: Fix indentation.
1548 * nat/netbsd-nat.c: Fix indentation.
1549 * nat/x86-dregs.c: Fix indentation.
1550 * nbsd-nat.c: Fix indentation.
1551 * nbsd-tdep.c: Fix indentation.
1552 * nios2-linux-tdep.c: Fix indentation.
1553 * nios2-tdep.c: Fix indentation.
1554 * nto-procfs.c: Fix indentation.
1555 * nto-tdep.c: Fix indentation.
1556 * objfiles.c: Fix indentation.
1557 * objfiles.h: Fix indentation.
1558 * opencl-lang.c: Fix indentation.
1559 * or1k-tdep.c: Fix indentation.
1560 * osabi.c: Fix indentation.
1561 * osabi.h: Fix indentation.
1562 * osdata.c: Fix indentation.
1563 * p-lang.c: Fix indentation.
1564 * p-typeprint.c: Fix indentation.
1565 * p-valprint.c: Fix indentation.
1566 * parse.c: Fix indentation.
1567 * ppc-linux-nat.c: Fix indentation.
1568 * ppc-linux-tdep.c: Fix indentation.
1569 * ppc-nbsd-nat.c: Fix indentation.
1570 * ppc-nbsd-tdep.c: Fix indentation.
1571 * ppc-obsd-nat.c: Fix indentation.
1572 * ppc-ravenscar-thread.c: Fix indentation.
1573 * ppc-sysv-tdep.c: Fix indentation.
1574 * ppc64-tdep.c: Fix indentation.
1575 * printcmd.c: Fix indentation.
1576 * proc-api.c: Fix indentation.
1577 * producer.c: Fix indentation.
1578 * producer.h: Fix indentation.
1579 * prologue-value.c: Fix indentation.
1580 * prologue-value.h: Fix indentation.
1581 * psymtab.c: Fix indentation.
1582 * python/py-arch.c: Fix indentation.
1583 * python/py-bpevent.c: Fix indentation.
1584 * python/py-event.c: Fix indentation.
1585 * python/py-event.h: Fix indentation.
1586 * python/py-finishbreakpoint.c: Fix indentation.
1587 * python/py-frame.c: Fix indentation.
1588 * python/py-framefilter.c: Fix indentation.
1589 * python/py-inferior.c: Fix indentation.
1590 * python/py-infthread.c: Fix indentation.
1591 * python/py-objfile.c: Fix indentation.
1592 * python/py-prettyprint.c: Fix indentation.
1593 * python/py-registers.c: Fix indentation.
1594 * python/py-signalevent.c: Fix indentation.
1595 * python/py-stopevent.c: Fix indentation.
1596 * python/py-stopevent.h: Fix indentation.
1597 * python/py-threadevent.c: Fix indentation.
1598 * python/py-tui.c: Fix indentation.
1599 * python/py-unwind.c: Fix indentation.
1600 * python/py-value.c: Fix indentation.
1601 * python/py-xmethods.c: Fix indentation.
1602 * python/python-internal.h: Fix indentation.
1603 * python/python.c: Fix indentation.
1604 * ravenscar-thread.c: Fix indentation.
1605 * record-btrace.c: Fix indentation.
1606 * record-full.c: Fix indentation.
1607 * record.c: Fix indentation.
1608 * reggroups.c: Fix indentation.
1609 * regset.h: Fix indentation.
1610 * remote-fileio.c: Fix indentation.
1611 * remote.c: Fix indentation.
1612 * reverse.c: Fix indentation.
1613 * riscv-linux-tdep.c: Fix indentation.
1614 * riscv-ravenscar-thread.c: Fix indentation.
1615 * riscv-tdep.c: Fix indentation.
1616 * rl78-tdep.c: Fix indentation.
1617 * rs6000-aix-tdep.c: Fix indentation.
1618 * rs6000-lynx178-tdep.c: Fix indentation.
1619 * rs6000-nat.c: Fix indentation.
1620 * rs6000-tdep.c: Fix indentation.
1621 * rust-lang.c: Fix indentation.
1622 * rx-tdep.c: Fix indentation.
1623 * s12z-tdep.c: Fix indentation.
1624 * s390-linux-tdep.c: Fix indentation.
1625 * score-tdep.c: Fix indentation.
1626 * ser-base.c: Fix indentation.
1627 * ser-mingw.c: Fix indentation.
1628 * ser-uds.c: Fix indentation.
1629 * ser-unix.c: Fix indentation.
1630 * serial.c: Fix indentation.
1631 * sh-linux-tdep.c: Fix indentation.
1632 * sh-nbsd-tdep.c: Fix indentation.
1633 * sh-tdep.c: Fix indentation.
1634 * skip.c: Fix indentation.
1635 * sol-thread.c: Fix indentation.
1636 * solib-aix.c: Fix indentation.
1637 * solib-darwin.c: Fix indentation.
1638 * solib-frv.c: Fix indentation.
1639 * solib-svr4.c: Fix indentation.
1640 * solib.c: Fix indentation.
1641 * source.c: Fix indentation.
1642 * sparc-linux-tdep.c: Fix indentation.
1643 * sparc-nbsd-tdep.c: Fix indentation.
1644 * sparc-obsd-tdep.c: Fix indentation.
1645 * sparc-ravenscar-thread.c: Fix indentation.
1646 * sparc-tdep.c: Fix indentation.
1647 * sparc64-linux-tdep.c: Fix indentation.
1648 * sparc64-nbsd-tdep.c: Fix indentation.
1649 * sparc64-obsd-tdep.c: Fix indentation.
1650 * sparc64-tdep.c: Fix indentation.
1651 * stabsread.c: Fix indentation.
1652 * stack.c: Fix indentation.
1653 * stap-probe.c: Fix indentation.
1654 * stubs/ia64vms-stub.c: Fix indentation.
1655 * stubs/m32r-stub.c: Fix indentation.
1656 * stubs/m68k-stub.c: Fix indentation.
1657 * stubs/sh-stub.c: Fix indentation.
1658 * stubs/sparc-stub.c: Fix indentation.
1659 * symfile-mem.c: Fix indentation.
1660 * symfile.c: Fix indentation.
1661 * symfile.h: Fix indentation.
1662 * symmisc.c: Fix indentation.
1663 * symtab.c: Fix indentation.
1664 * symtab.h: Fix indentation.
1665 * target-float.c: Fix indentation.
1666 * target.c: Fix indentation.
1667 * target.h: Fix indentation.
1668 * tic6x-tdep.c: Fix indentation.
1669 * tilegx-linux-tdep.c: Fix indentation.
1670 * tilegx-tdep.c: Fix indentation.
1671 * top.c: Fix indentation.
1672 * tracefile-tfile.c: Fix indentation.
1673 * tracepoint.c: Fix indentation.
1674 * tui/tui-disasm.c: Fix indentation.
1675 * tui/tui-io.c: Fix indentation.
1676 * tui/tui-regs.c: Fix indentation.
1677 * tui/tui-stack.c: Fix indentation.
1678 * tui/tui-win.c: Fix indentation.
1679 * tui/tui-winsource.c: Fix indentation.
1680 * tui/tui.c: Fix indentation.
1681 * typeprint.c: Fix indentation.
1682 * ui-out.h: Fix indentation.
1683 * unittests/copy_bitwise-selftests.c: Fix indentation.
1684 * unittests/memory-map-selftests.c: Fix indentation.
1685 * utils.c: Fix indentation.
1686 * v850-tdep.c: Fix indentation.
1687 * valarith.c: Fix indentation.
1688 * valops.c: Fix indentation.
1689 * valprint.c: Fix indentation.
1690 * valprint.h: Fix indentation.
1691 * value.c: Fix indentation.
1692 * value.h: Fix indentation.
1693 * varobj.c: Fix indentation.
1694 * vax-tdep.c: Fix indentation.
1695 * windows-nat.c: Fix indentation.
1696 * windows-tdep.c: Fix indentation.
1697 * xcoffread.c: Fix indentation.
1698 * xml-syscall.c: Fix indentation.
1699 * xml-tdesc.c: Fix indentation.
1700 * xstormy16-tdep.c: Fix indentation.
1701 * xtensa-config.c: Fix indentation.
1702 * xtensa-linux-nat.c: Fix indentation.
1703 * xtensa-linux-tdep.c: Fix indentation.
1704 * xtensa-tdep.c: Fix indentation.
1705
1706 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1707 Craig Blackmore <craig.blackmore@embecosm.com>
1708
1709 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1710 as an unsigned value.
1711
1712 2020-11-01 Tom Tromey <tom@tromey.com>
1713
1714 * dbxread.c (dbx_end_psymtab): Update.
1715 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1716 (build_type_psymtabs_reader): Update.
1717 * xcoffread.c (xcoff_end_psymtab): Update.
1718 * ctfread.c (scan_partial_symbols): Update.
1719 * psymtab.c (sort_pst_symbols): Remove.
1720 (partial_symtab::end): Rename from end_psymtab_common. Inline
1721 sort_pst_symbols.
1722 * psympriv.h (struct partial_symtab) <end>: New method.
1723 (end_psymtab_common): Don't declare.
1724
1725 2020-11-01 Tom Tromey <tom@tromey.com>
1726
1727 * symmisc.c (count_psyms): New function.
1728 (print_objfile_statistics): Use it.
1729 * psymtab.c (append_psymbol_to_list): Remove.
1730 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1731 * objfiles.h (struct objstats) <n_psyms>: Remove.
1732
1733 2020-11-01 Tom Tromey <tom@tromey.com>
1734
1735 * dbxread.c (dbx_end_psymtab): Update.
1736 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1737 (build_type_psymtabs_reader): Update.
1738 * xcoffread.c (xcoff_end_psymtab): Update.
1739 * ctfread.c (scan_partial_symbols): Update.
1740 * psympriv.h (end_psymtab_common): Update.
1741 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1742 (sort_pst_symbols): Likewise.
1743
1744 2020-11-01 Tom Tromey <tom@tromey.com>
1745
1746 * dbxread.c (dbx_symfile_read): Update.
1747 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1748 * xcoffread.c (xcoff_initial_scan): Update.
1749 * psympriv.h (init_psymbol_list): Don't declare.
1750 * psymtab.c (init_psymbol_list): Remove.
1751
1752 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1753
1754 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1755 gnat_encoded_fixed_type_info. Update all callers.
1756
1757 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1758
1759 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1760 line too long.
1761
1762 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1763
1764 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1765 cast_from_fixed. Update all callers.
1766 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1767 Update all callers.
1768 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1769 Update all callers.
1770 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1771 ada_scaling_factor.
1772 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1773 to print_gnat_encoded_fixed_point_type.
1774 * ada-valprint.c: Likewise.
1775
1776 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1777
1778 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1779 (debug_prefixed_printf): Add check of debug_displaced flag.
1780 * linux-nat.c (linux_nat_debug_printf): Add check of
1781 debug_linux_nat flag.
1782
1783 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1784
1785 * infrun.c (infrun_debug_printf_1): Remove.
1786 (displaced_debug_printf_1): Remove.
1787 (stop_all_threads): Use debug_prefixed_printf.
1788 * infrun.h (infrun_debug_printf_1): Remove.
1789 (infrun_debug_printf): Use debug_prefixed_printf.
1790 (displaced_debug_printf_1): Remove.
1791 (displaced_debug_printf): Use debug_prefixed_printf.
1792 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1793 (linux_nat_debug_printf): Use debug_prefixed_printf.
1794
1795 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1796
1797 * configure: Re-generate.
1798 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1799 AC_LANG_PROGRAM.
1800
1801 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1802
1803 * configure: Re-generate.
1804
1805 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1806
1807 * configure: Re-generate.
1808
1809 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1810
1811 * configure: Re-generate.
1812
1813 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1814
1815 * configure: Re-generate.
1816
1817 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1818
1819 * acinclude.m4: Modernize.
1820 * configure: Re-generate.
1821
1822 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1823
1824 * configure.ac: Modernize.
1825 * configure: Re-generate.
1826
1827 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1828
1829 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1830 * configure: Re-generate.
1831 * configure.ac: Remove AM_PROG_CC_STDC.
1832
1833 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1834
1835 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1836 AC_CANONICAL_SYSTEM.
1837 * configure: Re-generate.
1838
1839 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1840
1841 * infrun.h (displaced_debug_printf): New macro. Replace
1842 displaced debug prints throughout to use it.
1843 (displaced_debug_printf_1): New declaration.
1844 (displaced_step_dump_bytes): Return string, remove ui_file
1845 parameter, update all callers.
1846 * infrun.c (displaced_debug_printf_1): New function.
1847 (displaced_step_dump_bytes): Return string, remove ui_file
1848 parameter
1849
1850 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1851
1852 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1853
1854 2020-10-30 Tom Tromey <tromey@adacore.com>
1855
1856 * Makefile.in (stamp-init): Depend on config.status.
1857
1858 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1859
1860 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1861
1862 2020-10-30 Pedro Alves <pedro@palves.net>
1863
1864 * thread.c (lookup_selected_frame): Move ...
1865 * frame.c (lookup_selected_frame): ... here.
1866
1867 2020-10-30 Pedro Alves <pedro@palves.net>
1868
1869 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1870 * frame.c
1871 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1872 Use save_selected_frame. Save language as well.
1873 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1874 Use restore_selected_frame, and restore language as well.
1875 (selected_frame_id, selected_frame_level): New.
1876 (selected_frame): Update comments.
1877 (save_selected_frame, restore_selected_frame): New.
1878 (get_selected_frame): Use lookup_selected_frame.
1879 (get_selected_frame_if_set): Delete.
1880 (select_frame): Record selected_frame_level and selected_frame_id.
1881 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1882 fields.
1883 (get_selected_frame): Make 'message' parameter optional.
1884 (get_selected_frame_if_set): Delete declaration.
1885 (select_frame): Update comments.
1886 (save_selected_frame, restore_selected_frame)
1887 (lookup_selected_frame): Declare.
1888 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1889 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1890 New field.
1891 (save_infcall_control_state): Use save_selected_frame.
1892 (restore_selected_frame): Delete.
1893 (restore_infcall_control_state): Use restore_selected_frame.
1894 * stack.c (select_frame_command_core, frame_command_core): Use
1895 get_selected_frame.
1896 * thread.c (restore_selected_frame): Rename to ...
1897 (lookup_selected_frame): ... this and make extern. Select the
1898 current frame if the frame level is -1.
1899 (scoped_restore_current_thread::restore): Also restore the
1900 language.
1901 (scoped_restore_current_thread::~scoped_restore_current_thread):
1902 Don't try/catch.
1903 (scoped_restore_current_thread::scoped_restore_current_thread):
1904 Save the language as well. Use save_selected_frame.
1905
1906 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1907
1908 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1909 documentation.
1910 * gdbarch.h: Re-generate.
1911
1912 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1913
1914 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1915 parameter.
1916 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1917 Likewise.
1918 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1919 Likewise.
1920 * arch-utils.c (default_displaced_step_hw_singlestep):
1921 Likewise.
1922 * arch-utils.h (default_displaced_step_hw_singlestep):
1923 Likewise.
1924 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1925 Likewise.
1926 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1927 Likewise.
1928 * gdbarch.c: Re-generate.
1929 * gdbarch.h: Re-generate.
1930 * infrun.c (resume_1): Adjust.
1931
1932 2020-10-29 Tom Tromey <tom@tromey.com>
1933
1934 * progspace.c (program_space::~program_space): Don't call
1935 exec_close.
1936
1937 2020-10-29 Tom Tromey <tom@tromey.com>
1938
1939 * exec.c (exec_target::close): Don't change current program
1940 space.
1941
1942 2020-10-29 Tom Tromey <tom@tromey.com>
1943
1944 * symfile.c (add_symbol_file_command): Update.
1945 * exec.c (program_space::add_target_sections): Rename.
1946 * symfile-mem.c (symbol_file_add_from_memory): Update.
1947 * progspace.h (struct program_space) <add_target_sections>:
1948 Declare new overload.
1949 * exec.h (add_target_sections_of_objfile): Don't declare.
1950
1951 2020-10-29 Tom Tromey <tom@tromey.com>
1952
1953 * solib.c (solib_map_sections): Update.
1954 * exec.c (program_space::add_target_sections): Now a method.
1955 (exec_file_attach): Update.
1956 * exec.h (add_target_sections): Don't declare.
1957 * progspace.h (struct program_space) <add_target_sections>:
1958 Declare.
1959
1960 2020-10-29 Tom Tromey <tom@tromey.com>
1961
1962 * progspace.h (struct program_space) <remove_target_sections>:
1963 Declare.
1964 * exec.c (program_space::remove_target_sections): Now a method.
1965 * exec.h (remove_target_sections): Don't declare.
1966
1967 2020-10-29 Tom Tromey <tom@tromey.com>
1968
1969 * inferior.c (delete_inferior): Update.
1970 * progspace.c (program_space::empty): Rename from
1971 program_space_empty_p. Return bool.
1972 * progspace.h (struct program_space) <empty>: New method.
1973 (program_space_empty_p): Don't declare.
1974
1975 2020-10-29 Tom Tromey <tom@tromey.com>
1976
1977 * progspace.c (program_space::~program_space): Don't call
1978 clear_program_space_solib_cache.
1979 (program_space::clear_solib_cache): Rename from
1980 clear_solib_cache.
1981 * solib.c (handle_solib_event): Update.
1982 * progspace.h (struct program_space) <clear_solib_cache>: New
1983 method.
1984 (clear_program_space_solib_cache): Don't declare.
1985
1986 2020-10-29 Tom Tromey <tom@tromey.com>
1987
1988 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1989 * target.c (info_target_command): Update.
1990 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1991 (symbol_file_clear, reread_symbols): Update.
1992 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1993 * stabsread.c (scan_file_globals): Update.
1994 * solib.c (update_solib_list): Update.
1995 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1996 (svr4_fetch_objfile_link_map, enable_break)
1997 (svr4_relocate_main_executable)
1998 (svr4_iterate_over_objfiles_in_search_order): Update.
1999 * solib-frv.c (lm_base, enable_break)
2000 (frv_relocate_main_executable): Update.
2001 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2002 (frv_fetch_objfile_link_map): Update.
2003 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2004 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2005 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2006 * remote.c (remote_target::get_offsets): Update.
2007 (remote_target::start_remote)
2008 (extended_remote_target::post_attach): Update.
2009 * objfiles.c (entry_point_address_query): Update.
2010 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2011 * minsyms.c (get_symbol_leading_char): Update.
2012 * frame.c (inside_main_func): Update.
2013 * progspace.h (symfile_objfile): Remove macro.
2014
2015 2020-10-29 Tom Tromey <tom@tromey.com>
2016
2017 * exec.c (exec_file_attach): Update.
2018 * progspace.c (program_space::exec_close): Update.
2019 * progspace.h (struct program_space) <ebfd>: Now a
2020 gdb_bfd_ref_ptr.
2021 <set_exec_bfd>: Change argument type.
2022 <exec_bfd>: Update.
2023
2024 2020-10-29 Tom Tromey <tom@tromey.com>
2025
2026 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2027 * symfile.c (reread_symbols): Update.
2028 * symfile-mem.c (add_symbol_file_from_memory_command)
2029 (add_vsyscall_page): Update.
2030 * source-cache.c (source_cache::get_plain_source_lines): Update.
2031 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2032 (svr4_current_sos_direct, svr4_exec_displacement)
2033 (svr4_relocate_main_executable): Update.
2034 (svr4_iterate_over_objfiles_in_search_order): Update.
2035 * solib-frv.c (enable_break2, enable_break): Update.
2036 * solib-dsbt.c (lm_base, enable_break): Update.
2037 * solib-darwin.c (find_program_interpreter)
2038 (darwin_solib_create_inferior_hook): Update.
2039 * sol-thread.c (rw_common, ps_pdmodel): Update.
2040 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2041 * remote.c (compare_sections_command)
2042 (remote_target::trace_set_readonly_regions): Update.
2043 * remote-sim.c (get_sim_inferior_data)
2044 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2045 (gdbsim_target_open, gdbsim_target::files_info): Update.
2046 * exec.h (exec_bfd): Remove macro.
2047 * progspace.c (initialize_progspace): Update.
2048 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2049 Update.
2050 * nto-procfs.c (nto_procfs_target::post_attach)
2051 (nto_procfs_target::create_inferior): Update.
2052 * maint.c (maintenance_info_sections): Update.
2053 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2054 Update.
2055 * infcmd.c (post_create_inferior): Update.
2056 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2057 (objfile_find_memory_regions): Update.
2058 * exec.c (validate_exec_file, exec_file_attach)
2059 (exec_read_partial_read_only, print_section_info): Update.
2060 * corelow.c (core_target_open): Update.
2061 * corefile.c (reopen_exec_file, validate_files): Update.
2062 * arm-tdep.c (gdb_print_insn_arm): Update.
2063 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2064 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2065 methods.
2066
2067 2020-10-29 Tom Tromey <tom@tromey.com>
2068
2069 * progspace.h (current_target_sections): Remove macro.
2070 * solib-svr4.c (scan_dyntag): Update.
2071 * solib-dsbt.c (scan_dyntag): Update.
2072 * exec.c (exec_target::close): Update.
2073 (add_target_sections, add_target_sections_of_objfile)
2074 (remove_target_sections, exec_target::get_section_table)
2075 (exec_target::files_info, set_section_command)
2076 (exec_set_section_address, exec_target::has_memory)
2077 (exec_target::has_memory): Update.
2078
2079 2020-10-29 Tom Tromey <tom@tromey.com>
2080
2081 * source-cache.c (source_cache::get_plain_source_lines): Use
2082 current_program_space.
2083 * corefile.c (reopen_exec_file): Use current_program_space.
2084 * exec.c (exec_file_attach): Use current_program_space.
2085 * exec.h (exec_bfd_mtime): Remove.
2086
2087 2020-10-29 Tom Tromey <tom@tromey.com>
2088
2089 * gcore.c (default_gcore_mach): Remove.
2090 (create_gcore_bfd): Update.
2091
2092 2020-10-29 Tom Tromey <tom@tromey.com>
2093
2094 * progspace.c (program_space::exec_close): New method, from
2095 exec_close in exec.c.
2096 * exec.c (exec_close): Move to progspace.c.
2097 (exec_target::close, exec_file_attach): Update.
2098 * progspace.h (struct program_space) <exec_close>: Declare
2099 method.
2100
2101 2020-10-29 Tom Tromey <tom@tromey.com>
2102
2103 * progspace.h (struct program_space) <exec_filename>: Rename from
2104 pspace_exec_filename. Now a unique_xmalloc_ptr.
2105 * inferior.c (print_selected_inferior): Update.
2106 (print_inferior): Update.
2107 * mi/mi-main.c (print_one_inferior): Update.
2108 * exec.h (exec_filename): Remove macro.
2109 * corefile.c (get_exec_file): Update.
2110 * exec.c (exec_close): Update.
2111 (exec_file_attach): Update.
2112 * progspace.c (clone_program_space): Update.
2113 (print_program_space): Update.
2114
2115 2020-10-29 Tom Tromey <tom@tromey.com>
2116
2117 * target-section.h (struct target_section): Add constructor.
2118 * exec.c (build_section_table, add_target_sections_of_objfile):
2119 Update.
2120 * corelow.c (core_target::build_file_mappings): Update.
2121
2122 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2123
2124 PR gdb/19318
2125 * inferior.c (detach_inferior_command): Restore the current thread.
2126 (kill_inferior_command): Ditto.
2127
2128 2020-10-28 Tom de Vries <tdevries@suse.de>
2129
2130 PR symtab/26772
2131 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2132 map, check it in the "best match" loop.
2133
2134 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2135
2136 * m32c-tdep.c: Remove unused includes.
2137
2138 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2139
2140 * xtensa-tdep.c: Remove includes.
2141
2142 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2143
2144 * breakpoint.c (struct condition_command_opts): New struct.
2145 (condition_command_option_defs): New static global.
2146 (make_condition_command_options_def_group): New function.
2147 (condition_completer): Update to consider the '-force' flag.
2148 (condition_command): Use gdb::option for the '-force' flag.
2149
2150 2020-10-27 Tom de Vries <tdevries@suse.de>
2151
2152 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2153 symbols in section check.
2154
2155 2020-10-27 Tom de Vries <tdevries@suse.de>
2156
2157 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2158
2159 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2160
2161 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2162 * breakpoint.c: Update the help text of the 'condition' and 'break'
2163 commands.
2164 (set_breakpoint_condition): Take a new bool parameter
2165 to control whether condition definition should be forced even when
2166 the condition expression is invalid in all of the current locations.
2167 (condition_command): Update the call to 'set_breakpoint_condition'.
2168 (find_condition_and_thread): Take the "-force-condition" flag into
2169 account.
2170 * linespec.c (linespec_keywords): Add "-force-condition" as an
2171 element.
2172 (FORCE_KEYWORD_INDEX): New #define.
2173 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2174 as a keyword.
2175 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2176 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2177 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2178 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2179
2180 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2181
2182 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2183 * breakpoint.c (set_breakpoint_location_condition): New function.
2184 (set_breakpoint_condition): Disable a breakpoint location if parsing
2185 the condition string gives an error.
2186 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2187 (build_target_condition_list): Ditto.
2188 (build_target_command_list): Ditto.
2189 (build_bpstat_chain): Ditto.
2190 (print_one_breakpoint_location): Ditto.
2191 (print_one_breakpoint): Ditto.
2192 (breakpoint_1): Ditto.
2193 (bp_location::bp_location): Ditto.
2194 (locations_are_equal): Ditto.
2195 (update_breakpoint_locations): Ditto.
2196 (enable_disable_bp_num_loc): Ditto.
2197 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2198 (find_condition_and_thread_for_sals): New static function.
2199 (create_breakpoint): Call find_condition_and_thread_for_sals.
2200 (location_to_sals): Call find_condition_and_thread_for_sals instead
2201 of find_condition_and_thread.
2202
2203 2020-10-26 Tom de Vries <tdevries@suse.de>
2204
2205 * dwarf2/read.c (process_full_comp_unit): Call
2206 dwarf2_find_base_address.
2207
2208 2020-10-26 Tom Tromey <tromey@adacore.com>
2209
2210 * gdbtypes.c (create_range_type): Revert previous patch. Add
2211 comment.
2212
2213 2020-10-26 Pedro Alves <pedro@palves.net>
2214
2215 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2216 (my_waitpid): Use gdb::handle_eintr.
2217
2218 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2219
2220 * acinclude.m4: Update ptrace.m4 path.
2221 * ptrace.m4: Moved to gdbsupport.
2222
2223 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2224
2225 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2226 instead of target_gdbarch.
2227
2228 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2229
2230 * jit.c (jit_reader_load_command): Pass current inferior.
2231 (jit_inferior_init): Change parameter type to inferior, use it.
2232 (jit_inferior_created): Remove.
2233 (jit_inferior_created_hook): Pass inferior parameter down.
2234 (_initialize_jit): Use jit_inferior_created_hook instead of
2235 jit_inferior_created.
2236 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2237 * infrun.c (follow_exec): Pass inferior to
2238 jit_inferior_created_hook.
2239
2240 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2241
2242 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2243 parameter and use it.
2244 (thread_db_inferior_created): Pass inferior argument.
2245
2246 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2247
2248 * aix-thread.c (aix_thread_inferior_created): Add inferior
2249 parameter.
2250 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2251 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2252 * jit.c (jit_inferior_created): Likewise.
2253 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2254 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2255 * observable.h (inferior_created): Likewise.
2256 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2257 * symfile-mem.c (add_vsyscall_page): Likewise.
2258 * infcmd.c (post_create_inferior): Pass inferior argument.
2259
2260 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2261
2262 GDB 10.1 released.
2263
2264 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2265
2266 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2267 to ada_check_typedef.
2268
2269 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2270
2271 * f-exp.y (f_parse): Rename to...
2272 (f_language::parser): ...this.
2273 * f-lang.c (f_get_encoding): Rename to...
2274 (f_language::get_encoding): ...this.
2275 (f_op_print_tab): Rename to...
2276 (f_language::op_print_tab): ...this.
2277 (exp_descriptor_f): Rename to...
2278 (f_language::exp_descriptor_tab): ...this.
2279 (class f_language): Moved to f-lang.h.
2280 (f_language::language_arch_info): New function, moved out of class
2281 declaration.
2282 (f_language::search_name_hash): Likewise.
2283 (f_language::lookup_symbol_nonlocal): Likewise.
2284 (f_language::get_symbol_name_matcher_inner): Likewise.
2285 * f-lang.h: Add 'valprint.h' include.
2286 (class f_language): Moved here from f-lang.c.
2287 * f-typeprint.c (f_type_print_args): Delete commented out
2288 declaration.
2289 (f_print_typedef): Rename to...
2290 (f_language::print_typedef): ...this.
2291 (f_print_type): Rename to...
2292 (f_language::print_type): ...this.
2293 (f_type_print_varspec_prefix): Delete declaration and rename to...
2294 (f_language::f_type_print_varspec_prefix): ...this.
2295 (f_type_print_varspec_suffix): Delete declaration and rename to...
2296 (f_language::f_type_print_varspec_suffix): ...this.
2297 (f_type_print_base): Delete declaration and rename to...
2298 (f_language::f_type_print_base): ...this.
2299 * f-valprint.c (f_value_print_inner): Rename to...
2300 (f_language::value_print_inner): ...this.
2301 * parse.c: Delete 'f-lang.h' include.
2302
2303 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2304
2305 * language.h (language_defn::print_type): Add variable names in
2306 declaration, and update header comment.
2307
2308 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2309
2310 * ada-lang.c (ada_language::demangle): Rename to...
2311 (ada_language::demangle_symbol): ...this.
2312 * c-lang.c (cplus_language::demangle): Rename to...
2313 (cplus_language::demangle_symbol): ...this.
2314 * d-lang.c (d_language::demangle): Rename to...
2315 (d_language::demangle_symbol): ...this.
2316 * f-lang.c (f_language::demangle): Rename to...
2317 (f_language::demangle_symbol): ...this.
2318 * go-lang.c (go_language::demangle): Rename to...
2319 (go_language::demangle_symbol): ...this.
2320 * language.c (language_demangle): Update call to demangle_symbol.
2321 (auto_or_unknown_language::demangle): Rename to...
2322 (auto_or_unknown_language::demangle_symbol): ...this.
2323 * language.h (language_defn::demangle): Rename to...
2324 (language_defn::demangle_symbol): ...this.
2325 * objc-lang.c (objc_language::demangle): Rename to...
2326 (objc_language::demangle_symbol): ...this.
2327 * rust-lang.c (rust_language::demangle): Rename to...
2328 (rust_language::demangle_symbol): ...this.
2329
2330 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2331
2332 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2333 (iterate_over_file_blocks): Replace use of macro with the macros
2334 definition.
2335
2336 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2337
2338 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2339 * valprint.c (maybe_print_array_index): Replace use of macro with
2340 the macros definition.
2341
2342 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2343
2344 * ada-lang.c (ada_language::print_array_index): Call value_print
2345 directly.
2346 * language.c (language_defn::print_array_index): Likewise.
2347 * language.h (LA_VALUE_PRINT): Delete.
2348 * valprint.c (value_print): Call value_print on the
2349 current_language directly.
2350
2351 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2352
2353 * language.h (LA_PRINT_TYPEDEF): Delete.
2354 * typeprint.c (typedef_print): Call print_typedef directly on the
2355 current_language object.
2356
2357 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2358
2359 * m2-exp.y (m2_parse): Rename to...
2360 (m2_language::parser): ...this. Update function signature.
2361 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2362 (m2_op_print): Rename to...
2363 (m2_language::op_print_tab): ...this, and make const.
2364 (exp_descriptor_modula2): Rename to...
2365 (m2_language::exp_descriptor_modula2): ...this.
2366 (class m2_language): Move to m2-lang.h.
2367 (m2_language::language_arch_info): New function, moved out of
2368 class declaration.
2369 (m2_language::printchar): New function, body from m2_printchar.
2370 (m2_language::printstr): New function, moved out of class
2371 declaration.
2372 (m2_language::emitchar): Likewise.
2373 * m2-lang.h (m2_parse): Delete declaration.
2374 (m2_print_typedef): Delete declaration.
2375 (m2_value_print_inner): Delete declaration.
2376 (class m2_language): Class declaration moved from m2-lang.c,
2377 larger functions are left in m2-lang.c.
2378 * m2-typeprint.c (m2_print_typedef): Rename to...
2379 (m2_language::print_typedef): ...this, and update function
2380 signature.
2381 * m2-valprint.c (m2_value_print_inner): Rename to...
2382 (m2_language::value_print_inner): ...this, replace use of
2383 LA_PRINT_STRING with a direct call to printstr member function,
2384 and update recursive call.
2385
2386 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * language.c (default_is_string_type_p): Delete, implementation
2389 moved into auto_or_unknown_language::is_string_type_p.
2390 (unk_op_print_tab): Moved into
2391 auto_or_unknown_language::opcode_print_table.
2392 (unknown_language_arch_info): Delete, implementation moved into
2393 auto_or_unknown_language::language_arch_info.
2394 (class auto_or_unknown_language): New class, member functions
2395 copied from unknown_language class, with some updates.
2396 (class unknown_language): Most member functions moved into
2397 auto_or_unknown_language class. Inherit from
2398 auto_or_unknown_language class.
2399 (class auto_language): Inherit from auto_or_unknown_language.
2400 Delete most member functions.
2401
2402 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2403
2404 * stabsread.c (read_member_functions): Remove gdb_assert.
2405
2406 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2407
2408 * gdbtypes.c (init_complex_type): Check target type name.
2409
2410 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 * target-debug.h (target_debug_print_struct_target_ops_p):
2413 Remove.
2414 (target_debug_print_async_callback_ftype_p): Remove.
2415 (target_debug_print_struct_trace_state_variable_p): Remove.
2416 (target_debug_print_struct_traceframe_info_p): Remove.
2417 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2418 (target_debug_print_enum_btrace_format): Remove.
2419 (target_debug_print_enum_info_proc_what): Remove.
2420 (target_debug_print_thread_info_pp): Remove.
2421
2422 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2423
2424 * target.h (struct target_ops) <make_corefile_notes>:
2425 Change return type to unique pointer.
2426 * target.c (dummy_make_corefile_notes): Likewise.
2427 * exec.c (struct exec_target) <make_corefile_notes>:
2428 Likewise.
2429 (exec_target::make_corefile_notes): Likewise.
2430 * procfs.c (class procfs_target) <make_corefile_notes>:
2431 Likewise.
2432 (procfs_do_thread_registers): Adjust to unique pointer.
2433 (struct procfs_corefile_thread_data): Add constructor.
2434 <note_data>: Change type to unique pointer.
2435 (procfs_corefile_thread_callback): Adjust to unique pointer.
2436 (procfs_target::make_corefile_notes): Change return type to
2437 unique pointer.
2438 * target-delegates.c: Re-generate.
2439 * gcore.c (write_gcore_file_1): Adjust.
2440 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2441 New.
2442
2443 2020-10-22 Tom de Vries <tdevries@suse.de>
2444
2445 * block.c (find_block_in_blockvector): Make sure the returned block
2446 contains pc.
2447
2448 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2449
2450 PR gdb/26693
2451 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2452 parameter.
2453 (load_cu): Pass existing CU.
2454 (process_imported_unit_die): Likewise.
2455 (follow_die_offset): Likewise.
2456
2457 2020-10-22 Luis Machado <luis.machado@linaro.org>
2458
2459 * corelow.c (core_target::xfer_partial): Also check for an empty
2460 m_core_unavailable_mappings vector.
2461
2462 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2463
2464 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2465 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2466 * f-exp.y (arglist): Allow for a series of subranges.
2467 (subrange): Add cases for subranges with strides.
2468 * f-lang.c (value_f90_subarray): Catch use of array strides and
2469 throw an error.
2470 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2471
2472 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2473
2474 * expprint.c (print_subexp_standard): Change enum range_type to
2475 range_flag and rename variables to match.
2476 (dump_subexp_body_standard): Likewise.
2477 * expression.h (enum range_type): Rename to...
2478 (enum range_flag): ...this.
2479 (range_types): Rename to...
2480 (range_flags): ...this.
2481 * f-lang.c (value_f90_subarray): Change enum range_type to
2482 range_flag and rename variables to match.
2483 * parse.c (operator_length_standard): Likewise.
2484 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2485 range_type to range_flag.
2486 * rust-lang.c (rust_evaluate_funcall): Likewise.
2487 (rust_range): Likewise.
2488 (rust_compute_range): Likewise.
2489 (rust_subscript): Likewise.
2490
2491 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2492
2493 * expprint.c (print_subexp_standard): Update to reflect changes to
2494 enum range_type.
2495 (dump_subexp_body_standard): Likewise.
2496 * expression.h (enum range_type): Convert to a bit field enum, and
2497 make the enum unsigned.
2498 * f-exp.y (subrange): Update to reflect changes to enum
2499 range_type.
2500 * f-lang.c (value_f90_subarray): Likewise.
2501 * parse.c (operator_length_standard): Likewise.
2502 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2503 * rust-lang.c (rust_range): Likewise.
2504 (rust_compute_range): Likewise.
2505 (rust_subscript): Likewise.
2506
2507 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2508
2509 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2510 (displaced_step_in_progress): Fix comment.
2511
2512 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2513
2514 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2515 * gdbarch.c: Re-generate.
2516 * gdbarch.h: Re-generate.
2517 * gcore.c (write_gcore_file_1): Adjust.
2518 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2519 constructor.
2520 <note_data>: Change type to unique pointer.
2521 <abort_iteration>: Change type to bool.
2522 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2523 (fbsd_collect_thread_registers): Return void, adjust.
2524 (struct fbsd_corefile_thread_data): Add construtor.
2525 <note_data>: Change type to unique pointer.
2526 (fbsd_corefile_thread): Adjust.
2527 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2528 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2529 to unique pointer, adjust.
2530 (struct linux_collect_regset_section_cb_data): Add constructor.
2531 <note_data>: Change type to unique pointer.
2532 <abort_iteration>: Change type to bool.
2533 (linux_collect_thread_registers): Return void, adjust.
2534 (struct linux_corefile_thread_data): Add constructor.
2535 <note_data>: Change type to unique pointer.
2536 (linux_corefile_thread): Adjust.
2537 (linux_make_corefile_notes): Return unique pointer, adjust.
2538
2539 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2540
2541 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2542 * gdbarch.c: Re-generate.
2543 * gdbarch.h: Re-generate.
2544 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2545 bool.
2546 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2547 Likewise.
2548 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2549 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2550 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2551 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2552
2553 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2554
2555 * gdbarch.sh: Make generated predicates return bool.
2556 * gdbarch.c: Re-generate.
2557 * gdbarch.h: Re-generate.
2558
2559 2020-10-20 Tom Tromey <tom@tromey.com>
2560
2561 * varobj-iter.h (struct varobj_item): Remove typedef.
2562
2563 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2564
2565 * infrun.c (currently_stepping): Change int to bool
2566 (maybe_software_singlestep): Likewise.
2567 (show_stop_on_solib_events): Likewise.
2568 (stepping_past_nonsteppable_watchpoint): Likewise.
2569 (displaced_step_in_progress_any_inferior): Likewise.
2570 (displaced_step_in_progress_thread): Likewise.
2571 (keep_going_stepped_thread): Likewise.
2572 (thread_still_needs_step_over): Likewise.
2573 (start_step_over): Likewise.
2574 (do_target_resume): Likewise.
2575 (resume_1): Likewise.
2576 (clear_proceed_status): Likewise.
2577 (thread_still_needs_step_over_bp): Likewise.
2578 (proceed): Likewise.
2579 (switch_back_to_stepped_thread): Likewise.
2580 (adjust_pc_after_break): Likewise.
2581 (stepped_in_from): Likewise.
2582 (handle_stop_requested): Likewise.
2583 (handle_syscall_event): Likewise.
2584 (handle_no_resumed): Likewise.
2585 (handle_inferior_event): Likewise.
2586 (finish_step_over): Likewise.
2587 (handle_signal_stop): Likewise.
2588 (process_event_stop_test): Likewise.
2589
2590 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2591
2592 * infrun.c (get_displaced_stepping_state): Fix comment.
2593
2594 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2595
2596 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2597
2598 2020-10-19 Tom Tromey <tromey@adacore.com>
2599
2600 PR tui/26719
2601 * tui/tui-winsource.h (struct tui_source_window_base)
2602 <refresh_window>: Rename from refresh_pad.
2603 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2604 Rename from refresh_pad.
2605 (tui_source_window_base::show_source_content)
2606 (tui_source_window_base::do_scroll_horizontal): Update.
2607
2608 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2609
2610 * thread.c (_initialize_thread): Fine-tune the help text of
2611 'info threads'.
2612
2613 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2614
2615 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2616
2617 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2618
2619 * breakpoint.c (handle_jit_event): Add an argument, change how
2620 `jit_event_handler` is called.
2621
2622 2020-10-17 Tom Tromey <tom@tromey.com>
2623
2624 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2625 (scan_xcoff_symtab): Update.
2626 * psymtab.h (class psymtab_storage) <global_psymbols,
2627 static_psymbols, current_global_psymbols,
2628 current_static_psymbols>: Remove.
2629 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2630 (match_partial_symbol, lookup_partial_symbol): Update.
2631 (print_partial_symbols): Change parameters.
2632 (dump_psymtab, recursively_search_psymtabs)
2633 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2634 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2635 (concat): Remove.
2636 (end_psymtab_common): Simplify.
2637 (append_psymbol_to_list): Change parameters.
2638 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2639 (init_psymbol_list): Simplify.
2640 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2641 * psympriv.h (struct partial_symtab) <empty>: New method.
2642 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2643 Remove.
2644 <global_psymbols, static_psymbols>: New members.
2645 <add_psymbol>: New methods.
2646 (add_psymbol_to_list): Don't declare.
2647 (psymbol_placement): Move earlier.
2648 * mdebugread.c (parse_partial_symbols): Update.
2649 (handle_psymbol_enumerators): Change parameters.
2650 (mdebug_expand_psymtab): Update.
2651 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2652 (add_partial_symbol): Update.
2653 * dwarf2/index-write.c (write_psymbols): Change parameters.
2654 (write_one_signatured_type): Update.
2655 (recursively_count_psymbols): Update.
2656 (recursively_write_psymbols): Update.
2657 (class debug_names) <recursively_write_psymbols>: Update.
2658 <write_psymbols>: Change parameters.
2659 <write_one_signatured_type>: Update.
2660 * dbxread.c (read_dbx_symtab): Update.
2661 (dbx_end_psymtab): Use partial_symtab::empty.
2662 * ctfread.c (struct ctf_context) <pst>: New member.
2663 (create_partial_symtab): Set it.
2664 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2665 (scan_partial_symbols): Use the psymtab's context. Update.
2666
2667 2020-10-17 Tom Tromey <tom@tromey.com>
2668
2669 * valprint.c (generic_value_print): Remove comment.
2670 * m2-valprint.c (m2_value_print_inner): Remove comment.
2671 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2672 type.
2673
2674 2020-10-17 Tom de Vries <tdevries@suse.de>
2675
2676 PR symtab/26317
2677 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2678 symbol main.
2679
2680 2020-10-14 Tom de Vries <tdevries@suse.de>
2681
2682 PR gdb/26733
2683 * solib.c (solib_contains_address_p): Handle
2684 'solib->sections == nullptr'.
2685
2686 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2687
2688 PR gdb/26642
2689 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2690 target can't do async.
2691 * target.c (target_wait): Assert that we don't pass
2692 TARGET_WNOHANG to a target that can't async.
2693
2694 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2695
2696 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2697 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2698 * alpha-bsd-nat.c: Adjust include.
2699 * alpha-bsd-tdep.h: Adjust comment.
2700 * alpha-nbsd-tdep.c: Rename to ...
2701 * alpha-netbsd-tdep.c: ... this, adjust include.
2702 * amd64-nbsd-nat.c: Rename to ...
2703 * amd64-netbsd-nat.c: ... this, adjust include.
2704 * amd64-nbsd-tdep.c: Rename to ...
2705 * amd64-netbsd-tdep.c: ... this, adjust include.
2706 * amd64-tdep.h: Adjust include.
2707 * arm-nbsd-nat.c: Rename to ...
2708 * arm-netbsd-nat.c: ... this, adjust include.
2709 * arm-nbsd-tdep.c: Rename to ...
2710 * arm-netbsd-tdep.c: ... this, adjust include.
2711 * arm-nbsd-tdep.h: Rename to ...
2712 * arm-netbsd-tdep.h: ... this, adjust include.
2713 * configure.nat: Adjust file lists.
2714 * configure.tgt: Likewise.
2715 * hppa-nbsd-nat.c: Rename to ...
2716 * hppa-netbsd-nat.c: ... this, adjust include.
2717 * hppa-nbsd-tdep.c: Rename to ...
2718 * hppa-netbsd-tdep.c: ... this, adjust include.
2719 * i386-nbsd-nat.c: Rename to ...
2720 * i386-netbsd-nat.c: ... this, adjust include.
2721 * i386-nbsd-tdep.c: Rename to ...
2722 * i386-netbsd-tdep.c: ... this, adjust include.
2723 * m68k-bsd-nat.c: Adjust include.
2724 * mips-nbsd-nat.c: Rename to ...
2725 * mips-netbsd-nat.c: ... this, adjust include.
2726 * mips-nbsd-tdep.c: Rename to ...
2727 * mips-netbsd-tdep.c: ... this, adjust include.
2728 * mips-nbsd-tdep.h: Rename to ...
2729 * mips-netbsd-tdep.h: ... this.
2730 * nbsd-nat.c: Rename to ...
2731 * netbsd-nat.c: ... this, adjust include.
2732 * nbsd-nat.h: Rename to ...
2733 * netbsd-nat.h: ... this, adjust include.
2734 * nbsd-tdep.c: Rename to ...
2735 * netbsd-tdep.c: ... this, adjust include.
2736 * nbsd-tdep.h: Rename to ...
2737 * netbsd-tdep.h: ... this.
2738 * ppc-nbsd-nat.c: Rename to ...
2739 * ppc-netbsd-nat.c: ... this, adjust include.
2740 * ppc-nbsd-tdep.c: Rename to ...
2741 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2742 * ppc-nbsd-tdep.h: Rename to ...
2743 * ppc-netbsd-tdep.h: ... this.
2744 * sh-nbsd-nat.c: Rename to ...
2745 * sh-netbsd-nat.c: ... this, adjust include.
2746 * sh-nbsd-tdep.c: Rename to ...
2747 * sh-netbsd-tdep.c: ... this, adjust include.
2748 * sparc-nbsd-nat.c: Rename to ...
2749 * sparc-netbsd-nat.c: ... this.
2750 * sparc-nbsd-tdep.c: Rename to ...
2751 * sparc-netbsd-tdep.c: ... this, adjust include.
2752 * sparc64-nbsd-nat.c: Rename to ...
2753 * sparc64-netbsd-nat.c: ... this.
2754 * sparc64-nbsd-tdep.c: Rename to ...
2755 * sparc64-netbsd-tdep.c: ... this, adjust include.
2756 * sparc64-tdep.h: Adjust comment.
2757 * vax-bsd-nat.c: Adjust include.
2758 * vax-nbsd-tdep.c: Rename to ...
2759 * vax-netbsd-tdep.c: ... this, adjust include.
2760
2761 2020-10-12 Tom Tromey <tom@tromey.com>
2762
2763 * target.h (struct target_ops) <get_section_table>: Update.
2764 (target_get_section_table): Update.
2765 * target.c (target_get_section_table, target_section_by_addr)
2766 (memory_xfer_partial_1): Update.
2767 * target-section.h (target_section_table): Now an alias.
2768 * target-delegates.c: Rebuild.
2769 * target-debug.h (target_debug_print_target_section_table_p):
2770 Rename from target_debug_print_struct_target_section_table_p.
2771 * symfile.c (build_section_addr_info_from_section_table): Update.
2772 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2773 * solib-svr4.c (scan_dyntag): Update.
2774 * solib-dsbt.c (scan_dyntag): Update.
2775 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2776 Update.
2777 * record-full.c (record_full_core_target::xfer_partial): Update.
2778 * progspace.h (struct program_space) <target_sections>: Update.
2779 * exec.h (print_section_info): Update.
2780 * exec.c (exec_target::close, build_section_table)
2781 (add_target_sections, add_target_sections_of_objfile)
2782 (remove_target_sections, exec_on_vfork)
2783 (section_table_available_memory)
2784 (section_table_xfer_memory_partial)
2785 (exec_target::get_section_table, exec_target::xfer_partial)
2786 (print_section_info, set_section_command)
2787 (exec_set_section_address, exec_target::has_memory): Update.
2788 * corelow.c (core_target::build_file_mappings)
2789 (core_target::xfer_partial, core_target::info_proc_mappings)
2790 (core_target::info_proc_mappings): Update.
2791 * bfd-target.c (class target_bfd): Update
2792
2793 2020-10-12 Tom Tromey <tom@tromey.com>
2794
2795 * progspace.c (program_space::~program_space): Don't call
2796 clear_section_table.
2797 * exec.h (clear_section_table): Don't declare.
2798 * exec.c (exec_target::close): Update.
2799 (clear_section_table): Remove.
2800
2801 2020-10-12 Tom Tromey <tom@tromey.com>
2802
2803 * exec.c (add_target_sections_of_objfile): Simplify.
2804
2805 2020-10-12 Tom Tromey <tom@tromey.com>
2806
2807 * solib.c (solib_map_sections): Update.
2808 * record-full.c (record_full_core_open_1): Update.
2809 * exec.h (build_section_table): Return a target_section_table.
2810 * exec.c (exec_file_attach): Update.
2811 (build_section_table): Return a target_section_table.
2812 * corelow.c (core_target::core_target): Update.
2813 * bfd-target.c (target_bfd::target_bfd): Update.
2814
2815 2020-10-12 Tom Tromey <tom@tromey.com>
2816
2817 * target.c (target_section_by_addr, memory_xfer_partial_1):
2818 Update.
2819 * target-section.h (struct target_section_table): Use
2820 std::vector.
2821 * symfile.h (build_section_addr_info_from_section_table): Take a
2822 target_section_table.
2823 * symfile.c (build_section_addr_info_from_section_table): Take a
2824 target_section_table.
2825 * solist.h (struct so_list) <sections>: Change type.
2826 <sections_end>: Remove.
2827 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2828 (solib_contains_address_p): Update.
2829 * solib-svr4.c (scan_dyntag): Update.
2830 * solib-dsbt.c (scan_dyntag): Update.
2831 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2832 Update.
2833 * record-full.c (record_full_core_start, record_full_core_end):
2834 Remove.
2835 (record_full_core_sections): New global.
2836 (record_full_core_open_1, record_full_core_target::xfer_partial):
2837 Update.
2838 * exec.h (build_section_table, section_table_xfer_memory_partial)
2839 (add_target_sections): Take a target_section_table.
2840 * exec.c (exec_file_attach, clear_section_table): Update.
2841 (resize_section_table): Remove.
2842 (build_section_table, add_target_sections): Take a
2843 target_section_table.
2844 (add_target_sections_of_objfile, remove_target_sections)
2845 (exec_on_vfork): Update.
2846 (section_table_available_memory): Take a target_section_table.
2847 (section_table_read_available_memory): Update.
2848 (section_table_xfer_memory_partial): Take a target_section_table.
2849 (print_section_info, set_section_command)
2850 (exec_set_section_address, exec_target::has_memory): Update.
2851 * corelow.c (class core_target) <m_core_section_table,
2852 m_core_file_mappings>: Remove braces.
2853 <~core_target>: Remove.
2854 (core_target::core_target): Update.
2855 (core_target::~core_target): Remove.
2856 (core_target::build_file_mappings)
2857 (core_target::xfer_memory_via_mappings)
2858 (core_target::xfer_partial, core_target::info_proc_mappings):
2859 Update.
2860 * bfd-target.c (target_bfd::xfer_partial): Update.
2861 (target_bfd::target_bfd): Update.
2862 (target_bfd::~target_bfd): Remove.
2863
2864 2020-10-12 Tom Tromey <tom@tromey.com>
2865
2866 * target.h (struct target_section, struct target_section_table):
2867 Move to target-section.h.
2868 * target-section.h: New file.
2869
2870 2020-10-12 Pedro Alves <pedro@palves.net>
2871
2872 PR exp/26602
2873 * valops.c (struct struct_field_searcher): New.
2874 (update_search_result): Rename to ...
2875 (struct_field_searcher::update_result): ... this. Simplify
2876 prototype. Record all found fields.
2877 (do_search_struct_field): Rename to ...
2878 (struct_field_searcher::search): ... this. Simplify prototype.
2879 Maintain stack of visited baseclass path. Call update_result for
2880 fields too. Keep searching fields in baseclasses instead of
2881 stopping at the first found field.
2882 (search_struct_field): Use struct_field_searcher. When looking
2883 for fields, report ambiguous access attempts.
2884
2885 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2886
2887 * frame.c (inside_main_func): Check full symbols as well as
2888 minimal symbols.
2889
2890 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2891
2892 * ada-lang.c (advance_wild_match): Rewrite the function's
2893 description. Change the type of target0, t0 and t1 to char.
2894
2895 2020-10-09 Tom Tromey <tromey@adacore.com>
2896
2897 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2898
2899 2020-10-09 Tom Tromey <tromey@adacore.com>
2900
2901 * ada-lang.h (ada_encode): Return std::string.
2902 * ada-lang.c (ada_encode_1): Return std::string.
2903 (ada_encode): Likewise.
2904 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2905 Update.
2906 * ada-exp.y (block_lookup, write_var_or_type): Update.
2907
2908 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2909
2910 PR exp/26714
2911 * printcmd.c (print_formatted): Handle void results as
2912 unformatted prints.
2913
2914 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2915
2916 * arch/aarch32.c (aarch32_create_target_description): Release the
2917 target_desc_up as late as possible.
2918 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2919 * arch/amd64.c (amd64_create_target_description): Likewise.
2920 * arch/arc.c (arc_create_target_description): Return a
2921 target_desc_up, don't release it.
2922 * arch/arc.h (arc_create_target_description): Update declaration.
2923 (arc_lookup_target_description): Move target_desc_up into the
2924 cache, and return a borrowed pointer.
2925 * arch/arm.c (arm_create_target_description): Release the
2926 target_desc_up as late as possible.
2927 * arch/i386.c (i386_create_target_description): Likewise.
2928 * arch/riscv.h (riscv_create_target_description): Update
2929 declaration to match definition.
2930 * arch/tic6x.c (tic6x_create_target_description): Release the
2931 target_desc_up as late as possible.
2932
2933 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2934
2935 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2936 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2937
2938 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2939
2940 * source.c (directory_command): Notify observers that "directories"
2941 parameter has changed.
2942
2943 2020-10-08 Tom Tromey <tom@tromey.com>
2944
2945 * cli/cli-cmds.c (print_disassembly): Style function name and
2946 addresses. Add _() wrappers.
2947
2948 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2949
2950 * NEWS: Mention ARC support in GDBserver.
2951
2952 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2953
2954 * arch/aarch32.c (aarch32_create_target_description): Release
2955 unique_ptr returned from allocate_target_description.
2956 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2957 * arch/amd64.c (amd64_create_target_description): Likewise.
2958 * arch/arc.c (arc_create_target_description): Likewise.
2959 * arch/arm.c (arm_create_target_description): Likewise.
2960 * arch/i386.c (i386_create_target_description): Likewise.
2961 * arch/riscv.c (riscv_create_target_description): Update return
2962 type. Handle allocate_target_description returning a unique_ptr.
2963 (riscv_lookup_target_description): Update to handle unique_ptr.
2964 * arch/tic6x.c (tic6x_create_target_description): Release
2965 unique_ptr returned from allocate_target_description.
2966 * features/microblaze-with-stack-protect.c: Regenerate.
2967 * features/microblaze.c: Regenerate.
2968 * features/mips-dsp-linux.c: Regenerate.
2969 * features/mips-linux.c: Regenerate.
2970 * features/mips64-dsp-linux.c: Regenerate.
2971 * features/mips64-linux.c: Regenerate.
2972 * features/nds32.c: Regenerate.
2973 * features/nios2.c: Regenerate.
2974 * features/or1k.c: Regenerate.
2975 * features/rs6000/powerpc-32.c: Regenerate.
2976 * features/rs6000/powerpc-32l.c: Regenerate.
2977 * features/rs6000/powerpc-403.c: Regenerate.
2978 * features/rs6000/powerpc-403gc.c: Regenerate.
2979 * features/rs6000/powerpc-405.c: Regenerate.
2980 * features/rs6000/powerpc-505.c: Regenerate.
2981 * features/rs6000/powerpc-601.c: Regenerate.
2982 * features/rs6000/powerpc-602.c: Regenerate.
2983 * features/rs6000/powerpc-603.c: Regenerate.
2984 * features/rs6000/powerpc-604.c: Regenerate.
2985 * features/rs6000/powerpc-64.c: Regenerate.
2986 * features/rs6000/powerpc-64l.c: Regenerate.
2987 * features/rs6000/powerpc-7400.c: Regenerate.
2988 * features/rs6000/powerpc-750.c: Regenerate.
2989 * features/rs6000/powerpc-860.c: Regenerate.
2990 * features/rs6000/powerpc-altivec32.c: Regenerate.
2991 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2992 * features/rs6000/powerpc-altivec64.c: Regenerate.
2993 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2994 * features/rs6000/powerpc-e500.c: Regenerate.
2995 * features/rs6000/powerpc-e500l.c: Regenerate.
2996 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2997 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2998 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2999 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3000 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3001 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3002 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3003 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3004 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3005 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3006 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3007 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3008 * features/rs6000/powerpc-vsx32.c: Regenerate.
3009 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3010 * features/rs6000/powerpc-vsx64.c: Regenerate.
3011 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3012 * features/rs6000/rs6000.c: Regenerate.
3013 * features/rx.c: Regenerate.
3014 * features/s390-gs-linux64.c: Regenerate.
3015 * features/s390-linux32.c: Regenerate.
3016 * features/s390-linux32v1.c: Regenerate.
3017 * features/s390-linux32v2.c: Regenerate.
3018 * features/s390-linux64.c: Regenerate.
3019 * features/s390-linux64v1.c: Regenerate.
3020 * features/s390-linux64v2.c: Regenerate.
3021 * features/s390-te-linux64.c: Regenerate.
3022 * features/s390-tevx-linux64.c: Regenerate.
3023 * features/s390-vx-linux64.c: Regenerate.
3024 * features/s390x-gs-linux64.c: Regenerate.
3025 * features/s390x-linux64.c: Regenerate.
3026 * features/s390x-linux64v1.c: Regenerate.
3027 * features/s390x-linux64v2.c: Regenerate.
3028 * features/s390x-te-linux64.c: Regenerate.
3029 * features/s390x-tevx-linux64.c: Regenerate.
3030 * features/s390x-vx-linux64.c: Regenerate.
3031 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3032 from allocate_target_description.
3033 * target-descriptions.c (allocate_target_description): Update
3034 return type.
3035 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3036 allocate_target_description.
3037
3038 2020-10-07 Tom Tromey <tromey@adacore.com>
3039
3040 * unittests/search-memory-selftests.c: New file.
3041 * Makefile.in (SELFTESTS_SRCS): Add
3042 unittests/search-memory-selftests.c.
3043
3044 2020-10-07 Tom Tromey <tromey@adacore.com>
3045
3046 PR gdb/16930:
3047 * findcmd.c (_initialize_mem_search): Mention that the range is
3048 inclusive.
3049
3050 2020-10-07 Tom Tromey <tromey@adacore.com>
3051
3052 * target.h (simple_search_memory): Don't declare.
3053 * target.c (simple_search_memory): Move to gdbsupport.
3054 (default_search_memory): Update.
3055 * remote.c (remote_target::search_memory): Update.
3056
3057 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3058
3059 * Makefile.in (COMPILE): Add CXXFLAGS.
3060 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3061 (check-headers): Add CXXFLAGS.
3062
3063 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3064
3065 * arc-linux-tdep.h: New file.
3066 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3067 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3068 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3069 arc_linux_gregset, arc_linux_v2_regset,
3070 arc_linux_iterate_over_regset_sections,
3071 arc_linux_core_read_description): Implement.
3072 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3073 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3074 (arc_gdbarch_features_create): Add.
3075 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3076
3077 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3078
3079 * arch/arc.h: Rename "arc_gdbarch_features" to
3080 "arc_arch_features".
3081 * arc-tdep.h: Likewise.
3082 * arc-tdep.c: Likewise.
3083
3084 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3085
3086 * infcmd.c (attach_command): Remove the redundant call to
3087 `clear_proceed_status`.
3088
3089 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3090
3091 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3092
3093 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3094
3095 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3096 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3097 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3098
3099 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3100
3101 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3102 (_initialize_break_catch_sig): Don't allocate array.
3103
3104 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3105
3106 * symtab.c (find_pc_line): Return unmapped addresses when the
3107 requested address is also unmapped.
3108
3109 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3110
3111 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3112 tui/tui-out.h.
3113
3114 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3115
3116 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3117 type::is_vector instead of TYPE_VECTOR.
3118
3119 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3120
3121 * auto-load.c (auto_load_objfile_script_1): Don't use
3122 debugfile_holder as temporary variable when stripping drive
3123 letter.
3124
3125 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3126
3127 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3128 Add TYPE_CODE_COMPLEX.
3129 (amd64_windows_return_value): Fix types returned via XMM0.
3130
3131 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3132
3133 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3134 AArch64/ARM maintainers.
3135
3136 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3137
3138 * NEWS: Mention set/show debug event-loop.
3139
3140 2020-10-02 Tom Tromey <tromey@adacore.com>
3141
3142 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3143 REG_EXTENDED.
3144
3145 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3146
3147 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3148 * procfs.c (procfs_inferior_created): Remove.
3149 (_initialize_procfs): Don't register procfs_inferior_created.
3150
3151 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3152
3153 * async-event.c (invoke_async_signal_handlers): Add debug
3154 print.
3155 (check_async_event_handlers): Likewise.
3156 * event-top.c (show_debug_event_loop): New function.
3157 (_initialize_event_top): Register "set debug event-loop"
3158 setting.
3159
3160 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3161
3162 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3163 * debug.h: Remove.
3164 * infrun.c: Include gdbsupport/common-debug.h.
3165 * linux-nat.c: Likewise.
3166
3167 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3168
3169 * async-event.h (create_async_signal_handler): Add name
3170 parameter.
3171 (create_async_event_handler): Likewise.
3172 * async-event.c (struct async_signal_handler) <name>: New field.
3173 (struct async_event_handler) <name>: New field.
3174 (create_async_signal_handler): Assign name.
3175 (create_async_event_handler): Assign name.
3176 * event-top.c (async_init_signals): Pass name when creating
3177 handler.
3178 * infrun.c (_initialize_infrun): Likewise.
3179 * record-btrace.c (record_btrace_push_target): Likewise.
3180 * record-full.c (record_full_open): Likewise.
3181 * remote-notif.c (remote_notif_state_allocate): Likewise.
3182 * remote.c (remote_target::open_1): Likewise.
3183 * tui/tui-win.c (tui_initialize_win): Likewise.
3184
3185 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3186
3187 * async-event.c (initialize_async_signal_handlers): Pass name to
3188 add_file_handler
3189 * event-top.c (ui_register_input_event_handler): Likewise.
3190 * linux-nat.c (linux_nat_target::async): Likewise.
3191 * run-on-main-thread.c (_initialize_run_on_main_thread):
3192 Likewise
3193 * ser-base.c (reschedule): Likewise.
3194 (ser_base_async): Likewise.
3195 * tui/tui-io.c: Likewise.
3196 * top.h (struct ui) <num>: New field.
3197 * top.c (highest_ui_num): New variable.
3198 (ui::ui): Initialize num.
3199
3200 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3201
3202 * observable.h <inferior_created>: Remove parameters. Update all
3203 listeners.
3204 * inferior.h (post_create_inferior): Remove target parameter.
3205 Update all callers.
3206
3207 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3208
3209 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3210 and DW_MACRO_undef_strx.
3211 (dwarf_decode_macros): Likewise
3212 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3213 which is the value of DW_AT_str_offsets_base.
3214 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3215 str_offsets_base.
3216
3217 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3218
3219 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3220
3221 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3222
3223 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3224 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3225
3226 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3227
3228 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3229
3230 2020-09-30 Tom de Vries <tdevries@suse.de>
3231
3232 PR symtab/26683
3233 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3234
3235 2020-09-30 Tom Tromey <tromey@adacore.com>
3236
3237 * dwarf2/read.c (handle_variant): Use constant_value.
3238
3239 2020-09-29 Tom Tromey <tom@tromey.com>
3240
3241 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3242 (read_file_scope, dwarf2_get_pc_bounds)
3243 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3244 (read_structure_type, handle_struct_member_die)
3245 (read_enumeration_type, read_array_type, read_set_type)
3246 (read_tag_pointer_type, read_tag_reference_type)
3247 (read_subroutine_type, read_base_type, read_subrange_type)
3248 (read_full_die_1, partial_die_info::read)
3249 (partial_die_info::read, by, new_symbol)
3250 (dwarf2_const_value_data, dwarf2_const_value_attr)
3251 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3252 (prepare_one_comp_unit): Update.
3253 * dwarf2/attribute.h (DW_UNSND): Remove.
3254
3255 2020-09-29 Tom Tromey <tom@tromey.com>
3256
3257 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3258 (read_subroutine_type, partial_die_info::read)
3259 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3260 (dwarf2_add_member_fn): Update.
3261 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3262 * dwarf2/attribute.c (attribute::as_boolean): New method.
3263
3264 2020-09-29 Tom Tromey <tom@tromey.com>
3265
3266 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3267 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3268 method.
3269 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3270
3271 2020-09-29 Tom Tromey <tom@tromey.com>
3272
3273 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3274 the attribute's form.
3275
3276 2020-09-29 Tom Tromey <tom@tromey.com>
3277
3278 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3279 (dwarf2_add_member_fn): Update.
3280 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3281 * dwarf2/attribute.c (attribute::defaulted): New method, from
3282 is_valid_DW_AT_defaulted.
3283
3284 2020-09-29 Tom Tromey <tom@tromey.com>
3285
3286 * dwarf2/read.c (dw2_get_file_names_reader)
3287 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3288 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3289 (dwarf2_symbol_mark_computed): Use as_unsigned.
3290 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3291 method.
3292 <form_is_section_offset>: Update comment.
3293
3294 2020-09-29 Tom Tromey <tom@tromey.com>
3295
3296 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3297 dwarf2_default_access_attribute. Look up attribute.
3298 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3299 Update.
3300
3301 2020-09-29 Tom Tromey <tom@tromey.com>
3302
3303 * dwarf2/read.c (skip_one_die): Update.
3304 (read_full_die_1): Change how reprocessing is done.
3305 (partial_die_info::read): Update.
3306 (read_attribute_value): Remove need_reprocess parameter.
3307 (read_attribute): Likewise.
3308 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3309 New method.
3310
3311 2020-09-29 Tom Tromey <tom@tromey.com>
3312
3313 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3314 (dwarf2_const_value_attr, dump_die_shallow)
3315 (dwarf2_fetch_constant_bytes): Update.
3316 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3317 comment.
3318 <set_address>: New method.
3319 (DW_ADDR): Remove.
3320 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3321 (attribute::as_string, attribute::as_address): Add assert.
3322
3323 2020-09-29 Tom Tromey <tom@tromey.com>
3324
3325 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3326 (read_attribute_reprocess, read_attribute_value): Update.
3327 (read_attribute): Clear requires_reprocessing.
3328 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3329 form_requires_reprocessing>: New methods.
3330 <string_init>: Clear requires_reprocessing.
3331 <set_unsigned_reprocess>: New method.
3332 <name>: Shrink by one bit.
3333 <requires_reprocessing>: New member.
3334 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3335 method.
3336
3337 2020-09-29 Tom Tromey <tom@tromey.com>
3338
3339 * dwarf2/read.c (read_attribute_value): Update.
3340 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3341 set_unsigned>: New methods.
3342 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3343
3344 2020-09-29 Tom Tromey <tom@tromey.com>
3345
3346 * dwarf2/read.c (get_alignment, read_array_order)
3347 (read_attribute_value, dwarf2_const_value_attr)
3348 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3349 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3350 New methods.
3351 (DW_SND): Remove.
3352
3353 2020-09-29 Tom Tromey <tom@tromey.com>
3354
3355 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3356 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3357 Update.
3358 * dwarf2/attribute.h (struct attribute) <as_signature,
3359 set_signature>: New methods.
3360 (DW_SIGNATURE): Remove.
3361
3362 2020-09-29 Tom Tromey <tom@tromey.com>
3363
3364 * dwarf2/read.c (read_call_site_scope)
3365 (handle_data_member_location, dwarf2_add_member_fn)
3366 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3367 (partial_die_info::read, read_attribute_value)
3368 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3369 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3370 (dwarf2_symbol_mark_computed): Update.
3371 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3372 methods.
3373 (DW_BLOCK): Remove.
3374 * dwarf2/attribute.c (attribute::form_is_block): Add
3375 DW_FORM_data16.
3376
3377 2020-09-29 Tom Tromey <tom@tromey.com>
3378
3379 * dwarf2/read.c (read_cutu_die_from_dwo)
3380 (read_attribute_reprocess, read_attribute_value, read_attribute)
3381 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3382 (dwarf2_fetch_constant_bytes): Update.
3383 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3384 <set_string_noncanonical, set_string_canonical>: New methods.
3385 <string_is_canonical>: Update comment.
3386 <canonical_string_p>: Add assert.
3387 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3388 * dwarf2/attribute.c (attribute::form_is_string): New method.
3389 (attribute::string): Use it.
3390
3391 2020-09-29 Tom Tromey <tom@tromey.com>
3392
3393 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3394 (dump_die_shallow): Use canonical_string_p.
3395 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3396 method.
3397
3398 2020-09-29 Tom Tromey <tom@tromey.com>
3399
3400 * dwarf2/read.c (partial_die_info::read)
3401 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3402 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3403 attribute::as_string.
3404
3405 2020-09-29 Tom Tromey <tom@tromey.com>
3406
3407 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3408 DW_ADDR.
3409 (attribute::string): Don't use DW_STRING.
3410 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3411 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3412
3413 2020-09-29 Tom Tromey <tom@tromey.com>
3414
3415 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3416 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3417 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3418 * dwarf2/attribute.h (struct attribute): Rename methods.
3419 * dwarf2/attribute.c (attribute::as_address): Rename from
3420 value_as_address.
3421 (attribute::as_string): Rename from value_as_string.
3422
3423 2020-09-29 Tom Tromey <tom@tromey.com>
3424
3425 * dwarf2/read.c (partial_die_info::read) <case
3426 DW_AT_linkage_name>: Use value_as_string.
3427 (dwarf2_string_attr): Use value_as_string.
3428 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3429 method.
3430 * dwarf2/attribute.c (attribute::value_as_string): New method.
3431
3432 2020-09-29 Pedro Alves <pedro@palves.net>
3433
3434 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3435 defined before using '#pragma GCC diagnostic' instead of checking
3436 __clang__.
3437
3438 2020-09-28 Tom Tromey <tom@tromey.com>
3439
3440 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3441 (handle_signal_stop): Update.
3442 * procfs.c (procfs_target::insert_watchpoint): Update.
3443 * target.h (target_have_steppable_watchpoint): Now a function.
3444
3445 2020-09-28 Tom Tromey <tom@tromey.com>
3446
3447 * infrun.c (set_schedlock_func): Update.
3448 * target.h (target_can_lock_scheduler): Now a function.
3449
3450 2020-09-28 Tom Tromey <tom@tromey.com>
3451
3452 * inferior.h (class inferior) <has_execution>: Update.
3453 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3454 * valops.c (find_function_in_inferior)
3455 (value_allocate_space_in_inferior): Update.
3456 * top.c (kill_or_detach): Update.
3457 * target.c (target_preopen, set_target_permissions): Update.
3458 (target_has_execution_current): Remove.
3459 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3460 Update.
3461 * solib.c (update_solib_list, reload_shared_libraries): Update.
3462 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3463 * solib-dsbt.c (enable_break): Update.
3464 * score-tdep.c (score7_fetch_inst): Update.
3465 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3466 Update.
3467 * remote.c (remote_target::start_remote)
3468 (remote_target::remote_check_symbols, remote_target::open_1)
3469 (remote_target::remote_detach_1, remote_target::verify_memory)
3470 (remote_target::xfer_partial, remote_target::read_description)
3471 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3472 * record-full.c (record_full_open_1): Update.
3473 * record-btrace.c (record_btrace_target_open): Update.
3474 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3475 (value_nsstring): Update.
3476 * linux-thread-db.c (add_thread_db_info)
3477 (thread_db_find_new_threads_silently, check_thread_db_callback)
3478 (try_thread_db_load_1, record_thread): Update.
3479 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3480 Update.
3481 * linux-fork.c (checkpoint_command): Update.
3482 * infrun.c (set_non_stop, set_observer_mode)
3483 (check_multi_target_resumption, for_each_just_stopped_thread)
3484 (maybe_remove_breakpoints, normal_stop)
3485 (class infcall_suspend_state): Update.
3486 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3487 (info_program_command, attach_command): Update.
3488 * infcall.c (call_function_by_hand_dummy): Update.
3489 * inf-loop.c (inferior_event_handler): Update.
3490 * gcore.c (gcore_command, derive_heap_segment): Update.
3491 * exec.c (exec_file_command): Update.
3492 * eval.c (evaluate_subexp): Update.
3493 * compile/compile.c (compile_to_object): Update.
3494 * cli/cli-dump.c (restore_command): Update.
3495 * breakpoint.c (update_watchpoint)
3496 (update_inserted_breakpoint_locations)
3497 (insert_breakpoint_locations, get_bpstat_thread): Update.
3498 * target.h (target_has_execution): Remove macro.
3499 (target_has_execution_current): Don't declare.
3500 (target_has_execution): Rename from target_has_execution_1. Add
3501 argument default.
3502
3503 2020-09-28 Tom Tromey <tom@tromey.com>
3504
3505 * mi/mi-main.c (exec_reverse_continue)
3506 (mi_cmd_list_target_features): Update.
3507 * infrun.c (set_exec_direction_func): Update.
3508 * target.c (default_execution_direction): Update.
3509 * reverse.c (exec_reverse_once): Update.
3510 * target.h (target_can_execute_reverse): Now a function.
3511
3512 2020-09-28 Tom Tromey <tom@tromey.com>
3513
3514 * tui/tui-regs.c (tui_get_register)
3515 (tui_data_window::show_registers): Update.
3516 * thread.c (scoped_restore_current_thread::restore)
3517 (scoped_restore_current_thread::scoped_restore_current_thread):
3518 Update.
3519 * regcache-dump.c (regcache_print): Update.
3520 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3521 Update.
3522 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3523 * mep-tdep.c (current_me_module, current_options): Update.
3524 * linux-thread-db.c (thread_db_load): Update.
3525 * infcmd.c (registers_info, info_vector_command)
3526 (info_float_command): Update.
3527 * ia64-tdep.c (ia64_frame_prev_register)
3528 (ia64_sigtramp_frame_prev_register): Update.
3529 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3530 * gcore.c (derive_stack_segment): Update.
3531 * frame.c (get_current_frame, has_stack_frames): Update.
3532 * findvar.c (language_defn::read_var_value): Update.
3533 * arm-tdep.c (arm_pc_is_thumb): Update.
3534 * target.c (target_has_registers): Rename from
3535 target_has_registers_1.
3536 * target.h (target_has_registers): Remove macro.
3537 (target_has_registers): Rename from target_has_registers_1.
3538
3539 2020-09-28 Tom Tromey <tom@tromey.com>
3540
3541 * windows-tdep.c (tlb_make_value): Update.
3542 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3543 * thread.c (scoped_restore_current_thread::restore)
3544 (scoped_restore_current_thread::scoped_restore_current_thread)
3545 (thread_command): Update.
3546 * stack.c (backtrace_command_1, frame_apply_level_command)
3547 (frame_apply_all_command, frame_apply_command): Update.
3548 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3549 Update.
3550 * gcore.c (derive_stack_segment): Update.
3551 * frame.c (get_current_frame, has_stack_frames): Update.
3552 * auxv.c (info_auxv_command): Update.
3553 * ada-tasks.c (ada_build_task_list): Update.
3554 * target.c (target_has_stack): Rename from target_has_stack_1.
3555 * target.h (target_has_stack): Remove macro.
3556 (target_has_stack): Rename from target_has_stack_1.
3557
3558 2020-09-28 Tom Tromey <tom@tromey.com>
3559
3560 * target.c (target_has_memory): Rename from target_has_memory_1.
3561 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3562 * thread.c (scoped_restore_current_thread::restore)
3563 (scoped_restore_current_thread::scoped_restore_current_thread):
3564 Update.
3565 * frame.c (get_current_frame, has_stack_frames): Update.
3566 * target.h (target_has_memory): Remove macro.
3567 (target_has_memory): Rename from target_has_memory_1.
3568
3569 2020-09-28 Tom Tromey <tom@tromey.com>
3570
3571 * target.c (target_has_all_memory_1): Remove.
3572 * target.h (target_has_all_memory): Remove define.
3573 (target_has_all_memory_1): Don't declare.
3574
3575 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3576
3577 * ser-base.c: Adjust comments formatting.
3578
3579 2020-09-27 Tom Tromey <tom@tromey.com>
3580
3581 PR tui/25342:
3582 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3583
3584 2020-09-27 Tom Tromey <tom@tromey.com>
3585
3586 PR tui/25342:
3587 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3588
3589 2020-09-27 Tom Tromey <tom@tromey.com>
3590
3591 * unittests/tui-selftests.c: Update.
3592 * tui/tui-winsource.h (struct tui_source_window_base)
3593 <extra_margin, show_line_number, refresh_pad>: New methods.
3594 <m_max_length, m_pad>: New members.
3595 (tui_copy_source_line): Update.
3596 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3597 first_col, line_width, ndigits parameters. Add length.
3598 (tui_source_window_base::show_source_line): Write to pad. Line
3599 number now 0-based.
3600 (tui_source_window_base::refresh_pad): New method.
3601 (tui_source_window_base::show_source_content): Write to pad. Call
3602 refresh_pad.
3603 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3604 not refill.
3605 (tui_source_window_base::update_exec_info): Call
3606 show_line_number.
3607 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3608 method.
3609 <m_digits>: New member.
3610 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3611 and m_max_length.
3612 (tui_source_window::show_line_number): New method.
3613 * tui/tui-io.h (tui_puts): Fix comment.
3614 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3615 m_max_length.
3616
3617 2020-09-27 Tom Tromey <tom@tromey.com>
3618
3619 * tui/tui-winsource.c
3620 (tui_source_window_base::set_is_exec_point_at): Don't call
3621 show_source_line.
3622
3623 2020-09-27 Tom Tromey <tom@tromey.com>
3624
3625 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3626 method.
3627 <erase>: Update.
3628 <cursor_x, cursor_y>: Remove.
3629 <m_inner_window>: New member.
3630 (tui_py_window::rerender): Create inner window.
3631 (tui_py_window::output): Write to inner window.
3632
3633 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3634
3635 PR python/26586
3636 * cli/cli-script.c (execute_control_commands): don't set
3637 instream to nullptr here as this breaks the from_tty argument
3638 to gdb.execute in Python.
3639 (execute_user_command): set instream to nullptr here instead.
3640
3641 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3642
3643 * infrun.h (infrun_debug_printf): Fix formatting.
3644 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3645
3646 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3647
3648 * compile/compile-object-load.h (struct munmap_list): Add
3649 explicitly-defined move constructor.
3650
3651 2020-09-24 Tom Tromey <tromey@adacore.com>
3652
3653 PR tui/26638:
3654 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3655 method.
3656 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3657 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3658 (tui_prev_win): Rewrite.
3659
3660 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3661
3662 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3663 in WOW64 processes as SIGINT.
3664 * nat/windows-nat.h: Make wow64_process a shared variable.
3665 * windows-nat.c: Remove static wow64_process variable.
3666
3667 2020-09-23 Tom Tromey <tom@tromey.com>
3668
3669 PR symtab/25470:
3670 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3671 offset and bit size.
3672 * printcmd.c (print_scalar_formatted): Handle zero-length
3673 integer.
3674 (print_scalar_formatted): Use bit_size_differs_p.
3675 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3676 constant.
3677 (union type_specific): <int_stuff>: New member.
3678 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3679 methods.
3680 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3681 TYPE_SPECIFIC_FIELD.
3682 (recursive_dump_type, copy_type_recursive): Update.
3683 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3684 DW_AT_data_bit_offset.
3685
3686 2020-09-23 Tom Tromey <tom@tromey.com>
3687
3688 * utils.h (class gdb_argv): Add move operators.
3689 <append>: New methods.
3690 * compile/compile.c (build_argc_argv): Remove.
3691 (compile_args_argc): Remove.
3692 (compile_args_argv): Change type.
3693 (set_compile_args): Simplify.
3694 (append_args): Remove.
3695 (filter_args): Remove argcp parameter.
3696 (get_args): Return gdb_argv. Simplify.
3697 (compile_to_object): Update.
3698
3699 2020-09-23 Tom Tromey <tom@tromey.com>
3700
3701 * compile/compile-object-run.c (do_module_cleanup)
3702 <~do_module_cleanup> :Remove.
3703 (do_module_cleanup): Update.
3704 * compile/compile-object-load.h (struct munmap_list): Add move
3705 assignment operator.
3706 <source_file>: Now a std::string.
3707 <munmap_list>: Rename. No longer a pointer.
3708 * compile/compile-object-load.c (struct setup_sections_data): Add
3709 constructor.
3710 <setup_one_section>: Declare.
3711 <munmap_list>: Move earlier.
3712 <m_bfd>: New member.
3713 <m_last_size, m_last_section_first, m_last_prot,
3714 m_last_max_alignment>: Rename, add initializers where needed.
3715 (setup_sections_data::setup_one_section): Rename from
3716 setup_sections. Update.
3717 (compile_object_load): Update. Don't use bfd_map_over_sections.
3718
3719 2020-09-23 Tom Tromey <tom@tromey.com>
3720
3721 * compile/compile-object-run.c (struct do_module_cleanup): Add
3722 parameters to constructor. Update destructor.
3723 <source_file, scope, scope_data, out_value_type, out_value_addr,
3724 munmap_list_head, objfile_name_string>: Remove.
3725 <module>: New member.
3726 (do_module_cleanup): Update.
3727 (compile_object_run): Update.
3728
3729 2020-09-23 Tom Tromey <tom@tromey.com>
3730
3731 * compile/compile.c (eval_compile_command): Update.
3732 * compile/compile-object-run.h (compile_object_run): Take a
3733 compile_module_up.
3734 * compile/compile-object-run.c (compile_object_run): Take a
3735 compile_module_up.
3736 * compile/compile-object-load.h (struct compile_module): Add
3737 constructor, destructor.
3738 (compile_module_up): New typedef.
3739 (compile_object_load): Return compile_object_up.
3740 * compile/compile-object-load.c (compile_object_load): Return
3741 compile_module_up.
3742
3743 2020-09-23 Tom Tromey <tom@tromey.com>
3744
3745 * compile/compile-object-run.c (struct do_module_cleanup): Add
3746 constructor, destructor.
3747 <objfile_name_string>: Don't use struct hack.
3748 (do_module_cleanup): Use delete.
3749 (compile_object_run): Use new.
3750
3751 2020-09-23 Tom Tromey <tom@tromey.com>
3752
3753 * compile/compile-cplus-types.c
3754 (compile_cplus_convert_struct_or_union): Use std::vector.
3755 (compile_cplus_convert_func): Likewise.
3756 * compile/compile-c-types.c (convert_func): Use std::vector.
3757
3758 2020-09-21 Tom Tromey <tromey@adacore.com>
3759
3760 * sparc-tdep.c (sparc32_skip_prologue): Use
3761 skip_prologue_using_sal.
3762
3763 2020-09-19 Tom Tromey <tom@tromey.com>
3764
3765 * symfile.c (add_section_size_callback): Remove.
3766 (load_one_section): Rename from load_section_callback. Change
3767 parameters.
3768 (generic_load): Use foreach.
3769
3770 2020-09-19 Tom Tromey <tom@tromey.com>
3771
3772 * exec.c (add_to_section_table): Remove.
3773 (build_section_table): Use foreach.
3774
3775 2020-09-19 Tom Tromey <tom@tromey.com>
3776
3777 * elfread.c (elf_locate_sections): Change parameters.
3778 (elf_symfile_read): Use foreach.
3779
3780 2020-09-19 Tom Tromey <tom@tromey.com>
3781
3782 * cli/cli-dump.c (struct callback_data): Remove.
3783 (restore_one_section): Rename from restore_section_callback.
3784 Change parameters.
3785 (restore_binary_file): Change parameters.
3786 (restore_command): Use foreach.
3787
3788 2020-09-19 Tom Tromey <tom@tromey.com>
3789
3790 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3791 (gcore_copy_callback): Likewise.
3792 (gcore_memory_sections): Use foreach.
3793
3794 2020-09-19 Tom Tromey <tom@tromey.com>
3795
3796 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3797 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3798 parameters.
3799 (generic_elf_osabi_sniffer): Use foreach.
3800 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3801 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3802
3803 2020-09-19 Tom Tromey <tom@tromey.com>
3804
3805 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3806 (dwarf2_get_dwz_file): Use foreach.
3807 (dwarf2_locate_dwo_sections): Change parameters.
3808 (open_and_init_dwo_file): Use foreach.
3809 (dwarf2_locate_common_dwp_sections): Change parameters.
3810 (open_and_init_dwp_file): Use foreach.
3811
3812 2020-09-19 Tom Tromey <tom@tromey.com>
3813
3814 * symfile.h: (find_lowest_section): Don't declare.
3815 * symfile.c (find_lowest_section): Now static. Change
3816 parameters.
3817 (struct place_section_arg): Remove.
3818 (place_section): Change parameters.
3819 (addr_info_make_relative): Use foreach.
3820 (symfile_dummy_outputs): Remove.
3821 (default_symfile_relocate): Use foreach.
3822
3823 2020-09-19 Tom Tromey <tom@tromey.com>
3824
3825 * objfiles.c (add_to_objfile_sections): Rename from
3826 add_to_objfile_sections_full.
3827 (add_to_objfile_sections): Remove.
3828 (build_objfile_section_table): Use foreach.
3829
3830 2020-09-19 Tom Tromey <tom@tromey.com>
3831
3832 * stap-probe.c (get_stap_base_address_1): Remove.
3833 (get_stap_base_address): Use foreach.
3834
3835 2020-09-19 Tom Tromey <tom@tromey.com>
3836
3837 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3838 parameters.
3839 (gdb_bfd_close_or_warn): Use foreach.
3840
3841 2020-09-19 Tom Tromey <tom@tromey.com>
3842
3843 * corelow.c (add_to_thread_list): Change parameters.
3844 (core_target_open): Use foreach.
3845
3846 2020-09-19 Tom Tromey <tom@tromey.com>
3847
3848 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3849 existing function.
3850
3851 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3852
3853 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3854 for arrays.
3855
3856 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3857
3858 * eval.c: Remove 'f-lang.h' include.
3859 (value_f90_subarray): Moved to f-lang.c.
3860 (eval_call): Renamed to...
3861 (evaluate_subexp_do_call): ...this, is no longer static, header
3862 comment moved into header file.
3863 (evaluate_funcall): Update call to eval_call.
3864 (skip_undetermined_arglist): Moved to f-lang.c.
3865 (fortran_value_subarray): Likewise.
3866 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3867 moved to evaluate_subexp_f.
3868 (calc_f77_array_dims): Moved to f-lang.c
3869 * expprint.c (print_subexp_funcall): New function.
3870 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3871 moved to print_subexp_f, OP_FUNCALL uses new function.
3872 (dump_subexp_body_funcall): New function.
3873 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3874 moved to dump_subexp_f, OP_FUNCALL uses new function.
3875 * expression.h (evaluate_subexp_do_call): Declare.
3876 * f-lang.c (value_f90_subarray): Moved from eval.c.
3877 (skip_undetermined_arglist): Likewise.
3878 (calc_f77_array_dims): Likewise.
3879 (fortran_value_subarray): Likewise.
3880 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3881 (operator_length_f): Likewise.
3882 (print_subexp_f): Likewise.
3883 (dump_subexp_body_f): Likewise.
3884 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3885 declaration of this operation to here.
3886 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3887 support moved to operator_length_f.
3888 * parser-defs.h (dump_subexp_body_funcall): Declare.
3889 (print_subexp_funcall): Declare.
3890 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3891 fortran-operator.def.
3892
3893 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3894
3895 * eval.c (fortran_value_subarray): New function, content is taken
3896 from...
3897 (evaluate_subexp_standard): ...here, in two places. Now arrays
3898 and strings both call the new function.
3899 (calc_f77_array_dims): Add header comment, handle strings.
3900
3901 2020-09-18 Victor Collod <vcollod@nvidia.com>
3902
3903 PR gdb/26635
3904 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3905 (i386_analyze_prologue): Call i386_skip_endbr.
3906
3907 2020-09-18 Tom Tromey <tromey@adacore.com>
3908
3909 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3910 (windows_nat_target::wait): Update.
3911 * target/wait.h (enum target_wait_flag): New. Use
3912 DEF_ENUM_FLAGS_TYPE.
3913 * target/target.h (target_wait): Change type of options.
3914 * target.h (target_options_to_string, default_target_wait):
3915 Update.
3916 (struct target_ops) <wait>: Change type of options.
3917 * target.c (target_wait, default_target_wait, do_option): Change
3918 type of "options".
3919 (target_options_to_string): Likewise.
3920 * target-delegates.c: Rebuild.
3921 * target-debug.h (target_debug_print_target_wait_flags): Rename
3922 from target_debug_print_options.
3923 * sol-thread.c (class sol_thread_target) <wait>: Update.
3924 (sol_thread_target::wait): Update.
3925 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3926 (rs6000_nat_target::wait): Update.
3927 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3928 Update.
3929 (remote_target::wait_ns, remote_target::wait_as): Change type of
3930 "options".
3931 (remote_target::wait): Update.
3932 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3933 (gdbsim_target::wait): Update.
3934 * record-full.c (class record_full_base_target) <wait>: Update.
3935 (record_full_wait_1): Change type of "options".
3936 (record_full_base_target::wait): Update.
3937 * record-btrace.c (class record_btrace_target) <wait>: Update.
3938 (record_btrace_target::wait): Update.
3939 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3940 Update.
3941 (ravenscar_thread_target::wait): Update.
3942 * procfs.c (class procfs_target) <wait>: Update.
3943 (procfs_target::wait): Update.
3944 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3945 * obsd-nat.c (obsd_nat_target::wait): Update.
3946 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3947 (nto_procfs_target::wait): Update.
3948 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3949 * nbsd-nat.c (nbsd_wait): Change type of "options".
3950 (nbsd_nat_target::wait): Update.
3951 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3952 (thread_db_target::wait): Update.
3953 * linux-nat.h (class linux_nat_target) <wait>: Update.
3954 * linux-nat.c (linux_nat_target::wait): Update.
3955 (linux_nat_wait_1): Update.
3956 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3957 "options".
3958 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3959 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3960 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3961 (go32_nat_target::wait): Update.
3962 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3963 * gnu-nat.c (gnu_nat_target::wait): Update.
3964 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3965 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3966 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3967 * darwin-nat.c (darwin_nat_target::wait): Update.
3968 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3969 (bsd_uthread_target::wait): Update.
3970 * aix-thread.c (class aix_thread_target) <wait>: Update.
3971 (aix_thread_target::wait): Update.
3972
3973 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3974
3975 * compile/compile-object-run.c (create_copied_type_recursive): New
3976 function.
3977 (compile_object_run): Use new function.
3978
3979 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3980
3981 * NEWS: Mention x86_64 Cygwin core file support.
3982
3983 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3984
3985 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3986 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3987
3988 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3989
3990 * windows-tdep.h: Add prototypes.
3991 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3992 (i386_windows_core_pid_to_str): Move and rename ...
3993 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3994 (windows_core_pid_to_str): ... and here.
3995 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3996
3997 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3998 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3999 (amd64_windows_init_abi_common): ... and register.
4000
4001 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4002
4003 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4004 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4005
4006 2020-09-18 Pedro Alves <pedro@palves.net>
4007
4008 PR gdb/26631
4009 * thread.c (thread_find_command): Switch inferior before calling
4010 target methods.
4011
4012 2020-09-17 Tom Tromey <tromey@adacore.com>
4013
4014 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4015 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4016 (tdesc_arch_data_up): New typedef.
4017 (tdesc_use_registers, tdesc_data_alloc): Update.
4018 (tdesc_data_cleanup): Don't declare.
4019 * target-descriptions.c (tdesc_data_alloc): Return a
4020 tdesc_arch_data_up.
4021 (tdesc_arch_data_deleter::operator()): Rename from
4022 tdesc_data_cleanup. Change argument type.
4023 (tdesc_use_registers): Change early_data to an rvalue reference.
4024 (tdesc_use_registers): Don't use delete.
4025 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4026 * s390-tdep.c (s390_gdbarch_init): Update.
4027 * rx-tdep.c (rx_gdbarch_init): Update.
4028 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4029 * riscv-tdep.c (riscv_gdbarch_init): Update.
4030 * or1k-tdep.c (or1k_gdbarch_init): Update.
4031 * nios2-tdep.c (nios2_gdbarch_init): Update.
4032 * nds32-tdep.c (nds32_gdbarch_init): Update.
4033 * mips-tdep.c (mips_gdbarch_init): Update.
4034 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4035 * m68k-tdep.c (m68k_gdbarch_init): Update.
4036 * i386-tdep.c (i386_gdbarch_init): Update.
4037 * arm-tdep.c (arm_gdbarch_init): Update.
4038 * arc-tdep.c (arc_tdesc_init): Update.
4039 (arc_gdbarch_init): Update.
4040 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4041
4042 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4043
4044 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4045 for WOW64 processes.
4046
4047 2020-09-17 Tom Tromey <tom@tromey.com>
4048
4049 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4050
4051 2020-09-17 Tom Tromey <tom@tromey.com>
4052
4053 * value.c (preserve_values): Update.
4054 * python/py-type.c (save_objfile_types): Update.
4055 * guile/scm-type.c (save_objfile_types): Update.
4056 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4057 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4058 * compile/compile-object-run.c (compile_object_run): Update.
4059
4060 2020-09-17 Tom Tromey <tom@tromey.com>
4061
4062 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4063 Remove.
4064 <m_table>: Now htab_up.
4065 * typeprint.c (typedef_hash_table::recursively_update)
4066 (typedef_hash_table::add_template_parameters)
4067 (typedef_hash_table::typedef_hash_table): Update.
4068 (typedef_hash_table::~typedef_hash_table): Remove.
4069 (typedef_hash_table::typedef_hash_table)
4070 (typedef_hash_table::find_global_typedef)
4071 (typedef_hash_table::find_typedef): Update.
4072
4073 2020-09-17 Tom Tromey <tom@tromey.com>
4074
4075 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4076
4077 2020-09-17 Tom Tromey <tom@tromey.com>
4078
4079 * linespec.c (class decode_compound_collector)
4080 <~decode_compound_collector>: Remove.
4081 <m_unique_syms>: Now htab_up.
4082 (decode_compound_collector::operator ()): Update.
4083 (class symtab_collector) <~symtab_collector>: Remove.
4084 <m_symtab_table>: Now htab_up.
4085 (symtab_collector::operator ()): Update.
4086
4087 2020-09-17 Tom Tromey <tom@tromey.com>
4088
4089 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4090 (filename_seen_cache::clear): Update.
4091 (~filename_seen_cache): Remove.
4092 (filename_seen_cache::seen): Update.
4093 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4094 htab_up.
4095 <~filename_seen_cache>: Remove.
4096 <traverse>: Update.
4097
4098 2020-09-17 Tom Tromey <tom@tromey.com>
4099
4100 * completer.c (completion_tracker::discard_completions)
4101 (completion_tracker::~completion_tracker)
4102 (completion_tracker::maybe_add_completion)
4103 (completion_tracker::remove_completion)
4104 (completion_tracker::recompute_lowest_common_denominator)
4105 (completion_tracker::build_completion_result): Update.
4106 * completer.h (class completion_tracker) <have_completions>:
4107 Update.
4108 <m_entries_hash>: Now htab_up.
4109
4110 2020-09-17 Tom Tromey <tom@tromey.com>
4111
4112 * breakpoint.c (ambiguous_names_p): Use htab_up.
4113
4114 2020-09-17 Tom Tromey <tom@tromey.com>
4115
4116 * auto-load.c (struct auto_load_pspace_info)
4117 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4118 <loaded_script_files, loaded_script_texts>: Change type to
4119 htab_up.
4120 (~auto_load_pspace_info) Remove.
4121 (init_loaded_scripts_info, maybe_add_script_file)
4122 (maybe_add_script_text, auto_load_info_scripts): Update.
4123
4124 2020-09-17 Tom Tromey <tromey@adacore.com>
4125
4126 * c-exp.y (name_obstack): Now static.
4127
4128 2020-09-17 Chungyi Chi <demonic@csie.io>
4129
4130 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4131
4132 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4133
4134 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4135 (add_solib_catchpoint): Likewise.
4136 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4137 to bool.
4138 (add_solib_catchpoint): Change int parameter/variable to bool.
4139 (catch_load_or_unload): Likewise.
4140 (init_catchpoint): Likewise.
4141 (create_fork_vfork_event_catchpoint): Likewise.
4142 (catch_fork_command_1): Likewise.
4143 (catch_exec_command_1): Likewise.
4144
4145 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4146
4147 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4148 Change instance_flags to m_instance_flags.
4149
4150 2020-09-16 Tom Tromey <tromey@adacore.com>
4151
4152 PR gdb/26598:
4153 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4154
4155 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4156
4157 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4158 PL_FLAG_EXEC.
4159 (fbsd_nat_target::insert_exec_catchpoint)
4160 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4161 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4162 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4163
4164 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4165
4166 * configure.ac: Remove check for kinfo_getvmmap().
4167 * configure, config.in: Regenerate.
4168 * fbsd-nat.c (fbsd_read_mapping): Remove
4169 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4170 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4171 kinfo_get_vmmap() are always present.
4172
4173 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4174
4175 * fbsd-nat.c: Always include support for
4176 TARGET_OBJECT_SIGNAL_INFO.
4177
4178 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4179
4180 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4181 sysctl and remove procfs fallback.
4182
4183 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4184
4185 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4186 * fbsd-nat.h: Likewise.
4187
4188 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4189
4190 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4191 argument.
4192
4193 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4194
4195 * ada-lang.c (ada_language_data): Delete.
4196 (ada_language): Remove references to ada_language_data.
4197 * c-lang.c (c_language_data): Delete.
4198 (c_language): Remove references to c_language_data.
4199 (cplus_language_data): Delete.
4200 (cplus_language): Remove references to cplus_language_data.
4201 (asm_language_data): Delete.
4202 (asm_language): Remove references to asm_language_data.
4203 (minimal_language_data): Delete.
4204 (minimal_language): Remove references to minimal_language_data.
4205 * d-lang.c (d_language_data): Delete.
4206 (d_language): Remove references to d_language_data.
4207 * f-lang.c (f_language_data): Delete.
4208 (f_language): Remove references to f_language_data.
4209 * go-lang.c (go_language_data): Delete.
4210 (go_language): Remove references to go_language_data.
4211 * language.c (unknown_language_data): Delete.
4212 (unknown_language): Remove references to unknown_language_data.
4213 (auto_language_data): Delete.
4214 (auto_language): Remove references to auto_language_data.
4215 * language.h (language_data): Delete struct.
4216 (language_defn): No longer inherit from language_data.
4217 * m2-lang.c (m2_language_data): Delete.
4218 (m2_language): Remove references to m2_language_data.
4219 * objc-lang.c (objc_language_data): Delete.
4220 (objc_language): Remove references to objc_language_data.
4221 * opencl-lang.c (opencl_language_data): Delete.
4222 (opencl_language): Remove references to opencl_language_data.
4223 * p-lang.c (pascal_language_data): Delete.
4224 (pascal_language): Remove references to pascal_language_data.
4225 * rust-lang.c (rust_language_data): Delete.
4226 (rust_language): Remove references to rust_language_data.
4227
4228 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4229
4230 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4231 initializer.
4232 (ada_language::opcode_print_table): New member function.
4233 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4234 (c_language::opcode_print_table): New member function.
4235 (cplus_language_data): Remove la_op_print_tab initializer.
4236 (cplus_language::opcode_print_table): New member function.
4237 (asm_language_data): Remove la_op_print_tab initializer.
4238 (asm_language::opcode_print_table): New member function.
4239 (minimal_language_data): Remove la_op_print_tab initializer.
4240 (minimal_language::opcode_print_table): New member function.
4241 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4242 (d_language::opcode_print_table): New member function.
4243 * expprint.c (print_subexp_standard): Update call to
4244 opcode_print_table.
4245 (op_string): Likewise.
4246 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4247 (f_language::opcode_print_table): New member function.
4248 * go-lang.c (go_language_data): Remove la_op_print_tab
4249 initializer.
4250 (go_language::opcode_print_table): New member function.
4251 * language.c (unknown_language_data): Remove la_op_print_tab
4252 initializer.
4253 (unknown_language::opcode_print_table): New member function.
4254 (auto_language_data): Remove la_op_print_tab initializer.
4255 (auto_language::opcode_print_table): New member function.
4256 * language.h (language_data): Remove la_op_print_tab field.
4257 (language_defn::opcode_print_table): Declare new member function.
4258 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4259 initializer.
4260 (m2_language::opcode_print_table): New member function.
4261 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4262 initializer.
4263 (objc_language::opcode_print_table): New member function.
4264 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4265 initializer.
4266 (opencl_language::opcode_print_table): New member function.
4267 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4268 initializer.
4269 (pascal_language::opcode_print_table): New member function.
4270 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4271 initializer.
4272 (rust_language::opcode_print_table): New member function.
4273
4274 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4275
4276 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4277 (ada_language::expression_ops): New member function.
4278 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4279 (c_language::expression_ops): New member function.
4280 (cplus_language_data): Remove la_exp_desc initializer.
4281 (cplus_language::expression_ops): New member function.
4282 (asm_language_data): Remove la_exp_desc initializer.
4283 (asm_language::expression_ops): New member function.
4284 (minimal_language_data): Remove la_exp_desc initializer.
4285 (minimal_language::expression_ops): New member function.
4286 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4287 (d_language::expression_ops): New member function.
4288 * eval.c (evaluate_subexp): Update call to expression_ops.
4289 * expprint.c (print_subexp): Likewise.
4290 (op_name): Likewise.
4291 (dump_subexp_body): Likewise.
4292 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4293 (f_language::expression_ops): New member function.
4294 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4295 (go_language::expression_ops): New member function.
4296 * language.c (language_defn::expression_ops): New function.
4297 (unknown_language_data): Remove la_exp_desc initializer.
4298 (auto_language_data): Likewise.
4299 * language.h (language_data): Remove la_exp_desc field.
4300 (language_defn::expression_ops): Declare new member function.
4301 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4302 (m2_language::expression_ops): New member function.
4303 * objc-lang.c (objc_language_data): Remove la_exp_desc
4304 initializer.
4305 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4306 initializer.
4307 (opencl_language::expression_ops): New member function.
4308 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4309 * parse.c (operator_length): Update call to expression_ops.
4310 (exp_iterate): Likewise.
4311 * rust-lang.c (rust_language_data): Remove la_exp_desc
4312 initializer.
4313 (ruse_language::expression_ops): New member function.
4314
4315 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4316
4317 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4318 initializer.
4319 (ada_language::varobj_ops): New member function.
4320 * c-lang.c (c_language_data): Remove la_varobj_ops
4321 initializer.
4322 (cplus_language_data): Likewise.
4323 (cplus_language::varobj_ops): New member function.
4324 (asm_language_data): Remove la_varobj_ops initializer.
4325 (minimal_language_data): Likewise.
4326 * d-lang.c (d_language_data): Likewise.
4327 * f-lang.c (f_language_data): Likewise.
4328 * go-lang.c (go_language_data): Likewise.
4329 * language.c (language_defn::varobj_ops): New function.
4330 (unknown_language_data): Remove la_varobj_ops
4331 initializer.
4332 (auto_language_data): Likewise.
4333 * language.h (language_data): Remove la_varobj_ops field.
4334 (language_defn::varobj_ops): Declare new member function.
4335 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4336 * objc-lang.c (objc_language_data): Likewise.
4337 * opencl-lang.c (opencl_language_data): Likewise.
4338 * p-lang.c (pascal_language_data): Likewise.
4339 * rust-lang.c (rust_language_data): Likewise.
4340 * varobj.c (varobj_create): Update call to varobj_ops.
4341 * varobj.h (default_varobj_ops): Delete define.
4342
4343 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4344
4345 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4346 initializer.
4347 * c-lang.c (c_language_data): Likewise.
4348 (c_language::macro_expansion): New member function.
4349 (cplus_language_data): Likewise.
4350 (cplus_language::macro_expansion): New member function.
4351 (asm_language_data): Likewise.
4352 (asm_language::macro_expansion): New member function.
4353 (minimal_language_data): Likewise.
4354 (minimal_language::macro_expansion): New member function.
4355 * d-lang.c (d_language_data): Remove la_macro_expansion
4356 initializer.
4357 * f-lang.c (f_language_data): Likewise.
4358 * go-lang.c (go_language_data): Likewise.
4359 * language.c (unknown_language_data): Likewise.
4360 (auto_language_data): Likewise.
4361 * language.h (language_data): Remove la_macro_expansion field.
4362 (language_defn::macro_expansion): New member function.
4363 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4364 initializer.
4365 * objc-lang.c (objc_language_data): Likewise.
4366 (objc_language::macro_expansion): New member function.
4367 * opencl-lang.c (opencl_language_data): Likewise.
4368 (opencl_language::macro_expansion): New member function.
4369 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4370 initializer.
4371 * rust-lang.c (rust_language_data): Likewise.
4372 * symtab.c (default_collect_symbol_completion_matches_break_on):
4373 Update call to macro_expansion.
4374
4375 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4376
4377 * ada-lang.c (ada_language_data): Remove la_array_ordering
4378 initializer.
4379 * c-lang.c (c_language_data): Likewise.
4380 (cplus_language_data): Likewise.
4381 (asm_language_data): Likewise.
4382 (minimal_language_data): Likewise.
4383 * d-lang.c (d_language_data): Likewise.
4384 * dwarf2/read.c (read_array_order): Update for call to
4385 array_ordering.
4386 * f-lang.c (f_language_data): Remove la_array_ordering
4387 initializer.
4388 (f_language::array_ordering): New member function.
4389 * go-lang.c (go_language_data): Remove la_array_ordering
4390 initializer.
4391 * language.c (unknown_language_data): Likewise.
4392 (auto_language_data): Likewise.
4393 * language.h (language_data): Delete la_array_ordering field.
4394 (language_defn::array_ordering): New member function.
4395 * m2-lang.c (m2_language_data): Remove la_array_ordering
4396 initializer.
4397 * objc-lang.c (objc_language_data): Likewise.
4398 * opencl-lang.c (opencl_language_data): Likewise.
4399 * p-lang.c (pascal_language_data): Likewise.
4400 * rust-lang.c (rust_language_data): Likewise.
4401
4402 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4403
4404 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4405 initializer.
4406 * c-lang.c (c_language_data): Likewise.
4407 (cplus_language_data): Likewise.
4408 (asm_language_data): Likewise.
4409 (minimal_language_data): Likewise.
4410 * d-lang.c (d_language_data): Likewise.
4411 * f-lang.c (f_language_data): Likewise.
4412 (f_language::case_sensitivity): New member function.
4413 * go-lang.c (go_language_data): Remove la_case_sensitivity
4414 initializer.
4415 * language.c (enum case_mode): Moved here from language.h.
4416 (case_mode): Make static.
4417 (show_case_command): Update for case_sensitivity being a method.
4418 (set_case_command): Likewise.
4419 (set_range_case): Likewise.
4420 (unknown_language_data): Remove la_case_sensitivity initializer.
4421 (auto_language_data): Likewise.
4422 * language.h (case_mode): Delete, move enum declaration to
4423 language.c.
4424 (language_data): Delete la_case_sensitivity field.
4425 (language_defn::case_sensitivity): New member function.
4426 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4427 initializer.
4428 * objc-lang.c (objc_language_data): Likewise.
4429 * opencl-lang.c (opencl_language_data): Likewise.
4430 * p-lang.c (pascal_language_data): Likewise.
4431 * rust-lang.c (rust_language_data): Likewise.
4432
4433 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 * ada-lang.c (ada_language_data): Remove la_range_check
4436 initializer.
4437 * c-lang.c (c_language_data): Likewise.
4438 (cplus_language_data): Likewise.
4439 (asm_language_data): Likewise.
4440 (minimal_language_data): Likewise.
4441 * d-lang.c (d_language_data): Likewise.
4442 * f-lang.c (f_language_data): Likewise.
4443 (f_language::range_checking_on_by_default): New member function.
4444 * go-lang.c (go_language_data): Remove la_range_check initializer.
4445 * language.c (enum range_mode): Moved here from language.h.
4446 (range_mode): Made static.
4447 (show_range_command): Update to use
4448 range_checking_on_by_default.
4449 (set_range_command): Likewise.
4450 (set_range_case): Likewise.
4451 (unknown_language_data): Remove la_range_check initializer.
4452 (auto_language_data): Likewise.
4453 * language.h (range_mode): Delete. Enum definition moved to
4454 language.c.
4455 (language_data): Remove la_range_check field.
4456 (language_defn::range_checking_on_by_default): New member
4457 function.
4458 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4459 (m2_language::range_checking_on_by_default): New member function.
4460 * objc-lang.c (objc_language_data): Remove la_range_check
4461 initializer.
4462 * opencl-lang.c (opencl_language_data): Likewise.
4463 * p-lang.c (pascal_language_data): Likewise.
4464 (pascal_language::range_checking_on_by_default): New member
4465 function.
4466 * rust-lang.c (rust_language_data): Remove la_range_check
4467 initializer.
4468 (rust_language::range_checking_on_by_default): New member
4469 function.
4470
4471 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4472
4473 * dwarf2/read.c (dwarf2_physname): Remove special case for
4474 language_go.
4475 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4476 member function.
4477
4478 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4479
4480 * ada-lang.c (ada_language_data): Remove
4481 la_store_sym_names_in_linkage_form_p initializer.
4482 (ada_language::store_sym_names_in_linkage_form_p): New member
4483 function.
4484 * c-lang.c (c_language_data): Remove
4485 la_store_sym_names_in_linkage_form_p initializer.
4486 (c_language::store_sym_names_in_linkage_form_p): New member
4487 function.
4488 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4489 initializer.
4490 (asm_language_data): Likewise.
4491 (asm_language::store_sym_names_in_linkage_form_p): New member
4492 function.
4493 (minimal_language_data): Remove
4494 la_store_sym_names_in_linkage_form_p initializer.
4495 (minimal_language::store_sym_names_in_linkage_form_p): New member
4496 function.
4497 * d-lang.c (d_language_data): Remove
4498 la_store_sym_names_in_linkage_form_p initializer.
4499 * dwarf2/read.c (dwarf2_physname): Update call to
4500 store_sym_names_in_linkage_form_p.
4501 * f-lang.c (f_language_data): Remove
4502 la_store_sym_names_in_linkage_form_p initializer.
4503 * go-lang.c (go_language_data): Remove
4504 la_store_sym_names_in_linkage_form_p initializer.
4505 * language.c (unknown_language_data): Remove
4506 la_store_sym_names_in_linkage_form_p initializer.
4507 (unknown_language::store_sym_names_in_linkage_form_p): New member
4508 function.
4509 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4510 initializer.
4511 (auto_language::store_sym_names_in_linkage_form_p): New member
4512 function.
4513 * language.h (language_data): Remove
4514 la_store_sym_names_in_linkage_form_p member variable.
4515 (language_defn::store_sym_names_in_linkage_form_p): New member
4516 function.
4517 * m2-lang.c (m2_language_data): Remove
4518 la_store_sym_names_in_linkage_form_p initializer.
4519 * objc-lang.c (objc_language_data): Likewise.
4520 * opencl-lang.c (opencl_language_data): Likewise.
4521 * p-lang.c (pascal_language_data): Likewise.
4522 * rust-lang.c (rust_language_data): Likewise.
4523
4524 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4525
4526 * ada-lang.c (ada_language_data): Remove string_lower_bound
4527 initializer.
4528 * c-lang.c (c_language_data): Likewise.
4529 (cplus_language_data): Likewise.
4530 (asm_language_data): Likewise.
4531 (minimal_language_data): Likewise.
4532 * d-lang.c (d_language_data): Likewise.
4533 * f-lang.c (f_language_data): Likewise.
4534 * go-lang.c (go_language_data): Likewise.
4535 * language.c (unknown_language_data): Likewise.
4536 (auto_language_data): Likewise.
4537 * language.h (language_data): Remove string_lower_bound field.
4538 (language_defn::string_lower_bound): New member function.
4539 * m2-lang.c (m2_language_data): Remove string_lower_bound
4540 initializer.
4541 (m2_language::string_lower_bound): New member function.
4542 * objc-lang.c (objc_language_data): Remove string_lower_bound
4543 initializer.
4544 * opencl-lang.c (opencl_language_data): Likewise.
4545 * p-lang.c (pascal_language_data): Likewise.
4546 * rust-lang.c (rust_language_data): Likewise.
4547 * valops.c (value_cstring): Update call to string_lower_bound.
4548 (value_string): Likewise.
4549 * value.c (allocate_repeated_value): Likewise.
4550
4551 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4552
4553 * valops.c (value_repeat): Fix incorrect argument name in comment.
4554
4555 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4556
4557 * ada-lang.c (ada_language_data): Remove c_style_arrays
4558 initializer.
4559 (ada_language::c_style_arrays_p): New member fuction.
4560 * c-lang.c (c_language_data): Remove c_style_arrays
4561 initializer.
4562 (cplus_language_data): Likewise.
4563 (asm_language_data): Likewise.
4564 (minimal_language_data): Likewise.
4565 * d-lang.c (d_language_data): Likewise.
4566 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4567 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4568 (f_language::c_style_arrays_p): New member function.
4569 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4570 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4571 * language.c (unknown_language_data): Remove c_style_arrays
4572 initializer.
4573 (auto_language_data): Likewise.
4574 * language.h (language_data): Remove c_style_arrays field.
4575 (language_defn::c_style_arrays_p): New member function.
4576 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4577 (m2_language::c_style_arrays_p): New member function.
4578 * objc-lang.c (objc_language_data): Remove c_style_arrays
4579 initializer.
4580 * opencl-lang.c (opencl_language_data): Likewise.
4581 * p-lang.c (pascal_language_data): Likewise.
4582 * rust-lang.c (rust_language_data): Likewise.
4583 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4584 and update local variable to a bool.
4585 * valops.c (value_cast): Update call to c_style_arrays_p.
4586 (value_array): Likewise.
4587 * value.c (coerce_array): Likewise.
4588
4589 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4590
4591 * ada-lang.c (ada_language_data): Remove la_language initializer.
4592 * c-lang.c (c_language_data): Likewise.
4593 (cplus_language_data): Likewise.
4594 (asm_language_data): Likewise.
4595 (minimal_language_data): Likewise.
4596 * d-lang.c (d_language_data): Likewise.
4597 * f-lang.c (f_language_data): Likewise.
4598 * go-lang.c (go_language_data): Likewise.
4599 * language.c (unknown_language_data): Likewise.
4600 (auto_language_data): Likewise.
4601 * language.h (language_data): Remove la_language field.
4602 (language_defn::language_defn): Initialise la_language field.
4603 (language_defn::la_language): New member variable.
4604 * m2-lang.c (m2_language_data): Remove la_language field.
4605 * objc-lang.c (objc_language_data): Likewise.
4606 * opencl-lang.c (opencl_language_data): Likewise.
4607 * p-lang.c (pascal_language_data): Likewise.
4608 * rust-lang.c (rust_language_data): Likewise.
4609
4610 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4611
4612 * ada-lang.c (ada_extensions): Delete, moved into
4613 ada_language::filename_extensions.
4614 (ada_language_data): Remove la_filename_extensions initializer.
4615 (ada_language::filename_extensions): New member function.
4616 * c-lang.c (c_extensions): Delete, moved into
4617 c_language::filename_extensions.
4618 (c_language_data): Remove la_filename_extensions initializer.
4619 (c_language::filename_extensions): New member function.
4620 (cplus_extensions): Delete, moved into
4621 cplus_language::filename_extensions.
4622 (cplus_language_data): Remove la_filename_extensions initializer.
4623 (cplus_language::filename_extensions): New member function.
4624 (asm_extensions): Delete, moved into
4625 asm_language::filename_extensions.
4626 (asm_language_data): Remove la_filename_extensions initializer.
4627 (asm_language::filename_extensions): New member function.
4628 (minimal_language_data): Remove la_filename_extensions
4629 initializer.
4630 * d-lang.c (d_extensions): Delete, moved into
4631 d_language::filename_extensions.
4632 (d_language_data): Remove la_filename_extensions initializer.
4633 (d_language::filename_extensions): New member function.
4634 * f-lang.c (f_extensions): Delete, moved into
4635 f_language::filename_extensions.
4636 (f_language_data): Remove la_filename_extensions initializer.
4637 (f_language::filename_extensions): New member function.
4638 * go-lang.c (go_language_data): Remove la_filename_extensions
4639 initializer.
4640 * language.c (add_set_language_command): Update now that
4641 filename_extensions returns a vector.
4642 (unknown_language_data): Remove la_filename_extensions
4643 initializer.
4644 (auto_language_data): Likewise.
4645 * language.h (language_data): Remove la_filename_extensions field.
4646 (language_defn::filename_extensions): New member function.
4647 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4648 initializer.
4649 * objc-lang.c (objc_extensions): Delete, moved into
4650 objc_language::filename_extensions.
4651 (objc_language_data): Remove la_filename_extensions initializer.
4652 (objc_language::filename_extensions): New member function.
4653 * opencl-lang.c (opencl_language_data): Remove
4654 la_filename_extensions initializer.
4655 * p-lang.c (pascal_extensions): Delete, moved into
4656 pascal_language::filename_extensions.
4657 (pascal_language_data): Remove la_filename_extensions initializer.
4658 (pascal_language::filename_extensions): New member function.
4659 * rust-lang.c (rust_extensions): Delete, moved into
4660 rust_language::filename_extensions.
4661 (rust_language_data): Remove la_filename_extensions initializer.
4662 (rust_language::filename_extensions): New member function.
4663 * symfile.c (add_filename_language): Add new assert.
4664
4665 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4666
4667 * ada-lang.c (ada_language_data): Remove la_name and
4668 la_natural_name initializers.
4669 (ada_language::name): New member function.
4670 (ada_language::natural_name): New member function.
4671 * c-lang.c (c_language_data): Remove la_name and
4672 la_natural_name initializers.
4673 (c_language::name): New member function.
4674 (c_language::natural_name): New member function.
4675 (cplus_language_data): Remove la_name and
4676 la_natural_name initializers.
4677 (cplus_language::name): New member function.
4678 (cplus_language::natural_name): New member function.
4679 (asm_language_data): Remove la_name and
4680 la_natural_name initializers.
4681 (asm_language::name): New member function.
4682 (asm_language::natural_name): New member function.
4683 (minimal_language_data): Remove la_name and
4684 la_natural_name initializers.
4685 (minimal_language::name): New member function.
4686 (minimal_language::natural_name): New member function.
4687 * compile/compile.c (compile_to_object): Update call to
4688 lanugage_defn::name.
4689 * d-lang.c (d_language_data): Remove la_name and
4690 la_natural_name initializers.
4691 (d_language::name): New member function.
4692 (d_language::natural_name): New member function.
4693 * expprint.c (print_subexp_standard): Update call to
4694 language_defn::name.
4695 (dump_raw_expression): Likewise
4696 (dump_prefix_expression): Likewise.
4697 * f-lang.c (f_language_data): Remove la_name and
4698 la_natural_name initializers.
4699 (f_language::name): New member function.
4700 (f_language::natural_name): New member function.
4701 * go-lang.c (go_language_data): Remove la_name and
4702 la_natural_name initializers.
4703 (go_language::name): New member function.
4704 (go_language::natural_name): New member function.
4705 * language.c (show_language_command): Update call to
4706 language_defn::name.
4707 (set_language_command): Likewise.
4708 (language_enum): Likewise.
4709 (language_str): Likewise.
4710 (add_set_language_command): Likewise, use
4711 language_defn::natural_name in the doc string.
4712 (unknown_language_data): Remove la_name and
4713 la_natural_name initializers.
4714 (unknown_language::name): New member function.
4715 (unknown_language::natural_name): New member function.
4716 (auto_language_data): Remove la_name and
4717 la_natural_name initializers.
4718 (auto_language::name): New member function.
4719 (auto_language::natural_name): New member function.
4720 (language_lookup_primitive_type_as_symbol): Update call to
4721 language_defn::name.
4722 * language.h (language_data): Remove la_name and la_natural_name
4723 member variables.
4724 (language_defn::name): New member function.
4725 (language_defn::natural_name): New member function.
4726 * m2-lang.c (m2_language_data): Remove la_name and
4727 la_natural_name initializers.
4728 (m2_language::name): New member function.
4729 (m2_language::natural_name): New member function.
4730 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4731 language_defn::natural_name.
4732 * objc-lang.c (objc_language_data): Remove la_name and
4733 la_natural_name initializers.
4734 (objc_language::name): New member function.
4735 (objc_language::natural_name): New member function.
4736 * opencl-lang.c (opencl_language_data): Remove la_name and
4737 la_natural_name initializers.
4738 (opencl_language::name): New member function.
4739 (opencl_language::natural_name): New member function.
4740 * p-lang.c (pascal_language_data): Remove la_name and
4741 la_natural_name initializers.
4742 (pascal_language::name): New member function.
4743 (pascal_language::natural_name): New member function.
4744 * rust-lang.c (rust_language_data): Remove la_name and
4745 la_natural_name initializers.
4746 (rust_language::name): New member function.
4747 (rust_language::natural_name): New member function.
4748 * symtab.c (lookup_language_this): Update call to
4749 language_defn::name.
4750
4751 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4752
4753 * ada-lang.c (ada_language_data): Remove la_name_of_this
4754 initializer.
4755 * ax-gdb.c (gen_expr): Update call to name_of_this.
4756 * c-exp.y (classify_name): Likewise.
4757 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4758 (cplus_language_data): Likewise.
4759 (cplus_language::name_of_this): New member function.
4760 (asm_language_data): Remove la_name_of_this initializer.
4761 (minimal_language_data): Likewise.
4762 * d-lang.c (d_language_data): Likewise.
4763 (d_language::name_of_this): New member function.
4764 * expprint.c (print_subexp_standard): Update call to name_of_this.
4765 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4766 * go-lang.c (go_language_data): Likewise.
4767 * language.c (unknown_language_data): Likewise.
4768 (unknown_language::name_of_this): New member function.
4769 (auto_language_data): Remove la_name_of_this initializer.
4770 (auto_language::name_of_this): New member function.
4771 * language.h (language_data): Delete la_name_of_this member
4772 variable.
4773 (language_defn::name_of_this): New member function.
4774 * m2-lang.c (m2_language_data): Remove la_name_of_this
4775 initializer.
4776 * objc-lang.c (objc_language_data): Likewise.
4777 (objc_language::name_of_this): New member function.
4778 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4779 initializer.
4780 * p-lang.c (pascal_language_data): Likewise.
4781 (pascal_language::name_of_this): New member function.
4782 * rust-lang.c (rust_language_data): Remove la_name_of_this
4783 initializer.
4784 * symtab.c (lookup_language_this): Update call to name_of_this.
4785 (lookup_symbol_aux): Likewise.
4786 * valops.c (value_of_this): Likewise.
4787
4788 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4789
4790 * ada-lang.c (ada_language_data): Remove
4791 la_struct_too_deep_ellipsis initializer.
4792 (ada_language::struct_too_deep_ellipsis): New member function.
4793 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4794 initializer.
4795 (cplus_language_data): Likewise.
4796 (asm_language_data): Likewise.
4797 (minimal_language_data): Likewise.
4798 * cp-valprint.c (cp_print_value): Update call to
4799 struct_too_deep_ellipsis.
4800 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4801 initializer.
4802 * f-lang.c (f_language_data): Likewise.
4803 (f_language::struct_too_deep_ellipsis): New member function.
4804 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4805 initializer.
4806 * language.c (unknown_language_data): Likewise.
4807 (auto_language_data): Likewise.
4808 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4809 member variable.
4810 (language_defn::struct_too_deep_ellipsis): New member function.
4811 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4812 initializer.Q
4813 * objc-lang.c (objc_language_data): Likewise.
4814 * opencl-lang.c (opencl_language_data): Likewise.
4815 * p-lang.c (pascal_language_data): Likewise.
4816 * rust-lang.c (rust_language_data): Likewise.
4817 * valprint.c (val_print_check_max_depth): Update call to
4818 struct_too_deep_ellipsis.
4819
4820 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4821
4822 * MAINTAINERS (Write After Approval): Add myself.
4823
4824 2020-09-15 Tom Tromey <tom@tromey.com>
4825
4826 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4827 Remove.
4828
4829 2020-09-15 Tom Tromey <tom@tromey.com>
4830
4831 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4832 and TYPE_CODE_METHODPTR cases.
4833 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4834 (c_value_print_inner): Update.
4835 * valprint.c (generic_value_print_memberptr): New function, from
4836 c_value_print_memberptr.
4837 (generic_value_print): Use it. Call cplus_print_method_ptr.
4838
4839 2020-09-15 Tom Tromey <tromey@adacore.com>
4840
4841 * python/python-internal.h (PyInt_FromLong): Remove define.
4842 * python/py-value.c (convert_value_from_python): Use
4843 gdb_py_object_from_longest.
4844 * python/py-type.c (typy_get_code): Use
4845 gdb_py_object_from_longest.
4846 * python/py-symtab.c (salpy_get_line): Use
4847 gdb_py_object_from_longest.
4848 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4849 gdb_py_object_from_longest.
4850 * python/py-record.c (recpy_gap_reason_code): Use
4851 gdb_py_object_from_longest.
4852 * python/py-record-btrace.c (recpy_bt_insn_size)
4853 (recpy_bt_func_level, btpy_list_count): Use
4854 gdb_py_object_from_longest.
4855 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4856 gdb_py_object_from_longest. Fix error handling.
4857 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4858 gdb_py_object_from_longest.
4859 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4860 gdb_py_object_from_longest.
4861 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4862 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4863 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4864
4865 2020-09-15 Tom Tromey <tromey@adacore.com>
4866
4867 * python/python.c (gdbpy_parameter_value): Use
4868 gdb_py_object_from_ulongest.
4869
4870 2020-09-15 Tom Tromey <tromey@adacore.com>
4871
4872 * python/py-infevents.c (create_register_changed_event_object):
4873 Use gdb_py_object_from_longest.
4874 * python/py-exitedevent.c (create_exited_event_object): Use
4875 gdb_py_object_from_longest.
4876
4877 2020-09-15 Tom Tromey <tromey@adacore.com>
4878
4879 * python/python.c (gdbpy_parameter_value): Use
4880 gdb_py_object_from_longest.
4881 * python/py-type.c (convert_field, typy_range): Use
4882 gdb_py_object_from_longest.
4883 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4884 gdb_py_object_from_longest.
4885 * python/py-lazy-string.c (stpy_get_length): Use
4886 gdb_py_object_from_longest.
4887 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4888 gdb_py_object_from_longest.
4889 * python/py-infevents.c (create_memory_changed_event_object): Use
4890 gdb_py_object_from_longest.
4891 * python/py-inferior.c (infpy_get_num): Use
4892 gdb_py_object_from_longest.
4893 (infpy_get_pid): Likewise.
4894
4895 2020-09-15 Tom Tromey <tromey@adacore.com>
4896
4897 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4898 defines.
4899 * python/py-value.c (valpy_long): Use
4900 gdb_py_object_from_ulongest.
4901 * python/py-symtab.c (salpy_get_pc): Use
4902 gdb_py_object_from_ulongest.
4903 (salpy_get_last): Likewise.
4904 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4905 gdb_py_object_from_ulongest.
4906 * python/py-lazy-string.c (stpy_get_address): Use
4907 gdb_py_object_from_ulongest.
4908 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4909 * python/py-arch.c (archpy_disassemble): Use
4910 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4911 error handling.
4912
4913 2020-09-15 Tom Tromey <tromey@adacore.com>
4914
4915 * python/python-internal.h (gdb_py_long_from_longest): Remove
4916 defines.
4917 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4918 * python/py-type.c (convert_field, typy_get_sizeof): Use
4919 gdb_py_object_from_longest.
4920 * python/py-record-btrace.c (btpy_list_index): Use
4921 gdb_py_object_from_longest.
4922
4923 2020-09-15 Tom Tromey <tromey@adacore.com>
4924
4925 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4926 * python/py-record.c (recpy_element_number): Use
4927 gdb_py_object_from_longest.
4928 (recpy_gap_number): Likewise.
4929
4930 2020-09-15 Tom Tromey <tromey@adacore.com>
4931
4932 * top.c (ui::ui): Update.
4933 (highest_ui_num): Remove.
4934 * top.h (struct ui) <num>: Remove.
4935
4936 2020-09-15 Tom Tromey <tromey@adacore.com>
4937
4938 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4939 * ui-style.c (ansi_regex_text): Now array.
4940 * rust-exp.y (number_regex_text): Now array.
4941 * linespec.c (linespec_quote_characters): Now array.
4942 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4943 Now arrays.
4944
4945 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4946
4947 * debuginfod-support.c (debuginfod_client_deleter): New.
4948 (debuginfod_client_up): New.
4949 (debuginfod_init): Return debuginfod_client_up.
4950 (debuginfod_source_query): Adjust.
4951 (debuginfod_debuginfo_query): Adjust.
4952
4953 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4954
4955 * debuginfod-support.c (debuginfod_source_query): Use
4956 make_unique_xstrdup.
4957
4958 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4959
4960 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4961 with `type::instance_flags`.
4962
4963 2020-09-14 Michael Mullin <masmullin@gmail.com>
4964
4965 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4966 Remove baton parameter.
4967
4968 2020-09-14 Pedro Alves <pedro@palves.net>
4969
4970 * Makefile.in (SELFTESTS_SRCS): Add
4971 unittests/enum-flags-selftests.c.
4972 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4973 btrace_function_flags instead of enum btrace_function_flag.
4974 * compile/compile-c-types.c (convert_qualified): Use
4975 enum_flags::raw.
4976 * compile/compile-cplus-symbols.c (convert_one_symbol)
4977 (convert_symbol_bmsym):
4978 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4979 (compile_cplus_convert_struct_or_union_methods)
4980 (compile_cplus_instance::convert_qualified_base):
4981 * go-exp.y (parse_string_or_char): Add cast to int.
4982 * unittests/enum-flags-selftests.c: New file.
4983 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4984 type to btrace_thread_flags from btrace_thread_flag.
4985 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4986 local's type to btrace_thread_flags from btrace_thread_flag. Add
4987 cast in DEBUG call.
4988
4989 2020-09-14 Pedro Alves <pedro@palves.net>
4990
4991 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4992 * gdbtypes.c (address_space_name_to_int): Rename to ...
4993 (address_space_name_to_type_instance_flags): ... this.
4994 (address_space_int_to_name): Rename to ...
4995 (address_space_type_instance_flags_to_name): ... this.
4996 * gdbtypes.h (address_space_name_to_int): Rename to ...
4997 (address_space_name_to_type_instance_flags): ... this.
4998 (address_space_int_to_name): Rename to ...
4999 (address_space_type_instance_flags_to_name): ... this.
5000 * type-stack.c (type_stack::insert): Adjust to rename.
5001 * type-stack.h (type_stack::insert): Likewise.
5002
5003 2020-09-14 Pedro Alves <pedro@palves.net>
5004 Andrew Burgess <andrew.burgess@embecosm.com>
5005
5006 * avr-tdep.c (avr_address_class_type_flags): Return
5007 type_instance_flags.
5008 (avr_address_class_type_flags_to_name): Take a
5009 type_instance_flags.
5010 (avr_address_class_name_to_type_flags): Return bool and take a
5011 type_instance_flags.
5012 * d-lang.c (build_d_types): Use type::set_instance_flags.
5013 * ft32-tdep.c (ft32_address_class_type_flags): Return
5014 type_instance_flags.
5015 (ft32_address_class_type_flags_to_name): Take a
5016 type_instance_flags.
5017 (ft32_address_class_name_to_type_flags): Return bool and take a
5018 type_instance_flags.
5019 (ft32_gdbarch_init): Use type::set_instance_flags.
5020 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5021 * gdbarch.h, gdbarch.c: Regenerate.
5022 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5023 (address_class_name_to_type_flags): Use type_instance_flags and
5024 bool.
5025 * gdbtypes.c (address_space_name_to_int)
5026 (address_space_int_to_name, make_qualified_type): Use
5027 type_instance_flags.
5028 (make_qualified_type): Use type_instance_flags and
5029 type::set_instance_flags.
5030 (make_type_with_address_space, make_cv_type, make_vector_type)
5031 (check_typedef): Use type_instance_flags.
5032 (recursive_dump_type): Cast type_instance_flags to unsigned for
5033 printing.
5034 (copy_type_recursive): Use type::set_instance_flags.
5035 (gdbtypes_post_init): Use type::set_instance_flags.
5036 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5037 <m_instance_flags>: ... this.
5038 <instance_flags, set_instance_flags>: New methods.
5039 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5040 (SET_TYPE_INSTANCE_FLAGS): New.
5041 (address_space_name_to_int, address_space_int_to_name)
5042 (make_type_with_address_space): Pass flags using
5043 type_instance_flags instead of int.
5044 * stabsread.c (cleanup_undefined_types_noname): Use
5045 type::set_instance_flags.
5046 * s390-tdep.c (s390_address_class_type_flags): Return
5047 type_instance_flags.
5048 (s390_address_class_type_flags_to_name): Take a
5049 type_instance_flags.
5050 (s390_address_class_name_to_type_flags): Return bool and take a
5051 type_instance_flags.
5052 * type-stack.c (type_stack::follow_types): Use
5053 type_instance_flags.
5054 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5055
5056 2020-09-14 Tom Tromey <tromey@adacore.com>
5057
5058 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5059 * x86-tdep.c (x86_is_thunk_register_name)
5060 (x86_in_indirect_branch_thunk): Update.
5061 * sparc64-tdep.c (sparc64_fpu_register_names)
5062 (sparc64_cp0_register_names, sparc64_register_names)
5063 (sparc64_pseudo_register_names): Now const.
5064 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5065 cp0_registers_num>: Now const.
5066 * sparc-tdep.c (sparc_core_register_names)
5067 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5068 (sparc32_pseudo_register_names): Now const.
5069 (validate_tdesc_registers): Update.
5070 * rust-lang.c (rust_extensions): Now const.
5071 * p-lang.c (p_extensions): Now const.
5072 * objc-lang.c (objc_extensions): Now const.
5073 * nto-tdep.c (nto_thread_state_str): Now const.
5074 * moxie-tdep.c (moxie_register_names): Now const.
5075 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5076 Now const.
5077 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5078 (mips_linux_reg_names): Now const.
5079 (mips_gdbarch_init): Update.
5080 * microblaze-tdep.c (microblaze_register_names): Now const.
5081 * m68k-tdep.c (m68k_register_names): Now const.
5082 * m32r-tdep.c (m32r_register_names): Now const.
5083 * ia64-tdep.c (ia64_register_names): Now const.
5084 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5085 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5086 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5087 ymm_avx512_register_names, pkeys_register_names>: Now const.
5088 * i386-tdep.c (i386_register_names, i386_zmm_names)
5089 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5090 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5091 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5092 * f-lang.c (f_extensions): Now const.
5093 * d-lang.c (d_extensions): Now const.
5094 * csky-tdep.c (csky_register_names): Now const.
5095 * charset.c (default_charset_names, charset_enum): Now const.
5096 (_initialize_charset): Update.
5097 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5098 const.
5099 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5100 (bsd_uthread_solib_loaded): Update.
5101 (bsd_uthread_state): Now const.
5102 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5103 (amd64_ymm_avx512_names, amd64_ymmh_names)
5104 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5105 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5106 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5107 (amd64_dword_names): Now const.
5108 * agent.c (can_use_agent_enum): Now const.
5109 * ada-tasks.c (task_states, long_task_states): Now const.
5110 * ada-lang.c (known_runtime_file_name_patterns)
5111 (known_auxiliary_function_name_patterns, attribute_names)
5112 (standard_exc, ada_extensions): Now const.
5113
5114 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5115
5116 * bcache.h (struct bcache) <bcache>: Remove constructor.
5117 <m_hash_function, m_compare_function>: Remove.
5118 <~bcache>: Make virtual.
5119 <compare>: Remove static method, introduce virtual method.
5120 <default_hash>: Remove.
5121 <hash>: New virtual method.
5122 * bcache.c (bcache::expand_hash_table): Update.
5123 (bcache::insert): Update.
5124 (bcache::hash): New.
5125 (bcache::compare): Update comment and parameter names.
5126 * gdbtypes.c (types_deeply_equal): Update.
5127 * psymtab.h (struct psymbol_bcache): New struct.
5128 (class psymtab_storage) <psymtab_storage>: Make default.
5129 <psymbol_cache>: Change type to psymbol_bcache.
5130 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5131 (psymbol_hash): Change to...
5132 (psymbol_bcache::hash): ... this.
5133 (psymbol_compare): Change to...
5134 (psymbol_bcache::compare): ... this.
5135
5136 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5137
5138 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5139 checking for initial lwp.
5140
5141 2020-09-14 Tom Tromey <tromey@adacore.com>
5142
5143 * m68k-tdep.c (m68k_extract_return_value): Use
5144 pointer_result_regnum.
5145 (m68k_store_return_value): Likewise.
5146 (m68k_reg_struct_return_p): Handle vectors and arrays.
5147 (m68k_return_value): Handle arrays.
5148 (m68k_svr4_return_value): Fix single-element aggregate handling.
5149 Handle long double. Adjust for embedded ABI.
5150 (m68k_svr4_init_abi): Set pointer_result_regnum.
5151 (m68k_embedded_init_abi): New function.
5152 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5153 (m68k_osabi_sniffer): New function.
5154 (_initialize_m68k_tdep): Register osabi sniffer.
5155 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5156 member.
5157
5158 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5159
5160 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5161 with gdb::unique_xmalloc_ptr<char>.
5162
5163 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5164
5165 * xml-support.h (xml_fetch_another): Change type to be a
5166 function_view.
5167 (xml_process_xincludes): Remove baton parameter.
5168 (xml_fetch_content_from_file): Change baton parameter to
5169 dirname.
5170 * xml-support.c (struct xinclude_parsing_data)
5171 <xinclude_parsing_data>: Remove baton parameter.
5172 <fetcher_baton>: Remove.
5173 (xinclude_start_include): Adjust.
5174 (xml_process_xincludes): Adjust.
5175 (xml_fetch_content_from_file): Replace baton parameter with
5176 dirname.
5177 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5178 (xml_init_syscalls_info): Use a lambda.
5179 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5180 (file_read_description_xml): Use a lambda.
5181 (fetch_available_features_from_target): Change baton parameter
5182 to target_ops.
5183 (target_read_description_xml): Use a lambda.
5184 (target_fetch_description_xml): Use a lambda.
5185 (string_read_description_xml): Update.
5186
5187 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5188
5189 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5190 uses with type::endianity_is_not_default.
5191
5192 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5193
5194 * gdbtypes.h (struct type) <endianity_is_not_default,
5195 set_endianity_is_not_default>: New methods.
5196 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5197 type::endianity_is_not_default, change all write call sites to
5198 use type::set_endianity_is_not_default.
5199
5200 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5201
5202 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5203 uses with type::is_fixed_instance.
5204
5205 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5206
5207 * gdbtypes.h (struct type) <is_fixed_instance,
5208 set_is_fixed_instance>: New methods.
5209 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5210 write call sites to use type::set_is_fixed_instance.
5211
5212 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5213
5214 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5215 uses with type::is_gnu_ifunc.
5216
5217 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5218
5219 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5220 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5221 use type::set_is_gnu_ifunc.
5222
5223 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5224
5225 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5226 uses with type::stub_is_supported.
5227
5228 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5229
5230 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5231 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5232 use type::set_stub_is_supported.
5233
5234 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5235
5236 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5237 uses with type::is_vector.
5238
5239 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5240
5241 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5242 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5243 use type::set_is_vector.
5244
5245 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5246
5247 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5248 uses with type::has_varargs.
5249
5250 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5251
5252 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5253 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5254 use type::set_has_varargs.
5255
5256 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5257
5258 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5259 uses with type::is_prototyped.
5260
5261 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5262
5263 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5264 New methods.
5265 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5266 call sites to use type::set_is_prototyped.
5267
5268 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5269
5270 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5271 uses with type::target_is_stub.
5272
5273 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5274
5275 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5276 New methods.
5277 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5278 sites to use type::set_target_is_stub.
5279
5280 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5281
5282 * gdbtypes.h (TYPE_STUB): Remove, replace all
5283 uses with type::is_stub.
5284
5285 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5288 (TYPE_STUB): Use type::is_stub, change all write call sites to
5289 use type::set_is_stub.
5290
5291 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5292
5293 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5294 type::has_no_signedness.
5295
5296 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * gdbtypes.h (struct type) <has_no_signedness,
5299 set_has_no_signedness>: New methods.
5300 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5301 call sites to use type::set_has_no_signedness.
5302
5303 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5304
5305 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5306 type::is_unsigned.
5307
5308 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5309
5310 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5311 methods.
5312 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5313 sites to use type::set_is_unsigned.
5314
5315 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5316 Adam Renquinha <arenquinha@cimeq.qc.ca>
5317
5318 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5319 pointer and stack frame offset when unwinding.
5320
5321 2020-09-13 Pedro Alves <pedro@palves.net>
5322
5323 * NEWS: Document "-break-insert --qualified".
5324 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5325
5326 2020-09-13 Pedro Alves <pedro@palves.net>
5327
5328 * linespec.c (classify_mtype, compare_msyms): Delete.
5329 (search_minsyms_for_name): Remove classification logic. Instead
5330 filter out trampoline symbols if we also found an external
5331 function of the same name.
5332
5333 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5334
5335 * NEWS: Create a new section for the next release branch.
5336 Rename the section of the current branch, now that it has
5337 been cut.
5338
5339 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5340
5341 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5342 * version.in: Bump version to 11.0.50.DATE-git.
5343
5344 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5345
5346 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5347
5348 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5349 Felix Willgerodt <Felix.Willgerodt@intel.com>
5350
5351 * gdbarch.sh: Added bfloat16 type.
5352 * gdbarch.c: Regenerated.
5353 * gdbarch.h: Regenerated.
5354 * gdbtypes.c (floatformats_bfloat16): New struct.
5355 (gdbtypes_post_init): Add builtin_bfloat16.
5356 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5357 (floatformats_bfloat16): New struct.
5358 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5359 (i386_ymm_type): Add field "v16_bfloat16"
5360 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5361 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5362 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5363 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5364 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5365 * features/i386/64bit-avx512.c: Regenerated.
5366 * features/i386/64bit-sse.xml: Add bfloat16 type.
5367 * features/i386/64bit-sse.c: Regenerated.
5368
5369 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5370
5371 * i386-tdep.c (i386_zmm_type): Fix field names.
5372 (i386_ymm_type): Fix field names.
5373
5374 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5375
5376 * breakpoint.c: Fix typo in the help message of the
5377 "set breakpoint condition-evaluation" command.
5378
5379 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5380
5381 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5382 * (nbsd_nat_target::pid_to_exec_file)
5383 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5384 (nbsd_nat_target::post_startup_inferior)
5385 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5386 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5387 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5388 * (nbsd_thread_lister): Remove.
5389
5390 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5391
5392 * fork-inferior.c (startup_inferior): Avoid double free.
5393
5394 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5395
5396 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5397 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5398
5399 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5400
5401 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5402 * netbsd-nat.c: Include <sys/ptrace.h>.
5403 * (netbsd_nat::enable_proc_events): Add.
5404
5405 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5406
5407 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5408 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5409 (netbsd_nat::for_each_thread): Add.
5410 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5411 "gdbsupport/common-debug.h".
5412 * (netbsd_nat::netbsd_thread_lister)
5413 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5414 (netbsd_nat::for_each_thread): Add.
5415
5416 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5417
5418 * netbsd-nat.h: Include <unistd.h>.
5419 * (netbsd_nat::pid_to_exec_file): Add.
5420 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5421 * (netbsd_nat::pid_to_exec_file) Add.
5422
5423 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5424
5425 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5426
5427 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5428
5429 * netbsd-nat.h: New file.
5430 * netbsd-nat.c: Likewise.
5431
5432 2020-09-09 Tom Tromey <tromey@adacore.com>
5433
5434 * ada-lang.c (remove_extra_symbols): Do not increment when
5435 removing an element
5436
5437 2020-09-08 Tom Tromey <tromey@adacore.com>
5438
5439 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5440
5441 2020-09-08 Tom Tromey <tromey@adacore.com>
5442
5443 PR win32/25302:
5444 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5445 (gdb_bfd_init_data): New function.
5446 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5447
5448 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5449
5450 * infrun.c (fetch_inferior_event): Use
5451 `switch_to_target_no_thread` to switch the target.
5452
5453 2020-09-06 Tom Tromey <tom@tromey.com>
5454
5455 * symfile.h (dwarf2_free_objfile): Don't declare.
5456
5457 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5458
5459 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5460 to match 16 byte real/complex type generated by Flang compiler.
5461
5462 2020-09-03 Tom de Vries <tdevries@suse.de>
5463
5464 PR breakpoint/26546
5465 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5466 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5467
5468 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5469
5470 * maint.c (index_digits): New function.
5471 (struct maint_print_section_data): Remove.
5472 (print_bfd_section_info): Remove print_data parameter, add arg
5473 and index_digits.
5474 (print_objfile_section_info): Likewise.
5475 (print_bfd_section_info_maybe_relocated): Likewise (plus
5476 objfile).
5477 (maintenance_info_sections): Adjust calls.
5478
5479 2020-09-02 Tom Tromey <tromey@adacore.com>
5480
5481 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5482 for null pointers.
5483 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5484
5485 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5486
5487 * bcache.h (struct bcache) <insert>: Change type of `added` to
5488 pointer to bool.
5489 * bcache.c (bcache::insert): Likewise.
5490 * gdbtypes.c (check_types_worklist): Adjust.
5491 * psymtab.c (add_psymbol_to_bcache): Adjust.
5492
5493 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5494
5495 * corelow.c (unordered_set): Include.
5496 (class core_target): Add field 'm_core_unavailable_mappings'.
5497 (core_target::build_file_mappings): Print only one warning
5498 per inaccessible file. Add unavailable/broken mappings
5499 to m_core_unavailable_mappings.
5500 (core_target::xfer_partial): Call...
5501 (core_target::xfer_memory_via_mappings): New method.
5502
5503 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5504
5505 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5506 type to bool.
5507
5508 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5509
5510 * dwarf2/read.c (struct field_info): Fix indentation.
5511
5512 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5513
5514 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5515 ordering in comment.
5516 * frame.c (frame_id_eq): Fix indentation.
5517
5518 2020-08-31 Scott Linder <scott@scottlinder.com>
5519 Simon Marchi <simon.marchi@efficios.com>
5520
5521 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5522 inline frame ids in outer frame.
5523
5524 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5525
5526 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5527 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5528 (outer_frame_id): Use FID_STACK_OUTER instead of
5529 FID_STACK_INVALID.
5530 (frame_id_p): Don't check for outer_frame_id.
5531
5532 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5533
5534 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5535 regnum/frame in value. Call allocate_value_lazy.
5536 * frame.c (frame_unwind_register_value): Use
5537 val_print_not_saved.
5538
5539 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5540
5541 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5542
5543 2020-08-29 Pedro Alves <pedro@palves.net>
5544
5545 * progspace.c (print_program_space): Use all_inferiors. Switch to
5546 the inferior before calling target_pid_to_str.
5547
5548 2020-08-28 Tom Tromey <tom@tromey.com>
5549
5550 * xcoffread.c (xcoff_end_psymtab): Update comment.
5551 * dbxread.c (dbx_end_psymtab): Update comment.
5552
5553 2020-08-28 Tom de Vries <tdevries@suse.de>
5554
5555 PR breakpoint/26544
5556 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5557 event_location.
5558 (create_breakpoint): Same.
5559 (base_breakpoint_decode_location): Same.
5560 (bkpt_create_sals_from_location): Same.
5561 (bkpt_decode_location): Same.
5562 (bkpt_probe_create_sals_from_location): Same.
5563 (bkpt_probe_decode_location): Same.
5564 (tracepoint_create_sals_from_location): Same.
5565 (tracepoint_decode_location): Same.
5566 (tracepoint_probe_decode_location): Same.
5567 (strace_marker_create_sals_from_location): Same.
5568 (strace_marker_decode_location): Same.
5569 (create_sals_from_location_default): Same.
5570 (decode_location_default): Same.
5571 * breakpoint.h (struct breakpoint_ops): Same.
5572 (create_breakpoint): Same.
5573 * linespec.h (decode_line_full): Same.
5574 * linespec.c (decode_line_full): Same. Throw error if
5575 result.size () == 0.
5576
5577 2020-08-27 Pedro Alves <pedro@palves.net>
5578
5579 PR gdb/26524
5580 * breakpoint.c (until_break_fsm) <location_breakpoint,
5581 caller_breakpoint>: Delete fields.
5582 <breakpoints>: New field.
5583 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5584 two individual breakpoints.
5585 (until_break_fsm::should_stop): Loop over breakpoints in the
5586 breakpoint vector.
5587 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5588 vector.
5589 (until_break_command): Handle location expanding into multiple
5590 sals.
5591
5592 2020-08-27 Pedro Alves <pedro@palves.net>
5593
5594 PR gdb/26523
5595 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5596 bp_until breakpoints user-specified locations. Update intro
5597 comment.
5598
5599 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5600
5601 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5602 gdb_bfd_sections): New.
5603 * maint.c (print_bfd_section_info): Change param type to
5604 maint_print_section_data.
5605 (print_objfile_section_info): Likewise.
5606 (print_bfd_section_info_maybe_relocated): Likewise.
5607 (maintenance_info_sections): Use gdb_bfd_sections.
5608
5609 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5610
5611 * MAINTAINERS: Add ARC target and maintainer.
5612
5613 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5614
5615 * configure.tgt: ARC support for GNU/Linux.
5616 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5617 * arc-linux-tdep.c: New file.
5618 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5619 * arc-tdep.c (arc_write_pc): Use it.
5620
5621 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5622
5623 * arc-tdep.c (arc_check_for_hardware_loop): New.
5624 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5625
5626 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5627
5628 * arc-tdep.h: Include "gdbarch.h".
5629
5630 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5631
5632 * arch/arc.h
5633 (arc_gdbarch_features): New class to stir the selection of target XML.
5634 (arc_create_target_description): Use FEATURES to choose XML target.
5635 (arc_lookup_target_description): Use arc_create_target_description
5636 to create _new_ target descriptions or return the already created
5637 ones if the FEATURES is the same.
5638 * arch/arc.c: Implementation of prototypes described above.
5639 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5640 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5641 * arc-tdep.c (*_feature_name): Make feature names consistent.
5642 (arc_register_feature): A new struct to hold information about
5643 registers of a particular target/feature.
5644 (arc_check_tdesc_feature): Check if XML provides registers in
5645 compliance with ARC_REGISTER_FEATURE structs.
5646 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5647 (determine_*_reg_feature_set): Which feature name to look for.
5648 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5649 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5650 to expected ISA enums to be used in arc_gdbarch_features structs.
5651 * features/Makefile (FEATURE_XMLFILES): Add new files.
5652 * gdb/features/arc/v1-aux.c: New file.
5653 * gdb/features/arc/v1-aux.xml: Likewise.
5654 * gdb/features/arc/v1-core.c: Likewise.
5655 * gdb/features/arc/v1-core.xml: Likewise.
5656 * gdb/features/arc/v2-aux.c: Likewise.
5657 * gdb/features/arc/v2-aux.xml: Likewise.
5658 * gdb/features/arc/v2-core.c: Likewise.
5659 * gdb/features/arc/v2-core.xml: Likewise.
5660 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5661
5662 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5663 Andrew Burgess <andrew.burgess@embecosm.com>
5664
5665 PR m2/26372
5666 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5667 an assert. Remove single element array indexing pattern as the
5668 MULTI_SUBSCRIPT support will handle this case too.
5669
5670 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5671
5672 * value.h (valprint_check_validity): Move declaration from
5673 here...
5674 * valprint.h (valprint_check_validity): ... to here.
5675
5676 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5677
5678 * debug.h: New file.
5679 * debug.c (debug_prefixed_vprintf): New function.
5680 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5681 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5682
5683 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5684
5685 * infrun.h (infrun_debug_printf_1): New function declaration.
5686 (infrun_debug_printf): New macro.
5687 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5688 throughout.
5689 (infrun_debug_printf): New function.
5690 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5691 (handle_jit_event): Likewise.
5692
5693 2020-08-21 Mark Wielaard <mark@klomp.org>
5694
5695 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5696
5697 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5698
5699 * frame.c (enum class frame_id_status): New.
5700 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5701 (fprintf_frame): Update.
5702 (compute_frame_id): Set frame id status to "computing" on entry.
5703 Set it back to "not_computed" on failure and to "computed" on
5704 success.
5705 (get_frame_id): Assert the frame id is not being computed.
5706 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5707 (create_new_frame): Likewise.
5708 (frame_cleanup_after_sniffer): Update assert.
5709
5710 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5711
5712 * regcache.c (pid_ptid_regcache_map): New type.
5713 (target_ptid_regcache_map): Remove.
5714 (target_pid_ptid_regcache_map): New type.
5715 (regcaches): Change type to target_pid_ptid_regcache_map.
5716 (get_thread_arch_aspace_regcache): Update.
5717 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5718 case.
5719 (regcaches_size): Update.
5720 (regcache_count): Update.
5721 (registers_changed_ptid_target_pid_test): New.
5722 (_initialize_regcache): Register new test.
5723
5724 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5725
5726 * regcache.c (regcache_count): New.
5727 (struct regcache_test_data): New.
5728 (regcache_test_data_up): New.
5729 (populate_regcaches_for_test): New.
5730 (regcaches_test): Remove.
5731 (get_thread_arch_aspace_regcache_test): New.
5732 (registers_changed_ptid_all_test): New.
5733 (registers_changed_ptid_target_test): New.
5734 (registers_changed_ptid_target_ptid_test): New.
5735 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5736 (_initialize_regcache): Register new tests.
5737
5738 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5739
5740 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5741 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5742 gdbarch and aspace parameter. Use current inferior's aspace.
5743 Validate regcache's arch value.
5744 (regcaches_test): Update.
5745
5746 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5747
5748 * regcache.c (regcaches_test): Call registers_changed.
5749
5750 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5751
5752 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5753
5754 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5755
5756 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5757 to find the end of prologue for flang compiled binaries.
5758 * arm-tdep.c (arm_skip_prologue): Likewise.
5759 * i386-tdep.c (i386_skip_prologue): Likewise.
5760 * producer.c (producer_is_llvm): New function.
5761 (producer_parsing_tests): Added new tests for clang/flang.
5762 * producer.h (producer_is_llvm): New declaration.
5763
5764 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5765
5766 * linux-nat.c (linux_nat_debug_printf): New function.
5767 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5768
5769 2020-08-18 Aaron Merey <amerey@redhat.com>
5770
5771 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5772 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5773 (CLIBS): Add DEBUGINFOD_LIBS.
5774
5775 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5776
5777 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5778 'gdbarch_num_regs'.
5779
5780 2020-08-17 Tom Tromey <tromey@adacore.com>
5781
5782 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5783 ada_get_decoded_value returns NULL.
5784
5785 2020-08-17 Tom Tromey <tromey@adacore.com>
5786
5787 * python/py-inferior.c (infpy_search_memory): Use
5788 gdb_py_object_from_ulongest.
5789 * python/py-infevents.c (create_inferior_call_event_object)
5790 (create_memory_changed_event_object): Use
5791 gdb_py_object_from_ulongest.
5792 * python/py-linetable.c (ltpy_entry_get_pc): Use
5793 gdb_py_object_from_ulongest.
5794
5795 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5796
5797 * loc.c (class symbol_needs_eval_context): Fix indentation.
5798
5799 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5800
5801 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5802 bool.
5803
5804 2020-08-17 Tom de Vries <tdevries@suse.de>
5805
5806 PR gdb/26393
5807 * gdbtypes.c (dump_dynamic_prop): New function.
5808 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5809
5810 2020-08-15 Tom de Vries <tdevries@suse.de>
5811
5812 PR backtrace/26390
5813 * stack.c (print_frame_args): Temporarily set the selected
5814 frame to FRAME while printing the frame's arguments.
5815
5816 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5817
5818 PR breakpoints/26385
5819 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5820 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5821
5822 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5823
5824 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5825 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5826 and >= to check return value instead of == -1 and != -1.
5827
5828 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5829
5830 * utils.h (class gdb_argv) <as_array_view>: New method.
5831 * utils.c (gdb_argv_as_array_view_test): New.
5832 (_initialize_utils): Register selftest.
5833 * maint.c (maintenance_selftest): Use the new method.
5834
5835 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5836
5837 * target.h (supports_dumpcore, dumpcore): New
5838 function declarations.
5839 * target.c (supports_dumpcore, dumpcore): New
5840 functions.
5841 * target-delegates.c: Rebuild.
5842 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5843 and target_dumpcore ().
5844
5845 2020-08-13 Aaron Merey <amerey@redhat.com>
5846
5847 * debuginfod-support.c: Replace global variables with user_data.
5848
5849 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5850
5851 * maint.c (maintenance_selftest): Split args and pass array_view
5852 to run_tests.
5853
5854 2020-08-12 Luis Machado <luis.machado@linaro.org>
5855
5856 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5857 type's length.
5858 Use %s and pulongest to print the length.
5859
5860 2020-08-12 Pedro Alves <palves@redhat.com>
5861
5862 * NEWS: Move "Multi-target debugging support" item to the
5863 "Changes since GDB 9" section.
5864
5865 2020-08-12 Pedro Alves <palves@redhat.com>
5866
5867 PR gdb/26336
5868 * progspace.c (program_space::remove_objfile): Invalidate the
5869 frame cache.
5870
5871 2020-08-11 Tom de Vries <tdevries@suse.de>
5872
5873 * MAINTAINERS: Mark ms1 as deleted.
5874
5875 2020-08-10 Luis Machado <luis.machado@linaro.org>
5876
5877 PR gdb/26310
5878
5879 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5880 act accordingly.
5881 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5882 movz/str/stur/stp skipping behavior.
5883
5884 2020-08-10 Luis Machado <luis.machado@linaro.org>
5885
5886 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5887 struct user_sve_header instead of struct sve_context.
5888
5889 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5890
5891 * read.h (dwarf2_fetch_die_loc_sect_off,
5892 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5893 `void *` parameter with function_view.
5894 * read.c (dwarf2_fetch_die_loc_sect_off,
5895 dwarf2_fetch_die_loc_cu_off): Likewise.
5896 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5897 (per_cu_dwarf_call): Adjust.
5898 (get_frame_address_in_block_wrapper): Remove.
5899 (indirect_synthetic_pointer): Adjust.
5900 (get_ax_pc): Remove.
5901 (dwarf2_compile_expr_to_ax): Adjust.
5902
5903 2020-08-08 Tom de Vries <tdevries@suse.de>
5904
5905 PR build/26344
5906 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5907 constructor.
5908 * regcache.c (get_thread_arch_aspace_regcache): Same.
5909
5910 2020-08-07 Tom Tromey <tromey@adacore.com>
5911
5912 * ravenscar-thread.c
5913 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5914 New method.
5915 (ravenscar_thread_target::wait): Check
5916 runtime_initialized.
5917 (ravenscar_thread_target::prepare_to_store)
5918 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5919 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5920 (ravenscar_thread_target::stopped_by_watchpoint)
5921 (ravenscar_thread_target::stopped_data_address)
5922 (ravenscar_thread_target::core_of_thread): Use
5923 scoped_restore_current_thread and
5924 set_base_thread_from_ravenscar_task.
5925
5926 2020-08-07 Tom Tromey <tromey@adacore.com>
5927
5928 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5929
5930 2020-08-07 Tom Tromey <tromey@adacore.com>
5931
5932 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5933 update_inferior_ptid before update_thread_list.
5934 (temporarily_change_regcache_ptid): New class.
5935 (ravenscar_thread_target::fetch_registers)
5936 (ravenscar_thread_target::store_registers)
5937 (ravenscar_thread_target::prepare_to_store): Use base thread when
5938 forwarding operation.
5939
5940 2020-08-07 Tom Tromey <tromey@adacore.com>
5941
5942 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5943 "is_pid" case.
5944
5945 2020-08-07 Tom Tromey <tromey@adacore.com>
5946
5947 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5948 New methods.
5949 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5950 first.
5951 (ravenscar_thread_target::add_thread): Rename from
5952 ravenscar_add_thread.
5953 (ravenscar_thread_target::update_thread_list): Use a lambda.
5954 (ravenscar_thread_target::xfer_partial): New method.
5955
5956 2020-08-07 Tom Tromey <tromey@adacore.com>
5957
5958 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5959 gdb::function_view.
5960 (iterate_over_live_ada_tasks): Change type of argument.
5961 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5962 of argument.
5963
5964 2020-08-07 Tom Tromey <tromey@adacore.com>
5965
5966 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5967 Remove.
5968 (ravenscar_thread_target::extra_thread_info): Remove.
5969 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5970 defer to target beneath for non-Ravenscar threads.
5971
5972 2020-08-07 Tom Tromey <tromey@adacore.com>
5973
5974 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5975 get_base_thread_from_ravenscar_task>: Now methods.
5976 <m_cpu_map>: New member.
5977 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5978 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5979 (ravenscar_thread_target::task_is_currently_active): Update.
5980 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5981 Now a method.
5982 (ravenscar_thread_target::add_active_thread): Put initial thread
5983 into the m_cpu_map.
5984
5985 2020-08-07 Tom Tromey <tromey@adacore.com>
5986
5987 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5988 event_ptid.
5989
5990 2020-08-07 Tom Tromey <tromey@adacore.com>
5991
5992 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5993 runtime_initialized.
5994
5995 2020-08-07 Tom Tromey <tromey@adacore.com>
5996
5997 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5998 add_active_thread.
5999 (ravenscar_thread_target::add_active_thread): Now public.
6000 (ravenscar_inferior_created): Call add_active_thread after pushing
6001 the target.
6002
6003 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6004
6005 * regcache.c (ptid_regcache_map): New type.
6006 (target_ptid_regcache_map): New type.
6007 (regcaches): Change type to target_ptid_regcache_map.
6008 (get_thread_arch_aspace_regcache): Update to regcaches' new
6009 type.
6010 (regcache_thread_ptid_changed): Likewise.
6011 (registers_changed_ptid): Likewise.
6012 (regcaches_size): Likewise.
6013 (regcaches_test): Update.
6014 (regcache_thread_ptid_changed): Update.
6015 * regcache.h (regcache_up): New type.
6016 * gdbsupport/ptid.h (hash_ptid): New struct.
6017
6018 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6019
6020 * observable.h (thread_ptid_changed): Add parameter
6021 `process_stratum_target *`.
6022 * infrun.c (infrun_thread_ptid_changed): Add parameter
6023 `process_stratum_target *` and use it.
6024 (selftests): New namespace.
6025 (infrun_thread_ptid_changed): New function.
6026 (_initialize_infrun): Register selftest.
6027 * regcache.c (regcache_thread_ptid_changed): Add parameter
6028 `process_stratum_target *` and use it.
6029 (regcache_thread_ptid_changed): New function.
6030 (_initialize_regcache): Register selftest.
6031 * thread.c (thread_change_ptid): Pass target to
6032 thread_ptid_changed observable.
6033
6034 2020-08-06 Caroline Tice <cmtice@google.com>
6035
6036 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6037 (struct dwp_sections): Update field comments. Add loclists and
6038 rnglists fields.
6039 (struct virtual_v2_dwo_sections): Rename struct to
6040 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6041 size & offset fields for loclists and rnglists.
6042 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6043 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6044 skipping dummy type units.
6045 (create_dwp_hash_table): Update the large comment above the function to
6046 discuss Version 5 DWP files as well, with references. Update all the
6047 version checks in the function to check for version 5 as well. Add new
6048 section at the end to create dwp hash table for version 5.
6049 (create_dwp_v2_section): Rename function to
6050 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6051 Add V5 to error message text.
6052 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6053 into calls to create_dwp_v2_or_v5_section.
6054 (create_dwo_unit_in_dwp_v5): New function.
6055 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6056 check for version2; add else clause to handle version 5.
6057 (open_and_init_dwo_file): Add code to check dwarf version & only call
6058 create_debug_types_hash_table (with sections.types) if version is not 5;
6059 else call create_debug_type_hash_table, with sections.info.
6060 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6061 version 5.
6062 (dwarf2_locate_v5_dwp_sections): New function.
6063 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6064 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6065
6066 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6067
6068 * regcache.h (class regcache): Remove friend
6069 registers_changed_ptid.
6070 <regcache_thread_ptid_changed>: Remove.
6071 <regcaches>: Remove.
6072 * regcache.c (regcache::regcaches): Rename to...
6073 (regcaches): ... this. Make static.
6074 (get_thread_arch_aspace_regcache): Update.
6075 (regcache::regcache_thread_ptid_changed): Rename to...
6076 (regcache_thread_ptid_changed): ... this. Update.
6077 (class regcache_access): Remove.
6078 (regcaches_test): Update.
6079 (_initialize_regcache): Update.
6080 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6081 <forward_list>.
6082
6083 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6084
6085 * regcache.h (class regcache) <current_regcache>: Rename to...
6086 <regcaches>: ... this. Move doc here.
6087 * regcache.c (regcache::current_regcache) Rename to...
6088 (regcache::regcaches): ... this. Move doc to header.
6089 (get_thread_arch_aspace_regcache): Update.
6090 (regcache::regcache_thread_ptid_changed): Update.
6091 (registers_changed_ptid): Update.
6092 (class regcache_access) <current_regcache_size>: Rename to...
6093 <regcaches_size>: ... this.
6094 (current_regcache_test): Rename to...
6095 (regcaches_test): ... this.
6096 (_initialize_regcache): Update.
6097
6098 2020-08-06 Victor Collod <vcollod@nvidia.com>
6099
6100 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6101
6102 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6103
6104 * corelow.c (core_target::build_file_mappings): Don't output
6105 null pathname in warning.
6106
6107 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6108
6109 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6110 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6111 gdb.dwarf2/dw2-single-line-discriminators.exp,
6112 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6113
6114 2020-08-05 Tom Tromey <tromey@adacore.com>
6115
6116 PR rust/26197:
6117 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6118 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6119 Fix off-by-one and type size errors in ordinary case.
6120
6121 2020-08-05 Tom de Vries <tdevries@suse.de>
6122
6123 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6124 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6125
6126 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6127
6128 * frame.h (frame_id_p): Return bool.
6129 (frame_id_artificial_p): Return bool.
6130 (frame_id_eq): Return bool.
6131 (has_stack_frames): Return bool.
6132 (get_selected_frame): Fix typo in comment.
6133 (get_frame_pc_if_available): Return bool.
6134 (get_frame_address_in_block_if_available): Return bool.
6135 (get_frame_func_if_available): Return bool.
6136 (read_frame_register_unsigned): Return bool.
6137 (get_frame_register_bytes): Return bool.
6138 (safe_frame_unwind_memory): Return bool.
6139 (deprecated_frame_register_read): Return bool.
6140 (frame_unwinder_is): Return bool.
6141 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6142 bool.
6143 <this_id::p>: Likewise.
6144 <prev_p>: Likewise.
6145 (frame_stash_add): Return bool.
6146 (get_frame_id): Use bool.
6147 (frame_id_build_special) Use bool.
6148 (frame_id_build_unavailable_stack): Use bool.
6149 (frame_id_build): Use bool.
6150 (frame_id_p): Return bool, use true/false instead of 1/0.
6151 (frame_id_artificial_p): Likewise.
6152 (frame_id_eq): Likewise.
6153 (frame_id_inner): Likewise.
6154 (get_frame_func_if_available): Likewise.
6155 (read_frame_register_unsigned): Likewise.
6156 (deprecated_frame_register_read): Likewise.
6157 (get_frame_register_bytes): Likewise.
6158 (has_stack_frames): Likewise.
6159 (inside_main_func): Likewise.
6160 (inside_entry_func): Likewise.
6161 (get_frame_pc_if_available): Likewise.
6162 (get_frame_address_in_block_if_available): Likewise.
6163 (frame_unwinder_is): Likewise.
6164 (safe_frame_unwind_memory): Likewise.
6165 (frame_unwind_arch): Likewise.
6166
6167 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6168
6169 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6170 type to cached_copy_status.
6171 (fprintf_frame): Adjust.
6172 (get_frame_func_if_available): Adjust.
6173 (frame_cleanup_after_sniffer): Adjust.
6174
6175 2020-08-04 Mark Wielaard <mark@klomp.org>
6176
6177 * MAINTAINERS (Write After Approval): Update email address.
6178
6179 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6180
6181 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6182 dynamic_prop::const_val.
6183
6184 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6185
6186 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6187 dynamic_prop::kind.
6188
6189 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6190
6191 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6192
6193 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6194
6195 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6196
6197 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6198 Jose E. Marchesi <jose.marchesi@oracle.com>
6199
6200 * configure.tgt: Add entry for bpf-*-*.
6201 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6202 (ALLDEPFILES): Add bpf-tdep.c.
6203 * bpf-tdep.c: New file.
6204 * MAINTAINERS: Add bpf target and maintainer.
6205 * NEWS: Mention the support for the new target.
6206
6207 2020-08-04 Tom de Vries <tdevries@suse.de>
6208
6209 PR symtab/23270
6210 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6211 Error.
6212
6213 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6214
6215 * syscalls/freebsd.xml: Regenerate.
6216
6217 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6218
6219 * syscalls/update-freebsd.sh: Fix usage and year range.
6220
6221 2020-08-03 Tom de Vries <tdevries@suse.de>
6222
6223 PR symtab/26333
6224 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6225 DW_LNE_lo_user/DW_LNE_hi_user range.
6226
6227 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6228
6229 PR ada/26318
6230 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6231 kind.
6232
6233 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6234
6235 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6236
6237 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6238
6239 * breakpoint.c (set_breakpoint_condition): Update the condition
6240 expressions after checking that the input condition string parses
6241 successfully and does not contain junk at the end.
6242
6243 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6244
6245 * breakpoint.c (set_breakpoint_condition): Update the
6246 condition string after parsing the new condition successfully.
6247
6248 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6249
6250 * proc-api.c (_STRUCTURED_PROC): Don't define.
6251 * proc-events.c: Likewise.
6252 * proc-flags.c: Likewise.
6253 * proc-why.c: Likewise.
6254 * procfs.c: Likewise.
6255
6256 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6257 * configure, config.in: Regenerate.
6258
6259 2020-07-30 Tom de Vries <tdevries@suse.de>
6260
6261 PR build/26320
6262 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6263 m_red/m_green/m_blue in a union.
6264
6265 2020-07-29 Tom de Vries <tdevries@suse.de>
6266
6267 PR tdep/26280
6268 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6269
6270 2020-07-28 Tom Tromey <tromey@adacore.com>
6271
6272 PR symtab/26270:
6273 * symtab.h (find_pc_partial_function_sym): Declare.
6274 * cli/cli-cmds.c (disassemble_command): Use
6275 find_pc_partial_function_sym. Check asm_demangle.
6276 * blockframe.c (cache_pc_function_sym): New global.
6277 (cache_pc_function_name): Remove.
6278 (clear_pc_function_cache): Update.
6279 (find_pc_partial_function_sym): New function, from
6280 find_pc_partial_function.
6281 (find_pc_partial_function): Rewrite using
6282 find_pc_partial_function_sym.
6283
6284 2020-07-28 Tom Tromey <tromey@adacore.com>
6285
6286 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6287 help. Add usage.
6288
6289 2020-07-28 Tom Tromey <tromey@adacore.com>
6290
6291 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6292 <DW_OP_GNU_variable_value>: Cast to address type.
6293
6294 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6295
6296 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6297 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6298 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6299 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6300 (nbsd_get_siginfo_type): New.
6301 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6302 (_initialize_nbsd_tdep): New.
6303
6304 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6305
6306 PR binutils/26301
6307 * configure: Regenerated.
6308
6309 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6310
6311 PR binutils/26301
6312 * configure: Regenerated.
6313
6314 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6315
6316 * python/py-frame.c: Remove 'user-regs.h' include.
6317 (frapy_read_register): Rewrite to make use of
6318 gdbpy_parse_register_id.
6319 * python/py-registers.c (gdbpy_parse_register_id): New function,
6320 moved here from python/py-unwind.c. Updated the return type, and
6321 also accepts register descriptor objects.
6322 * python/py-unwind.c: Remove 'user-regs.h' include.
6323 (pyuw_parse_register_id): Moved to python/py-registers.c.
6324 (unwind_infopy_add_saved_register): Update to use
6325 gdbpy_parse_register_id.
6326 (pending_framepy_read_register): Likewise.
6327 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6328
6329 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6330
6331 * python/py-registers.c: Add 'user-regs.h' include.
6332 (register_descriptor_iter_find): New function.
6333 (register_descriptor_iterator_object_methods): New static global
6334 methods array.
6335 (register_descriptor_iterator_object_type): Add pointer to methods
6336 array.
6337
6338 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6339
6340 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6341 for all architectures on FreeBSD 11.3 and later.
6342
6343 2020-07-27 Tom Tromey <tromey@adacore.com>
6344
6345 * gcore.h (load_corefile): Don't declare.
6346
6347 2020-07-27 Tom de Vries <tdevries@suse.de>
6348
6349 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6350 * config.in: Regenerate.
6351 * configure: Regenerate.
6352
6353 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6354
6355 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6356 ws2tcpip.h. When checking whether socklen_t type is defined, use
6357 ws2tcpip.h if it is available and sys/socket.h isn't.
6358 * configure: Regenerate.
6359 * config.in: Regenerate.
6360
6361 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6362
6363 PR fortran/23051
6364 PR fortran/26139
6365 * valops.c (value_ind): Pass address to
6366 readjust_indirect_value_type.
6367 * value.c (readjust_indirect_value_type): Make parameter
6368 non-const, and add extra address parameter. Resolve original type
6369 before using it.
6370 * value.h (readjust_indirect_value_type): Update function
6371 signature and comment.
6372
6373 2020-07-25 Tom de Vries <tdevries@suse.de>
6374
6375 PR symtab/26243
6376 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6377 entries.
6378
6379 2020-07-24 Aaron Merey <amerey@redhat.com>
6380
6381 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6382 * configure: Rebuild.
6383
6384 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6385
6386 PR corefiles/26294
6387 * corelow.c (_initialize_corelow): Add period to help text
6388 for "maintenance print core-file-backed-mappings".
6389
6390 2020-07-23 Pedro Alves <pedro@palves.net>
6391
6392 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6393 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6394 meanwhile.
6395 * frame.c (frame_cache_generation, get_frame_cache_generation):
6396 New.
6397 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6398 (get_prev_frame_if_no_cycle): On exception, don't touch
6399 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6400 * frame.h (get_frame_cache_generation): Declare.
6401
6402 2020-07-23 Tom de Vries <tdevries@suse.de>
6403
6404 PR tui/26282
6405 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6406 New default constructor.
6407
6408 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6409
6410 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6411 exclude non-statement entries.
6412
6413 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6414
6415 * NEWS (New commands): Mention new command
6416 "maintenance print core-file-backed-mappings".
6417
6418 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6419
6420 * corelow.c (gdbcmd.h): Include.
6421 (core_target::info_proc_mappings): New method.
6422 (get_current_core_target): New function.
6423 (maintenance_print_core_file_backed_mappings): New function.
6424 (_initialize_corelow): Add core-file-backed-mappings to
6425 "maint print" commands.
6426
6427 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6428
6429 * linux-tdep.c (dump_note_entry_p): New function.
6430 (linux_dump_mapping_p_ftype): New typedef.
6431 (linux_find_memory_regions_full): Add new parameter,
6432 should_dump_mapping_p.
6433 (linux_find_memory_regions): Adjust call to
6434 linux_find_memory_regions_full.
6435 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6436 call to linux_find_memory_regions_full.
6437
6438 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6439
6440 * corelow.c (solist.h, unordered_map): Include.
6441 (class core_target): Add field m_core_file_mappings and
6442 method build_file_mappings.
6443 (core_target::core_target): Call build_file_mappings.
6444 (core_target::~core_target): Free memory associated with
6445 m_core_file_mappings.
6446 (core_target::build_file_mappings): New method.
6447 (core_target::xfer_partial): Use m_core_file_mappings
6448 for memory transfers.
6449 * linux-tdep.c (linux_read_core_file_mappings): New
6450 function.
6451 (linux_core_info_proc_mappings): Rewrite to use
6452 linux_read_core_file_mappings.
6453 (linux_init_abi): Register linux_read_core_file_mappings.
6454
6455 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6456
6457 * arch-utils.c (default_read_core_file_mappings): New function.
6458 * arch-utils.c (default_read_core_file_mappings): Declare.
6459 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6460 * gdbarch.h, gdbarch.c: Regenerate.
6461
6462 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6463
6464 PR corefiles/25631
6465 * corelow.c (core_target:xfer_partial): Revise
6466 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6467 case after first checking the stratum beneath the core
6468 target.
6469 (has_all_memory): Return true.
6470 * target.c (raw_memory_xfer_partial): Revise comment
6471 regarding use of has_all_memory.
6472
6473 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6474
6475 * exec.h (section_table_xfer_memory): Revise declaration,
6476 replacing section name parameter with an optional callback
6477 predicate.
6478 * exec.c (section_table_xfer_memory): Likewise.
6479 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6480 of section_table_xfer_memory.
6481
6482 2020-07-22 Tom Tromey <tromey@adacore.com>
6483
6484 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6485 lookup_symbol_search_name.
6486
6487 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6488
6489 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6490 redundant local variable.
6491 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6492 reference, not pointer, update code accordingly.
6493
6494 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6495 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6496
6497 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6498 * jit.c (jit_breakpoint_re_set_internal): Use the
6499 `skip_jit_symbol_lookup` field.
6500
6501 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6502 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6503
6504 * jit.c (jit_read_descriptor): Define the descriptor address once,
6505 use twice.
6506 (jit_breakpoint_deleted): Move the declaration of the loop variable
6507 `iter` into the loop header.
6508 (jit_breakpoint_re_set_internal): Move the declaration of the local
6509 variable `objf_data` to the first point of definition.
6510 (jit_event_handler): Move the declaration of local variables
6511 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6512 Rename `objf` to `jited`.
6513
6514 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6515
6516 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6517 Remove.
6518 * jit.c (get_jiter_objfile_data): Update.
6519
6520 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6521 Simon Marchi <simon.marchi@polymtl.ca>
6522
6523 * jit.c (struct jit_program_space_data): Remove.
6524 (jit_program_space_key): Remove.
6525 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6526 stuff.
6527 (get_jit_program_space_data): Remove.
6528 (jit_breakpoint_deleted): Iterate on all of the program space's
6529 objfiles.
6530 (jit_inferior_init): Likewise.
6531 (jit_breakpoint_re_set_internal): Likewise. Also change return
6532 type to void.
6533 (jit_breakpoint_re_set): Pass current_program_space to
6534 jit_breakpoint_re_set_internal.
6535
6536 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6537
6538 * jit.h (struct jiter_objfile_data) <cached_code_address,
6539 jit_breakpoint>: Move to here from ...
6540 * jit.c (jit_program_space_data): ... here.
6541 (jiter_objfile_data::~jiter_objfile_data): Update.
6542 (jit_breakpoint_deleted): Update.
6543 (jit_breakpoint_re_set_internal): Update.
6544
6545 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6546
6547 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6548 checks.
6549 (jit_read_descriptor): Remove NULL check.
6550 (jit_event_handler): Add an assertion.
6551
6552 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6553
6554 * jit.h (struct jit_objfile_data): Split into...
6555 (struct jiter_objfile_data): ... this ...
6556 (struct jited_objfile_data): ... and this.
6557 * objfiles.h (struct objfile) <jit_data>: Remove.
6558 <jiter_data, jited_data>: New fields.
6559 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6560 (jiter_objfile_data::~jiter_objfile_data): ... this.
6561 (get_jit_objfile_data): Rename to ...
6562 (get_jiter_objfile_data): ... this.
6563 (add_objfile_entry): Update.
6564 (jit_read_descriptor): Use get_jiter_objfile_data.
6565 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6566 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6567 (jit_inferior_exit_hook): Use objfile's jited_data field.
6568
6569 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6570
6571 * jit.h: Forward-declare `struct minimal_symbol`.
6572 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6573 constructor, destructor, and an objfile* field.
6574 * jit.c (jit_objfile_data): Remove.
6575 (struct jit_objfile_data): Migrate from here to jit.h.
6576 (jit_objfile_data::~jit_objfile_data): New destructor
6577 implementation with code moved from free_objfile_data.
6578 (free_objfile_data): Delete.
6579 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6580 (jit_find_objf_with_entry_addr): Ditto.
6581 (jit_inferior_exit_hook): Ditto.
6582 (_initialize_jit): Remove the call to
6583 register_objfile_data_with_cleanup.
6584 * objfiles.h (struct objfile) <jit_data>: New field.
6585
6586 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6587
6588 * jit.h: Forward-declare `struct objfile`.
6589 (jit_event_handler): Add a second parameter, the JITer objfile.
6590 * jit.c (jit_read_descriptor): Change the signature to take the
6591 JITer objfile as an argument instead of the jit_program_space_data.
6592 (jit_inferior_init): Update the call to jit_read_descriptor.
6593 (jit_event_handler): Use the new JITer objfile argument when calling
6594 jit_read_descriptor.
6595 * breakpoint.c (handle_jit_event): Update the call to
6596 jit_event_handler to pass the JITer objfile.
6597
6598 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6599
6600 * gdbarch.c: Regenerate.
6601 * gdbarch.h: Regenerate.
6602 * gdbarch.sh (handle_segmentation_fault): Remove method.
6603 * infrun.c (handle_segmentation_fault): Remove.
6604 (print_signal_received_reason): Remove call to
6605 handle_segmentation_fault.
6606
6607 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6608
6609 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6610 Rename to sparc64_linux_report_signal_info and add siggnal
6611 argument.
6612 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6613 instead of sparc64_linux_handle_segmentation_fault.
6614
6615 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6616
6617 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6618 i386_linux_report_signal_info instead of
6619 i386_linux_handle_segmentation_fault.
6620 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6621 to i386_linux_report_signal_info and add siggnal argument.
6622 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6623 of i386_linux_handle_segmentation_fault.
6624 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6625 to i386_linux_report_signal_info and add siggnal argument.
6626
6627 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6628
6629 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6630 hook if present.
6631
6632 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6633
6634 * gdbarch.c: Regenerate.
6635 * gdbarch.h: Regenerate.
6636 * gdbarch.sh (report_signal_info): New method.
6637 * infrun.c (print_signal_received_reason): Invoke gdbarch
6638 report_signal_info hook if present.
6639
6640 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6641
6642 * python/py-registers.c : Add 'unordered_map' include.
6643 (gdbpy_new_reggroup): Renamed to...
6644 (gdbpy_get_reggroup): ...this. Update to only create register
6645 group descriptors when needed.
6646 (gdbpy_reggroup_iter_next): Update.
6647
6648 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6649
6650 * python/py-registers.c (gdbpy_register_object_data): New static
6651 global.
6652 (gdbpy_register_object_data_init): New function.
6653 (gdbpy_new_register_descriptor): Renamed to...
6654 (gdbpy_get_register_descriptor): ...this, and update to reuse
6655 existing register descriptors where possible.
6656 (gdbpy_register_descriptor_iter_next): Update.
6657 (gdbpy_initialize_registers): Register new gdbarch data.
6658
6659 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6660
6661 * linux-nat.c (stopped_pids): Make static.
6662
6663 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6664
6665 PR ada/26235
6666 * gdbtypes.c (ada_discrete_type_low_bound,
6667 ada_discrete_type_high_bound): Handle undefined bounds.
6668
6669 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6670
6671 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6672 declaration.
6673 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6674 function.
6675
6676 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6677
6678 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6679 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6680 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6681 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6682 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6683 method.
6684
6685 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6686
6687 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6688 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6689 which are deprecated in Guile 3.0.
6690 * configure.ac (try_guile_versions): Add "guile-3.0".
6691 * configure (try_guile_versions): Regenerate.
6692 * NEWS: Update entry.
6693
6694 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6695 Doug Evans <dje@google.com>
6696
6697 PR gdb/21104
6698 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6699 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6700 USING_GUILE_BEFORE_2_2.
6701 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6702 Change type to 'scm_t_port_type *'.
6703 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6704 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6705 parameter and honor it. Update callers.
6706 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6707 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6708 functions.
6709 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6710 USING_GUILE_BEFORE_2_2.
6711 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6712 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6713 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6714 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6715 and 'SCM_PORT_TYPE'.
6716 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6717 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6718 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6719 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6720 [!USING_GUILE_BEFORE_2_2]: New functions.
6721 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6722 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6723 'gdbscm_memory_port_read'.
6724 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6725 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6726 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6727 function.
6728 (ioscm_init_memory_port): Remove.
6729 (ioscm_init_memory_port_stream): New function
6730 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6731 function.
6732 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6733 Return scm_from_uint (0).
6734 (gdbscm_set_memory_port_read_buffer_size_x)
6735 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6736 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6737 Return scm_from_uint (0).
6738 (gdbscm_set_memory_port_write_buffer_size_x)
6739 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6740 * configure.ac (try_guile_versions): Add "guile-2.2".
6741 * configure: Regenerate.
6742 * NEWS: Add entry.
6743
6744 2020-07-18 Tom Tromey <tom@tromey.com>
6745
6746 * linux-nat.c (linux_multi_process): Remove.
6747 (linux_nat_target::supports_multi_process): Return true.
6748
6749 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6750
6751 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6752 (riscv_lookup_target_description): Return pointer out of
6753 unique_ptr.
6754 * target-descriptions.c (allocate_target_description): Add
6755 comment.
6756 (target_desc_deleter::operator()): Likewise.
6757 * target-descriptions.h (struct target_desc_deleter): Moved to
6758 gdbsupport/tdesc.h.
6759 (target_desc_up): Likewise.
6760
6761 2020-07-17 Tom Tromey <tromey@adacore.com>
6762
6763 * linux-nat.c (linux_nat_target::supports_non_stop)
6764 (linux_nat_target::always_non_stop_p): Use "true".
6765 (linux_nat_target::supports_disable_randomization): Use "true" and
6766 "false".
6767
6768 2020-07-16 Caroline Tice <cmtice@google.com>
6769
6770 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6771 (RNGLIST_HEADER_SIZE64): New constant definition.
6772 (struct dwop_section_names): Add rnglists_dwo.
6773 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6774 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6775 (struct dwo_sections): Add rnglists field.
6776 (read_attribut_reprocess): Add tag parameter.
6777 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6778 (cu_debug_rnglists_section): New function (decl & definition).
6779 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6780 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6781 die whose range is being checked; get rnglist section from
6782 cu_debug_rnglists_section, to get from either objfile or dwo file as
6783 appropriate. Add cases for DW_RLE_base_addressx,
6784 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6785 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6786 test inside if-condition and updating complaint message.
6787 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6788 dwarf2_rnglists_process.
6789 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6790 dwarf2_ranges_process.
6791 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6792 need_ranges_base and update comment appropriately. Also pass die tag
6793 to dwarf2_ranges_read.
6794 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6795 need_ranges_base and update comment appropriately. Also pass die tag
6796 to dwarf2_ranges_process.
6797 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6798 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6799 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6800 need_ranges_base and update comment appropriately. Also pass die tag
6801 to read_attribute_reprocess and dwarf2_ranges_read.
6802 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6803 and update function comment appropriately.
6804 (read_loclist_index): Call read_loclists_rnglists_header instead of
6805 read_loclist_header.
6806 (read_rnglist_index): New function.
6807 (read_attribute_reprocess): Add tag parameter. Add code for
6808 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6809 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6810
6811 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6812
6813 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6814 being resolved.
6815
6816 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6817
6818 * arch-utils.c (show_architecture): Update formatting of messages.
6819
6820 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6821
6822 * gdbtypes.h (struct type) <bounds>: Handle array and string
6823 types.
6824 * ada-lang.c (assign_aggregate): Use type::bounds on
6825 array/string type.
6826 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6827 * c-varobj.c (c_number_of_children): Likewise.
6828 (c_describe_child): Likewise.
6829 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6830 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6831 (f_type_print_base): Likewise.
6832 * f-valprint.c (f77_array_offset_tbl): Likewise.
6833 (f77_get_upperbound): Likewise.
6834 (f77_print_array_1): Likewise.
6835 * guile/scm-type.c (gdbscm_type_range): Likewise.
6836 * m2-typeprint.c (m2_array): Likewise.
6837 (m2_is_long_set_of_type): Likewise.
6838 * m2-valprint.c (get_long_set_bounds): Likewise.
6839 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6840 * python/py-type.c (typy_range): Likewise.
6841 * rust-lang.c (rust_internal_print_type): Likewise.
6842 * type-stack.c (type_stack::follow_types): Likewise.
6843 * valarith.c (value_subscripted_rvalue): Likewise.
6844 * valops.c (value_cast): Likewise.
6845
6846 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6847
6848 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6849 callers to use the equivalent accessor methods.
6850
6851 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6852
6853 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6854 (struct type) <bit_stride>: New method.
6855 (TYPE_BIT_STRIDE): Remove.
6856 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6857
6858 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6859
6860 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6861 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6862 callers to use the equivalent accessor methods instead.
6863
6864 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6867 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6868 callers to use the equivalent accessor methods instead.
6869
6870 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6871
6872 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6873 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6874 to use dynamic_prop::kind.
6875
6876 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6877
6878 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6879 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6880 to get the bound property's kind and check against
6881 PROP_UNDEFINED.
6882
6883 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6884
6885 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6886 all callers to use type::range_bounds followed by
6887 dynamic_prop::{low,high}.
6888
6889 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6890
6891 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6892 const_val, set_const_val, baton, set_locexpr, set_loclist,
6893 set_addr_offset, variant_parts, set_variant_parts,
6894 original_type, set_original_type>: New methods.
6895 <kind>: Rename to...
6896 <m_kind>: ... this. Update all users to use the new methods
6897 instead.
6898 <data>: Rename to...
6899 <m_data>: ... this. Update all users to use the new methods
6900 instead.
6901
6902 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6903
6904 * gdbtypes.c (get_discrete_bounds): Return failure if
6905 the range type's bounds are not both defined and constant
6906 values.
6907 (get_array_bounds): Update comment. Remove undefined bound check.
6908
6909 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6910
6911 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6912 the type::bounds method directly.
6913
6914 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6915
6916 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6917 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6918 are used to set the range type's bounds to use set_bounds.
6919
6920 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6921
6922 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6923
6924 2020-07-10 Pedro Alves <pedro@palves.net>
6925
6926 * gdbthread.h (inferior_ref): Define.
6927 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6928 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6929 * thread.c
6930 (scoped_restore_current_thread::restore):
6931 Adjust to gdb::ref_ptr.
6932 (scoped_restore_current_thread::~scoped_restore_current_thread):
6933 Remove manual decref handling.
6934 (scoped_restore_current_thread::scoped_restore_current_thread):
6935 Adjust to use
6936 inferior_ref::new_reference/thread_info_ref::new_reference.
6937 Incref the thread before calling get_frame_id instead of after.
6938 Let TARGET_CLOSE_ERROR propagate.
6939
6940 2020-07-10 Pedro Alves <pedro@palves.net>
6941
6942 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6943 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6944 NOT_AVAILABLE_ERROR.
6945 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6946 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6947
6948 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6949 Pedro Alves <pedro@palves.net>
6950
6951 PR gdb/26199
6952 * infrun.c (threads_are_resumed_pending_p): Delete.
6953 (do_target_wait): Remove threads_are_executing and
6954 threads_are_resumed_pending_p checks from the inferior_matches
6955 lambda. Update comments.
6956
6957 2020-07-10 Pedro Alves <pedro@palves.net>
6958
6959 PR gdb/26199
6960 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6961 executing threads.
6962
6963 2020-07-10 Pedro Alves <pedro@palves.net>
6964
6965 PR gdb/26199
6966 * infrun.c (handle_no_resumed): Handle multiple targets.
6967
6968 2020-07-10 Pedro Alves <pedro@palves.net>
6969
6970 PR gdb/26199
6971 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6972 target_is_async_p.
6973
6974 2020-07-10 Pedro Alves <pedro@palves.net>
6975
6976 PR gdb/26199
6977 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6978 threads, not all threads.
6979
6980 2020-07-10 Pedro Alves <pedro@palves.net>
6981
6982 PR gdb/26199
6983 * remote.c (remote_target::open_1): Pass remote target pointer as
6984 data to create_async_event_handler.
6985 (remote_async_inferior_event_handler): Mark async event handler
6986 before returning if the remote target still has either pending
6987 events or unacknowledged notifications.
6988
6989 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6990
6991 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6992 declaration.
6993 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6994 function.
6995
6996 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6997
6998 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6999 inferior_ptid.
7000
7001 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7002
7003 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7004 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7005 AT_FREEBSD_PS_STRINGS.
7006
7007 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7008
7009 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7010 of debugfile path on Windows.
7011
7012 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7013
7014 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7015 argument to 'data'.
7016
7017 2020-07-08 Tom Tromey <tromey@adacore.com>
7018
7019 * ada-lang.c (ada_exception_message_1): Use read_memory.
7020
7021 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7022
7023 PR python/22748
7024 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7025 special handling for inline frames.
7026 * findvar.c (value_of_register_lazy): Skip inline frames when
7027 creating lazy register values.
7028 * frame.c (frame_id_computed_p): Delete definition.
7029 * frame.h (frame_id_computed_p): Delete declaration.
7030
7031 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7032
7033 * NEWS: Mention additions to Python API.
7034 * python/py-arch.c (archpy_register_groups): New function.
7035 (arch_object_methods): Add 'register_groups' method.
7036 * python/py-registers.c (reggroup_iterator_object): New struct.
7037 (reggroup_object): New struct.
7038 (gdbpy_new_reggroup): New function.
7039 (gdbpy_reggroup_to_string): New function.
7040 (gdbpy_reggroup_name): New function.
7041 (gdbpy_reggroup_iter): New function.
7042 (gdbpy_reggroup_iter_next): New function.
7043 (gdbpy_new_reggroup_iterator): New function
7044 (gdbpy_initialize_registers): Register new types.
7045 (reggroup_iterator_object_type): Define new Python type.
7046 (gdbpy_reggroup_getset): New static global.
7047 (reggroup_object_type): Define new Python type.
7048 * python/python-internal.h
7049
7050 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7051
7052 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7053 * python/py-arch.c (archpy_registers): New function.
7054 (arch_object_methods): Add 'registers' method.
7055 * python/py-registers.c: New file.
7056 * python/python-internal.h
7057 (gdbpy_new_register_descriptor_iterator): Declare.
7058 (gdbpy_initialize_registers): Declare.
7059 * python/python.c (do_start_initialization): Call
7060 gdbpy_initialize_registers.
7061 * NEWS: Mention additions to the Python API.
7062
7063 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7064
7065 * NEWS: Mention new Python API method.
7066 * python/py-unwind.c (pending_framepy_architecture): New function.
7067 (pending_frame_object_methods): Add architecture method.
7068
7069 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7070
7071 * gdbarch.c: Regenerate.
7072 * gdbarch.h: Regenerate.
7073 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7074 (gdbarch_data): Use internal_error for the case where
7075 deprecated_set_gdbarch_data was originally needed.
7076 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7077 and use passed in obstack.
7078 (libunwind_frame_set_descr): Should no longer get back NULL from
7079 gdbarch_data.
7080 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7081 type.
7082 * user-regs.c (user_regs_init): Update parameters, and use passed
7083 in obstack.
7084 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7085 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7086
7087 2020-07-06 Tom de Vries <tdevries@suse.de>
7088
7089 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7090 End-Of-Sequence in lte_is_less_than.
7091 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7092 "gdb: Don't reorder line table entries too much when sorting".
7093
7094 2020-07-06 Tom de Vries <tdevries@suse.de>
7095
7096 PR tui/26205
7097 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7098
7099 2020-07-05 Tom de Vries <tdevries@suse.de>
7100
7101 PR build/26187
7102 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7103 std::uncaught_exceptions instead of deprecated
7104 std::uncaught_exception.
7105
7106 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7107
7108 * macroexp.h (macro_stringify): Return
7109 gdb::unique_xmalloc_ptr<char>.
7110 * macroexp.c (macro_stringify): Likewise.
7111 * macrotab.c (fixup_definition): Update.
7112
7113 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7114
7115 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7116 (lex_one_token): Update.
7117 * macroexp.c (struct macro_buffer) <release>: Return
7118 gdb::unique_xmalloc_ptr<char>.
7119 (macro_stringify): Update.
7120 (macro_expand): Update.
7121 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7122 * macroexp.h (macro_expand_next): Likewise.
7123
7124 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7125
7126 * macroexp.h (macro_lookup_ftype): Remove.
7127 (macro_expand, macro_expand_once, macro_expand_next): Remove
7128 lookup function parameters, add scope parameter.
7129 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7130 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7131 * macroscope.h (standard_macro_lookup): Change parameter type
7132 to macro_scope.
7133 * macroscope.c (standard_macro_lookup): Likewise.
7134 * c-exp.y (lex_one_token): Update.
7135 * macrocmd.c (macro_expand_command): Likewise.
7136 (macro_expand_once_command): Likewise.
7137
7138 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7139
7140 * inf-loop.c (inferior_event_handler): Remove client_data param.
7141 * inf-loop.h (inferior_event_handler): Likewise.
7142 * infcmd.c (step_1): Adjust.
7143 * infrun.c (proceed): Adjust.
7144 (fetch_inferior_event): Remove client_data param.
7145 (infrun_async_inferior_event_handler): Adjust.
7146 * infrun.h (fetch_inferior_event): Remove `void *` param.
7147 * linux-nat.c (handle_target_event): Adjust.
7148 * record-btrace.c (record_btrace_handle_async_inferior_event):
7149 Adjust.
7150 * record-full.c (record_full_async_inferior_event_handler):
7151 Adjust.
7152 * remote.c (remote_async_inferior_event_handler): Adjust.
7153
7154 2020-07-01 Tom Tromey <tom@tromey.com>
7155
7156 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7157 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7158
7159 2020-07-01 Tom Tromey <tom@tromey.com>
7160
7161 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7162 tui_gen_win_info.
7163 (tui_win_info::make_window): Merge with
7164 tui_gen_win_info::make_window.
7165 (tui_win_info::make_visible): Move from tui_gen_win_info.
7166 * tui/tui-win.c (tui_win_info::max_width): Move from
7167 tui_gen_win_info.
7168 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7169 type.
7170 <window_factory>: Likewise.
7171 * tui/tui-layout.c (tui_win_info::resize): Move from
7172 tui_gen_win_info.
7173 (make_standard_window): Change return type.
7174 (get_locator_window, tui_get_window_by_name): Likewise.
7175 (tui_layout_window::apply): Remove a cast.
7176 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7177 (struct tui_win_info): Merge with tui_gen_win_info.
7178 (struct tui_gen_win_info): Remove.
7179
7180 2020-07-01 Tom Tromey <tom@tromey.com>
7181
7182 * tui/tui-stack.h (struct tui_locator_window): Derive from
7183 tui_win_info.
7184 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7185 <can_box>: New method.
7186
7187 2020-07-01 Tom Tromey <tom@tromey.com>
7188
7189 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7190
7191 2020-07-01 Tom Tromey <tom@tromey.com>
7192
7193 * tui/tui-regs.c (tui_data_window::display_registers_from)
7194 (tui_data_window::display_registers_from)
7195 (tui_data_window::first_data_item_displayed)
7196 (tui_data_window::delete_data_content_windows): Update.
7197 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7198 Remove.
7199 (tui_data_window::check_register_values): Update.
7200 (tui_data_item_window::rerender): Add parameters. Update.
7201 (tui_data_item_window::refresh_window): Remove.
7202 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7203 virtual.
7204 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7205 tui_gen_win_info.
7206 <refresh_window, max_height, min_height>: Remove.
7207 <rerender>: Add parameters.
7208 <x, y, visible>: New members.
7209 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7210 <m_item_width>: New member.
7211
7212 2020-07-01 Tom Tromey <tom@tromey.com>
7213
7214 * tui/tui-regs.c (tui_data_window::show_register_group)
7215 (tui_data_window::check_register_values): Update.
7216 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7217 from item_no.
7218
7219 2020-07-01 Tom Tromey <tom@tromey.com>
7220
7221 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7222 useless "if".
7223
7224 2020-07-01 Tom Tromey <tom@tromey.com>
7225
7226 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7227 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7228
7229 2020-07-01 Tom Tromey <tom@tromey.com>
7230
7231 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7232 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7233 (struct tui_line_or_address): Move from tui-data.h.
7234 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7235 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7236 (tui_cmd_window, tui_source_window_base, tui_source_window)
7237 (tui_disasm_window): Don't declare.
7238 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7239 to tui-winsource.h.
7240 (SINGLE_KEY): Move to tui-stack.c.
7241
7242 2020-07-01 Tom Tromey <tom@tromey.com>
7243
7244 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7245 std::string.
7246 * tui/tui-regs.c (class tab_expansion_file): New.
7247 (tab_expansion_file::write): New method.
7248 (tui_register_format): Change return type. Use
7249 tab_expansion_file.
7250 (tui_get_register, tui_data_window::display_registers_from)
7251 (tui_data_item_window::rerender): Update.
7252 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7253 * tui/tui-io.c (tui_expand_tabs): Remove.
7254
7255 2020-07-01 Tom Tromey <tom@tromey.com>
7256
7257 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7258
7259 2020-07-01 Fangrui Song <maskray@google.com>
7260
7261 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7262
7263 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7264
7265 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7266 forms for DW_AT_associated and DW_AT_allocated attributes,
7267 which is already checked in function attr_to_dynamic_prop.
7268
7269 2020-06-30 Tom Tromey <tromey@adacore.com>
7270
7271 * dwarf2/read.c (quirk_rust_enum): Correctly call
7272 alloc_rust_variant for default-less enum.
7273
7274 2020-06-30 Tom Tromey <tromey@adacore.com>
7275
7276 PR build/26183:
7277 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7278 gdb::to_string.
7279
7280 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7281
7282 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7283 * gdbarch.h: Re-generate.
7284
7285 2020-06-28 Tom Tromey <tom@tromey.com>
7286
7287 * command.h (cmd_types): Remove.
7288 (cmd_type): Don't declare.
7289 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7290 typedef.
7291 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7292 * cli/cli-decode.c (cmd_type): Remove.
7293
7294 2020-06-27 Pedro Alves <palves@redhat.com>
7295
7296 * fork-child.c (prefork_hook): Adjust.
7297 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7298 Delete.
7299 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7300 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7301 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7302 Remove declarations.
7303 (struct inferior) <set_tty, tty>: New methods.
7304 (struct inferior) <terminal>: Rename to ...
7305 (struct inferior) <m_terminal>: ... this and make private.
7306 * main.c (captured_main_1): Adjust.
7307 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7308 (mi_cmd_inferior_tty_show): Adjust.
7309 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7310 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7311
7312 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7313
7314 * configure.ac: Add --enable-libctf: handle --disable-static
7315 properly.
7316 * acinclude.m4: sinclude ../config/enable.m4.
7317 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7318 (LIBCTF): Substitute in.
7319 (CTF_DEPS): New, likewise.
7320 (CLIBS): libctf needs symbols from libbfd: move earlier.
7321 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7322 flags.
7323 * ctfread.c: Surround in ENABLE_LIBCTF.
7324 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7325 * configure: Regenerate.
7326 * config.in: Likewise.
7327
7328 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7329
7330 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7331
7332 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7333
7334 * inferior.h (struct inferior) <terminal>: Change type to
7335 gdb::unique_xmalloc_ptr<char>.
7336 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7337 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7338 field, adjust to unique pointer.
7339 (get_inferior_io_terminal): Adjust to unique pointer.
7340
7341 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7342
7343 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7344 registers, not just the known core set of registers.
7345
7346 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7347
7348 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7349 fflags, frm, and fcsr registers.
7350 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7351 restore groups.
7352 (riscv_tdesc_unknown_reg): New function.
7353 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7354 tdesc_use_registers.
7355 * riscv-tdep.h (struct gdbarch_tdep): Add
7356 unknown_csrs_first_regnum, unknown_csrs_count,
7357 duplicate_fflags_regnum, duplicate_frm_regnum, and
7358 duplicate_fcsr_regnum fields.
7359
7360 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7361
7362 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7363 callback, use the callback (when not null) to help number unknown
7364 registers.
7365 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7366 (tdesc_use_registers): Add extra parameter to declaration.
7367
7368 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7369
7370 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7371 in the file.
7372 (class riscv_pending_register_alias): Likewise.
7373 (riscv_register_feature::register_info): Change 'required_p' field
7374 to 'required', and change its type. Add 'check' member function.
7375 (riscv_register_feature::register_info::check): Define new member
7376 function.
7377 (riscv_xreg_feature): Change initialisation of 'required' field.
7378 (riscv_freg_feature): Likewise.
7379 (riscv_virtual_feature): Likewise.
7380 (riscv_csr_feature): Likewise.
7381 (riscv_check_tdesc_feature): Take extra parameter, the csr
7382 tdesc_feature, rewrite the function to use the new
7383 riscv_register_feature::register_info::check function.
7384 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7385
7386 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7387
7388 * features/Makefile: Remove all references to the deleted files
7389 below.
7390 * features/riscv/32bit-csr.c: Deleted.
7391 * features/riscv/32bit-csr.xml: Deleted.
7392 * features/riscv/64bit-csr.c: Deleted.
7393 * features/riscv/64bit-csr.xml: Deleted.
7394 * features/riscv/rebuild-csr-xml.sh: Deleted.
7395
7396 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7397
7398 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7399 whitespace error for declaration of names member variable.
7400 (struct riscv_register_feature): Add new prefer_first_name member
7401 variable, and fix whitespace error in declaration of registers.
7402 (riscv_xreg_feature): Initialize prefer_first_name field.
7403 (riscv_freg_feature): Likewise.
7404 (riscv_virtual_feature): Likewise.
7405 (riscv_csr_feature): Likewise.
7406 (riscv_register_name): Expand on comments. Remove register name
7407 modifications for CSR and virtual registers.
7408
7409 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7410
7411 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7412 errors.
7413
7414 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7415
7416 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7417 riscv-opc.h.
7418 (class riscv_pending_register_alias): New class.
7419 (riscv_check_tdesc_feature): Take vector of pending aliases and
7420 populate it as appropriate.
7421 (riscv_setup_register_aliases): Delete.
7422 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7423 to riscv_check_tdesc_feature in all cases. Use the vector to
7424 create the register aliases.
7425
7426 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7427
7428 * sol2-tdep.c (sol2_static_transform_name): Remove.
7429 (sol2_init_abi): Don't register it.
7430 * gdbarch.sh (static_transform_name): Remove.
7431 * gdbarch.c, gdbarch.h: Regenerate.
7432
7433 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7434 gdbarch_static_transform_name.
7435 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7436 * stabsread.c (define_symbol) <'X'>: Remove.
7437 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7438 handling.
7439 <'V'>: Likewise.
7440 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7441 <'S'>: Remove call to gdbarch_static_transform_name.
7442
7443 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7444
7445 * procfs.c (procfs_pre_trace): New function.
7446 (procfs_target::create_inferior): Pass it to fork_inferior.
7447
7448 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7449
7450 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7451 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7452 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7453 sol2-tdep.o, sparc-sol2-tdep.o.
7454 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7455 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7456 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7457 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7458
7459 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7460
7461 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7462 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7463 Call sol2_init_abi.
7464 Remove calls to set_gdbarch_skip_solib_resolver,
7465 set_gdbarch_core_pid_to_str.
7466 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7467 (i386_sol2_static_transform_name): Remove.
7468 (i386_sol2_init_abi): Call sol2_init_abi.
7469 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7470 set_gdbarch_static_transform_name,
7471 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7472 Use sol2_sigtramp_p.
7473 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7474 (sol2_sigtramp_p): New function.
7475 (sol2_static_transform_name): New function.
7476 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7477 (sol2_init_abi): New function.
7478 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7479 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7480 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7481 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7482 (sparc_sol2_static_transform_name): Remove.
7483 (sparc32_sol2_init_abi): Call sol2_init_abi.
7484 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7485 set_gdbarch_static_transform_name,
7486 set_gdbarch_skip_solib_resolver,
7487 set_gdbarch_core_pid_to_str.
7488 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7489 (sparc_sol2_static_transform_name): Remove
7490 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7491 call sol2_sigtramp_p.
7492 (sparc64_sol2_init_abi): Call sol2_init_abi.
7493 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7494 set_gdbarch_static_transform_name,
7495 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7496
7497 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7498
7499 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7500 * exec.c (validate_exec_file): If from_tty, set both
7501 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7502 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7503 and from_tty, unconditionally ask a confirmation.
7504
7505 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7506
7507 * target-descriptions.c (tdesc_architecture_name): Protect against
7508 NULL pointer dereference.
7509 (maint_print_xml_tdesc_cmd): New function.
7510 (_initialize_target_descriptions): Register new 'maint print
7511 xml-tdesc' command and give it the filename completer.
7512 * NEWS: Mention new 'maint print xml-tdesc' command.
7513
7514 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7515
7516 * target-descriptions.c (class tdesc_compatible_info): New class.
7517 (struct target_desc): Change type of compatible vector.
7518 (tdesc_compatible_p): Update for change in type of
7519 target_desc::compatible.
7520 (tdesc_compatible_info_list): New function.
7521 (tdesc_compatible_info_arch_name): New function.
7522 (tdesc_add_compatible): Update for change in type of
7523 target_desc::compatible.
7524 (print_c_tdesc::visit_pre): Likewise.
7525
7526 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7527
7528 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7529 whitespace to underscore.
7530 (maint_print_c_tdesc_cmd): Use fake filename for target
7531 descriptions that came from the target.
7532 (_initialize_target_descriptions): Add filename command completion
7533 for 'maint print c-tdesc'.
7534
7535 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7536
7537 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7538 lines.
7539
7540 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7541
7542 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7543 lines.
7544 (dwarf2_find_location_expression): Likewise.
7545 (call_site_parameter_matches): Likewise.
7546 (dwarf2_compile_expr_to_ax): Likewise.
7547 (disassemble_dwarf_expression): Likewise.
7548 (loclist_describe_location): Likewise.
7549
7550 2020-06-23 Pedro Alves <palves@redhat.com>
7551
7552 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7553 progspace-and-thread.h. Include scoped-mock-context.h instead.
7554 (register_to_value_test): Use scoped_mock_context.
7555 * regcache.c: Include "scoped-mock-context.h".
7556 (cooked_read_test): Don't error out if a target is already pushed.
7557 Use scoped_mock_context. Adjust.
7558 * scoped-mock-context.h: New file.
7559
7560 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7561
7562 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7563 initializer.
7564 (ada_language::is_string_type_p): New member function.
7565 * c-lang.c (c_language_data): Delete la_is_string_type_p
7566 initializer.
7567 (cplus_language_data): Likewise.
7568 (asm_language_data): Likewise.
7569 (minimal_language_data): Likewise.
7570 * d-lang.c (d_language_data): Likewise.
7571 * f-lang.c (f_is_string_type_p): Delete function, implementation
7572 moved to f_language::is_string_type_p.
7573 (f_language_data): Delete la_is_string_type_p initializer.
7574 (f_language::is_string_type_p): New member function,
7575 implementation from f_is_string_type_p.
7576 * go-lang.c (go_is_string_type_p): Delete function, implementation
7577 moved to go_language::is_string_type_p.
7578 (go_language_data): Delete la_is_string_type_p initializer.
7579 (go_language::is_string_type_p): New member function,
7580 implementation from go_is_string_type_p.
7581 * language.c (language_defn::is_string_type_p): Define new member
7582 function.
7583 (default_is_string_type_p): Make static, add comment copied from
7584 header file.
7585 (unknown_language_data): Delete la_is_string_type_p initializer.
7586 (unknown_language::is_string_type_p): New member function.
7587 (auto_language_data): Delete la_is_string_type_p initializer.
7588 (auto_language::is_string_type_p): New member function.
7589 * language.h (language_data): Delete la_is_string_type_p field.
7590 (language_defn::is_string_type_p): Declare new function.
7591 (default_is_string_type_p): Delete desclaration, move comment to
7592 definition.
7593 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7594 moved to m2_language::is_string_type_p.
7595 (m2_language_data): Delete la_is_string_type_p initializer.
7596 (m2_language::is_string_type_p): New member function,
7597 implementation from m2_is_string_type_p.
7598 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7599 initializer.
7600 * opencl-lang.c (opencl_language_data): Likewise.
7601 * p-lang.c (pascal_is_string_type_p): Delete function,
7602 implementation moved to pascal_language::is_string_type_p.
7603 (pascal_language_data): Delete la_is_string_type_p initializer.
7604 (pascal_language::is_string_type_p): New member function,
7605 implementation from pascal_is_string_type_p.
7606 * rust-lang.c (rust_is_string_type_p): Delete function,
7607 implementation moved to rust_language::is_string_type_p.
7608 (rust_language_data): Delete la_is_string_type_p initializer.
7609 (rust_language::is_string_type_p): New member function,
7610 implementation from rust_is_string_type_p.
7611 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7612 is_string_type_p.
7613
7614 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7615
7616 * ada-lang.c (ada_language_data): Delete la_print_typedef
7617 initializer.
7618 (ada_language::print_typedef): New member function.
7619 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7620 (cplus_language_data): Likewise.
7621 (asm_language_data): Likewise.
7622 (minimal_language_data): Likewise.
7623 * d-lang.c (d_language_data): Likewise.
7624 * f-lang.c (f_language_data): Likewise.
7625 (f_language::print_typedef): New member function.
7626 * go-lang.c (go_language_data): Delete la_print_typedef
7627 initializer.
7628 * language.c (language_defn::print_typedef): Define member
7629 function.
7630 (unknown_language_data): Delete la_print_typedef initializer.
7631 (unknown_language::print_typedef): New member function.
7632 (auto_language_data): Delete la_print_typedef initializer.
7633 (auto_language::print_typedef): New member function.
7634 * language.h (language_data): Delete la_print_typedef field.
7635 (language_defn::print_typedef): Declare new member function.
7636 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7637 (default_print_typedef): Delete declaration.
7638 * m2-lang.c (m2_language_data): Delete la_print_typedef
7639 initializer.
7640 (m2_language::print_typedef): New member function.
7641 * objc-lang.c (objc_language_data): Delete la_print_typedef
7642 initializer.
7643 * opencl-lang.c (opencl_language_data): Likewise.
7644 * p-lang.c (pascal_language_data): Likewise.
7645 (pascal_language::print_typedef): New member function.
7646 * rust-lang.c (rust_print_typedef): Delete function,
7647 implementation moved to rust_language::print_typedef.
7648 (rust_language): Delete la_print_typedef initializer.
7649 (rust_language::print_typedef): New member function,
7650 implementation from rust_print_typedef.
7651 * typeprint.c (default_print_typedef): Delete.
7652
7653 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7654
7655 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7656 (ada_language::printstr): New member function.
7657 * c-lang.c (c_language_data): Delete la_printstr initializer.
7658 (cplus_language_data): Likewise.
7659 (asm_language_data): Likewise.
7660 (minimal_language_data): Likewise.
7661 * d-lang.c (d_language_data): Likewise.
7662 * f-lang.c (f_printstr): Rename to f_language::printstr.
7663 (f_language_data): Delete la_printstr initializer.
7664 (f_language::printstr): New member function, implementation from
7665 f_printstr.
7666 * go-lang.c (go_language_data): Delete la_printstr initializer.
7667 * language.c (language_defn::printstr): Define new member
7668 function.
7669 (unk_lang_printstr): Delete.
7670 (unknown_language_data): Delete la_printstr initializer.
7671 (unknown_language::printstr): New member function.
7672 (auto_language_data): Delete la_printstr initializer.
7673 (auto_language::printstr): New member function.
7674 * language.h (language_data): Delete la_printstr field.
7675 (language_defn::printstr): Declare new member function.
7676 (LA_PRINT_STRING): Update call to printstr.
7677 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7678 (m2_language_data): Delete la_printstr initializer.
7679 (m2_language::printstr): New member function, implementation from
7680 m2_printstr.
7681 * objc-lang.c (objc_language_data): Delete la_printstr
7682 initializer.
7683 * opencl-lang.c (opencl_language_data): Likewise.
7684 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7685 (pascal_language_data): Delete la_printstr initializer.
7686 (pascal_language::printstr): New member function, implementation
7687 from pascal_printstr.
7688 * p-lang.h (pascal_printstr): Delete declaration.
7689 * rust-lang.c (rust_printstr): Update header comment.
7690 (rust_language_data): Delete la_printstr initializer.
7691 (rust_language::printstr): New member function.
7692
7693 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7694
7695 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7696 (ada_language::printchar): New member function.
7697 * c-lang.c (c_language_data): Delete la_printchar initializer.
7698 (cplus_language_data): Likewise.
7699 (asm_language_data): Likewise.
7700 (minimal_language_data): Likewise.
7701 * d-lang.c (d_language_data): Likewise.
7702 * f-lang.c (f_printchar): Rename to f_language::printchar.
7703 (f_language_data): Delete la_printchar initializer.
7704 (f_language::printchar): New member function, implementation from
7705 f_printchar.
7706 * go-lang.c (go_language_data): Delete la_printchar initializer.
7707 * language.c (unk_lang_printchar): Delete.
7708 (language_defn::printchar): Define new member function.
7709 (unknown_language_data): Delete la_printchar initializer.
7710 (unknown_language::printchar): New member function.
7711 (auto_language_data): Delete la_printchar initializer.
7712 (auto_language::printchar): New member function.
7713 * language.h (language_data): Delete la_printchar field.
7714 (language_defn::printchar): Declare new member function.
7715 (LA_PRINT_CHAR): Update call to printchar.
7716 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7717 (m2_language::printchar): New member function.
7718 * objc-lang.c (objc_language_data): Delete la_printchar
7719 initializer.
7720 * opencl-lang.c (opencl_language_data): Likewise.
7721 * p-lang.c (pascal_language_data): Delete la_printchar
7722 initializer.
7723 (pascal_language::printchar): New member function.
7724 * rust-lang.c (rust_printchar): Rename to
7725 rust_language::printchar.
7726 (rust_language_data): Delete la_printchar initializer.
7727 (rust_language::printchar): New member function, implementation
7728 from rust_printchar.
7729
7730 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7731
7732 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7733 (ada_language_data): Delete la_emitchar initializer.
7734 (ada_language::emitchar): New member function, implementation from
7735 emit_char.
7736 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7737 (cplus_language_data): Likewise.
7738 (asm_language_data): Likewise.
7739 (minimal_language_data): Likewise.
7740 * d-lang.c (d_language_data): Likewise.
7741 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7742 (f_language_data): Delete la_emitchar initializer.
7743 (f_language::emitchar): New member function, implementation from
7744 f_emit_char.
7745 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7746 * language.c (unk_lang_emit_char): Delete.
7747 (language_defn::emitchar): New member function definition.
7748 (unknown_language_data): Delete la_emitchar initializer.
7749 (unknown_language::emitchar): New member function.
7750 (auto_language_data): Delete la_emitchar initializer.
7751 (auto_language::emitchar): New member function.
7752 * language.h (language_data): Delete la_emitchar field.
7753 (language_defn::emitchar): New member field declaration.
7754 (LA_EMIT_CHAR): Update call to emitchar.
7755 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7756 (m2_language_data): Delete la_emitchar initializer.
7757 (m2_language::emitchar): New member function, implementation from
7758 m2_emit_char.
7759 * objc-lang.c (objc_language_data): Delete la_emitchar
7760 initializer.
7761 * opencl-lang.c (opencl_language_data): Likewise.
7762 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7763 (pascal_language_data): Delete la_emitchar initializer.
7764 (pascal_language::emitchar): New member function, implementation
7765 from pascal_emit_char.
7766 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7767 (rust_language_data): Delete la_emitchar initializer.
7768 (rust_language::emitchar): New member function, implementation
7769 from rust_emitchar.
7770
7771 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7772
7773 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7774 (ada_language_data): Delete la_post_parser initializer.
7775 (ada_language::post_parser): New member function.
7776 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7777 (cplus_language_data): Likewise.
7778 (asm_language_data): Likewise.
7779 (minimal_language_data): Likewise.
7780 * d-lang.c (d_language_data): Likewise.
7781 * f-lang.c (f_language_data): Likewise.
7782 * go-lang.c (go_language_data): Likewise.
7783 * language.c (unknown_language_data): Likewise.
7784 (auto_language_data): Likewise.
7785 * language.h (language_data): Delete la_post_parser field.
7786 (language_defn::post_parser): New member function.
7787 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7788 * objc-lang.c (objc_language_data): Likewise.
7789 * opencl-lang.c (opencl_language_data): Likewise.
7790 * p-lang.c (pascal_language_data): Likewise.
7791 * parse.c (parse_exp_in_context): Update call to post_parser.
7792 (null_post_parser): Delete definition.
7793 * parser-defs.h (null_post_parser): Delete declaration.
7794 * rust-lang.c (rust_language_data): Delete la_post_parser
7795 initializer.
7796
7797 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7798
7799 * ada-lang.c (parse): Rename to ada_language::parser.
7800 (ada_language_data): Delete la_parser initializer.
7801 (ada_language::parser): New member function, implementation from
7802 parse.
7803 * c-lang.c (c_language_data): Delete la_parser initializer.
7804 (cplus_language_data): Likewise.
7805 (asm_language_data): Likewise.
7806 (minimal_language_data): Likewise.
7807 * d-lang.c (d_language_data): Likewise.
7808 (d_language::parser): New member function.
7809 * f-lang.c (f_language_data): Delete la_parser initializer.
7810 (f_language::parser): New member function.
7811 * go-lang.c (go_language_data): Delete la_parser initializer.
7812 (go_language::parser): New member function.
7813 * language.c (unk_lang_parser): Delete.
7814 (language_defn::parser): Define new member function.
7815 (unknown_language_data): Delete la_parser initializer.
7816 (unknown_language::parser): New member function.
7817 (auto_language_data): Delete la_parser initializer.
7818 (auto_language::parser): New member function.
7819 * language.h (language_data): Delete la_parser field.
7820 (language_defn::parser): Declare new member function.
7821 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7822 (m2_language::parser): New member function.
7823 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7824 * opencl-lang.c (opencl_language_data): Likewise.
7825 * p-lang.c (pascal_language_data): Likewise.
7826 (pascal_language::parser): New member function.
7827 * parse.c (parse_exp_in_context): Update call to parser.
7828 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7829 (rust_language::parser): New member function.
7830
7831 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7832
7833 * top.c (print_gdb_configuration): Print --with-python-libdir
7834 configuration value.
7835
7836 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7837
7838 * NEWS: Mention change to the alias command.
7839
7840 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7841
7842 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7843 (alias_command_completer)
7844 (make_alias_options_def_group): New functions.
7845 (alias_opts, alias_option_defs): New struct and array.
7846 (alias_usage_error): Update usage.
7847 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7848 Use option framework.
7849 (_initialize_cli_cmds): Update alias command help.
7850 Update aliases command help.
7851 (show_user):
7852 Add NULL for new default_args lookup_cmd argument.
7853 (valid_command_p): Rename to validate_aliased_command.
7854 Add NULL for new default_args lookup_cmd argument. Verify that the
7855 aliased_command has no default args.
7856 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7857 (lookup_cmd_1, lookup_cmd): New argument default_args.
7858 (add_alias_cmd):
7859 Add NULL for new default_args lookup_cmd argument.
7860 (print_help_for_command): Show default args under the layout
7861 alias some_alias = some_aliased_cmd some_alias_default_arg.
7862 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7863 xfree default_args in destructor.
7864 * cli/cli-script.c (process_next_line, do_define_command):
7865 Add NULL for new default_args lookup_cmd argument.
7866 * command.h: Declare new default_args argument in lookup_cmd
7867 and lookup_cmd_1.
7868 * completer.c (complete_line_internal_1):
7869 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7870 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7871 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7872 Likewise.
7873 * infcmd.c (_initialize_infcmd): Likewise.
7874 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7875 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7876 * python/py-param.c (add_setshow_generic): Likewise.
7877 * remote.c (_initialize_remote): Likewise.
7878 * top.c (execute_command): Prepend default_args if command has some.
7879 (set_verbose):
7880 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7881 * tracepoint.c (validate_actionline, encode_actions_1):
7882 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7883
7884 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7885
7886 * jit.c (jit_read_descriptor): Use bool as the return type.
7887 (jit_breakpoint_re_set_internal): Use bool as the return type.
7888 Invert the return value logic; return true if the jit breakpoint
7889 has been successfully initialized.
7890 (jit_inferior_init): Update the call to
7891 jit_breakpoint_re_set_internal.
7892
7893 2020-06-22 Pedro Alves <palves@redhat.com>
7894
7895 PR gdb/25939
7896 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7897 Use the current inferior instead. Don't return
7898 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7899 wait again.
7900 * sol-thread.c (sol_thread_target::wait): Don't reference
7901 inferior_ptid.
7902 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7903 (sol_update_thread_list_callback): Use the current inferior's pid
7904 instead of inferior_ptid.
7905
7906 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7907
7908 * procfs.c: Cleanup many comments.
7909
7910 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7911 (AFTER_WATCHFLAG): Replace by value.
7912
7913 (MAIN_PROC_NAME_FORMAT): Inline ...
7914 (create_procinfo): ... here.
7915
7916 (procfs_debug_inferior): Remove SYS_exec handling.
7917 (syscall_is_exec): Likewise.
7918 (procfs_set_exec_trap): Likewise.
7919
7920 (syscall_is_lwp_exit): Inline in callers.
7921 (syscall_is_exit): Likewise.
7922 (syscall_is_exec): Likewise.
7923 (syscall_is_lwp_create): Likewise.
7924
7925 (invalidate_cache): Remove #if 0 code.
7926
7927 (make_signal_thread_runnable): Remove.
7928 (procfs_target::resume): Remove #if 0 code.
7929
7930 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7931
7932 PR gdb/25939
7933 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7934 call ...
7935 (procfs_target::create_inferior): ... here.
7936
7937 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7938
7939 * exec.c (validate_exec_file): Ensure the build-id is up to
7940 date by calling reopen_exec_file (that checks file timestamp
7941 to decide to re-read the file).
7942
7943 2020-06-18 Pedro Alves <palves@redhat.com>
7944
7945 PR gdb/25412
7946 * gdbthread.h (delete_thread, delete_thread_silent)
7947 (find_thread_ptid): Update comments.
7948 * thread.c (current_thread_): New global.
7949 (is_current_thread): Move higher, and reimplement.
7950 (inferior_thread): Reimplement.
7951 (set_thread_exited): Use bool. Add assertions.
7952 (add_thread_silent): Simplify thread-reuse handling by always
7953 calling delete_thread.
7954 (delete_thread): Remove intro comment.
7955 (find_thread_ptid): Skip exited threads.
7956 (switch_to_thread_no_regs): Write to current_thread_.
7957 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7958 INFERIOR_PTID. Clear current_thread_.
7959
7960 2020-06-18 Pedro Alves <palves@redhat.com>
7961
7962 * aix-thread.c (pd_update): Use switch_to_thread.
7963
7964 2020-06-18 Pedro Alves <palves@redhat.com>
7965
7966 * ravenscar-thread.c (ravenscar_thread_target): Update.
7967 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7968 (ravenscar_thread_target::add_active_thread): ... this. Don't
7969 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7970 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7971
7972 2020-06-18 Pedro Alves <palves@redhat.com>
7973
7974 * nat/windows-nat.c (current_windows_thread): Remove.
7975 * nat/windows-nat.h (current_windows_thread): Remove.
7976 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7977 Adjust.
7978 (display_selectors): Adjust to fetch the current
7979 windows_thread_info based on inferior_ptid.
7980 (fake_create_process): No longer write to current_windows_thread.
7981 (windows_nat_target::get_windows_debug_event):
7982 Don't set inferior_ptid or current_windows_thread.
7983 (windows_nat_target::wait): Adjust to not rely on
7984 current_windows_thread.
7985 (do_initial_windows_stuff): Now a method of windows_nat_target.
7986 Switch to the last_ptid thread.
7987 (windows_nat_target::attach): Adjust.
7988 (windows_nat_target::detach): Use switch_to_no_thread instead of
7989 writing to inferior_ptid directly.
7990 (windows_nat_target::create_inferior): Adjust.
7991
7992 2020-06-18 Pedro Alves <palves@redhat.com>
7993
7994 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7995
7996 2020-06-18 Pedro Alves <palves@redhat.com>
7997
7998 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7999 after creating it, instead of writing to inferior_ptid. Don't
8000 write to inferior_ptid.
8001
8002 2020-06-18 Pedro Alves <palves@redhat.com>
8003
8004 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8005
8006 2020-06-18 Pedro Alves <palves@redhat.com>
8007
8008 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8009 it, instead of writing to inferior_ptid.
8010
8011 2020-06-18 Pedro Alves <palves@redhat.com>
8012
8013 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8014 to inferior_ptid.
8015
8016 2020-06-18 Pedro Alves <palves@redhat.com>
8017
8018 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8019 instead of writing to inferior_ptid directly.
8020
8021 2020-06-18 Pedro Alves <palves@redhat.com>
8022
8023 * corelow.c (core_target::close): Use switch_to_no_thread instead
8024 of writing to inferior_ptid directly.
8025 (add_to_thread_list, core_target_open): Use switch_to_thread
8026 instead of writing to inferior_ptid directly.
8027
8028 2020-06-18 Pedro Alves <palves@redhat.com>
8029
8030 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8031 inferior_ptid.
8032 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8033 inferior_ptid.
8034 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8035 inferior_ptid directly.
8036 (darwin_nat_target::init_thread_list): Switch to thread, instead
8037 of writing to inferior_ptid.
8038 (darwin_nat_target::attach): Don't write to inferior_ptid.
8039 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8040
8041 2020-06-18 Pedro Alves <palves@redhat.com>
8042
8043 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8044 thread.
8045 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8046 Instead use switch_to_thread.
8047 (gnu_nat_target::detach): Use switch_to_no_thread
8048 instead of writing to inferior_ptid directly. Used passed-in
8049 inferior instead of looking up the inferior by pid.
8050
8051 2020-06-18 Pedro Alves <palves@redhat.com>
8052
8053 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8054 inferior_ptid.
8055
8056 2020-06-18 Pedro Alves <palves@redhat.com>
8057
8058 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8059 inferior_ptid.
8060 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8061 thread.
8062 (nto_procfs_target::detach): Avoid referencing
8063 inferior_ptid. Use switch_to_no_thread instead of writing to
8064 inferior_ptid directly.
8065 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8066 instead of writing to inferior_ptid directly.
8067 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8068 to thread.
8069
8070 2020-06-18 Pedro Alves <palves@redhat.com>
8071
8072 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8073 after creating it, instead of writing to inferior_ptid.
8074 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8075 to inferior_ptid directly.
8076 (gdbsim_target::wait): Don't write to inferior_ptid.
8077
8078 2020-06-18 Pedro Alves <palves@redhat.com>
8079
8080 * remote.c (remote_target::remote_notice_new_inferior): Use
8081 switch_to_thread instead of writing to inferior_ptid directly.
8082 (remote_target::add_current_inferior_and_thread): Use
8083 switch_to_no_thread instead of writing to inferior_ptid directly.
8084 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8085 and switch_to_thread instead of using set_current_inferior or
8086 writing to inferior_ptid directly.
8087
8088 2020-06-18 Pedro Alves <palves@redhat.com>
8089
8090 * tracectf.c (ctf_target_open): Switch to added thread instead of
8091 writing to inferior_ptid directly.
8092 (ctf_target::close): Use switch_to_no_thread instead of writing to
8093 inferior_ptid directly.
8094
8095 2020-06-18 Pedro Alves <palves@redhat.com>
8096
8097 * tracefile-tfile.c (tfile_target_open): Don't write to
8098 inferior_ptid directly, instead switch to added thread.
8099 (tfile_target::close): Use switch_to_no_thread instead of writing
8100 to inferior_ptid directly.
8101
8102 2020-06-18 Pedro Alves <palves@redhat.com>
8103
8104 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8105 (procfs_target::detach): Use switch_to_no_thread
8106 instead of writing to inferior_ptid directly.
8107 (do_attach): Change return type to void. Switch to the added
8108 thread.
8109 (procfs_target::create_inferior): Switch to the added thread.
8110 (procfs_do_thread_registers): Don't write to inferior_ptid.
8111
8112 2020-06-18 Pedro Alves <palves@redhat.com>
8113
8114 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8115 of writing to inferior_ptid.
8116 (scoped_restore_exited_inferior): Delete.
8117 (handle_vfork_child_exec_or_exit): Simplify using
8118 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8119 instead of writing to inferior_ptid.
8120 (THREAD_STOPPED_BY): Delete.
8121 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8122 (thread_stopped_by_hw_breakpoint): Delete.
8123 (save_waitstatus): Use
8124 scoped_restore_current_thread+switch_to_thread, and call
8125 target_stopped_by_watchpoint instead of
8126 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8127 instead of thread_stopped_by_sw_breakpoint, and
8128 target_stopped_by_hw_breakpoint instead of
8129 thread_stopped_by_hw_breakpoint.
8130 (handle_inferior_event)
8131 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8132 inferior_ptid directly, nor
8133 set_current_inferior/set_current_program_space. Use
8134 switch_to_thread / switch_to_inferior_no_thread instead.
8135
8136 2020-06-18 Pedro Alves <palves@redhat.com>
8137
8138 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8139 instead of writing to inferior_ptid.
8140
8141 2020-06-18 Pedro Alves <palves@redhat.com>
8142
8143 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8144 added thread.
8145 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8146 to the added thread.
8147 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8148 instead of writing to inferior_ptid.
8149
8150 2020-06-18 Pedro Alves <palves@redhat.com>
8151
8152 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8153 (register_to_value_test): Mock a program_space too. Heap-allocate
8154 the address space. Don't write to inferior_ptid. Use
8155 switch_to_thread instead.
8156
8157 2020-06-18 Pedro Alves <palves@redhat.com>
8158
8159 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8160 Delete.
8161 (find_signalled_thread()): New, factored out from
8162 linux_make_corefile_notes and adjusted to handle exited threads.
8163 (linux_make_corefile_notes): Adjust to use the new
8164 find_signalled_thread.
8165
8166 2020-06-18 Pedro Alves <palves@redhat.com>
8167
8168 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8169 of saving/restoring inferior_ptid.
8170
8171 2020-06-17 Tom Tromey <tom@tromey.com>
8172
8173 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8174 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8175 declare.
8176 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8177
8178 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8179
8180 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8181 of partial symtabs.
8182
8183 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8184
8185 * regformats/reg-arm.dat: Remove.
8186 * regformats/reg-bfin.dat: Remove.
8187 * regformats/reg-cris.dat: Remove.
8188 * regformats/reg-crisv32.dat: Remove.
8189 * regformats/reg-m32r.dat: Remove.
8190 * regformats/reg-tilegx.dat: Remove.
8191 * regformats/reg-tilegx32.dat: Remove.
8192
8193 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8194
8195 * features/Makefile (WHICH): Remove arm files.
8196 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8197 * regformats/arm/arm-with-neon.dat: Remove.
8198 * regformats/arm/arm-with-vfpv2.dat: Remove.
8199 * regformats/arm/arm-with-vfpv3.dat: Remove.
8200
8201 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8202
8203 * features/Makefile (XMLTOC): Remove rx.xml.
8204
8205 2020-06-17 Pedro Alves <palves@redhat.com>
8206
8207 * gdbthread.h (thread_control_state) <trap_expected> Update
8208 comments.
8209
8210 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8211
8212 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8213 ada_language::lookup_symbol_nonlocal.
8214 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8215 (ada_language::lookup_symbol_nonlocal): New member function,
8216 implementation from ada_lookup_symbol_nonlocal.
8217 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8218 initializer.
8219 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8220 initializer.
8221 (cplus_language::lookup_symbol_nonlocal): New member function.
8222 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8223 (minimal_language_data) Likewise.
8224 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8225 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8226 initializer.
8227 (d_language::lookup_symbol_nonlocal): New member function.
8228 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8229 initializer.
8230 (f_language::lookup_symbol_nonlocal): New member function.
8231 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8232 initializer.
8233 * language.c (unknown_language_data): Likewise.
8234 (auto_language_data): Likewise.
8235 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8236 field.
8237 (language_defn::lookup_symbol_nonlocal): New member function.
8238 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8239 initializer.
8240 * objc-lang.c (objc_language_data): Likewise.
8241 * opencl-lang.c (opencl_language_data): Likewise.
8242 * p-lang.c (pascal_language_data): Likewise.
8243 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8244 rust_language::lookup_symbol_nonlocal.
8245 (rust_language_data): Delete la_lookup_symbol_nonlocal
8246 initializer.
8247 (rust_language::lookup_symbol_nonlocal): New member function,
8248 implementation from rust_lookup_symbol_nonlocal.
8249 * symtab.c (lookup_symbol_aux): Update call to
8250 lookup_symbol_nonlocal.
8251 (basic_lookup_symbol_nonlocal): Rename to...
8252 (language_defn::lookup_symbol_nonlocal): ...this, and update
8253 header comment. Remove language_defn parameter, and replace with
8254 uses of `this'.
8255 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8256
8257 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8258
8259 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8260 initializer.
8261 (ada_language::value_print_inner): New member function.
8262 * c-lang.c (c_language_data): Delete la_value_print_inner
8263 initializer.
8264 (cplus_language_data): Likewise.
8265 (asm_language_data): Likewise.
8266 (minimal_language_data): Likewise.
8267 * d-lang.c (d_language_data): Likewise.
8268 (d_language::value_print_inner): New member function.
8269 * f-lang.c (f_language_data): Delete la_value_print_inner
8270 initializer.
8271 (f_language::value_print_inner): New member function.
8272 * f-lang.h (f_value_print_innner): Rename to...
8273 (f_value_print_inner): ...this (note spelling of 'inner').
8274 * f-valprint.c (f_value_print_innner): Rename to...
8275 (f_value_print_inner): ...this (note spelling of 'inner').
8276 * go-lang.c (go_language_data): Delete la_value_print_inner
8277 initializer.
8278 (go_language::value_print_inner): New member function.
8279 * language.c (language_defn::value_print_inner): Define new member
8280 function.
8281 (unk_lang_value_print_inner): Delete.
8282 (unknown_language_data): Delete la_value_print_inner initializer.
8283 (unknown_language::value_print_inner): New member function.
8284 (auto_language_data): Delete la_value_print_inner initializer.
8285 (auto_language::value_print_inner): New member function.
8286 * language.h (language_data): Delete la_value_print_inner field.
8287 (language_defn::value_print_inner): Delcare new member function.
8288 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8289 initializer.
8290 (m2_language::value_print_inner): New member function.
8291 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8292 initializer.
8293 * opencl-lang.c (opencl_language_data): Likewise.
8294 * p-lang.c (pascal_language_data): Likewise.
8295 (pascal_language::value_print_inner): New member function.
8296 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8297 initializer.
8298 (rust_language::value_print_inner): New member function.
8299 * valprint.c (do_val_print): Update call to value_print_inner.
8300
8301 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8302
8303 * ada-lang.c (ada_language_data): Delete la_value_print
8304 initializer.
8305 (ada_language::value_print): New member function.
8306 * c-lang.c (c_language_data): Delete la_value_print initializer.
8307 (cplus_language_data): Likewise.
8308 (asm_language_data): Likewise.
8309 (minimal_language_data): Likewise.
8310 * d-lang.c (d_language_data): Likewise.
8311 * f-lang.c (f_language_data): Likewise.
8312 * go-lang.c (go_language_data): Likewise.
8313 * language.c (unk_lang_value_print): Delete.
8314 (language_defn::value_print): Define new member function.
8315 (unknown_language_data): Delete la_value_print initializer.
8316 (unknown_language::value_print): New member function.
8317 (auto_language_data): Delete la_value_print initializer.
8318 (auto_language::value_print): New member function.
8319 * language.h (language_data): Delete la_value_print field.
8320 (language_defn::value_print): Declare new member function.
8321 (LA_VALUE_PRINT): Update call to value_print.
8322 * m2-lang.c (m2_language_data): Delete la_value_print 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 (pascal_language::value_print): New member function.
8327 * rust-lang.c (rust_language_data): Delete la_value_print
8328 initializer.
8329
8330 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8331
8332 * ada-lang.c (ada_watch_location_expression): Rename to
8333 ada_language::watch_location_expression.
8334 (ada_language_data): Delete la_watch_location_expression
8335 initializer.
8336 (ada_language::watch_location_expression): New member function,
8337 implementation from ada_watch_location_expression.
8338 * breakpoint.c (watch_command_1): Update call to
8339 watch_location_expression.
8340 * c-lang.c (c_watch_location_expression): Rename to
8341 language_defn::watch_location_expression.
8342 (c_language_data): Delete la_watch_location_expression
8343 initializer.
8344 (cplus_language_data): Likewise.
8345 (asm_language_data): Likewise.
8346 (minimal_language_data): Likewise.
8347 * c-lang.h (c_watch_location_expression): Delete declaration.
8348 * d-lang.c (d_language_data): Delete la_watch_location_expression
8349 initializer.
8350 * f-lang.c (f_language_data): Likewise.
8351 * go-lang.c (go_language_data): Likewise.
8352 * language.c (language_defn::watch_location_expression): Member
8353 function implementation from c_watch_location_expression.
8354 (unknown_language_data): Delete la_watch_location_expression
8355 initializer.
8356 (auto_language_data): Likewise.
8357 * language.h (language_data): Delete la_watch_location_expression
8358 field.
8359 (language_defn::watch_location_expression): Declare new member
8360 function.
8361 * m2-lang.c (m2_language_data): Delete
8362 la_watch_location_expression initializer.
8363 * objc-lang.c (objc_language_data): Likewise.
8364 * opencl-lang.c (opencl_language_data): Likewise.
8365 * p-lang.c (pascal_language_data): Likewise.
8366 * rust-lang.c (rust_watch_location_expression): Rename to
8367 rust_language::watch_location_expression.
8368 (rust_language_data): Delete la_watch_location_expression
8369 initializer.
8370 (rust_language::watch_location_expression): New member function,
8371 implementation from rust_watch_location_expression.
8372
8373 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8374
8375 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8376 ada_language::collect_symbol_completion_matches.
8377 (ada_language_data): Delete la_collect_symbol_completion_matches
8378 initializer.
8379 (ada_language::collect_symbol_completion_matches): New member
8380 function, implementation from
8381 ada_collect_symbol_completion_matches.
8382 * c-lang.c (c_language_data): Delete
8383 la_collect_symbol_completion_matches initializer.
8384 (cplus_language_data): Likewise.
8385 (asm_language_data): Likewise.
8386 (minimal_language_data): Likewise.
8387 * d-lang.c (d_language_data): Likewise.
8388 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8389 f_language::collect_symbol_completion_matches.
8390 (f_language_data): Delete la_collect_symbol_completion_matches
8391 initializer.
8392 (f_language::collect_symbol_completion_matches) New member
8393 function, implementation from f_collect_symbol_completion_matches.
8394 * go-lang.c (go_language_data): Delete
8395 la_collect_symbol_completion_matches initializer.
8396 * language.c (unknown_language_data): Likewise.
8397 (auto_language_data): Likewise.
8398 * language.h (language_data): Delete
8399 la_collect_symbol_completion_matches field.
8400 (language_defn::collect_symbol_completion_matches): New member
8401 function.
8402 * m2-lang.c (m2_language_data): Delete
8403 la_collect_symbol_completion_matches initializer.
8404 * objc-lang.c (objc_language_data): Likewise.
8405 * opencl-lang.c (opencl_language_data): Likewise.
8406 * p-lang.c (pascal_language_data): Likewise.
8407 * rust-lang.c (rust_language_data): Likewise.
8408 * symtab.c (default_collect_symbol_completion_matches): Delete.
8409 (collect_symbol_completion_matches): Update call to
8410 collect_symbol_completion_matches.
8411 (collect_symbol_completion_matches_type): Likewise.
8412 * symtab.h (default_collect_symbol_completion_matches): Delete
8413 declaration.
8414
8415 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8416
8417 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8418 (ada_language_data): Delete la_word_break_characters initializer.
8419 (ada_language::word_break_characters): New member function.
8420 * c-lang.c (c_language_data): Delete la_word_break_characters
8421 initializer.
8422 (cplus_language_data): Likewise.
8423 (asm_language_data): Likewise.
8424 (minimal_language_data): Likewise.
8425 * completer.c: Update global comment.
8426 (advance_to_expression_complete_word_point): Update call to
8427 word_break_characters.
8428 (complete_files_symbols): Likewise.
8429 (complete_line_internal_1): Likewise.
8430 (default_completer_handle_brkchars): Likewise.
8431 (skip_quoted_chars): Likewise.
8432 * d-lang.c (d_language_data): Delete la_word_break_characters
8433 initializer.
8434 * f-lang.c (f_word_break_characters): Delete.
8435 (f_language_data): Delete la_word_break_characters initializer.
8436 (f_language::word_break_characters): New member function.
8437 * go-lang.c (go_language_data): Delete la_word_break_characters
8438 initializer.
8439 * language.c (unknown_language_data): Likewise.
8440 (auto_language_data): Likewise.
8441 * language.h (default_word_break_characters): Move declaration to
8442 earlier in the file.
8443 (language_data): Delete la_word_break_characters field.
8444 (language_defn::word_break_characters): New member function.
8445 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8446 initializer.
8447 * objc-lang.c (objc_language_data): Likewise.
8448 * opencl-lang.c (opencl_language_data): Likewise.
8449 * p-lang.c (pascal_language_data): Likewise.
8450 * rust-lang.c (rust_language_data): Likewise.
8451
8452 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8453
8454 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8455 (ada_language_data): Delete la_get_symbol_name_matcher
8456 initializer.
8457 (language_defn::get_symbol_name_matcher_inner): New member
8458 function.
8459 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8460 initializer.
8461 (cplus_language_data): Likewise.
8462 (cplus_language::get_symbol_name_matcher_inner): New member
8463 function.
8464 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8465 (minimal_language_data): Likewise.
8466 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8467 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8468 initializer.
8469 * dictionary.c (iter_match_first_hashed): Update call to
8470 get_symbol_name_matcher.
8471 (iter_match_next_hashed): Likewise.
8472 (iter_match_next_linear): Likewise.
8473 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8474 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8475 initializer.
8476 (f_language::get_symbol_name_matcher_inner): New member function.
8477 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8478 initializer.
8479 * language.c (default_symbol_name_matcher): Update header comment,
8480 make static.
8481 (language_defn::get_symbol_name_matcher): New definition.
8482 (language_defn::get_symbol_name_matcher_inner): Likewise.
8483 (get_symbol_name_matcher): Delete.
8484 (unknown_language_data): Delete la_get_symbol_name_matcher
8485 initializer.
8486 (auto_language_data): Likewise.
8487 * language.h (language_data): Delete la_get_symbol_name_matcher
8488 field.
8489 (language_defn::get_symbol_name_matcher): New member function.
8490 (language_defn::get_symbol_name_matcher_inner): Likewise.
8491 (default_symbol_name_matcher): Delete declaration.
8492 * linespec.c (find_methods): Update call to
8493 get_symbol_name_matcher.
8494 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8495 initializer.
8496 * minsyms.c (lookup_minimal_symbol): Update call to
8497 get_symbol_name_matcher.
8498 (iterate_over_minimal_symbols): Likewise.
8499 * objc-lang.c (objc_language_data): Delete
8500 la_get_symbol_name_matcher initializer.
8501 * opencl-lang.c (opencl_language_data): Likewise.
8502 * p-lang.c (pascal_language_data): Likewise.
8503 * psymtab.c (psymbol_name_matches): Update call to
8504 get_symbol_name_matcher.
8505 * rust-lang.c (rust_language_data): Delete
8506 la_get_symbol_name_matcher initializer.
8507 * symtab.c (symbol_matches_search_name): Update call to
8508 get_symbol_name_matcher.
8509 (compare_symbol_name): Likewise.
8510
8511 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8512
8513 * ada-lang.c (ada_language_data): Delete la_compute_program
8514 initializer.
8515 * c-lang.c (c_language_data): Likewise.
8516 (c_language::compute_program): New member function.
8517 (cplus_language_data): Delete la_compute_program initializer.
8518 (cplus_language::compute_program): New member function.
8519 (asm_language_data): Delete la_compute_program initializer.
8520 (minimal_language_data): Likewise.
8521 * c-lang.h (c_compute_program): Update comment.
8522 (cplus_compute_program): Likewise.
8523 * compile/compile-c-support.c (c_compute_program): Likewise.
8524 (cplus_compute_program): Likewise.
8525 * compile/compile.c (compile_to_object): Update call to
8526 la_compute_program.
8527 * d-lang.c (d_language_data): Delete la_compute_program
8528 initializer.
8529 * f-lang.c (f_language_data): Likewise.
8530 * go-lang.c (go_language_data): Likewise.
8531 * language.c (unknown_language_data): Likewise.
8532 (auto_language_data): Likewise.
8533 * language.h (language_data): Delete la_compute_program field.
8534 (language_defn::compute_program): New member function.
8535 * m2-lang.c (m2_language_data): Delete la_compute_program
8536 initializer.
8537 * objc-lang.c (objc_language_data): Likewise.
8538 * opencl-lang.c (opencl_language_data): Likewise.
8539 * p-lang.c (pascal_language_data): Likewise.
8540 * rust-lang.c (rust_language_data): Likewise.
8541
8542 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8543
8544 * ada-lang.c (ada_language_data) Delete
8545 la_class_name_from_physname initializer.
8546 * c-lang.c (c_language_data): Likewise.
8547 (cplus_language_data): Likewise.
8548 (cplus_language::class_name_from_physname): New member function.
8549 (asm_language_data): Delete la_class_name_from_physname
8550 initializer.
8551 (minimal_language_data): Likewise.
8552 * d-lang.c (d_language_data): Likewise.
8553 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8554 method on language_defn class.
8555 (guess_full_die_structure_name): Likewise.
8556 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8557 initializer.
8558 * go-lang.c (go_language_data): Likewise.
8559 * language.c (language_class_name_from_physname): Delete.
8560 (unk_lang_class_name): Delete.
8561 (unknown_language_data): Delete la_class_name_from_physname
8562 initializer.
8563 (auto_language_data): Likewise.
8564 * language.h (language_data): Delete la_class_name_from_physname
8565 field.
8566 (language_defn::class_name_from_physname): New function.
8567 (language_class_name_from_physname): Delete declaration.
8568 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8569 initializer.
8570 * objc-lang.c (objc_language_data): Likewise.
8571 * opencl-lang.c (opencl_language_data): Likewise.
8572 * p-lang.c (pascal_language_data): Likewise.
8573 * rust-lang.c (rust_language_data): Likewise.
8574
8575 2020-06-16 Tom Tromey <tom@tromey.com>
8576
8577 * tui/tui-data.h (STATUS_NAME): New macro.
8578 * tui/tui-layout.c (tui_remove_some_windows)
8579 (initialize_known_windows, tui_register_window)
8580 (tui_layout_split::remove_windows, initialize_layouts)
8581 (tui_new_layout_command): Don't use hard-coded window names.
8582
8583 2020-06-16 Tom Tromey <tom@tromey.com>
8584
8585 PR tui/25348:
8586 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8587 tui_initialize_readline. Only run once. Call rl_initialize.
8588 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8589 tui_initialize_readline.
8590 * tui/tui-io.c (tui_setup_io): Call
8591 tui_ensure_readline_initialized.
8592 * tui/tui-interp.c (tui_interp::init): Update.
8593
8594 2020-06-16 Tom Tromey <tom@tromey.com>
8595
8596 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8597 Also preserve the status window.
8598
8599 2020-06-16 Tom Tromey <tom@tromey.com>
8600
8601 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8602 where m_window==nullptr.
8603
8604 2020-06-15 Tom Tromey <tromey@adacore.com>
8605
8606 * windows-nat.c (windows_nat::handle_output_debug_string):
8607 Update.
8608 (windows_nat::handle_ms_vc_exception): Update.
8609 * target.h (target_read_string): Change API.
8610 * target.c (target_read_string): Change API.
8611 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8612 Update.
8613 * solib-frv.c (frv_current_sos): Update.
8614 * solib-dsbt.c (dsbt_current_sos): Update.
8615 * solib-darwin.c (darwin_current_sos): Update.
8616 * linux-thread-db.c (inferior_has_bug): Update.
8617 * expprint.c (print_subexp_standard): Update.
8618 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8619 (ada_exception_message_1): Update.
8620
8621 2020-06-15 Tom Tromey <tromey@adacore.com>
8622
8623 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8624
8625 2020-06-15 Tom Tromey <tromey@adacore.com>
8626
8627 * valprint.c (read_string): Update comment.
8628 * target.c (MIN): Remove.
8629 (target_read_string): Rewrite.
8630
8631 2020-06-15 Tom Tromey <tromey@adacore.com>
8632
8633 * corefile.c (read_memory_string): Remove.
8634 * ada-valprint.c (ada_value_print_ptr): Update.
8635 * ada-lang.h (ada_tag_name): Change return type.
8636 * ada-lang.c (type_from_tag): Update.
8637 (ada_tag_name_from_tsd): Change return type. Use
8638 target_read_string.
8639 (ada_tag_name): Likewise.
8640 * gdbcore.h (read_memory_string): Don't declare.
8641
8642 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8643
8644 * symtab.c (rbreak_command): Ignore Windows drive colon.
8645
8646 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8647
8648 * NEWS: Mention removed GDBserver host support.
8649
8650 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8651
8652 * features/riscv/rebuild-csr-xml.sh: Updated.
8653
8654 2020-06-11 Tom Tromey <tom@tromey.com>
8655
8656 PR gdb/18318:
8657 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8658
8659 2020-06-09 Jonny Grant <jg@jguk.org>
8660 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8661
8662 * main.c (captured_main_1): Don't print new line after help.
8663 (print_gdb_help): add mailing list and IRC channel information
8664 to --help. Add new lines between items in the footer. Remove
8665 quotes around bug url.
8666
8667 2020-06-11 Keith Seitz <keiths@redhat.com>
8668
8669 PR gdb/21356
8670 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8671 Resolve typedefs for type length calculations.
8672
8673 2020-06-10 Tom de Vries <tdevries@suse.de>
8674
8675 PR ada/24713
8676 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8677 (write_psymbols): Enable .gdb_index for ada.
8678 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8679 ada.
8680
8681 2020-06-10 Tom de Vries <tdevries@suse.de>
8682
8683 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8684 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8685 namei" instead of "const char *name" argument.
8686 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8687 dw2_symtab_iter_init.
8688
8689 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8690
8691 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8692 to use type::field and field::type instead.
8693
8694 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8695
8696 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8697 to use field::type instead.
8698
8699 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8700
8701 * gdbtypes.h (struct field) <type, set_type>: New methods.
8702 Rename `type` field to...
8703 <m_type>: ... this. Change references throughout to use type or
8704 set_type methods.
8705 (FIELD_TYPE): Use field::type. Change call sites that modify
8706 the field's type to use field::set_type instead.
8707
8708 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8709
8710 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8711 to use type::index_type instead.
8712
8713 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8714
8715 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8716 methods.
8717 (TYPE_INDEX_TYPE): Use type::index_type.
8718 * gdbtypes.c (create_array_type_with_stride): Likewise.
8719
8720 2020-06-07 Tom Tromey <tom@tromey.com>
8721
8722 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8723 parameter.
8724 (generic_value_print): Update.
8725
8726 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8727
8728 Revert commit 982a38f60b0.
8729 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8730
8731 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8732
8733 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8734 avoid use after free.
8735
8736 2020-06-05 Tom de Vries <tdevries@suse.de>
8737
8738 * NEWS: Fix typos.
8739
8740 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8741
8742 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8743 the per_bfd object.
8744 (dwarf2_read_debug_names): Likewise.
8745 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8746 object when re-using a per_bfd object with an index.
8747
8748 2020-06-03 Tom de Vries <tdevries@suse.de>
8749
8750 PR symtab/26046
8751 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8752 children for C++.
8753 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8754 DW_TAG_subprogram.
8755
8756 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8757
8758 * ada-lang.c (ada_language_data): Delete skip_trampoline
8759 initializer.
8760 * c-lang.c (c_language_data): Likewise.
8761 (cplus_language_data): Likewise.
8762 (cplus_language::skip_trampoline): New member function.
8763 (asm_language_data): Delete skip_trampoline initializer.
8764 (minimal_language_data): Likewise.
8765 * d-lang.c (d_language_data): Likewise.
8766 * f-lang.c (f_language_data): Likewise.
8767 * go-lang.c (go_language_data): Likewise.
8768 * language.c (unk_lang_trampoline): Delete function.
8769 (skip_language_trampoline): Update.
8770 (unknown_language_data): Delete skip_trampoline initializer.
8771 (auto_language_data): Likewise.
8772 * language.h (language_data): Delete skip_trampoline field.
8773 (language_defn::skip_trampoline): New function.
8774 * m2-lang.c (m2_language_data): Delete skip_trampoline
8775 initializer.
8776 * objc-lang.c (objc_skip_trampoline): Delete function, move
8777 implementation to objc_language::skip_trampoline.
8778 (objc_language_data): Delete skip_trampoline initializer.
8779 (objc_language::skip_trampoline): New member function with
8780 implementation from objc_skip_trampoline.
8781 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8782 initializer.
8783 * p-lang.c (pascal_language_data): Likewise.
8784 * rust-lang.c (rust_language_data): Likewise.
8785
8786 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8787
8788 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8789 (ada_language::demangle): New member function.
8790 * c-lang.c (c_language_data): Delete la_demangle initializer.
8791 (cplus_language_data): Delete la_demangle initializer.
8792 (cplus_language::demangle): New member function.
8793 (asm_language_data): Delete la_demangle initializer.
8794 (minimal_language_data): Delete la_demangle initializer.
8795 * d-lang.c (d_language_data): Delete la_demangle initializer.
8796 (d_language::demangle): New member function.
8797 * f-lang.c (f_language_data): Delete la_demangle initializer.
8798 (f_language::demangle): New member function.
8799 * go-lang.c (go_language_data): Delete la_demangle initializer.
8800 (go_language::demangle): New member function.
8801 * language.c (language_demangle): Update.
8802 (unk_lang_demangle): Delete.
8803 (unknown_language_data): Delete la_demangle initializer.
8804 (unknown_language::demangle): New member function.
8805 (auto_language_data): Delete la_demangle initializer.
8806 (auto_language::demangle): New member function.
8807 * language.h (language_data): Delete la_demangle field.
8808 (language_defn::demangle): New function.
8809 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8810 * objc-lang.c (objc_language_data): Delete la_demangle
8811 initializer.
8812 (objc_language::demangle): New member function.
8813 * opencl-lang.c (opencl_language_data): Delete la_demangle
8814 initializer.
8815 * p-lang.c (pascal_language_data): Likewise.
8816 * rust-lang.c (rust_language_data): Likewise.
8817 (rust_language::demangle): New member function.
8818
8819 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8820
8821 * ada-lang.c (ada_language_data): Delete la_print_type
8822 initializer.
8823 (ada_language::print_type): New member function.
8824 * c-lang.c (c_language_data): Delete la_print_type initializer.
8825 (c_language::print_type): New member function.
8826 (cplus_language_data): Delete la_print_type initializer.
8827 (cplus_language::print_type): New member function.
8828 (asm_language_data): Delete la_print_type initializer.
8829 (asm_language::print_type): New member function.
8830 (minimal_language_data): Delete la_print_type initializer.
8831 (minimal_language::print_type): New member function.
8832 * d-lang.c (d_language_data): Delete la_print_type initializer.
8833 (d_language::print_type): New member function.
8834 * f-lang.c (f_language_data): Delete la_print_type initializer.
8835 (f_language::print_type): New member function.
8836 * go-lang.c (go_language_data): Delete la_print_type initializer.
8837 (go_language::print_type): New member function.
8838 * language.c (unk_lang_print_type): Delete.
8839 (unknown_language_data): Delete la_print_type initializer.
8840 (unknown_language::print_type): New member function.
8841 (auto_language_data): Delete la_print_type initializer.
8842 (auto_language::print_type): New member function.
8843 * language.h (language_data): Delete la_print_type field.
8844 (language_defn::print_type): New function.
8845 (LA_PRINT_TYPE): Update.
8846 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8847 (m2_language::print_type): New member function.
8848 * objc-lang.c (objc_language_data): Delete la_print_type
8849 initializer.
8850 (objc_language::print_type): New member function.
8851 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8852 to opencl_language::print_type.
8853 (opencl_language_data): Delete la_print_type initializer.
8854 (opencl_language::print_type): New member function, implementation
8855 from opencl_print_type.
8856 * p-lang.c (pascal_language_data): Delete la_print_type
8857 initializer.
8858 (pascal_language::print_type): New member function.
8859 * rust-lang.c (rust_print_type): Delete, implementation moved to
8860 rust_language::print_type.
8861 (rust_language_data): Delete la_print_type initializer.
8862 (rust_language::print_type): New member function, implementation
8863 from rust_print_type.
8864
8865 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8866
8867 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8868 implementation moves to...
8869 (ada_language::sniff_from_mangled_name): ...here. Update return
8870 type.
8871 (ada_language_data): Delete la_sniff_from_mangled_name
8872 initializer.
8873 * c-lang.c (c_language_data): Likewise.
8874 (cplus_language_data): Likewise.
8875 (cplus_language::sniff_from_mangled_name): New member function,
8876 implementation taken from gdb_sniff_from_mangled_name.
8877 (asm_language_data): Delete la_sniff_from_mangled_name
8878 initializer.
8879 (minimal_language_data): Likewise.
8880 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8881 implementation moves to cplus_language::sniff_from_mangled_name.
8882 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8883 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8884 moves to...
8885 (d_language::sniff_from_mangled_name): ...here.
8886 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8887 * f-lang.c (f_language_data): Likewise.
8888 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8889 moves to...
8890 (go_language::sniff_from_mangled_name): ...here.
8891 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8892 * language.c (language_sniff_from_mangled_name): Delete.
8893 (unknown_language_data): Delete la_sniff_from_mangled_name
8894 initializer.
8895 (auto_language_data): Likewise.
8896 * language.h (language_data): Delete la_sniff_from_mangled_name
8897 field.
8898 (language_defn::sniff_from_mangled_name): New function.
8899 (language_sniff_from_mangled_name): Delete declaration.
8900 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8901 field.
8902 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8903 implementation moves to...
8904 (objc_language::sniff_from_mangled_name): ...here.
8905 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8906 * opencl-lang.c (opencl_language_data): Likewise.
8907 * p-lang.c (pascal_language_data): Likewise.
8908 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8909 implementation moves to...
8910 (rust_language::sniff_from_mangled_name): ...here.
8911 (rust_language_data): Delete la_sniff_from_mangled_name
8912 initializer.
8913 * symtab.c (symbol_find_demangled_name): Call
8914 sniff_from_mangled_name member function.
8915
8916 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8917
8918 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8919 initializer.
8920 * c-lang.c (c_language_data): Likewise.
8921 (cplus_language_data): Likewise.
8922 (cplus_language::search_name_hash): New member function.
8923 (asm_language_data): Delete la_search_name_hash initializer.
8924 (minimal_language_data): Likewise.
8925 * d-lang.c (d_language_data): Likewise.
8926 * dictionary.c (default_search_name_hash): Rename to...
8927 (language_defn::search_name_hash): ...this.
8928 * f-lang.c (f_language_data): Likewise.
8929 (f_language::search_name_hash): New member function.
8930 * go-lang.c (go_language_data): Delete la_search_name_hash
8931 initializer.
8932 * language.c (unknown_language_data): Likewise.
8933 (auto_language_data): Likewise.
8934 * language.h (struct language_data): Delete la_search_name_hash
8935 field.
8936 (language_defn::search_name_hash): Declare new member function.
8937 (default_search_name_hash): Delete declaration.
8938 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8939 initializer.
8940 * objc-lang.c (objc_language_data): Likewise.
8941 * opencl-lang.c (opencl_language_data): Likewise.
8942 * p-lang.c (pascal_language_data): Likewise.
8943 * rust-lang.c (rust_language_data): Likewise.
8944 * symtab.c (search_name_hash): Update call.
8945
8946 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8947
8948 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8949 initializer.
8950 * c-lang.c (class compile_instance): Declare.
8951 (c_language_data): Delete la_get_compile_instance initializer.
8952 (c_language::get_compile_instance): New member function.
8953 (cplus_language_data): Delete la_get_compile_instance initializer.
8954 (cplus_language::get_compile_instance): New member function.
8955 (asm_language_data): Delete la_get_compile_instance initializer.
8956 (minimal_language_data): Likewise.
8957 * c-lang.h (c_get_compile_context): Update comment.
8958 (cplus_get_compile_context): Update comment.
8959 * compile/compile.c (compile_to_object): Update calls, don't rely
8960 on function pointer being NULL.
8961 * d-lang.c (d_language_data): Delete la_get_compile_instance
8962 initializer.
8963 * f-lang.c (f_language_data): Likewise.
8964 * go-lang.c (go_language_data): Likewise.
8965 * language.c (unknown_language_data): Likewise.
8966 (auto_language_data): Likewise.
8967 * language.h (language_data): Delete la_get_compile_instance field.
8968 (language_defn::get_compile_instance): New member function.
8969 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8970 initializer.
8971 * objc-lang.c (objc_language_data): Likewise.
8972 * opencl-lang.c (opencl_language_data): Likewise.
8973 * p-lang.c (pascal_language_data): Likewise.
8974 * rust-lang.c (rust_language_data): Likewise.
8975
8976 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8977
8978 * ada-lang.c (ada_add_all_symbols): Update comment.
8979 (ada_iterate_over_symbols): Delete, move implementation to...
8980 (ada_language::iterate_over_symbols): ...here, a new member
8981 function, rewrite to use range based for loop.
8982 (ada_language_data): Delete la_iterate_over_symbols initializer.
8983 * c-lang.c (c_language_data): Likewise.
8984 (cplus_language_data): Likewise.
8985 (asm_language_data): Likewise.
8986 (minimal_language_data): Likewise.
8987 * d-lang.c (d_language_data): Likewise.
8988 * f-lang.c (f_language_data): Likewise.
8989 * go-lang.c (go_language_data): Likewise.
8990 * language.c (unknown_language_data): Likewise.
8991 (auto_language_data): Likewise.
8992 * language.h (language_data): Delete la_iterate_over_symbols field.
8993 (language_defn::iterate_over_symbols): New member function.
8994 (LA_ITERATE_OVER_SYMBOLS): Update.
8995 * linespec.c (iterate_over_all_matching_symtabs): Update.
8996 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8997 initializer.
8998 * objc-lang.c (objc_language_data): Likewise.
8999 * opencl-lang.c (opencl_language_data): Likewise.
9000 * p-lang.c (pascal_language_data): Likewise.
9001 * rust-lang.c (rust_language_data): Likewise.
9002
9003 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9004
9005 * ada-lang.c (ada_language_data): Delete
9006 la_lookup_transparent_type initializer.
9007 * c-lang.c (c_language_data): Likewise.
9008 (cplus_language_data): Likewise.
9009 (cplus_language::lookup_transparent_type): New member function.
9010 (asm_language_data): Delete la_lookup_transparent_type
9011 initializer.
9012 (minimal_language_data): Likewise.
9013 * d-lang.c (d_language_data): Likewise.
9014 * f-lang.c (f_language_data): Likewise.
9015 * go-lang.c (go_language_data): Likewise.
9016 * language.c (unknown_language_data): Likewise.
9017 (auto_language_data): Likewise.
9018 * language.h (struct language_data): Delete
9019 la_lookup_transparent_type field.
9020 (language_defn::lookup_transparent_type): New member function.
9021 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
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 (symbol_matches_domain): Update call.
9028
9029 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9030
9031 * ada-lang.c (ada_language_arch_info): Delete function, move
9032 implementation to...
9033 (ada_language::language_arch_info): ...here, a new member
9034 function.
9035 (ada_language_data): Delete la_language_arch_info.
9036 * c-lang.c (c_language_data): Likewise.
9037 (c_language::language_arch_info): New member function.
9038 (cplus_language_arch_info): Delete function, move
9039 implementation to...
9040 (cplus_language::language_arch_info): ...here, a new member
9041 function.
9042 (cplus_language_data): Delete la_language_arch_info.
9043 (asm_language_data): Likewise.
9044 (asm_language::language_arch_info): New member function.
9045 (minimal_language_data): Delete la_language_arch_info.
9046 (minimal_language::language_arch_info): New member function.
9047 * d-lang.c (d_language_arch_info): Delete function, move
9048 implementation to...
9049 (d_language::language_arch_info): ...here, a new member
9050 function.
9051 (d_language_data): Delete la_language_arch_info.
9052 * f-lang.c (f_language_arch_info): Delete function, move
9053 implementation to...
9054 (f_language::language_arch_info): ...here, a new member
9055 function.
9056 (f_language_data): Delete la_language_arch_info.
9057 * go-lang.c (go_language_arch_info): Delete function, move
9058 implementation to...
9059 (go_language::language_arch_info): ...here, a new member
9060 function.
9061 (go_language_data): Delete la_language_arch_info.
9062 * language.c (unknown_language_data): Likewise.
9063 (unknown_language::language_arch_info): New member function.
9064 (auto_language_data): Delete la_language_arch_info.
9065 (auto_language::language_arch_info): New member function.
9066 (language_gdbarch_post_init): Update call to
9067 la_language_arch_info.
9068 * language.h (language_data): Delete la_language_arch_info
9069 function pointer.
9070 (language_defn::language_arch_info): New function.
9071 * m2-lang.c (m2_language_arch_info): Delete function, move
9072 implementation to...
9073 (m2_language::language_arch_info): ...here, a new member
9074 function.
9075 (m2_language_data): Delete la_language_arch_info.
9076 * objc-lang.c (objc_language_arch_info): Delete function, move
9077 implementation to...
9078 (objc_language::language_arch_info): ...here, a new member
9079 function.
9080 (objc_language_data): Delete la_language_arch_info.
9081 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9082 implementation to...
9083 (opencl_language::language_arch_info): ...here, a new member
9084 function.
9085 (opencl_language_data): Delete la_language_arch_info.
9086 * p-lang.c (pascal_language_arch_info): Delete function, move
9087 implementation to...
9088 (pascal_language::language_arch_info): ...here, a new member
9089 function.
9090 (pascal_language_data): Delete la_language_arch_info.
9091 * rust-lang.c (rust_language_arch_info): Delete function, move
9092 implementation to...
9093 (rust_language::language_arch_info): ...here, a new member
9094 function.
9095 (rust_language_data): Delete la_language_arch_info.
9096
9097 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9098
9099 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9100 initializer.
9101 * c-lang.c (c_language_data): Likewise.
9102 (cplus_language_data): Likewise.
9103 (cplus_language::pass_by_reference_info): New method.
9104 (asm_language_data): Delete la_pass_by_reference initializer.
9105 (minimal_language_data): Likewise.
9106 * cp-abi.c (cp_pass_by_reference): Remove use of
9107 default_pass_by_reference.
9108 * d-lang.c (d_language_data): Likewise.
9109 * f-lang.c (f_language_data): Likewise.
9110 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9111 default_pass_by_reference.
9112 * go-lang.c (go_language_data): Likewise.
9113 * language.c (language_pass_by_reference): Update.
9114 (default_pass_by_reference): Delete.
9115 (unknown_language_data): Delete la_pass_by_reference
9116 initializer.
9117 (auto_language_data): Likewise.
9118 * language.h (struct language_data): Delete la_pass_by_reference
9119 field.
9120 (language_defn::pass_by_reference_info): New member function.
9121 (default_pass_by_reference): Delete declaration.
9122 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9123 initializer.
9124 * objc-lang.c (objc_language_data): Likewise.
9125 * opencl-lang.c (opencl_language_data): Likewise.
9126 * p-lang.c (pascal_language_data): Likewise.
9127 * rust-lang.c (rust_language_data): Likewise.
9128
9129 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9130
9131 * ada-lang.c (ada_read_var_value): Delete function, move
9132 implementation to...
9133 (ada_language::read_var_value): ...here.
9134 (ada_language_data): Delete la_read_var_value initializer.
9135 * c-lang.c (c_language_data): Likewise.
9136 (cplus_language_data): Likewise.
9137 (minimal_language_data): Likewise.
9138 * d-lang.c (d_language_data): Likewise.
9139 * f-lang.c (f_language_data): Likewise.
9140 * findvar.c (default_read_var_value): Rename to...
9141 (language_defn::read_var_value): ...this.
9142 * findvar.c (read_var_value): Update header comment, and change to
9143 call member function instead of function pointer.
9144 * go-lang.c (go_language_data): Likewise.
9145 * language.c (unknown_language_data): Delete la_read_var_value
9146 initializer.
9147 (auto_language_data): Likewise.
9148 * language.h (struct language_data): Delete la_read_var_value
9149 field.
9150 (language_defn::read_var_value): New member function.
9151 (default_read_var_value): Delete declaration.
9152 * m2-lang.c (m2_language_data): Delete la_read_var_value
9153 initializer.
9154 * objc-lang.c (objc_language_data): Likewise.
9155 * opencl-lang.c (opencl_language_data): Likewise.
9156 * p-lang.c (pascal_language_data): Likewise.
9157 * rust-lang.c (rust_language_data): Likewise.
9158 * value.h (default_read_var_value): Delete declaration.
9159
9160 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9161
9162 * ada-lang.c (ada_print_array_index): Delete function, move
9163 implementation to...
9164 (ada_language::print_array_index): ...here.
9165 (ada_language_data): Delete la_print_array_index initializer.
9166 * c-lang.c (c_language_data): Likewise.
9167 (cplus_language_data): Likewise.
9168 (minimal_language_data): Likewise.
9169 * d-lang.c (d_language_data): Likewise.
9170 * f-lang.c (f_language_data): Likewise.
9171 * go-lang.c (go_language_data): Likewise.
9172 * language.c (default_print_array_index): Delete function, move
9173 implementation to...
9174 (language_defn::print_array_index): ...here.
9175 (unknown_language_data): Delete la_print_array_index initializer.
9176 (auto_language_data): Likewise.
9177 * language.h (struct language_data): Delete la_print_array_index
9178 field.
9179 (language_defn::print_array_index): New member function.
9180 (LA_PRINT_ARRAY_INDEX): Update.
9181 (default_print_array_index): Delete declaration.
9182 * m2-lang.c (m2_language_data): Delete la_print_array_index
9183 initializer.
9184 * objc-lang.c (objc_language_data): Likewise.
9185 * opencl-lang.c (opencl_language_data): Likewise.
9186 * p-lang.c (pascal_language_data): Likewise.
9187 * rust-lang.c (rust_language_data): Likewise.
9188
9189 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9190
9191 * gdb/ada-lang.c (ada_language_defn): Convert to...
9192 (ada_language_data): ...this.
9193 (class ada_language): New class.
9194 (ada_language_defn): New static global.
9195 * gdb/c-lang.c (c_language_defn): Convert to...
9196 (c_language_data): ...this.
9197 (class c_language): New class.
9198 (c_language_defn): New static global.
9199 (cplus_language_defn): Convert to...
9200 (cplus_language_data): ...this.
9201 (class cplus_language): New class.
9202 (cplus_language_defn): New static global.
9203 (asm_language_defn): Convert to...
9204 (asm_language_data): ...this.
9205 (class asm_language): New class.
9206 (asm_language_defn): New static global.
9207 (minimal_language_defn): Convert to...
9208 (minimal_language_data): ...this.
9209 (class minimal_language): New class.
9210 (minimal_language_defn): New static global.
9211 * gdb/d-lang.c (d_language_defn): Convert to...
9212 (d_language_data): ...this.
9213 (class d_language): New class.
9214 (d_language_defn): New static global.
9215 * gdb/f-lang.c (f_language_defn): Convert to...
9216 (f_language_data): ...this.
9217 (class f_language): New class.
9218 (f_language_defn): New static global.
9219 * gdb/go-lang.c (go_language_defn): Convert to...
9220 (go_language_data): ...this.
9221 (class go_language): New class.
9222 (go_language_defn): New static global.
9223 * gdb/language.c (unknown_language_defn): Remove declaration.
9224 (current_language): Initialize to nullptr, real initialization is
9225 moved to _initialize_language.
9226 (languages): Delete global.
9227 (language_defn::languages): Define.
9228 (set_language_command): Use language_defn::languages.
9229 (set_language): Likewise.
9230 (range_error): Likewise.
9231 (language_enum): Likewise.
9232 (language_def): Likewise.
9233 (add_set_language_command): Use language_def::languages for the
9234 language list, and language_def to lookup language pointers.
9235 (skip_language_trampoline): Use language_defn::languages.
9236 (unknown_language_defn): Convert to...
9237 (unknown_language_data): ...this.
9238 (class unknown_language): New class.
9239 (unknown_language_defn): New static global.
9240 (auto_language_defn): Convert to...
9241 (auto_language_data): ...this.
9242 (class auto_language): New class.
9243 (auto_language_defn): New static global.
9244 (language_gdbarch_post_init): Use language_defn::languages.
9245 (_initialize_language): Initialize current_language.
9246 * gdb/language.h (struct language_defn): Rename to...
9247 (struct language_data): ...this.
9248 (struct language_defn): New.
9249 (auto_language_defn): Delete.
9250 (unknown_language_defn): Delete.
9251 (minimal_language_defn): Delete.
9252 (ada_language_defn): Delete.
9253 (asm_language_defn): Delete.
9254 (c_language_defn): Delete.
9255 (cplus_language_defn): Delete.
9256 (d_language_defn): Delete.
9257 (f_language_defn): Delete.
9258 (go_language_defn): Delete.
9259 (m2_language_defn): Delete.
9260 (objc_language_defn): Delete.
9261 (opencl_language_defn): Delete.
9262 (pascal_language_defn): Delete.
9263 (rust_language_defn): Delete.
9264 * gdb/m2-lang.c (m2_language_defn): Convert to...
9265 (m2_language_data): ...this.
9266 (class m2_language): New class.
9267 (m2_language_defn): New static global.
9268 * gdb/objc-lang.c (objc_language_defn): Convert to...
9269 (objc_language_data): ...this.
9270 (class objc_language): New class.
9271 (objc_language_defn): New static global.
9272 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9273 (opencl_language_data): ...this.
9274 (class opencl_language): New class.
9275 (opencl_language_defn): New static global.
9276 * gdb/p-lang.c (pascal_language_defn): Convert to...
9277 (pascal_language_data): ...this.
9278 (class pascal_language): New class.
9279 (pascal_language_defn): New static global.
9280 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9281 language pointer, update comment format.
9282 * gdb/rust-lang.c (rust_language_defn): Convert to...
9283 (rust_language_data): ...this.
9284 (class rust_language): New class.
9285 (rust_language_defn): New static global.
9286
9287 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9288
9289 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9290 member variable.
9291 <m_stmt_at_address>: New member variable.
9292 (lnp_state_machine::record_line): Don't record some lines, update
9293 tracking of is_stmt at the same address.
9294 (lnp_state_machine::lnp_state_machine): Initialise new member
9295 variables.
9296
9297 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9298
9299 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9300 "-include gnu-nat-mig.h".
9301 * gnu-nat-mig.h: New file.
9302 * gnu-nat.c: Include "gnu-nat-mig.h".
9303 (exc_server, msg_reply_server, notify_server,
9304 process_reply_server): Remove declarations.
9305
9306 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9307
9308 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9309 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9310 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9311 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9312 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9313 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9314 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9315 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9316 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9317 to gnu_nat_target class.
9318 * gnu-nat.c: Likewise.
9319 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9320 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9321 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9322 object.
9323 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9324 instead of `gnu_target'.
9325
9326 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9327
9328 * i386-gnu-tdep.c: Include "gdbcore.h"
9329 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9330 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9331 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9332 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9333 i386_gnu_sigcontext_addr): New functions
9334 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9335 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9336 tdep.
9337
9338 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9339
9340 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9341 before fork_inferior call. Avoid calling it if target_is_pushed returns
9342 true.
9343
9344 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9345
9346 * gnu-nat.h (gnu_target): New variable declaration.
9347 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9348 gnu_target.
9349 * gnu-nat.c (gnu_target): New variable.
9350 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9351 add_thread_silent, and add_thread calls.
9352 (gnu_nat_target::create_inferior): Pass gnu_target to
9353 add_thread_silent, thread_change_ptid call.
9354 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9355 call.
9356
9357 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9358
9359 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9360 (gnu_nat_target::find_memory_regions): Remove unused
9361 `old_address' variable.
9362
9363 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9364
9365 * gnu-nat.c: Include "gdbarch.h".
9366
9367 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9368
9369 * reply_mig_hack.awk (Error return): Cast function through
9370 void *, to bypass compiler function call check.
9371
9372 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9373
9374 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9375 $(srcdir)/reply_mig_hack.awk.
9376
9377 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9378
9379 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9380
9381 2020-05-30 Jonny Grant <jg@jguk.org>
9382
9383 * configure.ac (ACX_BUGURL): change bug URL to https.
9384
9385 2020-05-30 Pedro Alves <palves@redhat.com>
9386
9387 * cp-support.c (replace_typedefs_template): New.
9388 (replace_typedefs_qualified_name): Handle
9389 DEMANGLE_COMPONENT_TEMPLATE.
9390
9391 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9392
9393 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9394 dwarf2/index-cache.h, dwarf2/index-write.c,
9395 dwarf2/index-write.h, dwarf2/line-header.c,
9396 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9397 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9398 variables and fields from `dwarf2_per_objfile` to just
9399 `per_objfile` throughout.
9400
9401 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9402
9403 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9404 <push_dwarf_reg_entry_value>: Add comment.
9405
9406 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9407 Keith Seitz <keiths@redhat.com>
9408
9409 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9410 instead of PyEval_ReleaseLock.
9411 (class gdbpy_gil): Move to earlier in file.
9412 (finalize_python): Set gdb_python_initialized.
9413 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9414 when not initialized.
9415
9416 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9417
9418 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9419 <push_dwarf_reg_entry_value>: Remove assert. Override
9420 per_objfile with caller_per_objfile.
9421
9422 2020-05-28 Tom de Vries <tdevries@suse.de>
9423
9424 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9425 PR gold/15646 workaround to symbol kind "type".
9426
9427 2020-05-27 Tom Tromey <tromey@adacore.com>
9428
9429 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9430
9431 2020-05-27 Tom Tromey <tromey@adacore.com>
9432
9433 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9434 Use htab_find_with_hash.
9435 <add_abbrev>: Remove "abbrev_number" parameter.
9436 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9437 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9438 (hash_abbrev): Add comment.
9439 (abbrev_table::lookup_abbrev): Move to header file.
9440 (abbrev_table::read): Update.
9441
9442 2020-05-27 Tom Tromey <tromey@adacore.com>
9443
9444 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9445 method.
9446 <canonical_name>: New member.
9447 <raw_name>: Rename from "name".
9448 (partial_die_info): Initialize canonical_name.
9449 (scan_partial_symbols): Check raw_name.
9450 (partial_die_parent_scope, partial_die_full_name)
9451 (add_partial_symbol, add_partial_subprogram)
9452 (add_partial_enumeration, load_partial_dies): Use "name" method.
9453 (partial_die_info::name): New method.
9454 (partial_die_info::read, guess_partial_die_structure_name)
9455 (partial_die_info::fixup): Update.
9456
9457 2020-05-27 Tom Tromey <tromey@adacore.com>
9458
9459 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9460 <get_ref_die_offset>: Inline.
9461 <get_ref_die_offset_complaint>: New method.
9462 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9463 (attribute::get_ref_die_offset_complaint): Rename from
9464 get_ref_die_offset. Just issue complaint.
9465
9466 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9467
9468 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9469
9470 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9471
9472 * exec.c (exec_file_attach): Use errno value of first openp failure.
9473
9474 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9475
9476 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9477 Don't close thread handle.
9478
9479 2020-05-27 Tom Tromey <tom@tromey.com>
9480 Simon Marchi <simon.marchi@efficios.com>
9481
9482 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9483 shared_ptr.
9484 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9485 member.
9486 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9487 dwarf2_per_bfd_objfile_data_key>: New globals.
9488 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9489 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9490 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9491 shared.
9492 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9493 short-circuit when sharing.
9494 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9495 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9496
9497 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9498
9499 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9500 to...
9501 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9502 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9503
9504 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9505
9506 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9507 build_name_components, find_name_components_bounds>:
9508 Add per_objfile parameter.
9509 (struct mapped_index) <symbol_name_at>: Likewise.
9510 (struct mapped_debug_names): Remove constructor.
9511 <dwarf2_per_objfile>: Remove field.
9512 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9513 (mapped_index_base::find_name_components_bounds,
9514 mapped_index_base::build_name_components,
9515 dw2_expand_symtabs_matching_symbol): Likewise.
9516 (class mock_mapped_index) <symbol_name_at>: Likewise.
9517 (check_match): Likewise.
9518 (check_find_bounds_finds): Likewise.
9519 (test_mapped_index_find_name_component_bounds): Update.
9520 (CHECK_MATCH): Update.
9521 (dw2_expand_symtabs_matching): Update.
9522 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9523 per_objfile parameter.
9524 <find_vec_in_debug_names>: Likewise.
9525 <m_per_objfile>: New field.
9526 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9527 parameter.
9528 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9529 (dw2_debug_names_iterator::next): Update.
9530 (dw2_debug_names_lookup_symbol): Update.
9531 (dw2_debug_names_expand_symtabs_for_function): Update.
9532 (dw2_debug_names_map_matching_symbols): Update.
9533 (dw2_debug_names_expand_symtabs_matching): Update.
9534 (dwarf2_read_debug_names): Update.
9535
9536 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9537
9538 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9539 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9540 move to dwarf2_per_objfile.
9541 <read_in_chain>: Remove.
9542 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9543 remove_all_cus, age_comp_units>: New methods.
9544 <m_dwarf2_cus>: New member.
9545 (struct dwarf2_per_cu_data) <cu>: Remove.
9546 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9547 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9548 moved to methods of dwarf2_per_objfile.
9549 (dwarf2_clear_marks): Remove.
9550 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9551 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9552 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9553 (dwarf2_per_objfile::remove_all_cus): New.
9554 (class free_cached_comp_units) <~free_cached_comp_units>:
9555 Update.
9556 (load_cu): Update.
9557 (dw2_do_instantiate_symtab): Adjust.
9558 (fill_in_sig_entry_from_dwo_entry): Adjust.
9559 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9560 (cutu_reader::cutu_reader): Likewise.
9561 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9562 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9563 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9564 and dwarf2_per_objfile::age_comp_units.
9565 (load_partial_comp_unit): Update.
9566 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9567 (process_queue): Likewise.
9568 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9569 backlink.
9570 (dwarf2_read_addr_index): Likewise.
9571 (follow_die_offset): Likewise.
9572 (dwarf2_fetch_die_loc_sect_off): Likewise.
9573 (dwarf2_fetch_constant_bytes): Likewise.
9574 (dwarf2_fetch_die_type_sect_off): Likewise.
9575 (follow_die_sig_1): Likewise.
9576 (load_full_type_unit): Likewise.
9577 (read_signatured_type): Likewise.
9578 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9579 (dwarf2_cu::~dwarf2_cu): Remove.
9580 (dwarf2_per_objfile::get_cu): New.
9581 (dwarf2_per_objfile::set_cu): New.
9582 (age_cached_comp_units): Rename to...
9583 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9584 to std::unordered_map.
9585 (free_one_cached_comp_unit): Rename to...
9586 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9587 to std::unordered_map.
9588 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9589 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9590 a dwarf2_per_objfile in data.
9591 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9592 (dwarf2_clear_marks): Remove.
9593
9594 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9595
9596 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9597 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9598 (init_tu_and_read_dwo_dies): Likewise.
9599 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9600 (cutu_reader::cutu_reader): Likewise.
9601 (load_partial_comp_unit): Likewise.
9602 (process_psymtab_comp_unit): Update.
9603 (build_type_psymtabs_1): Update.
9604 (process_skeletonless_type_unit): Update.
9605 (load_full_comp_unit): Update.
9606 (find_partial_die): Update.
9607 (dwarf2_read_addr_index): Update.
9608 (read_signatured_type): Update.
9609
9610 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9611
9612 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9613 m_header_read_in>: New fields.
9614 <get_header>: New method.
9615 * dwarf2/read.c (per_cu_header_read_in): Remove.
9616 (dwarf2_per_cu_data::get_header): New.
9617 (dwarf2_per_cu_data::addr_size): Update.
9618 (dwarf2_per_cu_data::offset_size): Update.
9619 (dwarf2_per_cu_data::ref_addr_size): Update.
9620
9621 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9622
9623 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9624 (dw2_do_instantiate_symtab): Update.
9625 (queue_and_load_all_dwo_tus): Change parameter from
9626 dwarf2_per_cu_data to dwarf2_cu.
9627 (dwarf2_fetch_die_loc_sect_off): Update.
9628 (dwarf2_fetch_constant_bytes): Update.
9629 (dwarf2_fetch_die_type_sect_off): Update.
9630
9631 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9632
9633 * dwarf2/read.c (process_full_comp_unit,
9634 process_full_type_unit): Remove per_cu, per_objfile paramters.
9635 Add dwarf2_cu parameter.
9636 (process_queue): Update.
9637
9638 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9639
9640 * dwarf2/read.c (create_cu_from_index_list): Replace
9641 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9642 (create_cus_from_index_list): Likewise.
9643 (create_cus_from_index): Likewise.
9644 (create_signatured_type_table_from_index): Likewise.
9645 (create_cus_from_debug_names_list): Likewise.
9646 (create_cus_from_debug_names): Likewise.
9647 (dwarf2_read_gdb_index): Update.
9648 (dwarf2_read_debug_names): Update.
9649
9650 2020-05-27 Tom Tromey <tom@tromey.com>
9651 Simon Marchi <simon.marchi@efficios.com>
9652
9653 * dwarf2/read.h (struct dwarf2_per_objfile)
9654 <get_type_for_signatured_type, set_type_for_signatured_type>:
9655 New methods.
9656 <m_type_map>: New member.
9657 (struct signatured_type) <type>: Remove.
9658 * dwarf2/read.c
9659 (dwarf2_per_objfile::get_type_for_signatured_type,
9660 dwarf2_per_objfile::set_type_for_signatured_type): New.
9661 (get_signatured_type): Use new methods.
9662
9663 2020-05-27 Tom Tromey <tom@tromey.com>
9664 Simon Marchi <simon.marchi@efficios.com>
9665
9666 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9667 (struct dwarf2_per_objfile) <type_units>: New member.
9668 <get_type_unit_group_unshareable>: New method.
9669 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9670 num_symtabs, symtabs>: Remove; move to
9671 type_unit_group_unshareable.
9672 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9673 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9674 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9675
9676 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9677
9678 * dwarf2/read.h (struct dwarf2_per_cu_data):
9679 <dwarf2_per_objfile>: Remove.
9680 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9681 dwarf2_per_objfile.
9682 (create_signatured_type_table_from_index): Likewise.
9683 (create_signatured_type_table_from_debug_names): Likewise.
9684 (create_debug_type_hash_table): Likewise.
9685 (fill_in_sig_entry_from_dwo_entry): Likewise.
9686 (create_type_unit_group): Likewise.
9687 (read_comp_units_from_section): Likewise.
9688 (create_cus_hash_table): Likewise.
9689
9690 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9691
9692 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9693 dwarf2_per_cu_data::dwarf2_per_objfile.
9694 (compute_compunit_symtab_includes): Likewise.
9695 (dwarf2_cu::start_symtab): Likewise.
9696
9697 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9698
9699 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9700 parameter.
9701 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9702 (read_namespace_alias): Update.
9703 (lookup_die_type): Update.
9704 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9705 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9706 Update.
9707 (disassemble_dwarf_expression): Update.
9708
9709 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9710
9711 * dwarf2/read.h (struct dwarf2_queue_item): Add
9712 dwarf2_per_objfile parameter, assign new parameter.
9713 <per_objfile>: New field.
9714 * dwarf2/read.c (free_one_cached_comp_unit): Add
9715 dwarf2_per_objfile parameter.
9716 (queue_comp_unit): Likewise.
9717 (dw2_do_instantiate_symtab): Update.
9718 (process_psymtab_comp_unit): Update.
9719 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9720 (process_imported_unit_die): Update.
9721 (queue_and_load_dwo_tu): Update.
9722 (follow_die_offset): Update.
9723 (follow_die_sig_1): Update.
9724
9725 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9726
9727 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9728 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9729 (read_call_site_scope): Assign per_objfile.
9730 (dwarf2_per_cu_data::objfile): Remove.
9731 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9732 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9733 dwarf2_per_objfile parameter.
9734 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9735 dwarf2_per_objfile parameter.
9736 (dwarf_expr_reg_to_entry_parameter): Add output
9737 dwarf2_per_objfile parameter.
9738 (locexpr_get_frame_base): Update.
9739 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9740 <push_dwarf_reg_entry_value>: Update.
9741 <call_site_to_target_addr>: Update.
9742 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9743 parameter.
9744 (value_of_dwarf_reg_entry): Update.
9745 (rw_pieced_value): Update.
9746 (indirect_synthetic_pointer): Update.
9747 (dwarf2_evaluate_property): Update.
9748 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9749 parameter.
9750 (locexpr_read_variable): Update.
9751 (locexpr_get_symbol_read_needs): Update.
9752 (loclist_read_variable): Update.
9753
9754 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9755
9756 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9757 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9758 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9759 parameter.
9760 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9761 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9762 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9763 parameter.
9764 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9765 sect_variable_value): Add dwarf2_per_objfile parameter.
9766 (class dwarf_evaluate_loc_desc) <dwarf_call,
9767 dwarf_variable_value>: Update.
9768 (fetch_const_value_from_synthetic_pointer): Add
9769 dwarf2_per_objfile parameter.
9770 (fetch_const_value_from_synthetic_pointer): Update.
9771 (coerced_pieced_ref): Update.
9772 (class symbol_needs_eval_context) <dwarf_call,
9773 dwarf_variable_value>: Update.
9774 (dwarf2_compile_expr_to_ax): Update.
9775
9776 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9777
9778 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9779 parameter.
9780 (dwarf2_evaluate_loc_desc_full): Update.
9781
9782 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9785 parameter.
9786 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9787 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9788 dwarf2_per_objfile parameter.
9789 (decode_debug_loc_dwo_addresses): Likewise.
9790 (dwarf2_find_location_expression): Update.
9791 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9792 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9793 parameter.
9794 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9795 parameter.
9796 (locexpr_describe_location_1): Likewise.
9797 (locexpr_describe_location): Update.
9798
9799 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9800
9801 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9802 Remove.
9803 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9804 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9805 (dwarf2_compile_property_to_c): Update.
9806 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9807 use text offset from objfile.
9808 (locexpr_tracepoint_var_ref): Update.
9809 (locexpr_generate_c_location): Update.
9810 (loclist_describe_location): Update.
9811 (loclist_tracepoint_var_ref): Update.
9812 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9813 dwarf2_per_objfile parameter.
9814 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9815 use text offset from objfile.
9816 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9817
9818 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9819
9820 * dwarf2/expr.h (struct dwarf_expr_context)
9821 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9822 <offset>: Remove.
9823 <per_objfile>: New member.
9824 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9825 dwarf2_per_objfile parameter. Don't set offset, set
9826 per_objfile.
9827 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9828 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9829 a dwarf2_per_objfile object instead of an offset.
9830 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9831 constructor.
9832 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9833 to dwarf2_expr_executor constructor. Don't set offset.
9834 (dwarf2_fetch_cfa_info): Update.
9835 (struct dwarf2_frame_cache) <text_offset>: Remove.
9836 <per_objfile>: New field.
9837 (dwarf2_frame_cache): Update.
9838 (dwarf2_frame_prev_register): Update.
9839 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9840 <dwarf_evaluate_loc_desc>: Add constructor.
9841 (dwarf2_evaluate_loc_desc_full): Update.
9842 (dwarf2_locexpr_baton_eval): Update.
9843 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9844 Add constructor.
9845 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9846
9847 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9848
9849 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9850 addr_sized_int_type>: Move to dwarf2_cu.
9851 <int_type>: Move to dwarf2_per_objfile.
9852 (struct dwarf2_per_objfile) <int_type>: Move here.
9853 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9854 addr_sized_int_type>: Move here.
9855 (read_func_scope): Update.
9856 (read_array_type): Update.
9857 (read_tag_string_type): Update.
9858 (attr_to_dynamic_prop): Update.
9859 (dwarf2_per_cu_data::int_type): Rename to...
9860 (dwarf2_per_objfile::int_type): ... this.
9861 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9862 (dwarf2_cu::addr_sized_int_type): ... this.
9863 (read_subrange_type): Update.
9864 (dwarf2_per_cu_data::addr_type): Rename to...
9865 (dwarf2_cu::addr_type): ... this.
9866 (set_die_type): Update.
9867
9868 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9869
9870 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9871 data through per_cu->cu.
9872
9873 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9874
9875 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9876 dwarf2_per_cu_data parameter fo dwarf2_cu.
9877 (lookup_dwo_type_unit): Likewise.
9878 (read_cutu_die_from_dwo): Likewise.
9879 (lookup_dwo_unit): Likewise.
9880 (open_and_init_dwo_file): Likewise.
9881 (lookup_dwo_cutu): Likewise.
9882 (lookup_dwo_comp_unit): Likewise.
9883 (lookup_dwo_type_unit): Likewise.
9884 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9885 (cutu_reader::cutu_reader): Update.
9886
9887 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9890 parameter.
9891 (process_full_type_unit): Likewise.
9892 (process_queue): Update.
9893
9894 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9895
9896 * dwarf2/read.c (recursively_compute_inclusions): Add
9897 dwarf2_per_objfile parameter.
9898 (compute_compunit_symtab_includes): Likewise.
9899 (process_cu_includes): Update.
9900
9901 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9902
9903 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9904 parameter.
9905 (create_type_unit_group): Update.
9906 (process_psymtab_comp_unit_reader): Update.
9907 (build_type_psymtabs_reader): Update.
9908
9909 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9910
9911 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9912 object through m_this_cu->cu.
9913
9914 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9915
9916 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9917 the info parameter.
9918 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9919
9920 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9921
9922 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9923 per_objfile parameter.
9924 (load_full_type_unit): Add per_objfile parameter.
9925 (read_signatured_type): Likewise.
9926 (load_full_comp_unit): Likewise.
9927 (load_cu): Likewise.
9928 (dw2_do_instantiate_symtab): Likewise.
9929 (dw2_get_file_names): Likewise.
9930 (dw2_map_symtabs_matching_filename): Update.
9931 (dw_expand_symtabs_matching_file_matcher): Update.
9932 (dw2_map_symbol_filenames): Update.
9933 (process_psymtab_comp_unit): Add per_objfile parameter.
9934 (build_type_psymtabs_1): Update.
9935 (process_skeletonless_type_unit): Update.
9936 (dwarf2_build_psymtabs_hard): Update.
9937 (load_partial_comp_unit): Add per_objfile parameter.
9938 (scan_partial_symbols): Update.
9939 (load_full_comp_unit): Add per_objfile parameter.
9940 (process_imported_unit_die): Update.
9941 (create_cus_hash_table): Update.
9942 (find_partial_die): Update.
9943 (dwarf2_read_addr_index): Update.
9944 (follow_die_offset): Update.
9945 (dwarf2_fetch_die_loc_sect_off): Update.
9946 (dwarf2_fetch_constant_bytes): Update.
9947 (dwarf2_fetch_die_type_sect_off): Update.
9948 (follow_die_sig_1): Update.
9949 (load_full_type_unit): Add per_objfile parameter.
9950 (read_signatured_type): Likewise.
9951
9952 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9953
9954 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9955 of objfile_name.
9956
9957 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9958
9959 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9960 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9961 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9962 field.
9963 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9964 (create_cus_from_index): Update.
9965 (dwarf2_read_gdb_index): Update.
9966 (create_cus_from_debug_names): Update.
9967 (dwarf2_read_debug_names): Update.
9968 (get_abbrev_section_for_cu): Update.
9969 (create_all_comp_units): Update.
9970 (read_attribute_value): Update.
9971 (get_debug_line_section): Update.
9972 * dwarf2/index-cache.c (index_cache::store): Update.
9973 * dwarf2/index-write.c (save_gdb_index_command): Update.
9974 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9975
9976 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9977
9978 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9979 member.
9980 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9981 dwarf2_per_cu_data::per_bfd.
9982 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9983 (create_type_unit_group): Likewise.
9984 (queue_comp_unit): Remove reference to
9985 per_cu->dwarf2_per_objfile.
9986 (maybe_queue_comp_unit): Likewise.
9987 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9988 (create_cus_hash_table): Assign new field.
9989
9990 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9991
9992 * dwarf2/read.c: Replace
9993 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9994 dwarf2_cu->per_objfile throughout.
9995
9996 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9997
9998 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9999 parameter, don't use per_cu->dwarf2_per_objfile.
10000 (dw2_instantiate_symtab): Likewise.
10001 (dw2_find_last_source_symtab): Update.
10002 (dw2_map_expand_apply): Update.
10003 (dw2_lookup_symbol): Update.
10004 (dw2_expand_symtabs_for_function): Update.
10005 (dw2_expand_all_symtabs): Update.
10006 (dw2_expand_symtabs_with_fullname): Update.
10007 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10008 don't use per_cu->dwarf2_per_objfile.
10009 (dw2_expand_marked_cus): Update.
10010 (dw2_find_pc_sect_compunit_symtab): Update.
10011 (dw2_debug_names_lookup_symbol): Update.
10012 (dw2_debug_names_expand_symtabs_for_function): Update.
10013 (dw2_debug_names_map_matching_symbols): Update.
10014 (dwarf2_psymtab::expand_psymtab): Update.
10015
10016 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10017
10018 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10019 <per_objfile>: New member.
10020 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10021 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10022 call to dwarf2_cu.
10023 (cutu_reader::cutu_reader): Update.
10024 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10025
10026 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10027
10028 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10029 struct dwarf2_per_objfile.
10030 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10031 dwarf2_per_bfd.
10032 * dwarf2/read.c (set_die_type): Update.
10033 (get_die_type_at_offset): Update.
10034
10035 2020-05-27 Tom Tromey <tom@tromey.com>
10036 Simon Marchi <simon.marchi@efficios.com>
10037
10038 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10039 method.
10040 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10041 get_symtab, set_symtab>: New methods.
10042 <m_symtabs>: New field.
10043 (struct dwarf2_psymtab): Derive from partial_symtab.
10044 <readin_p, get_compunit_symtab>: Declare methods.
10045 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10046 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10047 New methods.
10048 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10049 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10050 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10051 (dw2_symtab_iter_next, dw2_print_stats)
10052 (dw2_expand_symtabs_with_fullname)
10053 (dw2_expand_symtabs_matching_one)
10054 (dw_expand_symtabs_matching_file_matcher)
10055 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10056 (dw2_debug_names_iterator::next)
10057 (dw2_debug_names_map_matching_symbols)
10058 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10059 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10060 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10061 New methods.
10062 (get_compunit_symtab, process_full_comp_unit)
10063 (process_full_type_unit): Update.
10064 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10065
10066 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10067
10068 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10069 then introduce a new dwarf2_per_objfile type.
10070 <read_line_string>: Move to the new dwarf2_per_objfile type.
10071 <objfile>: Likewise.
10072 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10073 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10074 dwarf2_per_objfile->per_bfd.
10075 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10076 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10077 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10078 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10079 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10080 (dwarf2_per_objfile::locate_sections): Rename to...
10081 (dwarf2_per_bfd::locate_sections): ... this.
10082 (dwarf2_per_objfile::get_cutu): Rename to...
10083 (dwarf2_per_bfd::get_cutu): ... this.
10084 (dwarf2_per_objfile::get_cu): Rename to...
10085 (dwarf2_per_bfd::get_cu): ... this.
10086 (dwarf2_per_objfile::get_tu): Rename to...
10087 (dwarf2_per_bfd::get_tu): ... this.
10088 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10089 (dwarf2_per_bfd::allocate_per_cu): ... this.
10090 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10091 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10092 (get_gdb_index_contents_ftype): Change parameter from
10093 dwarf2_per_objfile to dwarf2_per_bfd.
10094 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10095 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10096
10097 2020-05-27 Tom Tromey <tom@tromey.com>
10098 Simon Marchi <simon.marchi@efficios.com>
10099
10100 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10101 (allocate_piece_closure): Set "per_objfile" member.
10102 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10103 (locexpr_describe_location, loclist_describe_location): Use new
10104 member.
10105 * dwarf2/read.c (read_call_site_scope)
10106 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10107 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10108 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10109 handle_data_member_location): Set per_objfile member.
10110 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10111 member.
10112 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10113
10114 2020-05-27 Tom Tromey <tom@tromey.com>
10115
10116 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10117 allocate_signatured_type>: Declare new methods.
10118 <m_num_psymtabs>: New member.
10119 (struct dwarf2_per_cu_data) <index>: New member.
10120 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10121 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10122 (create_cu_from_index_list): Use allocate_per_cu.
10123 (create_signatured_type_table_from_index)
10124 (create_signatured_type_table_from_debug_names)
10125 (create_debug_type_hash_table, add_type_unit)
10126 (read_comp_units_from_section): Use allocate_signatured_type.
10127
10128 2020-05-27 Tom Tromey <tom@tromey.com>
10129
10130 * psymtab.c (partial_map_expand_apply)
10131 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10132 (psym_lookup_global_symbol_language)
10133 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10134 (psym_print_stats, psym_expand_symtabs_for_function)
10135 (psym_map_symbol_filenames, psym_map_matching_symbols)
10136 (psym_expand_symtabs_matching)
10137 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10138 (maintenance_check_psymtabs): Update.
10139 * psympriv.h (struct partial_symtab) <readin_p,
10140 get_compunit_symtab>: Add objfile parameter.
10141 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10142 Likewise.
10143 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10144 get_compunit_symtab>: Likewise.
10145 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10146
10147 2020-05-27 Tom Tromey <tom@tromey.com>
10148
10149 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10150 member.
10151 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10152 (create_cu_from_index_list)
10153 (create_signatured_type_table_from_index)
10154 (create_signatured_type_table_from_debug_names)
10155 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10156 (dwarf2_create_include_psymtab)
10157 (create_debug_type_hash_table, add_type_unit)
10158 (create_type_unit_group, read_comp_units_from_section)
10159 (dwarf2_compute_name, create_cus_hash_table)
10160 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10161 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10162 obstack.
10163 (dw2_get_real_path): Likewise. Change argument to
10164 dwarf2_per_objfile.
10165
10166 2020-05-27 Luis Machado <luis.machado@linaro.org>
10167
10168 PR tdep/26000
10169 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10170 for ldrd (immediate).
10171
10172 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10173
10174 * command.h: Add comment giving the name of class_tui.
10175 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10176 create the fake command for the help for class_tui.
10177
10178 2020-05-26 Tom Tromey <tromey@adacore.com>
10179
10180 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10181 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10182 (val_atr): New function.
10183 (value_val_atr): Use it.
10184 * ada-valprint.c (print_optional_low_bound): Change low bound
10185 handling for enums.
10186 (val_print_packed_array_elements): Don't call discrete_position.
10187 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10188 discrete_position for enum types.
10189 * language.c (default_print_array_index): Change type.
10190 * language.h (struct language_defn) <la_print_array_index>: Add
10191 index_type parameter, change type of index_value.
10192 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10193 (default_print_array_index): Update.
10194 * valprint.c (maybe_print_array_index): Don't call
10195 value_from_longest. Update.
10196 (value_print_array_elements): Don't call discrete_position.
10197
10198 2020-05-26 Tom Tromey <tromey@adacore.com>
10199
10200 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10201 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10202
10203 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10204
10205 PR gdb/13519
10206 * avr-tdep.c (avr_integer_to_address): Return data or code
10207 address accordingly to the second 'type' argument of the
10208 function.
10209
10210 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10211
10212 * infcmd.c, inferior.h: (construct_inferior_arguments):
10213 Moved function from here to gdbsupport/common-inferior.{h,cc}
10214
10215 2020-05-23 Tom Tromey <tom@tromey.com>
10216
10217 Revert commit eca1f90c:
10218 * NEWS: Remove entry for completion styling.
10219 * completer.c (_rl_completion_prefix_display_length): Move
10220 declaration later.
10221 (gdb_fnprint): Revert.
10222 (gdb_display_match_list_1): Likewise.
10223 * cli/cli-style.c (completion_prefix_style)
10224 (completion_difference_style, completion_suffix_style): Remove.
10225 (_initialize_cli_style): Revert.
10226 * cli/cli-style.h (completion_prefix_style)
10227 (completion_difference_style, completion_suffix_style): Don't
10228 declare.
10229
10230 2020-05-24 Pedro Alves <palves@redhat.com>
10231
10232 * symtab.c (completion_list_add_name): Return boolean indication
10233 of whether the symbol matched.
10234 (completion_list_add_symbol): Don't try to remove C++ aliases if
10235 the symbol didn't match in the first place.
10236 * symtab.h (completion_list_add_name): Return bool.
10237
10238 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10239
10240 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10241 type::field.
10242
10243 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10244
10245 GDB 9.2 released.
10246
10247 2020-05-23 Tom Tromey <tom@tromey.com>
10248
10249 * NEWS: Add entry for completion styling.
10250 * completer.c (_rl_completion_prefix_display_length): Move
10251 declaration earlier.
10252 (gdb_fnprint): Use completion_style.
10253 (gdb_display_match_list_1): Likewise.
10254 * cli/cli-style.c (completion_prefix_style)
10255 (completion_difference_style, completion_suffix_style): New
10256 globals.
10257 (_initialize_cli_style): Register new globals.
10258 * cli/cli-style.h (completion_prefix_style)
10259 (completion_difference_style, completion_suffix_style): Declare.
10260
10261 2020-05-23 Pedro Alves <palves@redhat.com>
10262
10263 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10264 (parse_escape): Use ISDIGIT instead of isdigit.
10265 (puts_debug): Use gdb_isprint instead of isprint.
10266 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10267 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10268 ISSPACE instead of isspace.
10269 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10270 instead of isspace.
10271 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10272 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10273 instead of isxdigit and ISDIGIT instead of isdigit.
10274
10275 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10276
10277 * gdbtypes.h (struct type) <field>: New method.
10278 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10279 or type::field.
10280
10281 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10282
10283 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10284 (TYPE_FIELDS): Use type::fields. Change all call sites that
10285 modify the propery to use type::set_fields instead.
10286
10287 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10288
10289 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10290 type::num_fields instead.
10291
10292 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10293
10294 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10295 methods.
10296 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10297 that modify the number of fields to use type::set_num_fields
10298 instead.
10299
10300 2020-05-22 Tom Tromey <tromey@adacore.com>
10301
10302 * compile/compile-object-load.h (munmap_list_free): Don't
10303 declare.
10304
10305 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10306
10307 * annotate.c (annotate_source_line): Update return type, add call
10308 to update current symtab and line.
10309 * annotate.h (annotate_source_line): Update return type, and
10310 extend header comment.
10311 * source.c (info_line_command): Check annotation_level before
10312 calling annotate_source_line.
10313 * stack.c (print_frame_info): If calling annotate_source_line
10314 returns true, then don't print any other source line information.
10315
10316 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10317
10318 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10319
10320 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10321
10322 * coffread.c (patch_type): Remove NULL check before xfree.
10323 * corefile.c (set_gnutarget): Likewise.
10324 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10325 * exec.c (build_section_table): Likewise.
10326 * remote.c (remote_target::pass_signals): Likewise.
10327 * utils.c (n_spaces): Likewise.
10328 * cli/cli-script.c (document_command): Likewise.
10329 * i386-windows-tdep.c (core_process_module_section): Likewise.
10330 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10331
10332 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10333
10334 * symfile.c (reread_symbols): Clear objfile's section_offsets
10335 vector and section indices, re-compute them by calling
10336 sym_offsets.
10337
10338 2020-05-20 Tom Tromey <tromey@adacore.com>
10339
10340 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10341 (desc_one_bound, desc_index_type): Compute field name.
10342
10343 2020-05-20 Tom de Vries <tdevries@suse.de>
10344
10345 PR symtab/25833
10346 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10347
10348 2020-05-20 Alan Modra <amodra@gmail.com>
10349
10350 PR 25993
10351 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10352 bfd_set_filename.
10353 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10354 passed to bfd_set_filename.
10355 * symfile-mem.c (add_vsyscall_page): Likewise for string
10356 passed to symbol_file_add_from_memory.
10357 (symbol_file_add_from_memory): Make name param a const char* and
10358 don't strdup.
10359
10360 2020-05-20 Alan Modra <amodra@gmail.com>
10361
10362 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10363 rather than accessing bfd->filename directly.
10364 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10365 and use bfd_section_name.
10366 * dwarf2/frame.c (decode_frame_entry): Likewise.
10367 * exec.c (exec_set_section_address): Likewise.
10368 * solib-aix.c (solib_aix_bfd_open): Likewise.
10369 * stap-probe.c (get_stap_base_address): Likewise.
10370 * symfile.c (reread_symbols): Likewise.
10371
10372 2020-05-19 Tom Tromey <tromey@adacore.com>
10373
10374 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10375
10376 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10377
10378 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10379
10380 2020-05-19 Pedro Alves <palves@redhat.com>
10381
10382 * NEWS (set exec-file-mismatch): Adjust entry.
10383 * exec.c: Include "build-id.h".
10384 (validate_exec_file): Try to match build IDs instead of filenames.
10385 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10386 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10387 and pass down 'warn_if_slow'.
10388 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10389 gdb_bfd_open_closure to pass it down.
10390 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10391
10392 2020-05-19 Pedro Alves <palves@redhat.com>
10393
10394 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10395 * target.c (target_fileio_open_1): Rename to target_fileio_open
10396 and make extern. Use bool.
10397 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10398 (target_fileio_read_alloc_1): Adjust.
10399 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10400 (target_fileio_open_warn_if_slow): Delete declaration.
10401
10402 2020-05-19 Pedro Alves <palves@redhat.com>
10403
10404 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10405 Adjust all callers.
10406
10407 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10408
10409 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10410 whether disp is negative.
10411
10412 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10413
10414 * symfile.h (struct symfile_segment_data)
10415 <~symfile_segment_data>: Remove.
10416 <segment_info>: Change to std::vector.
10417 * symfile.c (default_symfile_segments): Update.
10418 * elfread.c (elf_symfile_segments): Update.
10419
10420 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10421
10422 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10423 <segments>: New.
10424 <segment_bases, segment_sizes>: Remove.
10425 * symfile.c (default_symfile_segments): Update.
10426 * elfread.c (elf_symfile_segments): Update.
10427 * remote.c (remote_target::get_offsets): Update.
10428 * solib-target.c (solib_target_relocate_section_addresses):
10429 Update.
10430
10431 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10432
10433 * symfile.h (struct symfile_segment_data): Initialize fields.
10434 <~symfile_segment_data>: Add.
10435 (symfile_segment_data_up): New.
10436 (struct sym_fns) <sym_segments>: Return a
10437 symfile_segment_data_up.
10438 (default_symfile_segments): Return a symfile_segment_data_up.
10439 (free_symfile_segment_data): Remove.
10440 (get_symfile_segment_data): Return a symfile_segment_data_up.
10441 * symfile.c (default_symfile_segments): Likewise.
10442 (get_symfile_segment_data): Likewise.
10443 (free_symfile_segment_data): Remove.
10444 (symfile_find_segment_sections): Update.
10445 * elfread.c (elf_symfile_segments): Return a
10446 symfile_segment_data_up.
10447 * remote.c (remote_target::get_offsets): Update.
10448 * solib-target.c (solib_target_relocate_section_addresses):
10449 Update.
10450 * symfile-debug.c (debug_sym_segments): Return a
10451 symfile_segment_data_up.
10452
10453 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10454
10455 PR build/25981
10456 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10457 Hardcode register numbers.
10458
10459 PR build/25981
10460 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10461 procfs_find_LDT_entry): Remove.
10462 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10463 procfs_find_LDT_entry): Remove.
10464 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10465 Remove.
10466
10467 2020-05-17 Pedro Alves <palves@redhat.com>
10468 Andrew Burgess <andrew.burgess@embecosm.com>
10469 Keno Fischer <keno@juliacomputing.com>
10470
10471 PR gdb/25741
10472 * breakpoint.c (build_target_condition_list): Update comments.
10473 (build_target_command_list): Update comments and skip matching
10474 locations.
10475 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10476 a separate function. Simplify "set breakpoint auto-hw off"
10477 handling.
10478 (insert_breakpoints): Update comment.
10479 (tracepoint_locations_match): New parameter. For breakpoints,
10480 compare location types too, if the caller wants to.
10481 (handle_automatic_hardware_breakpoints): New functions.
10482 (bp_location_is_less_than): Also sort by location type and
10483 hardware breakpoint length.
10484 (update_global_location_list): Handle "set breakpoint auto-hw on"
10485 here.
10486 (update_breakpoint_locations): Ask breakpoint_locations_match to
10487 ignore location types.
10488
10489 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10490
10491 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10492 type::name instead.
10493
10494 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10495
10496 * gdbtypes.h (struct type) <name, set_name>: New methods.
10497 (TYPE_CODE): Use type::name. Change all call sites used to set
10498 the name to use type::set_name instead.
10499
10500 2020-05-16 Tom Tromey <tom@tromey.com>
10501
10502 * top.c (quit_force): Update.
10503 * infrun.c (handle_no_resumed): Update.
10504 * top.h (all_uis): New function.
10505 (ALL_UIS): Remove.
10506
10507 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10508
10509 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10510
10511 2020-05-16 Pedro Alves <palves@redhat.com>
10512
10513 * ia64-linux-nat.c
10514 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10515 Declare method.
10516 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10517
10518 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10519
10520 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10521 (sparc64_adi_info): Likewise.
10522
10523 2020-05-15 Tom Tromey <tom@tromey.com>
10524
10525 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10526 block_objfile.
10527 (lookup_objfile_from_block): Remove.
10528 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10529 (lookup_global_symbol): Use block_objfile.
10530 * symtab.h (lookup_objfile_from_block): Don't declare.
10531 * printcmd.c (clear_dangling_display_expressions): Use
10532 block_objfile.
10533 * parse.c (operator_check_standard): Use block_objfile.
10534
10535 2020-05-15 Tom Tromey <tom@tromey.com>
10536
10537 * language.c (language_alloc_type_symbol): Set
10538 SYMBOL_SECTION.
10539 * symtab.c (initialize_objfile_symbol): Remove.
10540 (allocate_symbol): Remove.
10541 (allocate_template_symbol): Remove.
10542 * dwarf2/read.c (fixup_go_packaging): Use "new".
10543 (new_symbol): Use "new".
10544 (read_variable): Don't call initialize_objfile_symbol. Use
10545 "new".
10546 (read_func_scope): Use "new".
10547 * xcoffread.c (process_xcoff_symbol): Don't call
10548 initialize_objfile_symbol.
10549 (SYMBOL_DUP): Remove.
10550 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10551 "new".
10552 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10553 (allocate_template_symbol): Don't declare.
10554 (struct symbol): Add copy constructor. Change defaults.
10555 * jit.c (finalize_symtab): Use "new".
10556 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10557 Use "new".
10558 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10559 (common_block_end): Use "new".
10560 * mdebugread.c (parse_symbol): Use "new".
10561 (new_symbol): Likewise.
10562
10563 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10564
10565 * NEWS: Mention changes to help and apropos.
10566
10567 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10568
10569 * command.h (enum command_class): Improve comments, document
10570 that class_alias is for user-defined aliases, give the class
10571 name for each class, remove unused class_xdb.
10572 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10573 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10574 by a precise class.
10575 * infcmd.c (_initialize_infcmd): Likewise.
10576 * reverse.c (_initialize_reverse): Likewise.
10577 * stack.c (_initialize_stack): Likewise.
10578 * symfile.c (_initialize_symfile): Likewise.
10579 * tracepoint.c (_initialize_tracepoint): Likewise.
10580
10581 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10582
10583 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10584 when their aliased command is traversed.
10585 (help_cmd): Add fput_command_names_styled call to
10586 output command name and aliases when command has an alias.
10587
10588 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10589
10590 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10591 * cli/cli-decode.c (help_cmd_list): Declare as static,
10592 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10593 a command together with the command.
10594 (fput_command_name_styled, fput_command_names_styled): New functions.
10595 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10596 fput_command_name_styled.
10597 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10598 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10599
10600 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10601
10602 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10603 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10604 * command.h (cmd_show_list): Likewise.
10605 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10606 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10607
10608 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10609
10610 * unittests/command-def-selftests.c (traverse_command_structure):
10611 Verify all commands of a list have the same prefix command and
10612 that only the top cmdlist commands have a null prefix.
10613
10614 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10615
10616 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10617 as prefix, not one of its aliases.
10618 (set_cmd_prefix): Remove.
10619 (do_add_cmd): Centralize the setting of the prefix of a command, when
10620 command is defined after its full chain of prefix commands.
10621 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10622 (add_setshow_cmd_full): Likewise.
10623 (update_prefix_field_of_prefixed_commands): New function.
10624 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10625 update_prefix_field_of_prefixed_commands.
10626 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10627 addresses of remote_set_cmdlist and remote_show_cmdlist given
10628 as argument, not the address of an argument.
10629 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10630 * gdb/remote.c (_initialize_remote): Likewise.
10631
10632 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10633
10634 * cli/cli-cmds.c (alias_command): Check for an existing alias
10635 using lookup_cmd_composition, as valid_command_p is too strict
10636 and forbids aliases that are the prefix of an existing alias
10637 or command.
10638 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10639 command is properly recognised as a valid command.
10640
10641 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10642
10643 * unittests/help-doc-selftests.c: Rename to
10644 unittests/command-def-selftests.c
10645 * unittests/command-def-selftests.c (help_doc_tests): Update some
10646 comments.
10647 (command_structure_tests, traverse_command_structure): New namespace
10648 and function.
10649 (command_structure_invariants_tests): New function.
10650 (_initialize_command_def_selftests) Renamed from
10651 _initialize_help_doc_selftests, register command_structure_invariants
10652 selftest.
10653
10654 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10655
10656 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10657 an alias of 'show'.
10658
10659 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10660
10661 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10662 ada_is_fixed_point_type. Update all callers.
10663 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10664 all callers.
10665 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10666 Update all callers.
10667 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10668 print_fixed_point_type. Update all callers.
10669 * ada-valprint.c (ada_value_print_num): Replace call to
10670 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10671
10672 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10673
10674 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10675 processors.
10676 (cpu_supports_bts): Add CV_AMD case.
10677
10678 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10679 Simon Marchi <simon.marchi@efficios.com>
10680
10681 * infrun.c (stop_all_threads): Collect multiple wait events at
10682 each pass.
10683
10684 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10685
10686 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10687 type::code instead.
10688
10689 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10690
10691 * gdbtypes.h (struct type) <code, set_code>: New methods.
10692 (TYPE_CODE): Use type::code. Change all call sites used to set
10693 the code to use type::set_code instead.
10694
10695 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10696 Tom de Vries <tdevries@suse.de>
10697 Pedro Alves <palves@redhat.com>
10698
10699 PR threads/25478
10700 * infrun.c (stop_all_threads): Do NOT ignore
10701 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10702 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10703 received.
10704 (handle_no_resumed): Remove code handling a live inferior with no
10705 threads.
10706 * remote.c (has_single_non_exited_thread): New.
10707 (remote_target::update_thread_list): Do not delete a thread if is
10708 the last thread of the process.
10709 * thread.c (thread_select): Call delete_exited_threads instead of
10710 prune_threads.
10711
10712 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10713
10714 * infrun.c (stop_all_threads): Enable/disable thread events of all
10715 targets. Move a debug message denoting the end of the function
10716 into the SCOPED_EXIT block.
10717
10718 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10719
10720 * process-stratum-target.h: Include <set>.
10721 (all_non_exited_process_targets, switch_to_target_no_thread): New
10722 function declarations.
10723 * process-stratum-target.c (all_non_exited_process_targets)
10724 (switch_to_target_no_thread): New function implementations.
10725
10726 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10727
10728 * infrun.c (handle_inferior_event): Extract out a piece of code
10729 into...
10730 (mark_non_executing_threads): ...this new function.
10731
10732 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10733
10734 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10735 use.
10736
10737 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10738
10739 * regcache.c (regcache_read_pc_protected): New function
10740 implementation that returns 0 if the PC cannot read via
10741 'regcache_read_pc'.
10742 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10743 instead of 'regcache_read_pc'.
10744 (keep_going_pass_signal): Ditto.
10745
10746 2020-05-13 Tom Tromey <tromey@adacore.com>
10747
10748 * ada-lang.c (align_value): Remove.
10749 (ada_template_to_fixed_record_type_1): Use align_up.
10750
10751 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10752
10753 * async-event.c: Update the copyright year.
10754 * async-event.h: Update the copyright year.
10755
10756 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10757
10758 * objfiles.h (is_addr_in_objfile,
10759 shared_objfile_contains_address_p): Return bool.
10760 * objfile.c (is_addr_in_objfile,
10761 shared_objfile_contains_address_p): Return bool.
10762
10763 2020-05-11 Tom Tromey <tromey@adacore.com>
10764
10765 * cli/cli-cmds.c (info_command): Restore.
10766 (_initialize_cli_cmds): Use add_prefix_command for "info".
10767 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10768
10769 2020-05-11 Tom Tromey <tromey@adacore.com>
10770
10771 * ada-lang.c (ada_value_primitive_field): Now public.
10772 * ada-lang.h (ada_value_primitive_field): Declare.
10773 * ada-valprint.c (print_field_values): Use
10774 ada_value_primitive_field for wrapper fields.
10775
10776 2020-05-11 Tom de Vries <tdevries@suse.de>
10777
10778 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10779 MODULE_DOMAIN.
10780
10781 2020-05-11 Tom de Vries <tdevries@suse.de>
10782
10783 PR symtab/25941
10784 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10785 with length 0, if not gdb-produced.
10786 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10787
10788 2020-05-09 Tom de Vries <tdevries@suse.de>
10789
10790 PR gdb/25955
10791 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10792 calculation.
10793
10794 2020-05-09 Tom Tromey <tom@tromey.com>
10795
10796 * top.c (server_command): Now bool.
10797 * top.h (server_command): Now bool.
10798
10799 2020-05-08 Tom Tromey <tromey@adacore.com>
10800
10801 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10802 already being processed.
10803
10804 2020-05-08 Tom Tromey <tom@tromey.com>
10805
10806 * printcmd.c (struct display) <next>: Remove.
10807 <display>: New constructor.
10808 <exp_string>: Now a std::string.
10809 <enabled_p>: Now a bool.
10810 (display_number): Move definition earlier.
10811 (displays): Rename from display_chain. Now a std::vector.
10812 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10813 (display_command): Update.
10814 (do_one_display, disable_display)
10815 (enable_disable_display_command, do_enable_disable_display):
10816 Update.
10817 (free_display): Remove.
10818 (clear_displays): Rewrite.
10819 (delete_display): Update.
10820 (map_display_numbers): Use function_view. Remove "data"
10821 parameter. Update.
10822 (do_delete_display): Remove.
10823 (undisplay_command): Update.
10824 (do_one_display, do_displays, disable_display)
10825 (info_display_command): Update.
10826 (do_enable_disable_display): Remove.
10827 (enable_disable_display_command)
10828 (clear_dangling_display_expressions): Update.
10829
10830 2020-05-08 Tom Tromey <tom@tromey.com>
10831
10832 * symtab.c (set_symbol_cache_size)
10833 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10834 (maintenance_print_symbol_cache_statistics): Update.
10835 * symmisc.c (print_symbol_bcache_statistics)
10836 (print_objfile_statistics, maintenance_print_objfiles)
10837 (maintenance_info_symtabs, maintenance_check_symtabs)
10838 (maintenance_expand_symtabs, maintenance_info_line_tables):
10839 Update.
10840 * symfile-debug.c (set_debug_symfile): Update.
10841 * source.c (forget_cached_source_info): Update.
10842 * python/python.c (gdbpy_progspaces): Update.
10843 * psymtab.c (maintenance_info_psymtabs): Update.
10844 * probe.c (parse_probes): Update.
10845 * linespec.c (iterate_over_all_matching_symtabs)
10846 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10847 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10848 * exec.c (exec_target::close): Update.
10849 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10850 * breakpoint.c (print_one_breakpoint_location)
10851 (create_longjmp_master_breakpoint)
10852 (create_std_terminate_master_breakpoint): Update.
10853 * progspace.c (program_spaces): Now a std::vector.
10854 (maybe_new_address_space): Update.
10855 (add_program_space): Remove.
10856 (program_space::program_space): Update.
10857 (remove_program_space): Update.
10858 (number_of_program_spaces): Remove.
10859 (print_program_space, update_address_spaces): Update.
10860 * progspace.h (program_spaces): Change type.
10861 (ALL_PSPACES): Remove.
10862 (number_of_program_spaces): Don't declare.
10863 (struct program_space) <next>: Remove.
10864
10865 2020-05-08 Tom Tromey <tom@tromey.com>
10866
10867 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10868 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10869 (enable_break): Update.
10870 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10871 (frv_fdpic_find_canonical_descriptor): Update.
10872 (frv_fetch_objfile_link_map): Update.
10873 * progspace.c (program_space::free_all_objfiles): Update.
10874 (program_space::solibs): New method.
10875 * progspace.h (struct program_space) <solibs>: New method.
10876 * solist.h (master_so_list): Don't declare.
10877 (ALL_SO_LIBS): Remove.
10878 * solib.h (so_list_head): Remove.
10879 (update_solib_list): Update comment.
10880 * solib.c (master_so_list): Remove.
10881 (solib_used, update_solib_list, solib_add)
10882 (info_sharedlibrary_command, clear_solib)
10883 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10884
10885 2020-05-08 Tom Tromey <tom@tromey.com>
10886
10887 * extension.c (extension_languages): Now a std::array.
10888 (ALL_EXTENSION_LANGUAGES): Remove.
10889 (get_ext_lang_defn, get_ext_lang_of_file)
10890 (eval_ext_lang_from_control_command): Update.
10891 (finish_ext_lang_initialization)
10892 (auto_load_ext_lang_scripts_for_objfile)
10893 (ext_lang_type_printers::ext_lang_type_printers)
10894 (apply_ext_lang_type_printers)
10895 (ext_lang_type_printers::~ext_lang_type_printers)
10896 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10897 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10898 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10899 (get_matching_xmethod_workers, ext_lang_colorize)
10900 (ext_lang_before_prompt): Update.
10901 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10902
10903 2020-05-08 Tom Tromey <tom@tromey.com>
10904
10905 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10906 overload.
10907 <swap_string, m_string>: Remove.
10908 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10909 Update.
10910 * stabsread.c (define_symbol, read_type): Update.
10911 * linespec.c (find_linespec_symbols): Update.
10912 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10913 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10914 * dbxread.c (read_dbx_symtab): Update.
10915 * cp-support.h (cp_canonicalize_string_full)
10916 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10917 Return unique_xmalloc_ptr.
10918 * cp-support.c (inspect_type): Update.
10919 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10920 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10921 Likewise.
10922 * c-typeprint.c (print_name_maybe_canonical): Update.
10923 * break-catch-throw.c (check_status_exception_catchpoint):
10924 Update.
10925
10926 2020-05-08 Tom de Vries <tdevries@suse.de>
10927
10928 * infrun.c (follow_fork): Copy current_line and current_symtab to
10929 child thread.
10930
10931 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10932
10933 * async-event.c (struct async_signal_handler, struct
10934 async_event_handler): Reformat, remove typedef.
10935
10936 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10937
10938 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10939 access thistype->main_type->dyn_prop_list directly.
10940
10941 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10942
10943 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10944 (remove_dyn_prop): Remove. Update all users to use
10945 type::remove_dyn_prop.
10946 * gdbtypes.c (remove_dyn_prop): Rename to...
10947 (type::remove_dyn_prop): ... this.
10948
10949 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10950
10951 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10952 (add_dyn_prop): Remove. Update all users to use
10953 type::add_dyn_prop.
10954 * gdbtypes.c (add_dyn_prop): Rename to...
10955 (type::add_dyn_prop): ... this.
10956
10957 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10958
10959 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10960 (get_dyn_prop): Remove. Update all users to use
10961 type::dyn_prop.
10962 * gdbtypes.c (get_dyn_prop): Rename to...
10963 (type::dyn_prop): ... this.
10964
10965 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10966
10967 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10968
10969 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10970
10971 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10972 instruction, skip it if it's there.
10973
10974 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10975
10976 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10977
10978 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10979
10980 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10981 * gdbtypes.c (recursive_dump_type): Remove use of
10982 TYPE_INCOMPLETE.
10983
10984 2020-05-03 Tom Tromey <tom@tromey.com>
10985
10986 * breakpoint.c (catch_command, tcatch_command): Remove.
10987 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10988 add_show_prefix_cmd.
10989 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10990 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10991 Remove.
10992 (add_internal_problem_command): Use add_basic_prefix_cmd,
10993 add_show_prefix_cmd.
10994 * mips-tdep.c (set_mipsfpu_command): Remove.
10995 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10996 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10997 (_initialize_index_cache): Use add_basic_prefix_cmd.
10998 * memattr.c (dummy_cmd): Remove.
10999 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11000 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11001 (_initialize_tui_win): Use add_basic_prefix_cmd,
11002 add_show_prefix_cmd.
11003 * cli/cli-logging.c (set_logging_command): Remove.
11004 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11005 add_show_prefix_cmd.
11006 (show_logging_command): Remove.
11007 * target.c (target_command): Remove.
11008 (add_target): Use add_basic_prefix_cmd.
11009
11010 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11011
11012 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11013
11014 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11015
11016 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11017 info_command.
11018
11019 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11020
11021 * nbsd-nat.c (nbsd_enable_proc_events)
11022 (nbsd_nat_target::post_startup_inferior): Add.
11023 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11024 (nbsd_nat_target::update_thread_list): Rewrite.
11025 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11026 "PTRACE_LWP_CREATE".
11027 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11028
11029 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11030
11031 * stack.c (_initialize_stack): Remove duplicated creation
11032 of "frame" command and "f" alias.
11033
11034 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11035
11036 PR gdb/18706
11037 * gdbtypes.c (check_typedef): Calculate size of array of
11038 stubbed type.
11039
11040 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11041
11042 PR gdb/15559
11043 * i386-tdep.c (i386_push_dummy_call): Call
11044 i386_thiscall_push_dummy_call.
11045 (i386_thiscall_push_dummy_call): New function.
11046 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11047 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11048 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11049
11050 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11051
11052 * gdbarch.sh (do_read): Add shellcheck disable directive for
11053 warning SC2162.
11054
11055 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11056
11057 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11058 "referenced but not assigned" warning.
11059
11060 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11061
11062 * gdbarch.sh: Remove code that sets fallbackdefault.
11063
11064 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11065
11066 * gdbarch.sh: Use shell operators && and || instead of
11067 -a and -o.
11068
11069 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11070
11071 * gdbarch.sh: Use $(...) instead of `...`.
11072
11073 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11074
11075 * gdbarch.sh: Use double quotes around variables.
11076
11077 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11078
11079 * gdbarch.sh: Use %s with printf, instead of variables in the
11080 format string.
11081
11082 2020-04-29 Tom Tromey <tromey@adacore.com>
11083
11084 PR ada/25875:
11085 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11086 type fields here.
11087 (read_enumeration_type): Call
11088 update_enumeration_type_from_children later. Update comments.
11089 (process_enumeration_scope): Don't create type fields.
11090
11091 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11092
11093 * nbsd-tdep.c: Include "xml-syscall.h".
11094 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11095
11096 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11097
11098 * nbsd-nat.c: Include "sys/wait.h".
11099 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11100 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11101 (nbsd_nat_target::remove_exec_catchpoint)
11102 (nbsd_nat_target::set_syscall_catchpoint): Add.
11103 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11104 (nbsd_nat_target::insert_exec_catchpoint)
11105 (nbsd_nat_target::remove_exec_catchpoint)
11106 (nbsd_nat_target::set_syscall_catchpoint): Add.
11107 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11108 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11109 `nbsd_get_syscall_number'.
11110
11111 2020-04-29 Tom Tromey <tom@tromey.com>
11112
11113 * stack.c (print_block_frame_labels): Remove.
11114
11115 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11116
11117 PR gdb/17320
11118 * ada-valprint.c (val_print_packed_array_elements): Move array
11119 end bracket to new line.
11120 (ada_val_print_string): Remove extra spaces before first array
11121 element.
11122 * c-valprint.c (c_value_print_array): Likewise.
11123 * m2-valprint.c (m2_print_array_contents): Likewise.
11124 (m2_value_print_inner): Likewise.
11125 * p-valprint.c (pascal_value_print_inner): Likewise.
11126 * valprint.c (generic_val_print_array): Likewise.
11127 (value_print_array_elements): Move first array element and array
11128 end bracket to new line.
11129
11130 2020-04-29 Tom de Vries <tdevries@suse.de>
11131
11132 PR symtab/25889
11133 * linespec.c (find_method): Fix ix calculation.
11134
11135 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11136
11137 * syscalls/update-netbsd.sh: New file.
11138 * syscalls/netbsd.xml: Regenerate.
11139 * data-directory/Makefile.in: Register `netbsd.xml' in
11140 `SYSCALLS_FILES'.
11141
11142 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11143
11144 * syscalls/update-freebsd.sh: Add double quotes.
11145
11146 2020-04-28 Tom Tromey <tom@tromey.com>
11147
11148 * NEWS: Update.
11149 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11150 (cmdpy_init): Allow class_tui.
11151
11152 2020-04-28 Mark Williams <mark@myosotissp.com>
11153
11154 PR gdb/24480
11155 * dwarf2read.c: Add missing assingments to list_in_scope when
11156 start_symtab was already called.
11157
11158 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11159
11160 PR gdb/25881
11161 * dwarf2/read.c (offset_map_type): Use
11162 gdb:hash_enum<sect_offset> as hash function.
11163
11164 2020-04-28 Tom de Vries <tdevries@suse.de>
11165
11166 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11167 with DW_AT_signature.
11168
11169 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11170
11171 * configure.ac: Remove check for fs_base/gs_base in
11172 user_regs_struct.
11173 * configure: Re-generate.
11174 * config.in: Re-generate.
11175 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11176 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11177 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11178
11179 2020-04-27 Luis Machado <luis.machado@linaro.org>
11180
11181 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11182 problematic inline frame unwinding situation.
11183 * frame.c (frame_id_computed_p): New function.
11184 * frame.h (frame_id_computed_p): New prototype.
11185
11186 2020-04-26 Tom Tromey <tom@tromey.com>
11187
11188 * command.h (enum command_class) <class_pseudo>: Remove.
11189
11190 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11191
11192 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11193 and whitespace.
11194
11195 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11196
11197 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11198 `PT_GET_PROCESS_STATE' block.
11199
11200 2020-04-24 Tom Tromey <tom@tromey.com>
11201
11202 * symtab.h (symbol_get_demangled_name): Don't declare.
11203 * symtab.c (symbol_get_demangled_name): Remove.
11204 (general_symbol_info::natural_name)
11205 (general_symbol_info::demangled_name): Update.
11206
11207 2020-04-24 Tom Tromey <tom@tromey.com>
11208
11209 PR rust/25025:
11210 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11211
11212 2020-04-24 Tom Tromey <tom@tromey.com>
11213
11214 PR symtab/12707:
11215 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11216 exists.
11217 (new_symbol): Likewise.
11218 * compile/compile-object-load.c (get_out_value_type): Use
11219 symbol_matches_search_name.
11220
11221 2020-04-24 Tom Tromey <tom@tromey.com>
11222
11223 * dwarf2/read.c (add_partial_symbol): Do not call
11224 compute_and_set_names.
11225
11226 2020-04-24 Tom Tromey <tom@tromey.com>
11227
11228 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11229 overload.
11230
11231 2020-04-24 Tom Tromey <tom@tromey.com>
11232
11233 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11234 (add_psymbol_to_list): New overload. Make old overload call new
11235 one.
11236 * psympriv.h (add_psymbol_to_list): New overload.
11237
11238 2020-04-24 Tom Tromey <tom@tromey.com>
11239
11240 * dwarf2/read.c (partial_die_info::read) <case
11241 DW_AT_linkage_name>: Use value_as_string.
11242 (dwarf2_string_attr): Use value_as_string.
11243 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11244 method.
11245 * dwarf2/attribute.c (attribute::value_as_string): New method.
11246
11247 2020-04-24 Tom Tromey <tom@tromey.com>
11248
11249 * symtab.c (general_symbol_info::natural_name)
11250 (general_symbol_info::demangled_name): Check for language_rust.
11251
11252 2020-04-24 Tom Tromey <tom@tromey.com>
11253
11254 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11255 (dwarf2_physname): ... from here.
11256 (partial_die_info::read): Add Rust "{" hack.
11257
11258 2020-04-24 Tom Tromey <tom@tromey.com>
11259
11260 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11261 method.
11262 (symbol_set_demangled_name): Don't declare.
11263 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11264 symbol_set_demangled_name.
11265 (general_symbol_info::set_language)
11266 (general_symbol_info::compute_and_set_names): Update.
11267 * minsyms.c (minimal_symbol_reader::install): Update.
11268 * dwarf2/read.c (new_symbol): Update.
11269
11270 2020-04-24 Tom Tromey <tromey@adacore.com>
11271
11272 PR python/23662:
11273 * python/py-type.c (convert_field): Handle
11274 FIELD_LOC_KIND_DWARF_BLOCK.
11275 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11276 (typy_get_dynamic): Nw function.
11277 (type_object_getset): Add "dynamic".
11278 * NEWS: Add entry.
11279
11280 2020-04-24 Tom Tromey <tromey@adacore.com>
11281
11282 * ada-typeprint.c (print_choices, print_variant_part)
11283 (print_record_field_types_dynamic): New functions.
11284 (print_record_field_types): Use print_record_field_types_dynamic.
11285
11286 2020-04-24 Tom Tromey <tromey@adacore.com>
11287
11288 * dwarf2/read.c (handle_data_member_location): New overload.
11289 (dwarf2_add_field): Use it.
11290 (decode_locdesc): Add "computed" parameter. Update comment.
11291 * gdbtypes.c (is_dynamic_type_internal): Also look for
11292 FIELD_LOC_KIND_DWARF_BLOCK.
11293 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11294 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11295 virtual base classes.
11296 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11297 FIELD_LOC_KIND_DWARF_BLOCK.
11298
11299 2020-04-24 Tom Tromey <tromey@adacore.com>
11300
11301 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11302 * gdbtypes.c (is_dynamic_type_internal): Check
11303 TYPE_HAS_DYNAMIC_LENGTH.
11304 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11305 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11306 New macros.
11307 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11308 constant.
11309
11310 2020-04-24 Tom Tromey <tromey@adacore.com>
11311
11312 * dwarf2/read.c (struct variant_field): Rewrite.
11313 (struct variant_part_builder): New.
11314 (struct nextfield): Remove "variant" field. Add "offset".
11315 (struct field_info): Add "current_variant_part" and
11316 "variant_parts".
11317 (alloc_discriminant_info): Remove.
11318 (alloc_rust_variant): New function.
11319 (quirk_rust_enum): Update.
11320 (dwarf2_add_field): Set "offset" member. Don't handle
11321 DW_TAG_variant_part.
11322 (offset_map_type): New typedef.
11323 (convert_variant_range, create_one_variant)
11324 (create_one_variant_part, create_variant_parts)
11325 (add_variant_property): New functions.
11326 (dwarf2_attach_fields_to_type): Call add_variant_property.
11327 (read_structure_type): Don't handle DW_TAG_variant_part.
11328 (handle_variant_part, handle_variant): New functions.
11329 (handle_struct_member_die): Use them.
11330 (process_structure_scope): Don't handle variant parts.
11331 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11332 (struct discriminant_info): Remove.
11333 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11334 (struct main_type) <flag_discriminated_union>: Remove.
11335 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11336 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11337 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11338 Update.
11339 * valops.c (value_union_variant): Remove.
11340 * value.h (value_union_variant): Don't declare.
11341
11342 2020-04-24 Tom Tromey <tromey@adacore.com>
11343
11344 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11345 (ada_value_primitive_packed_val): Update.
11346 * ada-valprint.c (ada_value_print_1): Update.
11347 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11348 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11349 just an address. Use evaluate_for_locexpr_baton.
11350 (dwarf2_evaluate_property): Update.
11351 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11352 array_view.
11353 * findvar.c (default_read_var_value): Update.
11354 * gdbtypes.c (compute_variant_fields_inner)
11355 (resolve_dynamic_type_internal): Update.
11356 (resolve_dynamic_type): Change type of valaddr parameter.
11357 * gdbtypes.h (resolve_dynamic_type): Update.
11358 * valarith.c (value_subscripted_rvalue): Update.
11359 * value.c (value_from_contents_and_address): Update.
11360
11361 2020-04-24 Tom Tromey <tromey@adacore.com>
11362
11363 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11364 "push_initial_value" parameter.
11365 (dwarf2_evaluate_property): Likewise.
11366 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11367
11368 2020-04-24 Tom Tromey <tromey@adacore.com>
11369
11370 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11371 (variant::matches, compute_variant_fields_recurse)
11372 (compute_variant_fields_inner, compute_variant_fields): New
11373 functions.
11374 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11375 Use resolved_type after type is made.
11376 (operator==): Add new cases.
11377 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11378 (struct discriminant_range, struct variant, struct variant_part):
11379 New.
11380 (union dynamic_prop_data) <variant_parts, original_type>: New
11381 members.
11382 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11383 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11384 constants.
11385 * value.c (unpack_bits_as_long): Now public.
11386 * value.h (unpack_bits_as_long): Declare.
11387
11388 2020-04-24 Tom Tromey <tromey@adacore.com>
11389
11390 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11391 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11392
11393 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11394
11395 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11396
11397 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11398
11399 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11400 (remove_fork_catchpoint, post_startup_inferior)
11401 (post_attach): Move...
11402 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11403 (remove_fork_catchpoint, post_startup_inferior)
11404 (post_attach): ...here.
11405 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11406 (remove_fork_catchpoint, post_startup_inferior)
11407 (post_attach): Move...
11408 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11409 (remove_fork_catchpoint, post_startup_inferior)
11410 (post_attach): ...here.
11411
11412 2020-04-24 Tom Tromey <tromey@adacore.com>
11413
11414 * nat/windows-nat.h (struct windows_thread_info)
11415 <pc_adjusted>: New member.
11416 * windows-nat.c (windows_fetch_one_register): Check
11417 pc_adjusted.
11418 (windows_nat_target::get_windows_debug_event)
11419 (windows_nat_target::wait): Set pc_adjusted.
11420
11421 2020-04-24 Tom de Vries <tdevries@suse.de>
11422
11423 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11424 Run gdb-add-index inside temp dir.
11425
11426 2020-04-23 Tom Tromey <tromey@adacore.com>
11427
11428 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11429 in loop.
11430
11431 2020-04-23 Luis Machado <luis.machado@linaro.org>
11432
11433 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11434 get_frame_register instead of gdbarch_unwind_pc.
11435
11436 2020-04-23 Tom de Vries <tdevries@suse.de>
11437
11438 * symtab.c (lookup_global_symbol): Prefer def over decl.
11439
11440 2020-04-23 Tom de Vries <tdevries@suse.de>
11441
11442 PR symtab/25807
11443 * block.c (best_symbol, better_symbol): Promote to external.
11444 * block.h (best_symbol, better_symbol): Declare.
11445 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11446 decl.
11447
11448 2020-04-23 Tom Tromey <tromey@adacore.com>
11449
11450 PR ada/25837:
11451 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11452 "const char *", not a "const std::string &".
11453 <name_and_matcher::operator==>: Update.
11454 * unittests/lookup_name_info-selftests.c: Change type of
11455 "result".
11456
11457 2020-04-23 Tom Tromey <tom@tromey.com>
11458
11459 * inferior.h (iterate_over_inferiors): Don't declare.
11460 * inferior.c (iterate_over_inferiors): Remove.
11461 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11462 Remove.
11463 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11464 use iterate_over_inferiors.
11465 (darwin_resume_inferior_it)
11466 (struct resume_inferior_threads_param)
11467 (darwin_resume_inferior_threads_it): Remove.
11468 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11469
11470 2020-04-23 Tom de Vries <tdevries@suse.de>
11471
11472 * blockframe.c (find_pc_partial_function): Use
11473 find_pc_sect_compunit_symtab rather than
11474 objfile->sf->qf->find_pc_sect_compunit_symtab.
11475
11476 2020-04-22 Tom de Vries <tdevries@suse.de>
11477
11478 PR symtab/25764
11479 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11480 in psymtabs.
11481
11482 2020-04-22 Tom de Vries <tdevries@suse.de>
11483
11484 PR symtab/25801
11485 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11486 symtabs.
11487
11488 2020-04-22 Tom de Vries <tdevries@suse.de>
11489
11490 PR symtab/25700
11491 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11492 CU if already created.
11493
11494 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11495
11496 * infrun.c (displaced_step_fixup): Switch to the event_thread
11497 before calling displaced_step_restore, not after.
11498
11499 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11500
11501 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11502 its inferior is not recorded by us.
11503 (record_btrace_target_open): Replace call to
11504 all_non_exited_threads () with call to current_inferior
11505 ()->non_exited_threads ().
11506 (record_btrace_target::stop_recording): Likewise.
11507 (record_btrace_target::close): Likewise.
11508 (record_btrace_target::wait): Likewise.
11509 (record_btrace_target::record_stop_replaying): Likewise.
11510
11511 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11512
11513 * btrace.c (btrace_enable): Throw an error on double enables and
11514 when enabling recording fails.
11515 (btrace_disable): Throw an error if the thread is not recorded.
11516
11517 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11518
11519 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11520 request if we do not have a thread_info.
11521
11522 2020-04-21 Tom de Vries <tdevries@suse.de>
11523
11524 PR gdb/25471
11525 * thread.c
11526 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11527 exception in get_frame_id.
11528
11529 2020-04-20 Tom Tromey <tromey@adacore.com>
11530
11531 * python/python.c (struct gdbpy_event): Mark move constructor as
11532 noexcept.
11533 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11534 constructor as noexcept.
11535 * completer.h (struct completion_result): Mark move constructor as
11536 noexcept.
11537 * completer.c (completion_result::completion_result): Use
11538 initialization style. Don't call reset_match_list.
11539
11540 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11541
11542 * MAINTAINERS (Write After Approval): Add myself.
11543
11544 2020-04-18 Tom Tromey <tom@tromey.com>
11545
11546 * windows-tdep.c (init_w32_command_list)
11547 (w32_prefix_command_valid): Restore.
11548 (_initialize_windows_tdep): Call init_w32_command_list.
11549
11550 2020-04-18 Tom Tromey <tom@tromey.com>
11551
11552 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11553 * value.c (value_fn_field): Update.
11554 * valops.c (find_function_in_inferior)
11555 (value_allocate_space_in_inferior): Update.
11556 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11557 Update.
11558 * tui/tui-source.c (tui_source_window::set_contents): Update.
11559 * symtab.c (lookup_global_or_static_symbol)
11560 (find_function_start_sal_1, skip_prologue_sal)
11561 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11562 * symmisc.c (dump_msymbols, dump_symtab_1)
11563 (maintenance_print_one_line_table): Update.
11564 * symfile.c (init_entry_point_info, section_is_mapped)
11565 (list_overlays_command, simple_read_overlay_table)
11566 (simple_overlay_update_1): Update.
11567 * stap-probe.c (handle_stap_probe): Update.
11568 * stabsread.c (dbx_init_float_type, define_symbol)
11569 (read_one_struct_field, read_enum_type, read_range_type): Update.
11570 * source.c (info_line_command): Update.
11571 * python/python.c (gdbpy_source_objfile_script)
11572 (gdbpy_execute_objfile_script): Update.
11573 * python/py-type.c (save_objfile_types): Update.
11574 * python/py-objfile.c (py_free_objfile): Update.
11575 * python/py-inferior.c (python_new_objfile): Update.
11576 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11577 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11578 (maintenance_check_psymtabs): Update.
11579 * printcmd.c (info_address_command): Update.
11580 * objfiles.h (struct objfile) <arch>: New method, from
11581 get_objfile_arch.
11582 (get_objfile_arch): Don't declare.
11583 * objfiles.c (get_objfile_arch): Remove.
11584 (filter_overlapping_sections): Update.
11585 * minsyms.c (msymbol_is_function): Update.
11586 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11587 (output_nondebug_symbol): Update.
11588 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11589 (mdebug_expand_psymtab): Update.
11590 * machoread.c (macho_add_oso_symfile): Update.
11591 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11592 Update.
11593 * linux-fork.c (checkpoint_command): Update.
11594 * linespec.c (convert_linespec_to_sals): Update.
11595 * jit.c (finalize_symtab): Update.
11596 * infrun.c (insert_exception_resume_from_probe): Update.
11597 * ia64-tdep.c (ia64_find_unwind_table): Update.
11598 * hppa-tdep.c (internalize_unwinds): Update.
11599 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11600 Update.
11601 * gcore.c (call_target_sbrk): Update.
11602 * elfread.c (record_minimal_symbol, elf_symtab_read)
11603 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11604 (elf_gnu_ifunc_resolve_by_got): Update.
11605 * dwarf2/read.c (create_addrmap_from_index)
11606 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11607 (read_debug_names_from_section)
11608 (process_psymtab_comp_unit_reader, add_partial_symbol)
11609 (add_partial_subprogram, process_full_comp_unit)
11610 (read_file_scope, read_func_scope, read_lexical_block_scope)
11611 (read_call_site_scope, dwarf2_ranges_read)
11612 (dwarf2_record_block_ranges, dwarf2_add_field)
11613 (mark_common_block_symbol_computed, read_tag_pointer_type)
11614 (read_tag_string_type, dwarf2_init_float_type)
11615 (dwarf2_init_complex_target_type, read_base_type)
11616 (partial_die_info::read, partial_die_info::read)
11617 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11618 (dwarf2_fetch_die_loc_sect_off): Update.
11619 * dwarf2/loc.c (dwarf2_find_location_expression)
11620 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11621 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11622 (dwarf2_loc_desc_get_symbol_read_needs)
11623 (locexpr_describe_location_piece, locexpr_describe_location_1)
11624 (loclist_describe_location): Update.
11625 * dwarf2/index-write.c (write_debug_names): Update.
11626 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11627 * dtrace-probe.c (dtrace_process_dof): Update.
11628 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11629 (process_one_symbol): Update.
11630 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11631 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11632 (coff_read_enum_type): Update.
11633 * cli/cli-cmds.c (edit_command, list_command): Update.
11634 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11635 * breakpoint.c (create_overlay_event_breakpoint)
11636 (create_longjmp_master_breakpoint)
11637 (create_std_terminate_master_breakpoint)
11638 (create_exception_master_breakpoint, get_sal_arch): Update.
11639 * block.c (block_gdbarch): Update.
11640 * annotate.c (annotate_source_line): Update.
11641
11642 2020-04-17 Tom Tromey <tromey@adacore.com>
11643
11644 * auto-load.c (show_auto_load_cmd): Remove.
11645 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11646 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11647 (maintenance_print_arc_command): Remove.
11648 * tui/tui-win.c (tui_command): Remove.
11649 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11650 * tui/tui-layout.c (tui_layout_command): Remove.
11651 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11652 * python/python.c (user_set_python, user_show_python): Remove.
11653 (_initialize_python): Use add_basic_prefix_cmd,
11654 add_show_prefix_cmd.
11655 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11656 (install_gdb_commands): Use add_basic_prefix_cmd,
11657 add_show_prefix_cmd.
11658 (info_guile_command): Remove.
11659 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11660 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11661 add_show_prefix_cmd.
11662 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11663 Remove do_set and do_show parameters.
11664 * cli/cli-style.c (set_style, show_style): Remove.
11665 (_initialize_cli_style): Use add_basic_prefix_cmd,
11666 add_show_prefix_cmd.
11667 (cli_style_option::add_setshow_commands): Remove do_set and
11668 do_show parameters.
11669 (cli_style_option::add_setshow_commands): Use
11670 add_basic_prefix_cmd, add_show_prefix_cmd.
11671 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11672 (set_style_name): Remove.
11673 * cli/cli-dump.c (dump_command, append_command): Remove.
11674 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11675 (tekhex_dump_command, binary_dump_command)
11676 (binary_append_command): Remove.
11677 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11678 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11679 (init_w32_command_list): Remove; move into ...
11680 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11681 * valprint.c (set_print, show_print, set_print_raw)
11682 (show_print_raw): Remove.
11683 (_initialize_valprint): Use add_basic_prefix_cmd,
11684 add_show_prefix_cmd.
11685 * typeprint.c (set_print_type, show_print_type): Remove.
11686 (_initialize_typeprint): Use add_basic_prefix_cmd,
11687 add_show_prefix_cmd.
11688 * record.c (set_record_command, show_record_command): Remove.
11689 (_initialize_record): Use add_basic_prefix_cmd,
11690 add_show_prefix_cmd.
11691 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11692 add_show_prefix_cmd.
11693 (info_command, show_command, set_debug, show_debug): Remove.
11694 * top.h (set_history, show_history): Don't declare.
11695 * top.c (set_history, show_history): Remove.
11696 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11697 (unset_tdesc_cmd): Remove.
11698 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11699 add_show_prefix_cmd.
11700 * symtab.c (info_module_command): Remove.
11701 (_initialize_symtab): Use add_basic_prefix_cmd.
11702 * symfile.c (overlay_command): Remove.
11703 (_initialize_symfile): Use add_basic_prefix_cmd.
11704 * sparc64-tdep.c (info_adi_command): Remove.
11705 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11706 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11707 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11708 add_show_prefix_cmd.
11709 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11710 (_initialize_serial): Use add_basic_prefix_cmd,
11711 add_show_prefix_cmd.
11712 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11713 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11714 add_show_prefix_cmd.
11715 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11716 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11717 add_show_prefix_cmd.
11718 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11719 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11720 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11721 add_show_prefix_cmd.
11722 * remote.c (remote_command, set_remote_cmd): Remove.
11723 (_initialize_remote): Use add_basic_prefix_cmd.
11724 * record-full.c (set_record_full_command)
11725 (show_record_full_command): Remove.
11726 (_initialize_record_full): Use add_basic_prefix_cmd,
11727 add_show_prefix_cmd.
11728 * record-btrace.c (cmd_set_record_btrace)
11729 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11730 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11731 (cmd_show_record_btrace_pt): Remove.
11732 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11733 add_show_prefix_cmd.
11734 * ravenscar-thread.c (set_ravenscar_command)
11735 (show_ravenscar_command): Remove.
11736 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11737 add_show_prefix_cmd.
11738 * mips-tdep.c (show_mips_command, set_mips_command)
11739 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11740 add_show_prefix_cmd.
11741 * maint.c (maintenance_command, maintenance_info_command)
11742 (maintenance_check_command, maintenance_print_command)
11743 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11744 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11745 add_show_prefix_cmd.
11746 (show_per_command_cmd): Remove.
11747 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11748 Remove.
11749 (maintenance_show_test_settings_cmd): Remove.
11750 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11751 add_show_prefix_cmd.
11752 * maint-test-options.c (maintenance_test_options_command):
11753 Remove.
11754 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11755 * macrocmd.c (macro_command): Remove
11756 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11757 * language.c (set_check, show_check): Remove.
11758 (_initialize_language): Use add_basic_prefix_cmd,
11759 add_show_prefix_cmd.
11760 * infcmd.c (unset_command): Remove.
11761 (_initialize_infcmd): Use add_basic_prefix_cmd.
11762 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11763 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11764 add_show_prefix_cmd.
11765 * go32-nat.c (go32_info_dos_command): Remove.
11766 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11767 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11768 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11769 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11770 (_initialize_frame): Use add_basic_prefix_cmd,
11771 add_show_prefix_cmd.
11772 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11773 (_initialize_dcache): Use add_basic_prefix_cmd,
11774 add_show_prefix_cmd.
11775 * cp-support.c (maint_cplus_command): Remove.
11776 (_initialize_cp_support): Use add_basic_prefix_cmd.
11777 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11778 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11779 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11780 add_basic_prefix_cmd, add_show_prefix_cmd.
11781 * breakpoint.c (save_command): Remove.
11782 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11783 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11784 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11785 add_show_prefix_cmd.
11786 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11787 (set_ada_command, show_ada_command): Remove.
11788 (_initialize_ada_language): Use add_basic_prefix_cmd,
11789 add_show_prefix_cmd.
11790 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11791
11792 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11793
11794 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11795 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11796
11797 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11798
11799 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11800 warning messages.
11801
11802 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11803
11804 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11805 import table is not at beginning of .idata section.
11806
11807 2020-04-16 Pedro Alves <palves@redhat.com>
11808
11809 * inferior.c (delete_inferior): Use delete operator directly
11810 instead of delete_program_space.
11811 * progspace.c (add_program_space): New, factored out from
11812 program_space::program_space.
11813 (remove_program_space): New, factored out from
11814 delete_program_space.
11815 (program_space::program_space): Remove intro comment. Rewrite.
11816 (program_space::~program_space): Remove intro comment. Call
11817 remove_program_space.
11818 (delete_program_space): Delete.
11819 * progspace.h (program_space::program_space): Make explicit. Move
11820 intro comment here, adjusted.
11821 (program_space::~program_space): Move intro comment here,
11822 adjusted.
11823 (delete_program_space): Remove.
11824
11825 2020-04-16 Tom Tromey <tromey@adacore.com>
11826
11827 * windows-nat.c (windows_nat::handle_access_violation): New
11828 function.
11829 * nat/windows-nat.h (handle_access_violation): Declare.
11830 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11831 windows-nat.c. Call handle_access_violation.
11832
11833 2020-04-16 Tom de Vries <tdevries@suse.de>
11834
11835 PR symtab/25791
11836 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11837 CUs without psymtab.
11838
11839 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11840
11841 * python/python.c (do_start_initialization): Don't call
11842 PyEval_InitThreads for Python 3.9 and beyond.
11843
11844 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11845
11846 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11847 thread functions.
11848 (obsd_nat_target::wait): Likewise.
11849
11850 2020-04-15 Tom Tromey <tromey@adacore.com>
11851
11852 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11853 (DEBUG_EXCEPT): Use debug_printf.
11854
11855 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11856
11857 * completer.c (class completion_tracker::completion_hash_entry)
11858 <hash_name>: New member function.
11859 (completion_tracker::discard_completions): New callback to hash a
11860 completion_hash_entry, pass this to htab_create_alloc.
11861
11862 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11863
11864 * windows-nat.c (windows_make_so): Warn rather than stopping with
11865 an error if realpath() fails.
11866
11867 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11868
11869 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11870 (nbsd_nat_target::info_proc): Add do_status.
11871
11872 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11873 Tom de Vries <tdevries@suse.de>
11874
11875 PR symtab/25718
11876 * psympriv.h (struct partial_symtab::read_symtab)
11877 (struct partial_symtab::expand_psymtab)
11878 (struct partial_symtab::read_dependencies): Update comments.
11879 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11880 read_symtab for includer.
11881 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11882 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11883 (struct dwarf2_include_psymtab::m_readin): Remove.
11884 (struct dwarf2_include_psymtab::includer): New member function.
11885 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11886
11887 2020-04-14 Tom de Vries <tdevries@suse.de>
11888
11889 PR symtab/25720
11890 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11891 with NULL symbol_matcher and lookup_name.
11892 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11893 and lookup_name.
11894 * dwarf2/read.c (dw2_expand_symtabs_matching)
11895 (dw2_debug_names_expand_symtabs_matching): Same.
11896 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11897 Make lookup_name a pointer. Update comment.
11898 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11899 lookup_name being a pointer.
11900 * symfile.c (expand_symtabs_matching): Same.
11901 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11902 * linespec.c (iterate_over_all_matching_symtabs): Same.
11903
11904 2020-04-13 Tom Tromey <tom@tromey.com>
11905
11906 * run-on-main-thread.c: Update include.
11907 * unittests/main-thread-selftests.c: Update include.
11908 * tui/tui-win.c: Update include.
11909 * tui/tui-io.c: Update include.
11910 * tui/tui-interp.c: Update include.
11911 * tui/tui-hooks.c: Update include.
11912 * top.h: Update include.
11913 * top.c: Update include.
11914 * ser-base.c: Update include.
11915 * remote.c: Update include.
11916 * remote-notif.c: Update include.
11917 * remote-fileio.c: Update include.
11918 * record-full.c: Update include.
11919 * record-btrace.c: Update include.
11920 * python/python.c: Update include.
11921 * posix-hdep.c: Update include.
11922 * mingw-hdep.c: Update include.
11923 * mi/mi-main.c: Update include.
11924 * mi/mi-interp.c: Update include.
11925 * main.c: Update include.
11926 * linux-nat.c: Update include.
11927 * interps.c: Update include.
11928 * infrun.c: Update include.
11929 * inf-loop.c: Update include.
11930 * event-top.c: Update include.
11931 * event-loop.c: Move to ../gdbsupport/.
11932 * event-loop.h: Move to ../gdbsupport/.
11933 * async-event.h: Update include.
11934 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11935
11936 2020-04-13 Tom Tromey <tom@tromey.com>
11937
11938 * tui/tui-win.c: Include async-event.h.
11939 * remote.c: Include async-event.h.
11940 * remote-notif.c: Include async-event.h.
11941 * record-full.c: Include async-event.h.
11942 * record-btrace.c: Include async-event.h.
11943 * infrun.c: Include async-event.h.
11944 * event-top.c: Include async-event.h.
11945 * event-loop.h: Move some declarations to async-event.h.
11946 * event-loop.c: Don't include ser-event.h or top.h. Move some
11947 code to async-event.c.
11948 * async-event.h: New file.
11949 * async-event.c: New file.
11950 * Makefile.in (COMMON_SFILES): Add async-event.c.
11951 (HFILES_NO_SRCDIR): Add async-event.h.
11952
11953 2020-04-13 Tom Tromey <tom@tromey.com>
11954
11955 * utils.c (flush_streams): New function.
11956 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11957
11958 2020-04-13 Tom Tromey <tom@tromey.com>
11959
11960 * event-loop.c (handle_file_event): Use warning, not
11961 printf_unfiltered.
11962
11963 2020-04-13 Tom Tromey <tom@tromey.com>
11964
11965 * event-loop.c: Include <chrono>.
11966
11967 2020-04-13 Tom Tromey <tom@tromey.com>
11968
11969 * gdb_select.h: Move to ../gdbsupport/.
11970 * event-loop.c: Update include path.
11971 * top.c: Update include path.
11972 * ser-base.c: Update include path.
11973 * ui-file.c: Update include path.
11974 * ser-tcp.c: Update include path.
11975 * guile/scm-ports.c: Update include path.
11976 * posix-hdep.c: Update include path.
11977 * ser-unix.c: Update include path.
11978 * gdb_usleep.c: Update include path.
11979 * mingw-hdep.c: Update include path.
11980 * inflow.c: Update include path.
11981 * infrun.c: Update include path.
11982 * event-top.c: Update include path.
11983
11984 2020-04-13 Tom Tromey <tom@tromey.com>
11985
11986 * configure: Rebuild.
11987 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11988
11989 2020-04-13 Tom Tromey <tom@tromey.com>
11990
11991 * event-loop.h (start_event_loop): Don't declare.
11992 * event-loop.c (start_event_loop): Move...
11993 * main.c (start_event_loop): ...here. Now static.
11994
11995 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11996
11997 * MAINTAINERS: Update my email address.
11998
11999 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12000
12001 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12002 IP_ALL.
12003
12004 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12005
12006 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12007 (nbsd_nat_target::info_proc): Add do_cmdline.
12008
12009 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12010
12011 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12012 (nbsd_nat_target::info_proc): Add do_cwd.
12013
12014 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12015
12016 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12017
12018 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12019
12020 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12021 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12022 (nbsd_nat_target::info_proc): New functions.
12023 * nbsd-nat.c (kinfo_get_vmmap): New function.
12024 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12025 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12026 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12027 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12028 functions.
12029 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12030 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12031 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12032 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12033 (KINFO_VME_FLAG_GROWS_DOWN): New.
12034
12035 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12036
12037 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12038 bit shift.
12039
12040 2020-04-10 Tom Tromey <tromey@adacore.com>
12041
12042 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12043
12044 2020-04-10 Tom Tromey <tromey@adacore.com>
12045
12046 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12047 separate debug files.
12048
12049 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12050
12051 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12052 Move to...
12053 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12054 ... here.
12055 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12056 Check for STATUS_WX86_BREAKPOINT.
12057 (windows_nat_target::wait): Same.
12058
12059 2020-04-10 Tom de Vries <tdevries@suse.de>
12060
12061 PR cli/25808
12062 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12063
12064 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12065
12066 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12067 (Write After Approval): Remove Tom de Vries.
12068
12069 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12070
12071 revert partially:
12072 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12073
12074 * buildsym.c (record_line): Fix undefined behavior and preserve
12075 lines at eof.
12076
12077 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12078
12079 * auxv.h (svr4_auxv_parse): New.
12080 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12081 and generic_auxv_parse.
12082 (svr4_auxv_parse): Add.
12083 * obsd-tdep.c: Include "auxv.h".
12084 (obsd_auxv_parse): Remove.
12085 (obsd_init_abi): Remove comment.
12086 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12087 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12088 * nbsd-tdep.c: Include "auxv.h".
12089 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12090
12091 2020-04-08 Tom Tromey <tromey@adacore.com>
12092
12093 * nat/windows-nat.h (last_wait_event): Don't declare.
12094 (wait_for_debug_event): Update comment.
12095 * nat/windows-nat.c (last_wait_event): Now static.
12096
12097 2020-04-08 Tom Tromey <tromey@adacore.com>
12098
12099 * windows-nat.c (wait_for_debug_event): Move to
12100 nat/windows-nat.c.
12101 * nat/windows-nat.h (wait_for_debug_event): Declare.
12102 * nat/windows-nat.c (wait_for_debug_event): Move from
12103 windows-nat.c. No longer static.
12104
12105 2020-04-08 Tom Tromey <tromey@adacore.com>
12106
12107 * windows-nat.c (get_windows_debug_event): Use
12108 fetch_pending_stop.
12109 * nat/windows-nat.h (fetch_pending_stop): Declare.
12110 * nat/windows-nat.c (fetch_pending_stop): New function.
12111
12112 2020-04-08 Tom Tromey <tromey@adacore.com>
12113
12114 * windows-nat.c (windows_continue): Use matching_pending_stop and
12115 continue_last_debug_event.
12116 * nat/windows-nat.h (matching_pending_stop)
12117 (continue_last_debug_event): Declare.
12118 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12119 (matching_pending_stop, continue_last_debug_event): New
12120 functions.
12121
12122 2020-04-08 Tom Tromey <tromey@adacore.com>
12123
12124 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12125 (handle_exception_result): Move to nat/windows-nat.h.
12126 (DEBUG_EXCEPTION_SIMPLE): Remove.
12127 (windows_nat::handle_ms_vc_exception): New function.
12128 (handle_exception): Move to nat/windows-nat.c.
12129 (get_windows_debug_event): Update.
12130 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12131 nat/windows-nat.c.
12132 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12133 (handle_exception_result): Move from windows-nat.c.
12134 (handle_exception): Declare.
12135 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12136 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12137 windows-nat.c.
12138
12139 2020-04-08 Tom Tromey <tromey@adacore.com>
12140
12141 * windows-nat.c (exception_count, event_count): Remove.
12142 (handle_exception, get_windows_debug_event)
12143 (do_initial_windows_stuff): Update.
12144
12145 2020-04-08 Tom Tromey <tromey@adacore.com>
12146
12147 * windows-nat.c (windows_nat::handle_load_dll)
12148 (windows_nat::handle_unload_dll): Rename. No longer static.
12149 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12150 Declare.
12151
12152 2020-04-08 Tom Tromey <tromey@adacore.com>
12153
12154 * complaints.h (stop_whining): Declare at top-level.
12155 (complaint): Don't declare stop_whining.
12156
12157 2020-04-08 Tom Tromey <tromey@adacore.com>
12158
12159 * windows-nat.c (windows_nat::handle_output_debug_string):
12160 Rename. No longer static.
12161 * nat/windows-nat.h (handle_output_debug_string): Declare.
12162
12163 2020-04-08 Tom Tromey <tromey@adacore.com>
12164
12165 * windows-nat.c (current_process_handle, current_process_id)
12166 (main_thread_id, last_sig, current_event, last_wait_event)
12167 (current_windows_thread, desired_stop_thread_id, pending_stops)
12168 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12169 (display_selectors, fake_create_process)
12170 (get_windows_debug_event): Update.
12171 * nat/windows-nat.h (current_process_handle, current_process_id)
12172 (main_thread_id, last_sig, current_event, last_wait_event)
12173 (current_windows_thread, desired_stop_thread_id, pending_stops)
12174 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12175 * nat/windows-nat.c (current_process_handle, current_process_id)
12176 (main_thread_id, last_sig, current_event, last_wait_event)
12177 (current_windows_thread, desired_stop_thread_id, pending_stops)
12178 (siginfo_er): New globals. Move from windows-nat.c.
12179
12180 2020-04-08 Tom Tromey <tromey@adacore.com>
12181
12182 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12183 (handle_load_dll): Update.
12184 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12185
12186 2020-04-08 Tom Tromey <tromey@adacore.com>
12187
12188 * windows-nat.c (enum thread_disposition_type): Move to
12189 nat/windows-nat.h.
12190 (windows_nat::thread_rec): Rename from thread_rec. No longer
12191 static.
12192 (windows_add_thread, windows_nat_target::fetch_registers)
12193 (windows_nat_target::store_registers, handle_exception)
12194 (windows_nat_target::resume, get_windows_debug_event)
12195 (windows_nat_target::get_tib_address)
12196 (windows_nat_target::thread_name)
12197 (windows_nat_target::thread_alive): Update.
12198 * nat/windows-nat.h (enum thread_disposition_type): Move from
12199 windows-nat.c.
12200 (thread_rec): Declare.
12201
12202 2020-04-08 Tom Tromey <tromey@adacore.com>
12203
12204 * windows-nat.c: Add "using namespace".
12205 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12206 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12207
12208 2020-04-08 Tom Tromey <tromey@adacore.com>
12209
12210 * nat/windows-nat.h (struct windows_thread_info): Declare
12211 destructor.
12212 * nat/windows-nat.c (~windows_thread_info): New.
12213
12214 2020-04-08 Tom Tromey <tromey@adacore.com>
12215
12216 PR gdb/22992
12217 * windows-nat.c (current_event): Update comment.
12218 (last_wait_event, desired_stop_thread_id): New globals.
12219 (struct pending_stop): New.
12220 (pending_stops): New global.
12221 (windows_nat_target) <stopped_by_sw_breakpoint>
12222 <supports_stopped_by_sw_breakpoint>: New methods.
12223 (windows_fetch_one_register): Add assertions. Adjust PC.
12224 (windows_continue): Handle pending stops. Suspend other threads
12225 when stepping. Use last_wait_event
12226 (wait_for_debug_event): New function.
12227 (get_windows_debug_event): Use wait_for_debug_event. Handle
12228 pending stops. Queue spurious stops.
12229 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12230 (windows_nat_target::kill): Use wait_for_debug_event.
12231 * nat/windows-nat.h (struct windows_thread_info)
12232 <stopped_at_software_breakpoint>: New field.
12233 * nat/windows-nat.c (windows_thread_info::resume): Clear
12234 stopped_at_software_breakpoint.
12235
12236 2020-04-08 Tom Tromey <tromey@adacore.com>
12237
12238 * windows-nat.c (enum thread_disposition_type): New.
12239 (thread_rec): Replace "get_context" parameter with "disposition";
12240 change type.
12241 (windows_add_thread, windows_nat_target::fetch_registers)
12242 (windows_nat_target::store_registers, handle_exception)
12243 (windows_nat_target::resume, get_windows_debug_event)
12244 (windows_nat_target::get_tib_address)
12245 (windows_nat_target::thread_name)
12246 (windows_nat_target::thread_alive): Update.
12247
12248 2020-04-08 Tom Tromey <tromey@adacore.com>
12249
12250 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12251 (windows_continue): Use windows_continue::resume.
12252 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12253 resume>: Declare new methods.
12254 * nat/windows-nat.c: New file.
12255 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12256
12257 2020-04-08 Tom Tromey <tromey@adacore.com>
12258
12259 * windows-nat.c (windows_add_thread, windows_delete_thread)
12260 (windows_nat_target::fetch_registers)
12261 (windows_nat_target::store_registers, fake_create_process)
12262 (windows_nat_target::resume, windows_nat_target::resume)
12263 (get_windows_debug_event, windows_nat_target::wait)
12264 (windows_nat_target::pid_to_str)
12265 (windows_nat_target::get_tib_address)
12266 (windows_nat_target::get_ada_task_ptid)
12267 (windows_nat_target::thread_name)
12268 (windows_nat_target::thread_alive): Use lwp, not tid.
12269
12270 2020-04-08 Tom Tromey <tromey@adacore.com>
12271
12272 * windows-nat.c (handle_exception)
12273 (windows_nat_target::thread_name): Update.
12274 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12275 <name>: Now unique_xmalloc_ptr.
12276
12277 2020-04-08 Tom Tromey <tromey@adacore.com>
12278
12279 * windows-nat.c (thread_rec)
12280 (windows_nat_target::fetch_registers): Update.
12281 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12282 Update comment.
12283 <debug_registers_changed, reload_context>: Now bool.
12284
12285 2020-04-08 Tom Tromey <tromey@adacore.com>
12286
12287 * windows-nat.c (windows_add_thread): Use new.
12288 (windows_init_thread_list, windows_delete_thread): Use delete.
12289 (get_windows_debug_event): Update.
12290 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12291 destructor, and initializers.
12292
12293 2020-04-08 Tom Tromey <tromey@adacore.com>
12294
12295 * windows-nat.c (struct windows_thread_info): Remove.
12296 * nat/windows-nat.h: New file.
12297
12298 2020-04-08 Tom Tromey <tromey@adacore.com>
12299
12300 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12301 (thread_rec, windows_add_thread, windows_delete_thread)
12302 (windows_continue): Update.
12303
12304 2020-04-08 Tom Tromey <tromey@adacore.com>
12305
12306 * windows-nat.c (struct windows_thread_info): Remove typedef.
12307 (thread_head): Remove.
12308 (thread_list): New global.
12309 (thread_rec, windows_add_thread, windows_init_thread_list)
12310 (windows_delete_thread, windows_continue): Update.
12311
12312 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12313
12314 * windows-tdep.h (windows_init_abi): Add comment.
12315 (cygwin_init_abi): New declaration.
12316 * windows-tdep.c: Split signal enumeration in two, one for
12317 Windows and one for Cygwin.
12318 (windows_gdb_signal_to_target): Only deal with signal of the
12319 Windows OS ABI.
12320 (cygwin_gdb_signal_to_target): New function.
12321 (windows_init_abi): Rename to windows_init_abi_common, don't set
12322 gdb_signal_to_target gdbarch method. Add new new function with
12323 this name.
12324 (cygwin_init_abi): New function.
12325 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12326 comment. Don't call windows_init_abi.
12327 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12328 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12329 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12330 i386_windows_init_abi_common, don't call windows_init_abi. Add
12331 a new function of this name.
12332 (i386_cygwin_init_abi): New function.
12333 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12334 OS ABI Cygwin.
12335
12336 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12337
12338 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12339 parameter.c.
12340 (dwarf2_read_gdb_index): Update.
12341
12342 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12343
12344 * nbsd-tdep.c: Include "objfiles.h".
12345 (nbsd_skip_solib_resolver): New.
12346 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12347
12348 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12349
12350 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12351 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12352 with DW_LLE_base_addressx are being emitted in DWARFv5.
12353 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12354 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12355 unsigned integer.
12356
12357 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12358
12359 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12360 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12361 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12362 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12363 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12364 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12365 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12366
12367
12368 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12369
12370 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12371 (read_loclist_index): New function definition.
12372 (lookup_loclist_base): New function definition.
12373 (read_loclist_header): New function definition.
12374 (dwarf2_cu): Add loclist_base and loclist_header field.
12375 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12376 (read_full_die_1): Read the value of DW_AT_loclists_base.
12377 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12378 (read_attribute_value): Handle DW_FORM_loclistx.
12379 (skip_one_die): Handle DW_FORM_loclistx.
12380 (loclist_header): New structure declaration.
12381 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12382
12383 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12384
12385 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12386 constructor. Remove `addr` parameter from other constructor and
12387 add `per_cu` parameter.
12388 * dwarf2/read.c (create_partial_symtab): Update.
12389
12390 2020-04-07 Tom de Vries <tdevries@suse.de>
12391
12392 PR symtab/25796
12393 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12394 (partial_die_info::fixup): Inherit has_const_value.
12395
12396 2020-04-07 Tom de Vries <tdevries@suse.de>
12397
12398 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12399 symbols without address.
12400
12401 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12402
12403 * nbsd-nat.h (struct thread_info): Add forward declaration.
12404 (nbsd_nat_target::thread_alive): Add.
12405 (nbsd_nat_target::thread_name): Likewise.
12406 (nbsd_nat_target::update_thread_list): Likewise.
12407 (update_thread_list::post_attach): Likewise.
12408 (post_attach::pid_to_str): Likewise.
12409 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12410 (nbsd_thread_lister): Add.
12411 (nbsd_nat_target::thread_alive): Likewise.
12412 (nbsd_nat_target::thread_name): Likewise.
12413 (nbsd_add_threads): Likewise.
12414 (update_thread_list::post_attach): Likewise.
12415 (nbsd_nat_target::update_thread_list): Likewise.
12416 (post_attach::pid_to_str): Likewise.
12417
12418 2020-04-06 Tom Tromey <tromey@adacore.com>
12419
12420 * ada-valprint.c (print_variant_part): Extract the variant field.
12421 (print_field_values): Use the field as the outer value when
12422 recursing.
12423
12424 2020-04-06 Tom Tromey <tromey@adacore.com>
12425
12426 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12427 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12428 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12429 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12430 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12431
12432 2020-04-06 Tom Tromey <tromey@adacore.com>
12433
12434 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12435 TYPE_CODE_ERROR.
12436
12437 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12438
12439 * nbsd-tdep.c: Include "gdbarch.h".
12440 Define enum with NetBSD signal numbers.
12441 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12442 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12443 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12444 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12445 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12446 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12447 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12448 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12449 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12450 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12451 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12452 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12453
12454 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12455
12456 PR gdb/25325
12457 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12458
12459 2020-04-03 Tom Tromey <tromey@adacore.com>
12460
12461 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12462 Read constant block.
12463
12464 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12465
12466 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12467 (gdb_bfd_get_full_section_contents): New declaration.
12468 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12469 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12470 gdb_bfd_get_full_section_contents.
12471
12472 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12473
12474 * exec.c (build_section_table): Replace internal_error with
12475 gdb_assert.
12476 (section_table_xfer_memory_partial): Likewise.
12477 * mdebugread.c (parse_partial_symbols): Likewise.
12478 * psymtab.c (lookup_partial_symbol): Likewise.
12479 * utils.c (wrap_here): Likewise.
12480
12481 2020-04-02 Tom Tromey <tromey@adacore.com>
12482
12483 * f-lang.c (build_fortran_types): Use arch_type to initialize
12484 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12485
12486 2020-04-02 Tom Tromey <tromey@adacore.com>
12487
12488 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12489 of attributes.
12490
12491 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12492 Bernd Edlinger <bernd.edlinger@hotmail.de>
12493 Tom Tromey <tromey@adacore.com>
12494
12495 * buildsym.c (buildsym_compunit::record_line): Remove
12496 deduplication code.
12497
12498 2020-04-02 Tom de Vries <tdevries@suse.de>
12499
12500 PR ada/24671
12501 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12502
12503 2020-04-02 Tom de Vries <tdevries@suse.de>
12504
12505 * dwarf2/read.c (dwarf2_gdb_index_functions,
12506 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12507 NULL.
12508 * psymtab.c (psym_lookup_global_symbol_language): New function.
12509 (psym_functions): Init psym_lookup_global_symbol_language with
12510 psym_lookup_global_symbol_language.
12511 * symfile-debug.c (debug_sym_quick_functions): Init
12512 lookup_global_symbol_language with NULL.
12513 * symfile.c (set_initial_language): Remove fixme comment.
12514 * symfile.h (struct quick_symbol_functions): Add
12515 lookup_global_symbol_language.
12516 * symtab.c (find_quick_global_symbol_language): New function.
12517 (find_main_name): Use find_quick_global_symbol_language.
12518
12519 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12520
12521 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12522
12523 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12524
12525 * buildsym.c (record_line): Fix undefined behavior and preserve
12526 lines at eof.
12527
12528 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12529
12530 * buildsym.c (record_line): Fix the resizing condition.
12531
12532 2020-04-01 Tom Tromey <tom@tromey.com>
12533
12534 * value.h (value_literal_complex): Add comment.
12535 * valops.c (value_literal_complex): Refer to value.h.
12536
12537 2020-04-01 Tom Tromey <tom@tromey.com>
12538
12539 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12540 (scalar_type): New rule, from typebase.
12541 (typebase): Use scalar_type. Recognize complex types.
12542 (field_name): Handle FLOAT_KEYWORD.
12543 (ident_tokens): Add _Complex and __complex__.
12544
12545 2020-04-01 Tom Tromey <tom@tromey.com>
12546
12547 PR exp/25299:
12548 * valarith.c (promotion_type, complex_binop): New functions.
12549 (scalar_binop): Handle complex numbers. Use promotion_type.
12550 (value_pos, value_neg, value_complement): Handle complex numbers.
12551
12552 2020-04-01 Tom Tromey <tom@tromey.com>
12553
12554 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12555 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12556 (parse_number): Handle complex numbers.
12557
12558 2020-04-01 Tom Tromey <tom@tromey.com>
12559
12560 * c-valprint.c (c_decorations): Change complex suffix to "i".
12561
12562 2020-04-01 Tom Tromey <tom@tromey.com>
12563
12564 * valprint.c (generic_value_print_complex): Use accessors.
12565 * value.h (value_real_part, value_imaginary_part): Declare.
12566 * valops.c (value_real_part, value_imaginary_part): New
12567 functions.
12568 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12569
12570 2020-04-01 Tom Tromey <tom@tromey.com>
12571
12572 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12573 (read_range_type): Update.
12574 * mdebugread.c (basic_type): Update.
12575 * go-lang.c (build_go_types): Use init_complex_type.
12576 * gdbtypes.h (struct main_type) <complex_type>: New member.
12577 (init_complex_type): Update.
12578 (arch_complex_type): Don't declare.
12579 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12580 Make name if none given. Use alloc_type_copy. Look for cached
12581 complex type.
12582 (arch_complex_type): Remove.
12583 (gdbtypes_post_init): Use init_complex_type.
12584 * f-lang.c (build_fortran_types): Use init_complex_type.
12585 * dwarf2/read.c (read_base_type): Update.
12586 * d-lang.c (build_d_types): Use init_complex_type.
12587 * ctfread.c (read_base_type): Update.
12588
12589 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12590
12591 * infrun.c (stop_all_threads): Update assertion, plus when
12592 stopping threads, take into account that we might be trying
12593 to stop an all-stop target.
12594 (stop_waiting): Call 'stop_all_threads' if there exists a
12595 non-stop target.
12596
12597 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12598
12599 * target.h (exists_non_stop_target): New function declaration.
12600 * target.c (exists_non_stop_target): New function.
12601
12602 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12603
12604 PR gdb/24789
12605 * eval.c (is_integral_or_integral_reference): New function.
12606 (evaluate_subexp_standard): Allow integer references in
12607 pointer arithmetic.
12608
12609 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12610
12611 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12612 check for no ptid in the stop reply when the target is non-stop.
12613
12614 2020-04-01 Tom Tromey <tromey@adacore.com>
12615
12616 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12617 "name" parameter to rvalue reference. Initialize m_name_holder.
12618 <lookup_name_info>: New overloads.
12619 <name>: Return gdb::string_view.
12620 <c_str>: New method.
12621 <make_ignore_params>: Update.
12622 <search_name_hash>: Update.
12623 <language_lookup_name>: Return const char *.
12624 <m_name>: Change type.
12625 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12626 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12627 (lookup_name_info::match_any): Update.
12628 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12629 Update.
12630 * minsyms.c (linkage_name_str): Update.
12631 * language.c (default_symbol_name_matcher): Update.
12632 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12633 Update.
12634 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12635 (ada_lookup_name_info::ada_lookup_name_info): Update.
12636 (literal_symbol_name_matcher): Update.
12637
12638 2020-04-01 Tom Tromey <tromey@adacore.com>
12639
12640 * psymtab.c (psymtab_search_name): Remove function.
12641 (psym_lookup_symbol): Create search name and lookup name here.
12642 (lookup_partial_symbol): Remove "name" parameter; add
12643 lookup_name.
12644 (psym_expand_symtabs_for_function): Update.
12645
12646 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12647
12648 PR tui/25597:
12649 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12650
12651 2020-03-31 Tom Tromey <tromey@adacore.com>
12652
12653 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12654 memcpy.
12655
12656 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12657
12658 * features/riscv/32bit-csr.xml: Regenerated.
12659 * features/riscv/64bit-csr.xml: Regenerated.
12660
12661 2020-03-30 Tom Tromey <tromey@adacore.com>
12662
12663 * ada-valprint.c (print_variant_part): Update.
12664 * ada-lang.h (ada_which_variant_applies): Update.
12665 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12666 outer_valaddr parameters; replace with "outer" value parameter.
12667 (to_fixed_variant_branch_type): Update.
12668
12669 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12670
12671 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12672 <list>. Remove inclusion of observable.h.
12673 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12674 (struct arch_lwp_info): New struct.
12675 (class ppc_linux_dreg_interface): New class.
12676 (struct ppc_linux_process_info): New struct.
12677 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12678 <low_new_clone, low_forget_process, low_prepare_to_resume>
12679 <copy_thread_dreg_state, mark_thread_stale>
12680 <mark_debug_registers_changed, register_hw_breakpoint>
12681 <clear_hw_breakpoint, register_wp, clear_wp>
12682 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12683 <num_memory_accesses, get_trigger_type>
12684 <create_watchpoint_request, hwdebug_point_cmp>
12685 <init_arch_lwp_info, get_arch_lwp_info>
12686 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12687 methods.
12688 <struct ptid_hash>: New inner struct.
12689 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12690 members.
12691 (saved_dabr_value, hwdebug_info, max_slots_number)
12692 (struct hw_break_tuple, struct thread_points, ppc_threads)
12693 (have_ptrace_hwdebug_interface)
12694 (hwdebug_find_thread_points_by_tid)
12695 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12696 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12697 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12698 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12699 use m_dreg_interface.
12700 (hwdebug_point_cmp): Change to...
12701 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12702 reference arguments instead of pointers.
12703 (ppc_linux_nat_target::ranged_break_num_registers): Use
12704 m_dreg_interface.
12705 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12706 m_dreg_interface. Call register_hw_breakpoint.
12707 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12708 m_dreg_interface. Call clear_hw_breakpoint.
12709 (get_trigger_type): Change to...
12710 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12711 comment.
12712 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12713 use m_dreg_interface. Call register_hw_breakpoint.
12714 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12715 use m_dreg_interface. Call clear_hw_breakpoint.
12716 (can_use_watchpoint_cond_accel): Change to...
12717 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12718 method. Update comment, use m_dreg_interface and
12719 m_process_info.
12720 (calculate_dvc): Change to...
12721 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12722 m_dreg_interface.
12723 (num_memory_accesses): Change to...
12724 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12725 (check_condition): Change to...
12726 (ppc_linux_nat_target::check_condition): ...this method.
12727 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12728 comment, use m_dreg_interface.
12729 (create_watchpoint_request): Change to...
12730 (ppc_linux_nat_target::create_watchpoint_request): ...this
12731 method. Use m_dreg_interface.
12732 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12733 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12734 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12735 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12736 (ppc_linux_nat_target::low_forget_process)
12737 (ppc_linux_nat_target::low_new_fork)
12738 (ppc_linux_nat_target::low_new_clone)
12739 (ppc_linux_nat_target::low_delete_thread)
12740 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12741 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12742 only call mark_thread_stale.
12743 (ppc_linux_thread_exit): Remove.
12744 (ppc_linux_nat_target::stopped_data_address): Change to...
12745 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12746 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12747 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12748 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12749 comment. Call low_stopped_data_address.
12750 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12751 m_dreg_interface.
12752 (ppc_linux_nat_target::masked_watch_num_registers): Use
12753 m_dreg_interface.
12754 (ppc_linux_nat_target::copy_thread_dreg_state)
12755 (ppc_linux_nat_target::mark_thread_stale)
12756 (ppc_linux_nat_target::mark_debug_registers_changed)
12757 (ppc_linux_nat_target::register_hw_breakpoint)
12758 (ppc_linux_nat_target::clear_hw_breakpoint)
12759 (ppc_linux_nat_target::register_wp)
12760 (ppc_linux_nat_target::clear_wp)
12761 (ppc_linux_nat_target::init_arch_lwp_info)
12762 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12763 (_initialize_ppc_linux_nat): Remove observer callback.
12764
12765 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12766
12767 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12768 (ppc_linux_nat_target::auxv_parse)
12769 (ppc_linux_nat_target::read_description)
12770 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12771 Move up.
12772
12773 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12774
12775 * linux-nat.h (low_new_clone): New method.
12776 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12777
12778 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12779
12780 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12781 (dbx_expand_psymtab): ... this.
12782 (start_psymtab): Update.
12783 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12784 (mdebug_expand_psymtab): ... this.
12785 (parse_partial_symbols): Update.
12786 (new_psymtab): Update.
12787 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12788 (xcoff_expand_psymtab): ... this.
12789 (xcoff_start_psymtab): Update.
12790
12791 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12792
12793 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12794 <expand_dependencies>: ... this.
12795 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12796 (partial_symtab::expand_dependencies): ... this.
12797 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12798 Update.
12799 (dwarf2_psymtab::expand_psymtab): Update.
12800 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12801 * mdebugread.c (psymtab_to_symtab_1): Update.
12802 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12803
12804 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12805
12806 * psympriv.h (discard_psymtab): Remove.
12807 * dbxread.c (dbx_end_psymtab): Update.
12808 * xcoffread.c (xcoff_end_psymtab): Update.
12809
12810 2020-03-28 Tom Tromey <tom@tromey.com>
12811
12812 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12813 comment.
12814
12815 2020-03-28 Tom Tromey <tom@tromey.com>
12816
12817 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12818
12819 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12820
12821 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12822
12823 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12824
12825 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12826
12827 2020-03-26 Tom Tromey <tom@tromey.com>
12828
12829 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12830 (mark_common_block_symbol_computed, read_tag_string_type)
12831 (attr_to_dynamic_prop, read_subrange_type): Update.
12832 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12833 to be methods on struct attribute.
12834 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12835 (read_call_site_scope, partial_die_info::read)
12836 (partial_die_info::read, lookup_die_type, follow_die_ref):
12837 Update.
12838 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12839 from dwarf2_get_ref_die_offset.
12840 (attribute::constant_value): New method, from
12841 dwarf2_get_attr_constant_value.
12842 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12843 Declare method.
12844 <constant_value>: New method.
12845
12846 2020-03-26 Tom Tromey <tom@tromey.com>
12847
12848 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12849 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12850 (dwarf_type_encoding_name): Move to stringify.c.
12851 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12852 * dwarf2/stringify.c: New file.
12853 * dwarf2/stringify.h: New file.
12854
12855 2020-03-26 Tom Tromey <tom@tromey.com>
12856
12857 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12858 Rewrite.
12859
12860 2020-03-26 Tom Tromey <tom@tromey.com>
12861
12862 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12863 methods.
12864 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12865 (lookup_ranges_base): Likewise.
12866 (read_cutu_die_from_dwo, read_full_die_1): Update.
12867
12868 2020-03-26 Tom Tromey <tom@tromey.com>
12869
12870 * dwarf2/read.c (read_import_statement, read_file_scope)
12871 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12872 (read_lexical_block_scope, read_call_site_scope)
12873 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12874 (handle_struct_member_die, process_structure_scope)
12875 (update_enumeration_type_from_children)
12876 (process_enumeration_scope, read_array_type, read_common_block)
12877 (read_namespace, read_module, read_subroutine_type): Update.
12878 (sibling_die): Remove.
12879
12880 2020-03-26 Tom Tromey <tom@tromey.com>
12881
12882 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12883 (build_type_psymtabs_reader, read_structure_type)
12884 (read_enumeration_type, read_full_die_1): Update.
12885 (dwarf2_attr_no_follow): Move to die.h.
12886 * dwarf2/die.h (struct die_info) <attr>: New method.
12887
12888 2020-03-26 Tom Tromey <tom@tromey.com>
12889
12890 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12891 <base_address>: Now an optional.
12892 (dwarf2_find_base_address, dwarf2_rnglists_process)
12893 (dwarf2_ranges_process, fill_in_loclist_baton)
12894 (dwarf2_symbol_mark_computed): Update.
12895
12896 2020-03-26 Tom Tromey <tom@tromey.com>
12897
12898 * dwarf2/read.c (struct die_info): Move to die.h.
12899 * dwarf2/die.h: New file.
12900
12901 2020-03-26 Tom Tromey <tom@tromey.com>
12902
12903 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12904 * dwarf2/read.c
12905 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12906 Move to line-header.c.
12907 (read_checked_initial_length_and_offset, read_formatted_entries):
12908 Likewise.
12909 (dwarf_decode_line_header): Split into two.
12910 * dwarf2/line-header.c
12911 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12912 Move from read.c.
12913 (read_checked_initial_length_and_offset, read_formatted_entries):
12914 Likewise.
12915 (dwarf_decode_line_header): New function, split from read.c.
12916
12917 2020-03-26 Tom Tromey <tom@tromey.com>
12918
12919 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12920 Declare method.
12921 * dwarf2/read.c (read_attribute_value): Update.
12922 (dwarf2_per_objfile::read_line_string): Rename from
12923 read_indirect_line_string.
12924 (read_formatted_entries): Update.
12925
12926 2020-03-26 Tom Tromey <tom@tromey.com>
12927
12928 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12929 variable.
12930
12931 2020-03-26 Tom Tromey <tom@tromey.com>
12932
12933 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12934 const.
12935 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12936 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12937 parameter const.
12938
12939 2020-03-26 Tom Tromey <tom@tromey.com>
12940
12941 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12942 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12943 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12944 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12945
12946 2020-03-26 Tom Tromey <tom@tromey.com>
12947
12948 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12949 file_names_size, file_full_name, file_file_name>: Use const.
12950 <file_name_at, file_names>: Add const overload.
12951 * dwarf2/line-header.c (line_header::file_file_name)
12952 (line_header::file_full_name): Update.
12953
12954 2020-03-26 Tom Tromey <tom@tromey.com>
12955
12956 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12957 (macro_start_file, consume_improper_spaces)
12958 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12959 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12960 (dwarf_decode_macros): Move to macro.c.
12961 * dwarf2/macro.c: New file.
12962 * dwarf2/macro.h: New file.
12963 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12964
12965 2020-03-26 Tom Tromey <tom@tromey.com>
12966
12967 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12968 method.
12969 * dwarf2/section.c: New method. From
12970 read_indirect_string_at_offset_from.
12971 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12972 (read_indirect_string_at_offset_from): Move to section.c.
12973 (read_indirect_string_at_offset): Rewrite.
12974 (read_indirect_line_string_at_offset): Remove.
12975 (read_indirect_string, read_indirect_line_string)
12976 (dwarf_decode_macro_bytes): Update.
12977
12978 2020-03-26 Tom Tromey <tom@tromey.com>
12979
12980 * dwarf2/section.h (struct dwarf2_section_info)
12981 <overload_complaint>: Declare.
12982 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12983 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12984 Rename from dwarf2_section_buffer_overflow_complaint.
12985 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12986 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12987
12988 2020-03-26 Tom Tromey <tom@tromey.com>
12989
12990 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12991 Declare.
12992 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12993 Move from read.c.
12994 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12995 to section.c.
12996
12997 2020-03-26 Tom Tromey <tom@tromey.com>
12998
12999 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13000
13001 2020-03-26 Tom Tromey <tom@tromey.com>
13002
13003 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13004 "builder".
13005 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13006 parameter.
13007 (dwarf_decode_macros): Update.
13008
13009 2020-03-26 Tom Tromey <tom@tromey.com>
13010
13011 * dwarf2/read.c (read_attribute_value): Update.
13012 (read_indirect_string_from_dwz): Move to dwz.c; change into
13013 method.
13014 (dwarf_decode_macro_bytes): Update.
13015 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13016 * dwarf2/dwz.c: New file.
13017 * Makefile.in (COMMON_SFILES): Add dwz.c.
13018
13019 2020-03-26 Tom Tromey <tom@tromey.com>
13020
13021 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13022 * dwarf2/read.c: Add include.
13023 * dwarf2/index-write.c: Add include.
13024 * dwarf2/index-cache.c: Add include.
13025 * dwarf2/dwz.h: New file.
13026
13027 2020-03-25 Tom Tromey <tom@tromey.com>
13028
13029 * compile/compile-object-load.c (get_out_value_type): Mention
13030 correct symbol name in error message.
13031
13032 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13033
13034 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13035
13036 2020-03-25 Tom de Vries <tdevries@suse.de>
13037
13038 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13039 * symmisc.c (dump_symtab_1): Print user and includes fields.
13040 (maintenance_info_symtabs): Same.
13041
13042 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13043
13044 PR gdb/25534
13045 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13046 (riscv_regcache_cooked_write): New function.
13047 (riscv_push_dummy_call): Use new function.
13048 (riscv_return_value): Likewise.
13049
13050 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13051
13052 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13053 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13054 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13055 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13056 * infrun.c (follow_fork): Likewise.
13057 (follow_fork_inferior): Likewise.
13058 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13059 * linux-nat.h (class linux_nat_target): Likewise.
13060 * remote.c (class remote_target) <follow_fork>: Likewise.
13061 (remote_target::follow_fork): Likewise.
13062 * target-delegates.c: Re-generate.
13063 * target.c (default_follow_fork): Likewise.
13064 (target_follow_fork): Likewise.
13065 * target.h (struct target_ops) <follow_fork>: Likewise.
13066 (target_follow_fork): Likewise.
13067
13068 2020-03-24 Tom de Vries <tdevries@suse.de>
13069
13070 * psymtab.c (maintenance_info_psymtabs): Print user field.
13071
13072 2020-03-20 Tom Tromey <tromey@adacore.com>
13073
13074 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13075 const.
13076 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13077 const.
13078
13079 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13080
13081 * ptrace.m4: Don't check for ptrace declaration.
13082 * config.in: Re-generate.
13083 * configure: Re-generate.
13084 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13085 not defined.
13086
13087 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13088
13089 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13090 `PTRACE_TYPE_RET'.
13091 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13092 * sparc-nat.c (gdb_ptrace): Likewise.
13093 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13094
13095 2020-03-20 Tom Tromey <tromey@adacore.com>
13096
13097 * c-exp.y (lex_one_token): Fix assert.
13098
13099 2020-03-20 Tom Tromey <tromey@adacore.com>
13100
13101 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13102 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13103 strncpy call.
13104
13105 2020-03-20 Tom Tromey <tromey@adacore.com>
13106
13107 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13108
13109 2020-03-20 Tom Tromey <tromey@adacore.com>
13110
13111 * ada-valprint.c (print_variant_part): Remove parameters; switch
13112 to value-based API.
13113 (print_field_values): Likewise.
13114 (ada_val_print_struct_union): Likewise.
13115 (ada_value_print_1): Update.
13116
13117 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13118
13119 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13120 nbsd_nat_target instead of inf_ptrace_target.
13121 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13122 nbsd_nat_target.
13123
13124 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13125
13126 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13127 it to the ptrace call.
13128 * (store_registers): Likewise.
13129
13130 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13131
13132 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13133 it to the ptrace call.
13134 * (store_registers): Likewise.
13135
13136 2020-03-19 Luis Machado <luis.machado@linaro.org>
13137
13138 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13139 valid, fetch vg value from ptrace.
13140
13141 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13142 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13143 * inf-ptrace.c: Likewise.
13144 * (gdb_ptrace): Add.
13145 * (inf_ptrace_target::resume): Update.
13146 * (inf_ptrace_target::xfer_partial): Likewise.
13147 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13148 * (inf_ptrace_peek_poke): Update.
13149
13150 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13151
13152 * x86-bsd-nat.c (gdb_ptrace): New.
13153 * (x86bsd_dr_set): Add new argument `ptid'.
13154 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13155 x86bsd_dr_set_addr): Update.
13156
13157 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13158
13159 * remote.c (remote_target::process_stop_reply): Handle events for
13160 all threads differently.
13161
13162 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13163
13164 * completer.c (completion_tracker::remove_completion): Define new
13165 function.
13166 * completer.h (completion_tracker::remove_completion): Declare new
13167 function.
13168 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13169 when adding a C++ function symbol.
13170
13171 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13172
13173 * completer.c (completion_tracker::completion_hash_entry): Define
13174 new class.
13175 (advance_to_filename_complete_word_point): Call
13176 recompute_lowest_common_denominator.
13177 (completion_tracker::completion_tracker): Call discard_completions
13178 to setup the hash table.
13179 (completion_tracker::discard_completions): Allow for being called
13180 from the constructor, pass new equal function, and element deleter
13181 when constructing the hash table. Initialise new class member
13182 variables.
13183 (completion_tracker::maybe_add_completion): Remove use of
13184 m_entries_vec, and store more information into m_entries_hash.
13185 (completion_tracker::recompute_lcd_visitor): New function, most
13186 content taken from...
13187 (completion_tracker::recompute_lowest_common_denominator):
13188 ...here, this now just visits each item in the hash calling the
13189 above visitor.
13190 (completion_tracker::build_completion_result): Remove use of
13191 m_entries_vec, call recompute_lowest_common_denominator.
13192 * completer.h (completion_tracker::have_completions): Remove use
13193 of m_entries_vec.
13194 (completion_tracker::completion_hash_entry): Declare new class.
13195 (completion_tracker::recompute_lowest_common_denominator): Change
13196 function signature.
13197 (completion_tracker::recompute_lcd_visitor): Declare new function.
13198 (completion_tracker::m_entries_vec): Delete.
13199 (completion_tracker::m_entries_hash): Initialize to NULL.
13200 (completion_tracker::m_lowest_common_denominator_valid): New
13201 member variable.
13202 (completion_tracker::m_lowest_common_denominator_max_length): New
13203 member variable.
13204
13205 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13206
13207 * regformats/regdef.h: Put reg in gdb namespace.
13208
13209 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13210
13211 * i386-bsd-nat.c (gdb_ptrace): New.
13212 * (i386bsd_fetch_inferior_registers,
13213 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13214 * (i386bsd_fetch_inferior_registers,
13215 i386bsd_store_inferior_registers) Use gdb_ptrace.
13216
13217 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13218
13219 * amd64-bsd-nat.c (gdb_ptrace): New.
13220 * (amd64bsd_fetch_inferior_registers,
13221 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13222 * (amd64bsd_fetch_inferior_registers,
13223 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13224
13225 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13226
13227 * user-regs.c (user_reg::read): Rename to...
13228 (user_reg::xread): ...this.
13229 * (append_user_reg): Rename argument `read' to `xread'.
13230 * (user_reg_add_builtin): Likewise.
13231 * (user_reg_add): Likewise.
13232 * (value_of_user_reg): Likewise.
13233
13234 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13235
13236 * sparc-nat.c (gdb_ptrace): New.
13237 * sparc-nat.c (sparc_fetch_inferior_registers)
13238 (sparc_store_inferior_registers) Remove obsolete comment.
13239 * sparc-nat.c (sparc_fetch_inferior_registers)
13240 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13241 * sparc-nat.c (sparc_fetch_inferior_registers)
13242 (sparc_store_inferior_registers) Use gdb_ptrace.
13243
13244 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13245
13246 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13247 it to the ptrace call.
13248 * sh-nbsd-nat.c (store_registers): Likewise.
13249
13250 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13251
13252 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13253 nbsd_nat_target instead of inf_ptrace_target.
13254 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13255 nbsd_nat_target.
13256
13257 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13258
13259 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13260
13261 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13262
13263 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13264 <sys/sysctl.h>.
13265 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13266
13267 2020-03-17 Tom de Vries <tdevries@suse.de>
13268
13269 PR gdb/23710
13270 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13271 fields.
13272 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13273 fields.
13274 (process_imported_unit_die): Skip import of c++ CUs.
13275
13276 2020-03-16 Tom Tromey <tom@tromey.com>
13277
13278 * p-valprint.c (pascal_object_print_value): Initialize
13279 base_value.
13280
13281 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13282 Shahab Vahedi <shahab@synopsys.com>
13283
13284 * Makefile.in: Add arch/arc.o
13285 * configure.tgt: Likewise.
13286 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13287 (_initialize_arc_tdep): Don't initialize old target descriptions.
13288 (arc_read_description): New function to cache target descriptions.
13289 * arc-tdep.h (arc_read_description): Add proto type.
13290 * arch/arc.c: New file.
13291 * arch/arc.h: Likewise.
13292 * features/Makefile: Replace old target descriptions with new.
13293 * features/arc-arcompact.c: Remove.
13294 * features/arc-arcompact.xml: Likewise.
13295 * features/arc-v2.c: Likewise
13296 * features/arc-v2.xml: Likewise
13297 * features/arc/aux-arcompact.xml: New file.
13298 * features/arc/aux-v2.xml: Likewise.
13299 * features/arc/core-arcompact.xml: Likewise.
13300 * features/arc/core-v2.xml: Likewise.
13301 * features/arc/aux-arcompact.c: Generate.
13302 * features/arc/aux-v2.c: Likewise.
13303 * features/arc/core-arcompact.c: Likewise.
13304 * features/arc/core-v2.c: Likewise.
13305 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13306
13307 2020-03-16 Tom Tromey <tromey@adacore.com>
13308
13309 PR gdb/25663:
13310 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13311 putting value into bcache.
13312
13313 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13314
13315 PR gdb/21500
13316 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13317 to...
13318 (amd64_windows_init_abi_common): ... this. Don't set size of
13319 long type.
13320 (amd64_windows_init_abi): New function.
13321 (amd64_cygwin_init_abi): New function.
13322 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13323 the Cygwin OS ABI.
13324 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13325 comment.
13326
13327 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13328
13329 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13330 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13331 (pe_import_directory_entry): New struct type.
13332 (is_linked_with_cygwin_dll): New function.
13333 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13334 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13335 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13336
13337 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13338
13339 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13340 i386_cygwin_core_osabi_sniffer.
13341
13342 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13343
13344 * i386-cygwin-tdep.c: Rename to...
13345 * i386-windows-tdep.c: ... this.
13346 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13347 i386-windows-tdep.c.
13348 * configure.tgt: Likewise.
13349
13350 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13351
13352 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13353 * osabi.c (gdb_osabi_names): Add "Windows".
13354 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13355 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13356 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13357 i386_cygwin_osabi_sniffer.
13358 (_initialize_i386_cygwin_tdep): Register OS ABI
13359 GDB_OSABI_WINDOWS for i386.
13360 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13361 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13362 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13363 for x86-64.
13364 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13365 when the target matches '*-*-mingw*'.
13366
13367 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13368
13369 * defs.h (enum gdb_osabi): Move to...
13370 * osabi.h (enum gdb_osabi): ... here.
13371 * gdbarch.sh: Include osabi.h in gdbarch.h.
13372 * gdbarch.h: Re-generate.
13373
13374 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13375
13376 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13377 function.
13378 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13379
13380 2020-03-14 Tom Tromey <tom@tromey.com>
13381
13382 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13383 for C++.
13384 (c_type_print_modifier): Likewise. Add "language" parameter.
13385 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13386 (c_type_print_base_1): Update.
13387 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13388 constants.
13389 * type-stack.c (type_stack::insert): Handle tp_atomic and
13390 tp_restrict.
13391 (type_stack::follow_type_instance_flags): Likewise.
13392 (type_stack::follow_types): Likewise. Merge type-following code.
13393 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13394 (space_identifier, cv_with_space_id)
13395 (const_or_volatile_or_space_identifier_noopt)
13396 (const_or_volatile_or_space_identifier): Remove.
13397 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13398 rules.
13399 (ptr_operator, typebase): Update.
13400 (enum token_flag) <FLAG_C>: New constant.
13401 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13402 "_Atomic".
13403 (lex_one_token): Handle FLAG_C.
13404
13405 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13406
13407 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13408 it to the ptrace call.
13409 * m68k-bsd-nat.c (store_registers): Likewise.
13410
13411 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13412
13413 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13414 gdb_byte *.
13415 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13416 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13417 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13418
13419 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13420
13421 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13422 nbsd_nat_target instead of inf_ptrace_target.
13423 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13424 nbsd_nat_target.
13425
13426 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13427
13428 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13429 register_t.
13430
13431 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13432
13433 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13434 it to the ptrace call.
13435 * alpha-bsd-nat.c (store_registers): Likewise.
13436
13437 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13438
13439 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13440 includes.
13441 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13442 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13443 fill_fpregset): Likewise.
13444
13445 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13446
13447 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13448 nbsd_nat_target instead of inf_ptrace_target.
13449 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13450 nbsd_nat_target.
13451
13452 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13453
13454 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13455 register_t.
13456
13457 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13458
13459 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13460 it to the ptrace call.
13461 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13462 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13463 * arm-nbsd-nat.c (store_register): Likewise.
13464 * arm-nbsd-nat.c (store_regs): Likewise.
13465 * arm-nbsd-nat.c (store_fp_register): Likewise.
13466 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13467
13468 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13469
13470 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13471 nbsd_nat_target instead of inf_ptrace_target.
13472 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13473 nbsd_nat_target.
13474
13475 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13476
13477 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13478 it to the ptrace call.
13479 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13480
13481 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13482
13483 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13484 it to the ptrace call.
13485 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13486
13487 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13488
13489 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13490 gdb_byte *.
13491 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13492
13493 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13494
13495 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13496 instead of inf_ptrace_target.
13497 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13498 nbsd_nat_target.
13499
13500 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13501
13502 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13503 register_t.
13504
13505 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13506
13507 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13508 register_t.
13509
13510 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13511
13512 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13513 register_t.
13514
13515 2020-03-13 Tom Tromey <tom@tromey.com>
13516
13517 * value.h (val_print): Don't declare.
13518 * valprint.h (val_print_array_elements)
13519 (val_print_scalar_formatted, generic_val_print): Don't declare.
13520 * valprint.c (generic_val_print_array): Take a struct value.
13521 (generic_val_print_ptr, generic_val_print_memberptr)
13522 (generic_val_print_bool, generic_val_print_int)
13523 (generic_val_print_char, generic_val_print_complex)
13524 (generic_val_print): Remove.
13525 (generic_value_print): Update.
13526 (do_val_print): Remove unused parameters. Don't call
13527 la_val_print.
13528 (val_print): Remove.
13529 (common_val_print): Update. Don't call value_check_printable.
13530 (val_print_scalar_formatted, val_print_array_elements): Remove.
13531 * rust-lang.c (rust_val_print): Remove.
13532 (rust_language_defn): Update.
13533 * p-valprint.c (pascal_val_print): Remove.
13534 (pascal_value_print_inner): Update.
13535 (pascal_object_print_val_fields, pascal_object_print_val):
13536 Remove.
13537 (pascal_object_print_static_field): Update.
13538 * p-lang.h (pascal_val_print): Don't declare.
13539 * p-lang.c (pascal_language_defn): Update.
13540 * opencl-lang.c (opencl_language_defn): Update.
13541 * objc-lang.c (objc_language_defn): Update.
13542 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13543 * m2-lang.h (m2_val_print): Don't declare.
13544 * m2-lang.c (m2_language_defn): Update.
13545 * language.h (struct language_defn) <la_val_print>: Remove.
13546 * language.c (unk_lang_value_print_inner): Rename. Change
13547 argument types.
13548 (unknown_language_defn, auto_language_defn): Update.
13549 * go-valprint.c (go_val_print): Remove.
13550 * go-lang.h (go_val_print): Don't declare.
13551 * go-lang.c (go_language_defn): Update.
13552 * f-valprint.c (f_val_print): Remove.
13553 * f-lang.h (f_value_print): Don't declare.
13554 * f-lang.c (f_language_defn): Update.
13555 * d-valprint.c (d_val_print): Remove.
13556 * d-lang.h (d_value_print): Don't declare.
13557 * d-lang.c (d_language_defn): Update.
13558 * cp-valprint.c (cp_print_value_fields)
13559 (cp_print_value_fields_rtti, cp_print_value): Remove.
13560 (cp_print_static_field): Update.
13561 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13562 (c_val_print_struct, c_val_print_union, c_val_print_int)
13563 (c_val_print_memberptr, c_val_print): Remove.
13564 * c-lang.h (c_val_print_array, cp_print_value_fields)
13565 (cp_print_value_fields_rtti): Don't declare.
13566 * c-lang.c (c_language_defn, cplus_language_defn)
13567 (asm_language_defn, minimal_language_defn): Update.
13568 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13569 (ada_val_print_enum): Take a struct value.
13570 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13571 (ada_val_print): Remove.
13572 (ada_value_print_1): Update.
13573 (printable_val_type): Remove.
13574 * ada-lang.h (ada_val_print): Don't declare.
13575 * ada-lang.c (ada_language_defn): Update.
13576
13577 2020-03-13 Tom Tromey <tom@tromey.com>
13578
13579 * valprint.c (do_val_print): Update.
13580 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13581 a struct value.
13582 (value_to_value_object_no_release): Declare.
13583 * python/py-value.c (value_to_value_object_no_release): New
13584 function.
13585 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13586 struct value.
13587 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13588 function.
13589 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13590 a struct value.
13591 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13592 Declare.
13593 (gdbscm_apply_val_pretty_printer): Take a struct value.
13594 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13595 value.
13596 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13597 value.
13598 * extension-priv.h (struct extension_language_ops)
13599 <apply_val_pretty_printer>: Take a struct value.
13600 * cp-valprint.c (cp_print_value): Create a struct value.
13601 (cp_print_value): Update.
13602
13603 2020-03-13 Tom Tromey <tom@tromey.com>
13604
13605 * ada-valprint.c (print_field_values): Call common_val_print.
13606
13607 2020-03-13 Tom Tromey <tom@tromey.com>
13608
13609 * ada-valprint.c (val_print_packed_array_elements): Remove
13610 bitoffset and val parameters. Call common_val_print.
13611 (ada_val_print_string): Remove offset, address, and original_value
13612 parameters.
13613 (ada_val_print_array): Update.
13614 (ada_value_print_array): New function.
13615 (ada_value_print_1): Call it.
13616
13617 2020-03-13 Tom Tromey <tom@tromey.com>
13618
13619 * ada-valprint.c (ada_value_print): Use common_val_print.
13620
13621 2020-03-13 Tom Tromey <tom@tromey.com>
13622
13623 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13624
13625 2020-03-13 Tom Tromey <tom@tromey.com>
13626
13627 * ada-valprint.c (ada_value_print_num): New function.
13628 (ada_value_print_1): Use it.
13629
13630 2020-03-13 Tom Tromey <tom@tromey.com>
13631
13632 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13633
13634 2020-03-13 Tom Tromey <tom@tromey.com>
13635
13636 * ada-valprint.c (ada_value_print_ptr): New function.
13637 (ada_value_print_1): Use it.
13638
13639 2020-03-13 Tom Tromey <tom@tromey.com>
13640
13641 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13642 call common_val_print.
13643 (ada_val_print_1): Update.
13644 (ada_value_print_1): New function.
13645 (ada_value_print_inner): Rewrite.
13646
13647 2020-03-13 Tom Tromey <tom@tromey.com>
13648
13649 * cp-valprint.c (cp_print_value_fields): Update.
13650 (cp_print_value): New function.
13651
13652 2020-03-13 Tom Tromey <tom@tromey.com>
13653
13654 * m2-valprint.c (m2_value_print_inner): Use
13655 cp_print_value_fields.
13656 * cp-valprint.c (cp_print_value_fields): New function.
13657 * c-valprint.c (c_value_print_struct): New function.
13658 (c_value_print_inner): Use c_value_print_struct.
13659 * c-lang.h (cp_print_value_fields): Declare.
13660
13661 2020-03-13 Tom Tromey <tom@tromey.com>
13662
13663 * c-valprint.c (c_value_print_array): New function.
13664 (c_value_print_inner): Use it.
13665
13666 2020-03-13 Tom Tromey <tom@tromey.com>
13667
13668 * c-valprint.c (c_value_print_memberptr): New function.
13669 (c_value_print_inner): Use it.
13670
13671 2020-03-13 Tom Tromey <tom@tromey.com>
13672
13673 * c-valprint.c (c_value_print_int): New function.
13674 (c_value_print_inner): Use it.
13675
13676 2020-03-13 Tom Tromey <tom@tromey.com>
13677
13678 * c-valprint.c (c_value_print_ptr): New function.
13679 (c_value_print_inner): Use it.
13680
13681 2020-03-13 Tom Tromey <tom@tromey.com>
13682
13683 * c-valprint.c (c_value_print_inner): Rewrite.
13684
13685 2020-03-13 Tom Tromey <tom@tromey.com>
13686
13687 * valprint.c (generic_value_print_complex): New function.
13688 (generic_value_print): Use it.
13689
13690 2020-03-13 Tom Tromey <tom@tromey.com>
13691
13692 * valprint.c (generic_val_print_float): Don't call
13693 val_print_scalar_formatted.
13694 (generic_val_print, generic_value_print): Update.
13695
13696 2020-03-13 Tom Tromey <tom@tromey.com>
13697
13698 * valprint.c (generic_value_print_char): New function
13699 (generic_value_print): Use it.
13700
13701 2020-03-13 Tom Tromey <tom@tromey.com>
13702
13703 * valprint.c (generic_value_print_int): New function.
13704 (generic_value_print): Use it.
13705
13706 2020-03-13 Tom Tromey <tom@tromey.com>
13707
13708 * valprint.c (generic_value_print_bool): New function.
13709 (generic_value_print): Use it.
13710
13711 2020-03-13 Tom Tromey <tom@tromey.com>
13712
13713 * valprint.c (generic_val_print_func): Simplify.
13714 (generic_val_print, generic_value_print): Update.
13715
13716 2020-03-13 Tom Tromey <tom@tromey.com>
13717
13718 * valprint.c (generic_val_print_flags): Remove.
13719 (generic_val_print, generic_value_print): Update.
13720 (val_print_type_code_flags): Add original_value parameter.
13721
13722 2020-03-13 Tom Tromey <tom@tromey.com>
13723
13724 * valprint.c (generic_val_print): Update.
13725 (generic_value_print): Update.
13726 * valprint.c (generic_val_print_enum): Don't call
13727 val_print_scalar_formatted.
13728
13729 2020-03-13 Tom Tromey <tom@tromey.com>
13730
13731 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13732 * valprint.c (generic_value_print_ptr): New function.
13733
13734 2020-03-13 Tom Tromey <tom@tromey.com>
13735
13736 * valprint.c (generic_value_print): Rewrite.
13737
13738 2020-03-13 Tom Tromey <tom@tromey.com>
13739
13740 * p-valprint.c (pascal_object_print_value_fields)
13741 (pascal_object_print_value): New functions.
13742
13743 2020-03-13 Tom Tromey <tom@tromey.com>
13744
13745 * p-valprint.c (pascal_value_print_inner): Rewrite.
13746
13747 2020-03-13 Tom Tromey <tom@tromey.com>
13748
13749 * f-valprint.c (f_value_print_innner): Rewrite.
13750
13751 2020-03-13 Tom Tromey <tom@tromey.com>
13752
13753 * m2-valprint.c (m2_print_unbounded_array): New overload.
13754 (m2_print_unbounded_array): Update.
13755 (m2_print_array_contents): Take a struct value.
13756 (m2_value_print_inner): Rewrite.
13757
13758 2020-03-13 Tom Tromey <tom@tromey.com>
13759
13760 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13761 (d_value_print_inner): New function.
13762 * d-lang.h (d_value_print_inner): Declare.
13763 * d-lang.c (d_language_defn): Use d_value_print_inner.
13764
13765 2020-03-13 Tom Tromey <tom@tromey.com>
13766
13767 * go-valprint.c (go_value_print_inner): New function.
13768 * go-lang.h (go_value_print_inner): Declare.
13769 * go-lang.c (go_language_defn): Use go_value_print_inner.
13770
13771 2020-03-13 Tom Tromey <tom@tromey.com>
13772
13773 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13774 API.
13775 (rust_val_print): Rewrite.
13776 (rust_value_print_inner): New function, from rust_val_print.
13777 (rust_language_defn): Use rust_value_print_inner.
13778
13779 2020-03-13 Tom Tromey <tom@tromey.com>
13780
13781 * ada-valprint.c (ada_value_print_inner): New function.
13782 * ada-lang.h (ada_value_print_inner): Declare.
13783 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13784
13785 2020-03-13 Tom Tromey <tom@tromey.com>
13786
13787 * f-valprint.c (f_value_print_innner): New function.
13788 * f-lang.h (f_value_print_innner): Declare.
13789 * f-lang.c (f_language_defn): Use f_value_print_innner.
13790
13791 2020-03-13 Tom Tromey <tom@tromey.com>
13792
13793 * p-valprint.c (pascal_value_print_inner): New function.
13794 * p-lang.h (pascal_value_print_inner): Declare.
13795 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13796
13797 2020-03-13 Tom Tromey <tom@tromey.com>
13798
13799 * m2-valprint.c (m2_value_print_inner): New function.
13800 * m2-lang.h (m2_value_print_inner): Declare.
13801 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13802
13803 2020-03-13 Tom Tromey <tom@tromey.com>
13804
13805 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13806 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13807 * c-valprint.c (c_value_print_inner): New function.
13808 * c-lang.h (c_value_print_inner): Declare.
13809 * c-lang.c (c_language_defn, cplus_language_defn)
13810 (asm_language_defn, minimal_language_defn): Use
13811 c_value_print_inner.
13812
13813 2020-03-13 Tom Tromey <tom@tromey.com>
13814
13815 * p-valprint.c (pascal_object_print_value_fields): Now static.
13816 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13817
13818 2020-03-13 Tom Tromey <tom@tromey.com>
13819
13820 * c-valprint.c (c_val_print_array): Simplify.
13821
13822 2020-03-13 Tom Tromey <tom@tromey.com>
13823
13824 * valprint.c (value_print_array_elements): New function.
13825 * valprint.h (value_print_array_elements): Declare.
13826
13827 2020-03-13 Tom Tromey <tom@tromey.com>
13828
13829 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13830 * mips-tdep.c (mips_print_register): Use
13831 value_print_scalar_formatted.
13832
13833 2020-03-13 Tom Tromey <tom@tromey.com>
13834
13835 * valprint.h (value_print_scalar_formatted): Declare.
13836 * valprint.c (value_print_scalar_formatted): New function.
13837
13838 2020-03-13 Tom Tromey <tom@tromey.com>
13839
13840 * valprint.h (generic_value_print): Declare.
13841 * valprint.c (generic_value_print): New function.
13842
13843 2020-03-13 Tom Tromey <tom@tromey.com>
13844
13845 * valprint.c (do_val_print): Call la_value_print_inner, if
13846 available.
13847 * rust-lang.c (rust_language_defn): Update.
13848 * p-lang.c (pascal_language_defn): Update.
13849 * opencl-lang.c (opencl_language_defn): Update.
13850 * objc-lang.c (objc_language_defn): Update.
13851 * m2-lang.c (m2_language_defn): Update.
13852 * language.h (struct language_defn) <la_value_print_inner>: New
13853 member.
13854 * language.c (unknown_language_defn, auto_language_defn): Update.
13855 * go-lang.c (go_language_defn): Update.
13856 * f-lang.c (f_language_defn): Update.
13857 * d-lang.c (d_language_defn): Update.
13858 * c-lang.c (c_language_defn, cplus_language_defn)
13859 (asm_language_defn, minimal_language_defn): Update.
13860 * ada-lang.c (ada_language_defn): Update.
13861
13862 2020-03-13 Tom Tromey <tom@tromey.com>
13863
13864 * c-valprint.c (c_value_print): Use common_val_print.
13865
13866 2020-03-13 Tom Tromey <tom@tromey.com>
13867
13868 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13869
13870 2020-03-13 Tom Tromey <tom@tromey.com>
13871
13872 * f-valprint.c (f77_print_array_1, f_val_print): Use
13873 common_val_print.
13874
13875 2020-03-13 Tom Tromey <tom@tromey.com>
13876
13877 * riscv-tdep.c (riscv_print_one_register_info): Use
13878 common_val_print.
13879
13880 2020-03-13 Tom Tromey <tom@tromey.com>
13881
13882 * mi/mi-main.c (output_register): Use common_val_print.
13883
13884 2020-03-13 Tom Tromey <tom@tromey.com>
13885
13886 * infcmd.c (default_print_one_register_info): Use
13887 common_val_print.
13888
13889 2020-03-13 Tom Tromey <tom@tromey.com>
13890
13891 * valprint.h (common_val_print_checked): Declare.
13892 * valprint.c (common_val_print_checked): New function.
13893 * stack.c (print_frame_arg): Use common_val_print_checked.
13894
13895 2020-03-13 Tom Tromey <tom@tromey.com>
13896
13897 * valprint.c (do_val_print): New function, from val_print.
13898 (val_print): Use do_val_print.
13899 (common_val_print): Use do_val_print.
13900
13901 2020-03-13 Tom Tromey <tom@tromey.com>
13902
13903 * valprint.c (value_print): Use scoped_value_mark.
13904
13905 2020-03-13 Tom de Vries <tdevries@suse.de>
13906
13907 PR symtab/25646
13908 * psymtab.c (partial_symtab::partial_symtab): Don't set
13909 globals_offset and statics_offset. Push element onto
13910 current_global_psymbols and current_static_psymbols stacks.
13911 (concat): New function.
13912 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13913 element from current_global_psymbols and current_static_psymbols
13914 stacks. Concat popped elements to global_psymbols and
13915 static_symbols.
13916 (add_psymbol_to_list): Use current_global_psymbols and
13917 current_static_psymbols stacks.
13918 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13919 current_static_psymbols fields.
13920
13921 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13922
13923 * corelow.c (sniff_core_bfd): Remove.
13924 (class core_target) <m_core_vec>: Remove.
13925 (core_target::core_target): Update.
13926 (core_file_fns): Remove.
13927 (deprecated_add_core_fns): Remove.
13928 (default_core_sniffer): Remove.
13929 (sniff_core_bfd): Remove.
13930 (default_check_format): Remove.
13931 (gdb_check_format): Remove.
13932 (core_target_open): Update.
13933 (core_target::get_core_register_section): Update.
13934 (get_core_registers_cb): Update.
13935 (core_target::fetch_registers): Update.
13936 * gdbcore.h (struct core_fns): Remove.
13937 (deprecated_add_core_fns): Remove.
13938 (default_core_sniffer): Remove.
13939 (default_check_format): Remove.
13940
13941 2020-03-12 Tom Tromey <tom@tromey.com>
13942
13943 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13944 CORE_ADDR.
13945 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13946
13947 2020-03-12 Tom Tromey <tom@tromey.com>
13948
13949 * remote.c (remote_target::download_tracepoint)
13950 (remote_target::enable_tracepoint)
13951 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13952 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13953 sprintf_vma.
13954
13955 2020-03-12 Tom Tromey <tom@tromey.com>
13956
13957 * symfile-mem.c: Update CORE_ADDR size assert.
13958
13959 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13960
13961 * selftest.m4: Move to gdbsupport/.
13962 * acinclude.m4: Update path to selftest.m4.
13963
13964 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13965
13966 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13967 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13968 gdbarch-selfselftests.c and selftest-arch.c.
13969 (SUBDIR_UNITTESTS_OBS): Rename to...
13970 (SELFTESTS_OBS): ... this.
13971 (COMMON_SFILES): Remove disasm-selftests.c and
13972 gdbarch-selftests.c.
13973 * configure.ac: Don't add selftest-arch.{c,o} to
13974 CONFIG_{SRCS,OBS}.
13975 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13976 preprocessor conditions.
13977
13978 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13979
13980 * configure.ac: Don't source bfd/development.sh.
13981 * selftest.m4: Modify comment.
13982 * configure: Re-generate.
13983
13984 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13985
13986 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13987 not "true" or "false".
13988 * configure: Re-generate.
13989
13990 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13991
13992 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13993 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13994 renamed to arm_nbsd_supply_gregset.
13995 (fetch_register): Update to call arm_nbsd_supply_gregset.
13996 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13997 (arm_netbsd_nat_target::fetch_registers): Update.
13998 (fetch_elfcore_registers): Removed.
13999 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14000 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14001 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14002 not require NetBSD system headers.
14003 (arm_nbsd_regset): New struct.
14004 (arm_nbsd_iterate_over_regset_sections): New function.
14005 (arm_netbsd_init_abi_common): Updated to call
14006 set_gdbarch_iterate_over_regset_sections.
14007 * arm-nbsd-tdep.h: New file.
14008
14009 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14010
14011 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14012 recursion.
14013
14014 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14015
14016 * configure: Re-generate.
14017
14018 2020-03-11 Tom Tromey <tromey@adacore.com>
14019
14020 * ada-typeprint.c (print_choices): Fix comment.
14021
14022 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14023
14024 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14025 previous item in the list, when the list has no items.
14026
14027 2020-03-11 Tom de Vries <tdevries@suse.de>
14028
14029 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14030 PROP_LOCLIST handling code.
14031
14032 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14033
14034 * buildsym-legacy.c (record_line): Pass extra parameter to
14035 record_line.
14036 * buildsym.c (buildsym_compunit::record_line): Take an extra
14037 parameter, reduce duplication in the line table, and record the
14038 is_stmt flag in the line table.
14039 * buildsym.h (buildsym_compunit::record_line): Add extra
14040 parameter.
14041 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14042 non-statement lines.
14043 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14044 this to the symtab builder.
14045 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14046 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14047 through to dwarf_record_line_1.
14048 * infrun.c (process_event_stop_test): When stepping, don't stop at
14049 a non-statement instruction, and only refresh the step info when
14050 we land in the middle of a line's range. Also add an extra
14051 comment.
14052 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14053 field.
14054 * record-btrace.c (btrace_find_line_range): Only record lines
14055 marked as is-statement.
14056 * stack.c (frame_show_address): Show the frame address if we are
14057 in a non-statement sal.
14058 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14059 (maintenance_print_one_line_table): Print a header for the is_stmt
14060 column, and include is_stmt information in the output.
14061 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14062 preference to non-statements.
14063 (find_pcs_for_symtab_line): Prefer is-statement entries.
14064 (find_line_common): Likewise.
14065 * symtab.h (struct linetable_entry): Add is_stmt field.
14066 (struct symtab_and_line): Likewise.
14067 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14068 arranging the line table.
14069
14070 2020-03-07 Tom de Vries <tdevries@suse.de>
14071
14072 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14073 DIE.
14074
14075 2020-03-07 Tom Tromey <tom@tromey.com>
14076
14077 * valops.c (value_literal_complex): Remove obsolete comment.
14078 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14079 comment.
14080
14081 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14082
14083 * infrun.h: Forward-declare thread_info.
14084 (set_step_info): Add thread_info parameter, add doc.
14085 * infrun.c (set_step_info): Add thread_info parameter, move doc
14086 to header.
14087 * infrun.c (process_event_stop_test): Pass thread to
14088 set_step_info call.
14089 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14090 set_step_info.
14091 (prepare_one_step): Add thread_info parameter, pass it to
14092 set_step_frame and prepare_one_step (recursive) call.
14093 (step_1): Pass thread to prepare_one_step call.
14094 (step_command_fsm::should_stop): Pass thread to
14095 prepare_one_step.
14096 (until_next_fsm): Pass thread to set_step_frame call.
14097 (finish_command): Pass thread to set_step_info call.
14098
14099 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14100
14101 * windows-tdep.c (windows_solib_create_inferior_hook):
14102 Check if inferior is running.
14103
14104 2020-03-06 Tom de Vries <tdevries@suse.de>
14105
14106 * NEWS: Fix "the the".
14107 * ctfread.c: Same.
14108
14109 2020-03-06 Tom de Vries <tdevries@suse.de>
14110
14111 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14112
14113 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14114
14115 * .dir-locals.el: Add a comment referencing the other copies of
14116 this file.
14117
14118 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14119
14120 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14121 psargs.
14122
14123 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14124
14125 * .gitattributes: New file.
14126
14127 2020-03-04 Tom Tromey <tom@tromey.com>
14128
14129 * symmisc.c (print_symbol_bcache_statistics)
14130 (print_objfile_statistics): Update.
14131 * symfile.c (allocate_symtab): Use intern.
14132 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14133 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14134 macro_cache>: Remove.
14135 <string_cache>: New member.
14136 (struct objfile) <intern>: New methods.
14137 * elfread.c (elf_symtab_read): Use intern.
14138 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14139 (dwarf2_compute_name, dwarf2_physname)
14140 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14141 names.
14142 (guess_partial_die_structure_name): Update.
14143 (partial_die_info::fixup): Intern name.
14144 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14145 name.
14146 (dwarf2_name): Intern name. Update.
14147 * buildsym.c (buildsym_compunit::get_macro_table): Use
14148 string_cache.
14149
14150 2020-03-04 Tom Tromey <tom@tromey.com>
14151
14152 * jit.c (bfd_open_from_target_memory): Make "target" const.
14153 * corefile.c (gnutarget): Now const.
14154 * gdbcore.h (gnutarget): Now const.
14155
14156 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14157
14158 * NEWS: Mention support for WOW64 processes.
14159 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14160 (amd64_windows_segment_register_p): Remove static.
14161 (_initialize_amd64_windows_nat): Update.
14162 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14163 * i386-windows-nat.c (context_offset): Update.
14164 (i386_mappings): Rename and remove static.
14165 (i386_windows_segment_register_p): Remove static.
14166 (_initialize_i386_windows_nat): Update.
14167 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14168 (STATUS_WX86_SINGLE_STEP): New macro.
14169 (EnumProcessModulesEx): New macro.
14170 (Wow64SuspendThread): New macro.
14171 (Wow64GetThreadContext): New macro.
14172 (Wow64SetThreadContext): New macro.
14173 (Wow64GetThreadSelectorEntry): New macro.
14174 (windows_set_context_register_offsets): Add static.
14175 (windows_set_segment_register_p): Likewise.
14176 (windows_add_thread): Adapt for WOW64 processes.
14177 (windows_fetch_one_register): Likewise.
14178 (windows_nat_target::fetch_registers): Likewise.
14179 (windows_store_one_register): Likewise.
14180 (display_selector): Likewise.
14181 (display_selectors): Likewise.
14182 (handle_exception): Likewise.
14183 (windows_continue): Likewise.
14184 (windows_nat_target::resume): Likewise.
14185 (windows_add_all_dlls): Likewise.
14186 (do_initial_windows_stuff): Likewise.
14187 (windows_nat_target::attach): Likewise.
14188 (windows_get_exec_module_filename): Likewise.
14189 (windows_nat_target::create_inferior): Likewise.
14190 (windows_xfer_siginfo): Likewise.
14191 (_initialize_loadable): Initialize Wow64SuspendThread,
14192 Wow64GetThreadContext, Wow64SetThreadContext,
14193 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14194 * windows-nat.h (windows_set_context_register_offsets):
14195 Remove declaration.
14196 (windows_set_segment_register_p): Likewise.
14197 (i386_windows_segment_register_p): Add declaration.
14198 (amd64_windows_segment_register_p): Likewise.
14199
14200 2020-03-04 Luis Machado <luis.machado@linaro.org>
14201
14202 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14203 in "info registers" for AArch64/ARM.
14204
14205 The change caused "info registers" to not print GPR's.
14206
14207 gdb/ChangeLog:
14208
14209 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14210
14211 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14212 when reg->group is empty and reggroup is not.
14213
14214 2020-03-03 Tom Tromey <tromey@adacore.com>
14215
14216 * dwarf2/frame.c (struct dwarf2_frame_cache)
14217 <checked_tailcall_bottom, entry_cfa_sp_offset,
14218 entry_cfa_sp_offset_p>: Remove members.
14219 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14220 (dwarf2_frame_prev_register): Don't call
14221 dwarf2_tailcall_sniffer_first.
14222 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14223 * frame-unwind.c (add_unwinder): New fuction.
14224 (frame_unwind_init): Use it. Add tailcall unwinder.
14225
14226 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14227 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14228
14229 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14230 value should be printed as true.
14231
14232 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14233
14234 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14235 (windows_init_abi): Set and use windows_so_ops.
14236
14237 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14238
14239 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14240 when verifying if dealing with a convenience variable.
14241
14242 2020-03-03 Luis Machado <luis.machado@linaro.org>
14243
14244 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14245
14246 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14247
14248 * infrun.c (gdbarch_supports_displaced_stepping): New.
14249 (use_displaced_stepping): Break up conditions in smaller pieces.
14250 Use gdbarch_supports_displaced_stepping.
14251 (displaced_step_prepare_throw): Use
14252 gdbarch_supports_displaced_stepping.
14253
14254 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14255
14256 * NEWS: Mention new behaviour of the history filename.
14257 * top.c (write_history_p): Add comment.
14258 (show_write_history_p): Add header comment, give a different
14259 message when history writing is on, but the history filename is
14260 empty.
14261 (history_filename): Add comment.
14262 (history_filename_empty): New function.
14263 (show_history_filename): Add header comment, give a different
14264 message when the filename is empty.
14265 (init_history): Compare history_filename against nullptr, and only
14266 read history if the filename is not empty.
14267 (set_history_filename): Add header comment, and only make
14268 non-empty filenames absolute.
14269 (init_main): Make the filename argument to 'set history filename'
14270 optional.
14271
14272 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14273
14274 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14275 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14276 (fetch_fp_register): Update.
14277 (fetch_fp_regs): Update.
14278 (store_fp_register): Update.
14279 (store_fp_regs): Update.
14280 (arm_netbsd_nat_target::read_description): New function.
14281 (fetch_elfcore_registers): Update.
14282
14283 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14284
14285 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14286 general_thread if the stop reply is missing a thread-id.
14287 (remote_target::process_stop_reply): Use the first non-exited
14288 thread if the target didn't pass a thread-id.
14289 * infrun.c (do_target_wait): Move call to
14290 switch_to_inferior_no_thread to ....
14291 (do_target_wait_1): ... here.
14292
14293 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14294
14295 * debuginfod-support.c: Include defs.h first.
14296
14297 2020-02-28 Tom de Vries <tdevries@suse.de>
14298
14299 * symfile.c (set_initial_language): Use default language for lookup.
14300
14301 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14302
14303 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14304 reader variable, pass `this` to read_cutu_die_from_dwo.
14305
14306 2020-02-27 Aaron Merey <amerey@redhat.com>
14307
14308 * source.c (open_source_file): Check for nullptr when computing
14309 srcpath.
14310
14311 2020-02-27 Tom Tromey <tromey@adacore.com>
14312
14313 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14314 member.
14315 (dwarf2_add_field): Don't update nfields.
14316 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14317
14318 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14319
14320 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14321 abs.
14322
14323 2020-02-26 Tom Tromey <tom@tromey.com>
14324
14325 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14326 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14327 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14328 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14329 per_cu_data.
14330
14331 2020-02-26 Tom Tromey <tom@tromey.com>
14332
14333 * dwarf2/index-write.c (psym_index_map): Change type.
14334 (add_address_entry_worker, write_one_signatured_type)
14335 (recursively_count_psymbols, recursively_write_psymbols)
14336 (class debug_names, psyms_seen_size, write_gdbindex)
14337 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14338
14339 2020-02-26 Aaron Merey <amerey@redhat.com>
14340
14341 * Makefile.in: Handle optional debuginfod support.
14342 * NEWS: Update.
14343 * README: Add --with-debuginfod summary.
14344 * config.in: Regenerate.
14345 * configure: Regenerate.
14346 * configure.ac: Handle optional debuginfod support.
14347 * debuginfod-support.c: debuginfod helper functions.
14348 * debuginfod-support.h: Ditto.
14349 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14350 summary.
14351 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14352 when a dwz file cannot be found.
14353 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14354 debuginfo file cannot be found.
14355 * source.c (open_source_file): Query debuginfod servers when a
14356 source file cannot be found.
14357 * top.c (print_gdb_configuration): Include
14358 --{with,without}-debuginfod in the output.
14359
14360 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14361
14362 * thread.c (thr_try_catch_cmd): Print thread name.
14363
14364 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14365
14366 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14367 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14368 dwarf2_fetch_die_type_sect_off): Move to...
14369 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14370 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14371 dwarf2_fetch_die_type_sect_off): ... here.
14372 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14373 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14374 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14375
14376 2020-02-26 Tom de Vries <tdevries@suse.de>
14377
14378 PR gdb/25603
14379 * symfile.c (set_initial_language): Exit-early if
14380 language_mode == language_mode_manual.
14381
14382 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14383
14384 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14385 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14386 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14387
14388 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14389
14390 * gdbtypes.c (create_array_type_with_stride): Handle negative
14391 array strides.
14392 * valarith.c (value_subscripted_rvalue): Likewise.
14393
14394 2020-02-25 Luis Machado <luis.machado@linaro.org>
14395
14396 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14397
14398 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14399
14400 * loc.h (dwarf2_get_die_type): Move to...
14401 * read.h (dwarf2_get_die_type): ... here.
14402 * read.c (dwarf2_get_die_type): Move doc to header.
14403
14404 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14405
14406 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14407 'gnulib/Makefile.in' to the list.
14408
14409 2020-02-24 Tom Tromey <tom@tromey.com>
14410
14411 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14412 Remove.
14413 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14414 XOBNEWVEC.
14415
14416 2020-02-24 Tom Tromey <tom@tromey.com>
14417
14418 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14419 New method.
14420 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14421 (dw2_do_instantiate_symtab, dw2_get_file_names)
14422 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14423
14424 2020-02-24 Tom Tromey <tom@tromey.com>
14425
14426 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14427 make_scoped_restore.
14428 (dwarf2_psymtab::read_symtab): Don't clear
14429 reading_partial_symbols.
14430
14431 2020-02-24 Tom de Vries <tdevries@suse.de>
14432
14433 PR gdb/25592
14434 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14435
14436 2020-02-24 Tom de Vries <tdevries@suse.de>
14437
14438 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14439 commands layout next/prev/regs.
14440
14441 2020-02-22 Tom Tromey <tom@tromey.com>
14442
14443 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14444 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14445
14446 2020-02-22 Tom Tromey <tom@tromey.com>
14447
14448 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14449
14450 2020-02-22 Tom Tromey <tom@tromey.com>
14451
14452 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14453 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14454 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14455 * tui/tui.c (_initialize_tui): Add usage text.
14456
14457 2020-02-22 Tom Tromey <tom@tromey.com>
14458
14459 * tui/tui-win.c (tui_set_focus_command)
14460 (tui_set_win_height_command): Use error_no_arg.
14461 (_initialize_tui_win): Update help text.
14462 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14463
14464 2020-02-22 Tom Tromey <tom@tromey.com>
14465
14466 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14467 * tui/tui-disasm.h (struct tui_disasm_window)
14468 <display_start_addr>: Declare.
14469 * tui/tui-source.h (struct tui_source_window)
14470 <display_start_addr>: Declare.
14471 * tui/tui-winsource.h (struct tui_source_window_base)
14472 <show_source_line, display_start_addr>: New methods.
14473 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14474 Rename and move to protected section.
14475 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14476 (tui_source_window_base::do_erase_source_content): Update.
14477 (tui_source_window_base::show_source_line): Now a method.
14478 (tui_source_window_base::show_source_content)
14479 (tui_source_window_base::tui_source_window_base)
14480 (tui_source_window_base::rerender)
14481 (tui_source_window_base::refill)
14482 (tui_source_window_base::do_scroll_horizontal)
14483 (tui_source_window_base::set_is_exec_point_at)
14484 (tui_source_window_base::update_breakpoint_info)
14485 (tui_source_window_base::update_exec_info): Update.
14486 * tui/tui-source.c (tui_source_window::set_contents)
14487 (tui_source_window::showing_source_p)
14488 (tui_source_window::do_scroll_vertical)
14489 (tui_source_window::location_matches_p)
14490 (tui_source_window::line_is_displayed): Update.
14491 (tui_source_window::display_start_addr): New method.
14492 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14493 (tui_disasm_window::do_scroll_vertical)
14494 (tui_disasm_window::location_matches_p): Update.
14495 (tui_disasm_window::display_start_addr): New method.
14496
14497 2020-02-22 Tom Tromey <tom@tromey.com>
14498
14499 * NEWS: Add entry for gdb.register_window_type.
14500 * tui/tui-layout.h (window_factory): New typedef.
14501 (tui_register_window): Declare.
14502 * tui/tui-layout.c (saved_tui_windows): New global.
14503 (tui_apply_current_layout): Use it.
14504 (tui_register_window): New function.
14505 * python/python.c (do_start_initialization): Call
14506 gdbpy_initialize_tui.
14507 (python_GdbMethods): Add "register_window_type" function.
14508 * python/python-internal.h (gdbpy_register_tui_window)
14509 (gdbpy_initialize_tui): Declare.
14510 * python/py-tui.c: New file.
14511 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14512
14513 2020-02-22 Tom Tromey <tom@tromey.com>
14514
14515 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14516
14517 2020-02-22 Tom Tromey <tom@tromey.com>
14518
14519 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14520 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14521 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14522 (tui_set_win_focus_to): Move from tui-win.c.
14523
14524 2020-02-22 Tom Tromey <tom@tromey.com>
14525
14526 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14527 functions.
14528 (known_window_types): New global.
14529 (tui_get_window_by_name): Reimplement.
14530 (initialize_known_windows): New function.
14531 (validate_window_name): Rewrite.
14532 (_initialize_tui_layout): Call initialize_known_windows.
14533
14534 2020-02-22 Tom Tromey <tom@tromey.com>
14535
14536 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14537 Remove constants.
14538 * tui/tui-winsource.h (struct tui_source_window_base)
14539 <tui_source_window_base>: Remove parameter.
14540 * tui/tui-winsource.c
14541 (tui_source_window_base::tui_source_window_base): Remove
14542 parameter.
14543 (tui_source_window_base::refill): Update.
14544 * tui/tui-stack.h (struct tui_locator_window)
14545 <tui_locator_window>: Update.
14546 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14547 Default the constructor.
14548 * tui/tui-regs.h (struct tui_data_item_window)
14549 <tui_data_item_window>: Default the constructor.
14550 (struct tui_data_window) <tui_data_window>: Likewise.
14551 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14552 Default the constructor.
14553 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14554 Default the constructor.
14555 <type>: Remove.
14556 (struct tui_win_info) <tui_win_info>: Default the constructor.
14557 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14558 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14559 Default the constructor.
14560
14561 2020-02-22 Tom Tromey <tom@tromey.com>
14562
14563 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14564 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14565 * tui/tui-win.c (tui_resize_all): Don't call
14566 tui_delete_invisible_windows.
14567 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14568 done.
14569 (tui_set_layout): Update.
14570 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14571 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14572 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14573
14574 2020-02-22 Tom Tromey <tom@tromey.com>
14575
14576 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14577 correctly.
14578
14579 2020-02-22 Tom Tromey <tom@tromey.com>
14580
14581 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14582
14583 2020-02-22 Tom Tromey <tom@tromey.com>
14584
14585 * tui/tui-winsource.h (struct tui_source_window_iterator)
14586 <inner_iterator>: New etytypedef.
14587 <tui_source_window_iterator>: Take "end" parameter.
14588 <tui_source_window_iterator>: Take iterator.
14589 <operator*, advance>: Update.
14590 <m_iter>: Change type.
14591 <m_end>: New field.
14592 (struct tui_source_windows) <begin, end>: Update.
14593 * tui/tui-layout.c (tui_windows): New global.
14594 (tui_apply_current_layout): Clear tui_windows.
14595 (tui_layout_window::apply): Update tui_windows.
14596 * tui/tui-data.h (tui_windows): Declare.
14597 (all_tui_windows): Now inline function.
14598 (class tui_window_iterator, struct all_tui_windows): Remove.
14599
14600 2020-02-22 Tom Tromey <tom@tromey.com>
14601
14602 PR tui/17850:
14603 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14604 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14605 "height" argument.
14606 (class tui_layout_window) <get_sizes>: Likewise.
14607 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14608 argument.
14609 <get_sizes>: Add "height" argument.
14610 <m_vertical>: New field.
14611 * tui/tui-layout.c (tui_layout_split::clone): Update.
14612 (tui_layout_split::get_sizes): Add "height" argument.
14613 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14614 (tui_new_layout_command): Parse "-horizontal".
14615 (_initialize_tui_layout): Update help string.
14616 (tui_layout_split::specification): Add "-horizontal" when needed.
14617 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14618 argument.
14619 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14620 New methods.
14621
14622 2020-02-22 Tom Tromey <tom@tromey.com>
14623
14624 * tui/tui-layout.h (enum tui_adjust_result): New.
14625 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14626 (class tui_layout_window) <adjust_size>: Return
14627 tui_adjust_result. Rewrite.
14628 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14629 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14630
14631 2020-02-22 Tom Tromey <tom@tromey.com>
14632
14633 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14634 parameter and return types.
14635 (class tui_layout_base) <specification>: Add "depth".
14636 (class tui_layout_window) <specification>: Add "depth".
14637 (class tui_layout_split) <specification>: Add "depth".
14638 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14639 and return types.
14640 (tui_new_layout_command): Parse sub-layouts.
14641 (_initialize_tui_layout): Update help string.
14642 (tui_layout_window::specification): Add "depth".
14643 (add_layout_command): Update.
14644
14645 2020-02-22 Tom Tromey <tom@tromey.com>
14646
14647 * NEWS: Add "tui new-layout" item.
14648 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14649 Add new-layout command to help text.
14650 (validate_window_name): New function.
14651 (tui_new_layout_command): New function.
14652 (_initialize_tui_layout): Register "new-layout".
14653 (tui_layout_window::specification): New method.
14654 (tui_layout_window::specification): New method.
14655 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14656 method.
14657 (class tui_layout_window) <specification>: New method.
14658 (class tui_layout_split) <specification>: New method.
14659
14660 2020-02-22 Tom Tromey <tom@tromey.com>
14661
14662 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14663 * tui/tui-win.c (window_name_completer): Update comment.
14664 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14665 Declare method.
14666 (class tui_layout_window) <replace_window>: Likewise.
14667 (class tui_layout_split) <replace_window>: Likewise.
14668 (tui_set_layout): Don't declare.
14669 (tui_set_initial_layout): Declare function.
14670 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14671 (asm_regs_layout): New globals.
14672 (tui_current_layout, show_layout): Remove.
14673 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14674 (find_layout, tui_apply_layout): New function.
14675 (layout_completer): Remove.
14676 (tui_next_layout): Reimplement.
14677 (tui_next_layout_command): New function.
14678 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14679 (tui_regs_layout): Reimplement.
14680 (tui_regs_layout_command): New function.
14681 (extract_display_start_addr): Rewrite.
14682 (next_layout, prev_layout): Remove.
14683 (tui_layout_window::replace_window): New method.
14684 (tui_layout_split::replace_window): New method.
14685 (destroy_layout): New function.
14686 (layout_list): New global.
14687 (add_layout_command): New function.
14688 (initialize_layouts): Update.
14689 (tui_layout_command): New function.
14690 (_initialize_tui_layout): Install "layout" commands.
14691 * tui/tui-data.h (enum tui_layout_type): Remove.
14692 (tui_current_layout): Don't declare.
14693
14694 2020-02-22 Tom Tromey <tom@tromey.com>
14695
14696 * tui/tui-regs.c (tui_reg_layout): Remove.
14697 (tui_reg_command): Use tui_regs_layout.
14698 * tui/tui-layout.h (tui_reg_command): Declare.
14699 * tui/tui-layout.c (tui_reg_command): New function.
14700
14701 2020-02-22 Tom Tromey <tom@tromey.com>
14702
14703 * tui/tui.c (tui_rl_delete_other_windows): Call
14704 tui_remove_some_windows.
14705 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14706 Declare method.
14707 (class tui_layout_window) <remove_windows>: New method.
14708 (class tui_layout_split) <remove_windows>: Declare.
14709 (tui_remove_some_windows): Declare.
14710 * tui/tui-layout.c (tui_remove_some_windows): New function.
14711 (tui_layout_split::remove_windows): New method.
14712
14713 2020-02-22 Tom Tromey <tom@tromey.com>
14714
14715 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14716 * tui/tui-layout.h (tui_next_layout): Declare.
14717 * tui/tui-layout.c (tui_next_layout): New function.
14718
14719 2020-02-22 Tom Tromey <tom@tromey.com>
14720
14721 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14722 correct coordinates.
14723
14724 2020-02-22 Tom Tromey <tom@tromey.com>
14725
14726 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14727 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14728 DATA_WIN case.
14729
14730 2020-02-22 Tom Tromey <tom@tromey.com>
14731
14732 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14733 TUI_DISASM_WIN, not tui_win_list.
14734
14735 2020-02-22 Tom Tromey <tom@tromey.com>
14736
14737 * valprint.c (generic_val_print_enum_1)
14738 (val_print_type_code_flags): Style member names.
14739 * rust-lang.c (val_print_struct, rust_print_enum)
14740 (rust_print_struct_def, rust_internal_print_type): Style member
14741 names.
14742 * p-valprint.c (pascal_object_print_value_fields): Style member
14743 names. Only call fprintf_symbol_filtered for static members.
14744 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14745 * f-valprint.c (f_val_print): Style member names.
14746 * f-typeprint.c (f_type_print_base): Style member names.
14747 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14748 call fprintf_symbol_filtered for static members.
14749 (cp_print_class_member): Style member names.
14750 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14751 member names.
14752 * ada-valprint.c (ada_print_scalar): Style enum names.
14753 (ada_val_print_enum): Likewise.
14754 * ada-typeprint.c (print_enum_type): Style enum names.
14755
14756 2020-02-21 Tom Tromey <tom@tromey.com>
14757
14758 * psympriv.h (struct partial_symtab): Update comment.
14759
14760 2020-02-21 Tom Tromey <tromey@adacore.com>
14761
14762 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14763 type is CORE_ADDR.
14764
14765 2020-02-21 Tom de Vries <tdevries@suse.de>
14766
14767 PR gdb/25534
14768 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14769 if dependencies[i]->user != NULL.
14770
14771 2020-02-21 Ali Tamur <tamur@google.com>
14772
14773 * dwarf2/read.c (dwarf2_name): Add null check.
14774
14775 2020-02-20 Tom Tromey <tom@tromey.com>
14776
14777 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14778 ">=", in binary search.
14779 (dwarf2_find_containing_comp_unit): New overload.
14780 (run_test): New self-test.
14781 (_initialize_dwarf2_read): Register new test.
14782
14783 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14784
14785 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14786 * riscv-tdep.h: Likewise.
14787 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14788 rv32-only CSR.
14789 * features/riscv/64bit-csr.xml: Regenerated.
14790
14791 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14792 Tom Tromey <tom@tromey.com>
14793
14794 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14795 of 'fputc_unfiltered'.
14796 (putchar_unfiltered): Call 'fputc_unfiltered'.
14797 (fputc_unfiltered): Call 'fputs_unfiltered'.
14798
14799 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14800
14801 * config.in: Regenerate.
14802 * configure: Regenerate.
14803 * configure.ac: Add --with-python-libdir option.
14804 * main.c: Use WITH_PYTHON_LIBDIR.
14805
14806 2020-02-19 Tom Tromey <tom@tromey.com>
14807
14808 * symtab.c (general_symbol_info::compute_and_set_names): Use
14809 obstack_strndup. Simplify call to symbol_set_demangled_name.
14810
14811 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14812
14813 * dwarf2/read.c (allocate_signatured_type_table,
14814 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14815 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14816 Remove objfile parameter, update all callers.
14817
14818 2020-02-19 Doug Evans <dje@google.com>
14819
14820 PR rust/25535
14821 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14822 rust_enum_variant calculation.
14823
14824 2020-02-19 Tom Tromey <tromey@adacore.com>
14825
14826 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14827
14828 2020-02-19 Tom Tromey <tromey@adacore.com>
14829
14830 * ada-lang.c (cache_symbol): Use obstack_strdup.
14831
14832 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14833
14834 * configure: Regenerate.
14835
14836 2020-02-19 Tom Tromey <tromey@adacore.com>
14837
14838 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14839 NULL check.
14840
14841 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14842
14843 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14844
14845 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14846
14847 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14848 if GDBSERVER is not defined.
14849 (riscv_tdesc_cache): Likewise, also store const target_desc.
14850 (STATIC_IN_GDB): Define.
14851 (riscv_create_target_description): Update declaration with
14852 STATIC_IN_GDB.
14853 (riscv_lookup_target_description): New function, only define if
14854 GDBSERVER is not defined.
14855 * arch/riscv.h (riscv_create_target_description): Declare only
14856 when GDBSERVER is defined.
14857 (riscv_lookup_target_description): New declaration when GDBSERVER
14858 is not defined.
14859 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14860 (riscv_linux_read_features): ...this, and return
14861 riscv_gdbarch_features instead of target_desc.
14862 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14863 (riscv_linux_read_description): Rename to...
14864 (riscv_linux_read_features): ...this.
14865 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14866 Update to use riscv_gdbarch_features and
14867 riscv_lookup_target_description.
14868 * riscv-tdep.c (riscv_find_default_target_description): Use
14869 riscv_lookup_target_description instead of
14870 riscv_create_target_description.
14871
14872 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14873
14874 * valprint.c (generic_val_print_enum_1): When printing a flag
14875 enum with value 0 and there is no enumerator with value 0, print
14876 just "0" instead of "(unknown: 0x0)".
14877
14878 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14879
14880 * valprint.c (generic_val_print_enum_1): Print unknown part of
14881 flag enum in hex.
14882
14883 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14884
14885 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14886 flag enums to contain duplicate enumerators.
14887 * valprint.c (generic_val_print_enum_1): Update comment.
14888
14889 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14890
14891 * dwarf2/read.c: Include "count-one-bits.h".
14892 (update_enumeration_type_from_children): If an enumerator has
14893 multiple bits set, don't treat the enumeration as a "flag enum".
14894 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14895 of flag enums have 0 or 1 bit set.
14896
14897 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14898
14899 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14900 conversion.
14901 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14902 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14903 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14904 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14905 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14906
14907 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14908
14909 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14910
14911 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14912
14913 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14914 displaced_step_closure_up.
14915 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14916 (struct displaced_step_closure_up):
14917 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14918 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14919 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14920 Likewise.
14921 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14922 * gdbarch.c, gdbarch.h: Re-generate.
14923 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14924 displaced_step_closure_up.
14925 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14926 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14927 * infrun.h (displaced_step_closure_up): New type alias.
14928 (struct displaced_step_inferior_state) <step_closure>: Change
14929 type to displaced_step_closure_up.
14930 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14931 displaced_step_closure_up.
14932 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14933
14934 2020-02-14 Tom Tromey <tom@tromey.com>
14935
14936 * minidebug.c (gnu_debug_key): New global.
14937 (find_separate_debug_file_in_section): Use it.
14938
14939 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14940
14941 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14942 std::unique_ptr.
14943 * gdbarch.c: Re-generate.
14944 * gdbarch.h: Re-generate.
14945 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14946 change.
14947 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14948 type to std::unique_ptr.
14949 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14950 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14951 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14952 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14953 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14954 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14955 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14956 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14957 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14958
14959 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14960
14961 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14962 std::unique_ptr.
14963 (displaced_step_clear): Rename to...
14964 (displaced_step_reset): ... this. Just call displaced->reset ().
14965 (displaced_step_clear_cleanup): Rename to...
14966 (displaced_step_reset_cleanup): ... this.
14967 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14968 (displaced_step_fixup): Likewise.
14969 (resume_1): Likewise.
14970 (handle_inferior_event): Restore child's memory before calling
14971 displaced_step_fixup on the parent.
14972 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14973 to std::unique_ptr.
14974 <step_closure>: Change type to std::unique_ptr.
14975
14976 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14977
14978 * arm-tdep.c: Include count-one-bits.h.
14979 (cleanup_block_store_pc): Use count_one_bits.
14980 (cleanup_block_load_pc): Use count_one_bits.
14981 (arm_copy_block_xfer): Use count_one_bits.
14982 (thumb2_copy_block_xfer): Use count_one_bits.
14983 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14984 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14985 (thumb_get_next_pcs_raw): Use count_one_bits.
14986 (arm_get_next_pcs_raw): Use count_one_bits_l.
14987 * arch/arm.c (bitcount): Remove.
14988 * arch/arm.h (bitcount): Remove.
14989
14990 2020-02-14 Tom Tromey <tromey@adacore.com>
14991
14992 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14993 Update.
14994 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14995 * dwarf2/loc.c (call_site_find_chain_1): Return
14996 unique_xmalloc_ptr.
14997 (call_site_find_chain): Likewise.
14998
14999 2020-02-14 Richard Biener <rguenther@suse.de>
15000
15001 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15002 on expression with division operators.
15003
15004 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15005
15006 * MAINTAINERS (Write After Approval): Adding myself.
15007
15008 2020-02-12 Tom Tromey <tom@tromey.com>
15009
15010 * event-loop.c (event_data, gdb_event, event_handler_func):
15011 Remove.
15012
15013 2020-02-12 Tom Tromey <tom@tromey.com>
15014
15015 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15016 (dwarf2_frame_objfile_data): Add comment.
15017 (find_comp_unit, set_comp_unit): New functions.
15018 (dwarf2_frame_find_fde): Use find_comp_unit.
15019 (dwarf2_build_frame_info): Use set_comp_unit.
15020
15021 2020-02-12 Tom Tromey <tom@tromey.com>
15022
15023 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15024 (comp_unit): Don't initialize objfile.
15025 (execute_cfa_program): Add text_offset parameter.
15026 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15027 (dwarf2_frame_cache): Update.
15028 (dwarf2_build_frame_info): Don't set "objfile" member.
15029
15030 2020-02-12 Tom Tromey <tom@tromey.com>
15031
15032 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15033 (decode_frame_entry): Likewise.
15034 (dwarf2_build_frame_info): Update.
15035
15036 2020-02-12 Tom Tromey <tom@tromey.com>
15037
15038 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15039 (decode_frame_entry_1): Use the comp_unit obstack.
15040
15041 2020-02-12 Tom Tromey <tom@tromey.com>
15042
15043 * dwarf2/frame.c (struct comp_unit): Add initializers and
15044 constructor.
15045 (dwarf2_frame_objfile_data): Store a comp_unit.
15046 (dwarf2_frame_find_fde): Update.
15047 (dwarf2_build_frame_info): Use "new".
15048
15049 2020-02-12 Tom Tromey <tom@tromey.com>
15050
15051 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15052 (dwarf2_fde_table): Typedef for std::vector.
15053 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15054 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15055 (decode_frame_entry): Update.
15056 (dwarf2_build_frame_info): Use "new".
15057
15058 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15059
15060 * arm-tdep.c (arm_gdbarch_init): Update.
15061 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15062 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15063 have_neon, is_m>: Change to bool.
15064
15065 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15066
15067 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15068
15069 2020-02-12 Tom Tromey <tom@tromey.com>
15070
15071 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15072
15073 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15074
15075 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15076 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15077
15078 2020-02-11 Tom Tromey <tom@tromey.com>
15079
15080 * psymtab.h: Update comment.
15081
15082 2020-02-11 Tom Tromey <tom@tromey.com>
15083
15084 * gdb_obstack.h (struct auto_obstack): Use
15085 DISABLE_COPY_AND_ASSIGN.
15086
15087 2020-02-11 Tom Tromey <tom@tromey.com>
15088
15089 * dwarf2/frame.h (struct objfile): Don't forward declare.
15090
15091 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15092
15093 * cris-tdep.c (cris_supply_gregset): Change signature to match
15094 what struct regset expects.
15095 (cris_regset): New struct.
15096 (fetch_core_registers): Remove.
15097 (cris_iterate_over_regset_sections): New function.
15098 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15099 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15100
15101 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15102
15103 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15104 registers.
15105
15106 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15107
15108 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15109
15110 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15111
15112 * configure: Re-generate.
15113
15114 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15115
15116 * configure: Re-generate.
15117
15118 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15119
15120 * acinclude: Update warning.m4 path.
15121 * warning.m4: Move to gdbsupport.
15122
15123 2020-02-11 Tom Tromey <tromey@adacore.com>
15124
15125 * remote.c (remote_console_output): Update.
15126 * printcmd.c (printf_command): Update.
15127 * event-loop.c (gdb_wait_for_event): Update.
15128 * linux-nat.c (sigchld_handler): Update.
15129 * remote-sim.c (gdb_os_write_stdout): Update.
15130 (gdb_os_flush_stdout): Update.
15131 (gdb_os_flush_stderr): Update.
15132 (gdb_os_write_stderr): Update.
15133 * exceptions.c (print_exception): Update.
15134 * remote-fileio.c (remote_fileio_func_read): Update.
15135 (remote_fileio_func_write): Update.
15136 * tui/tui.c (tui_enable): Update.
15137 * tui/tui-interp.c (tui_interp::init): Update.
15138 * utils.c (init_page_info): Update.
15139 (putchar_unfiltered, fputc_unfiltered): Update.
15140 (gdb_flush): Update.
15141 (emit_style_escape): Update.
15142 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15143 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15144 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15145 (stderr_file::write): Update.
15146 (stderr_file::puts): Update.
15147 * ui-file.h (ui_file_isatty, ui_file_write)
15148 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15149 (ui_file_puts): Don't declare.
15150
15151 2020-02-10 Tom de Vries <tdevries@suse.de>
15152
15153 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15154 sentinel to char *.
15155
15156 2020-02-09 Tom de Vries <tdevries@suse.de>
15157
15158 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15159 filename if it matches "<artificial>".
15160
15161 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15162
15163 * windows-tdep.c (struct enum_value_name): New struct.
15164 (create_enum): New function.
15165 (windows_get_siginfo_type): Create and use enum types.
15166
15167 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15168
15169 * NEWS: Mention $_siginfo support for Windows.
15170 * windows-nat.c (handle_exception): Set siginfo_er.
15171 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15172 (windows_xfer_siginfo): New function.
15173 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15174 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15175 (init_windows_gdbarch_data): New function.
15176 (get_windows_gdbarch_data): New function.
15177 (windows_get_siginfo_type): New function.
15178 (windows_init_abi): Register windows_get_siginfo_type.
15179 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15180
15181 2020-02-08 Tom Tromey <tom@tromey.com>
15182
15183 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15184 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15185 <keep>: Declare method.
15186 <m_keep>: Remove member.
15187 <~cutu_reader>: Remove.
15188 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15189 (cutu_reader::cutu_reader): Update.
15190 (cutu_reader::keep): Rename from ~cutu_reader.
15191 (process_psymtab_comp_unit, build_type_psymtabs_1)
15192 (process_skeletonless_type_unit, load_partial_comp_unit)
15193 (load_full_comp_unit, dwarf2_read_addr_index)
15194 (read_signatured_type): Update.
15195
15196 2020-02-08 Tom Tromey <tom@tromey.com>
15197
15198 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15199 "want_partial_unit" parameter.
15200 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15201 Inline check for DW_TAG_partial_unit.
15202 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15203
15204 2020-02-08 Tom Tromey <tom@tromey.com>
15205
15206 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15207 read.c.
15208 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15209 read.c.
15210
15211 2020-02-08 Tom Tromey <tom@tromey.com>
15212
15213 * dwarf2/read.c (read_address): Move to comp-unit.c.
15214 (dwarf2_rnglists_process, dwarf2_ranges_process)
15215 (read_attribute_value, dwarf_decode_lines_1)
15216 (var_decode_location, decode_locdesc): Update.
15217 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15218 read.c. Remove "cu" parameter.
15219 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15220 method.
15221
15222 2020-02-08 Tom Tromey <tom@tromey.com>
15223
15224 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15225 (read_indirect_line_string): Update.
15226 * dwarf2/comp-unit.c (read_offset): Remove.
15227 (read_comp_unit_head): Update.
15228 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15229 method.
15230 (read_offset): Don't declare.
15231
15232 2020-02-08 Tom Tromey <tom@tromey.com>
15233
15234 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15235 * dwarf2/read.c (struct comp_unit_head): Move to
15236 dwarf2/comp-unit.h.
15237 (enum class rcuh_kind): Move to comp-unit.h.
15238 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15239 (read_comp_unit_head, error_check_comp_unit_head)
15240 (read_and_check_comp_unit_head): Move to comp-unit.c.
15241 (read_offset, dwarf_unit_type_name): Likewise.
15242 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15243 (cutu_reader::cutu_reader, read_call_site_scope)
15244 (find_partial_die, follow_die_offset): Update.
15245 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15246
15247 2020-02-08 Tom Tromey <tom@tromey.com>
15248
15249 * dwarf2/read.c (read_offset_1): Move to leb.c.
15250 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15251 (dwarf_decode_macro_bytes): Update.
15252 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15253 * dwarf2/leb.h (read_offset): Declare.
15254
15255 2020-02-08 Tom Tromey <tom@tromey.com>
15256
15257 * dwarf2/read.c (dwarf2_section_size): Remove.
15258 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15259 Update.
15260 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15261
15262 2020-02-08 Tom Tromey <tom@tromey.com>
15263
15264 * dwarf2/read.c (read_initial_length): Move to leb.c.
15265 * dwarf2/leb.h (read_initial_length): Declare.
15266 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15267 handle_nonstd parameter.
15268 * dwarf2/frame.c (read_initial_length): Remove.
15269 (decode_frame_entry_1): Update.
15270
15271 2020-02-08 Tom Tromey <tom@tromey.com>
15272
15273 * dwarf2/loc.c (dwarf2_find_location_expression)
15274 (dwarf_evaluate_loc_desc::get_tls_address)
15275 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15276 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15277 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15278 (dwarf2_compile_property_to_c)
15279 (dwarf2_loc_desc_get_symbol_read_needs)
15280 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15281 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15282 (loclist_describe_location, loclist_tracepoint_var_ref)
15283 (loclist_generate_c_location): Update.
15284 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15285 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15286 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15287 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15288 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15289 (dwarf2_per_cu_data::addr_size)
15290 (dwarf2_per_cu_data::ref_addr_size)
15291 (dwarf2_per_cu_data::text_offset)
15292 (dwarf2_per_cu_data::addr_type): Now methods.
15293 (per_cu_header_read_in): Make per_cu "const".
15294 (dwarf2_version): Remove.
15295 (dwarf2_per_cu_data::int_type): Now a method.
15296 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15297 (set_die_type, read_array_type, read_subrange_index_type)
15298 (read_tag_string_type, read_subrange_type): Update.
15299 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15300 offset_size, ref_addr_size, text_offset, addr_type, version,
15301 objfile, int_type, addr_sized_int_type>: Declare methods.
15302
15303 2020-02-08 Tom Tromey <tom@tromey.com>
15304
15305 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15306 Move earlier.
15307
15308 2020-02-08 Tom Tromey <tom@tromey.com>
15309
15310 * dwarf2/read.h (dwarf_line_debug): Declare.
15311 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15312 * dwarf2/read.c: Move line_header code to new files.
15313 (dwarf_line_debug): No longer static.
15314 * dwarf2/line-header.c: New file.
15315 * dwarf2/line-header.h: New file.
15316
15317 2020-02-08 Tom Tromey <tom@tromey.com>
15318
15319 * dwarf2/read.c (struct line_header) <file_full_name,
15320 file_file_name>: Return unique_xmalloc_ptr.
15321 (line_header::file_file_name): Update.
15322 (line_header::file_full_name): Update.
15323 (dw2_get_file_names_reader): Update.
15324 (macro_start_file): Update.
15325
15326 2020-02-08 Tom Tromey <tom@tromey.com>
15327
15328 * dwarf2/read.c (struct line_header) <file_full_name,
15329 file_file_name>: Declare methods.
15330 (dw2_get_file_names_reader): Update.
15331 (file_file_name): Now a method.
15332 (file_full_name): Likewise.
15333 (macro_start_file): Update.
15334
15335 2020-02-08 Tom Tromey <tom@tromey.com>
15336
15337 * dwarf2/read.c (dwarf_always_disassemble)
15338 (show_dwarf_always_disassemble): Move to loc.c.
15339 (_initialize_dwarf2_read): Move "always-disassemble" registration
15340 to loc.c.
15341 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15342 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15343 static.
15344 (show_dwarf_always_disassemble): Move from read.c.
15345 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15346
15347 2020-02-08 Tom Tromey <tom@tromey.com>
15348
15349 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15350 (create_quick_file_names_table): Return htab_up.
15351 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15352 Update.
15353 * dwarf2/read.h (struct dwarf2_per_objfile)
15354 <quick_file_names_table>: Now htab_up.
15355
15356 2020-02-08 Tom Tromey <tom@tromey.com>
15357
15358 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15359
15360 2020-02-08 Tom Tromey <tom@tromey.com>
15361
15362 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15363 Rewrite.
15364 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15365 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15366 (abbrev_table::abbrev_table): No longer inline.
15367 (ABBREV_HASH_SIZE): Remove.
15368 (abbrev_table::m_abbrevs): Now an htab_up.
15369
15370 2020-02-08 Tom Tromey <tom@tromey.com>
15371
15372 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15373 (cutu_reader): Update.
15374 (build_type_psymtabs_1): Update.
15375 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15376 (abbrev_table::alloc_abbrev): Update.
15377 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15378 (abbrev_table::read): New static method, renamed from
15379 abbrev_table_read_table.
15380 (abbrev_table::alloc_abbrev)
15381 (abbrev_table::add_abbrev): Now private.
15382 (abbrev_table::abbrev_table): Now private.
15383 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15384
15385 2020-02-08 Tom Tromey <tom@tromey.com>
15386
15387 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15388 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15389 htab_up.
15390
15391 2020-02-08 Tom Tromey <tom@tromey.com>
15392
15393 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15394 htab_up.
15395 (lookup_dwo_unit_in_dwp): Update.
15396 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15397 on obstack.
15398
15399 2020-02-08 Tom Tromey <tom@tromey.com>
15400
15401 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15402 obstack.
15403
15404 2020-02-08 Tom Tromey <tom@tromey.com>
15405
15406 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15407 line_header_hash.
15408 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15409 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15410 Change type to htab_up.
15411
15412 2020-02-08 Tom Tromey <tom@tromey.com>
15413
15414 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15415 htab_up. Don't allocate on obstack.
15416 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15417 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15418 Change type to htab_up.
15419
15420 2020-02-08 Tom Tromey <tom@tromey.com>
15421
15422 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15423 Change type to htab_up.
15424 * dwarf2/read.c (create_signatured_type_table_from_index)
15425 (create_signatured_type_table_from_debug_names)
15426 (create_all_type_units, add_type_unit)
15427 (lookup_dwo_signatured_type, lookup_signatured_type)
15428 (process_skeletonless_type_unit): Update.
15429 (create_debug_type_hash_table, create_debug_types_hash_table):
15430 Change type of types_htab.
15431 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15432 htab_up. Don't allocate on obstack.
15433 (create_cus_hash_table): Change type of cus_htab parameter.
15434 (struct dwo_file) <cus, tus>: Now htab_up.
15435 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15436 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15437 (queue_and_load_all_dwo_tus): Update.
15438 * dwarf2/index-write.c (write_gdbindex): Update.
15439 (write_debug_names): Update.
15440
15441 2020-02-08 Tom Tromey <tom@tromey.com>
15442
15443 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15444 dwarf2/read.c. Remove "next" member. Add constructor ntad
15445 destructor.
15446 (struct dwarf2_per_objfile) <queue>: New member.
15447 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15448 dwarf2/read.h.
15449 (dwarf2_queue, dwarf2_queue_tail): Remove.
15450 (class dwarf2_queue_guard): Add parameter to constructor. Use
15451 DISABLE_COPY_AND_ASSIGN.
15452 <m_per_objfile>: New member.
15453 <~dwarf2_queue_guard>: Rewrite.
15454 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15455 Update.
15456 (~dwarf2_queue_item): New.
15457
15458 2020-02-08 Tom Tromey <tom@tromey.com>
15459
15460 * dwarf2/read.c (struct die_info) <has_children>: New member.
15461 (dw2_get_file_names_reader): Remove has_children.
15462 (dw2_get_file_names): Update.
15463 (read_cutu_die_from_dwo): Remove has_children.
15464 (cutu_reader::init_tu_and_read_dwo_dies)
15465 (cutu_reader::cutu_reader): Update.
15466 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15467 Remove has_children.
15468 (build_type_psymtabs_1, process_skeletonless_type_unit)
15469 (load_partial_comp_unit, load_full_comp_unit): Update.
15470 (create_dwo_cu_reader): Remove has_children.
15471 (create_cus_hash_table, read_die_and_children): Update.
15472 (read_full_die_1,read_full_die): Remove has_children.
15473 (read_signatured_type): Update.
15474 (class cutu_reader) <has_children>: Remove.
15475
15476 2020-02-08 Tom Tromey <tom@tromey.com>
15477
15478 * dwarf2/expr.c: Rename from dwarf2expr.c.
15479 * dwarf2/expr.h: Rename from dwarf2expr.h.
15480 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15481 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15482 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15483 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15484 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15485 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15486 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15487 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15488 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15489 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15490 * dwarf2/loc.c: Rename from dwarf2loc.c.
15491 * dwarf2/loc.h: Rename from dwarf2loc.h.
15492 * dwarf2/read.c: Rename from dwarf2read.c.
15493 * dwarf2/read.h: Rename from dwarf2read.h.
15494 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15495 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15496 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15497 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15498 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15499 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15500 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15501 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15502 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15503 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15504 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15505 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15506 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15507 Update.
15508 * Makefile.in (COMMON_SFILES): Update.
15509 (HFILES_NO_SRCDIR): Update.
15510
15511 2020-02-08 Tom Tromey <tom@tromey.com>
15512
15513 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15514 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15515
15516 2020-02-08 Tom Tromey <tom@tromey.com>
15517
15518 * dwarf2read.h (struct die_info): Don't declare.
15519
15520 2020-02-08 Tom Tromey <tom@tromey.com>
15521
15522 * dwarf2read.h (die_info_ptr): Remove typedef.
15523
15524 2020-02-08 Tom Tromey <tom@tromey.com>
15525
15526 * dwarf2read.c (read_call_site_scope)
15527 (handle_data_member_location, dwarf2_add_member_fn)
15528 (mark_common_block_symbol_computed, read_common_block)
15529 (attr_to_dynamic_prop, partial_die_info::read)
15530 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15531 (dwarf2_symbol_mark_computed, set_die_type): Update.
15532 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15533 method.
15534 (attr_form_is_block): Don't declare.
15535 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15536
15537 2020-02-08 Tom Tromey <tom@tromey.com>
15538
15539 * dwarf2read.c (dwarf2_find_base_address, )
15540 (read_call_site_scope, rust_containing_type)
15541 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15542 (handle_data_member_location, dwarf2_add_member_fn)
15543 (get_alignment, read_structure_type, process_structure_scope)
15544 (mark_common_block_symbol_computed, read_common_block)
15545 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15546 (partial_die_info::read, read_attribute_value, new_symbol)
15547 (lookup_die_type, dwarf2_get_ref_die_offset)
15548 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15549 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15550 (dwarf2_symbol_mark_computed): Update.
15551 * dwarf2/attribute.h (struct attribute) <value_as_address,
15552 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15553 methods.
15554 (value_as_address, attr_form_is_section_offset)
15555 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15556 * dwarf2/attribute.c (attribute::value_as_address)
15557 (attribute::form_is_section_offset, attribute::form_is_constant)
15558 (attribute::form_is_ref): Now methods.
15559
15560 2020-02-08 Tom Tromey <tom@tromey.com>
15561
15562 * dwarf2read.c (struct attribute, DW_STRING)
15563 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15564 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15565 (attr_form_is_block, attr_form_is_section_offset)
15566 (attr_form_is_constant, attr_form_is_ref): Move.
15567 * dwarf2/attribute.h: New file.
15568 * dwarf2/attribute.c: New file, from dwarf2read.c.
15569 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15570
15571 2020-02-08 Tom Tromey <tom@tromey.com>
15572
15573 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15574 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15575 Move.
15576 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15577 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15578 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15579 abbrev.c.
15580 * dwarf2/abbrev.h: New file.
15581 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15582 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15583
15584 2020-02-08 Tom Tromey <tom@tromey.com>
15585
15586 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15587 (dwarf2_section_size, dwarf2_get_section_info)
15588 (create_signatured_type_table_from_debug_names)
15589 (create_addrmap_from_aranges, read_debug_names_from_section)
15590 (get_gdb_index_contents_from_section, read_comp_unit_head)
15591 (error_check_comp_unit_head, read_abbrev_offset)
15592 (create_debug_type_hash_table, init_cu_die_reader)
15593 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15594 (read_comp_units_from_section, create_cus_hash_table)
15595 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15596 (create_dwp_v2_section, dwarf2_rnglists_process)
15597 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15598 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15599 (read_indirect_string_from_dwz, read_addr_index_1)
15600 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15601 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15602 (fill_in_loclist_baton): Update.
15603 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15604 get_containing_section, get_bfd_owner, get_bfd_section,
15605 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15606 (dwarf2_read_section, get_section_name, get_section_file_name)
15607 (get_containing_section, get_section_bfd_owner)
15608 (get_section_bfd_section, get_section_name, get_section_file_name)
15609 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15610 declare.
15611 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15612 (dwarf2_section_info::get_bfd_owner)
15613 (dwarf2_section_info::get_bfd_section)
15614 (dwarf2_section_info::get_name)
15615 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15616 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15617 (dwarf2_section_info::read): Now methods.
15618 * dwarf-index-write.c (class debug_names): Update.
15619
15620 2020-02-08 Tom Tromey <tom@tromey.com>
15621
15622 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15623 Move to dwarf2/section.h.
15624 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15625 (get_section_bfd_section, get_section_name)
15626 (get_section_file_name, get_section_id, get_section_flags)
15627 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15628 dwarf2/section.c.
15629 * dwarf2/section.h: New file.
15630 * dwarf2/section.c: New file, from dwarf2read.c.
15631 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15632
15633 2020-02-08 Tom Tromey <tom@tromey.com>
15634
15635 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15636 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15637 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15638 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15639 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15640 * dwarf2/leb.h: New file, from dwarf2read.c.
15641 * dwarf2/leb.c: New file, from dwarf2read.c.
15642 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15643 Remove.
15644 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15645 (COMMON_SFILES): Add dwarf2/leb.c.
15646
15647 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15648
15649 GDB 9.1 released.
15650
15651 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15652
15653 PR gdb/25190:
15654 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15655 * gdb/remote.c (remote_console_output): Update.
15656 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15657 (ui_file_puts): ...this.
15658 * gdb/ui-file.h (ui_file_puts): Add declaration.
15659 * gdb/utils.c (emit_style_escape): Update.
15660 (flush_wrap_buffer): Update.
15661 (fputs_maybe_filtered): Update.
15662 (fputs_unfiltered): Add function.
15663
15664 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15665
15666 * gdb/event-loop.c (gdb_wait_for_event): Update.
15667 * gdb/printcmd.c (printf_command): Update.
15668 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15669 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15670 (gdb_os_flush_stderr): Update.
15671 * gdb/remote.c (remote_console_output): Update.
15672 * gdb/ui-file.c (gdb_flush): Rename to...
15673 (ui_file_flush): ...this.
15674 (stderr_file::write): Update.
15675 (stderr_file::puts): Update.
15676 * gdb/ui-file.h (gdb_flush): Rename to...
15677 (ui_file_flush): ...this.
15678 * gdb/utils.c (gdb_flush): Add function.
15679 * gdb/utils.h (gdb_flush): Add declaration.
15680
15681 2020-02-07 Tom Tromey <tromey@adacore.com>
15682
15683 PR breakpoints/24915:
15684 * source.c (find_and_open_source): Do not check basenames_may_differ.
15685
15686 2020-02-07 Tom Tromey <tom@tromey.com>
15687
15688 * README: Update gdbserver documentation.
15689 * gdbserver: Move to top level.
15690 * configure.tgt (build_gdbserver): Remove.
15691 * configure.ac: Remove --enable-gdbserver.
15692 * configure: Rebuild.
15693 * Makefile.in (distclean): Don't mention gdbserver.
15694
15695 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15696
15697 * source-cache.c (source_cache::ensure): Surround
15698 get_plain_source_lines with a try/catch.
15699 (source_cache::get_line_charpos): Get rid of try/catch
15700 and only check for the return value of "ensure".
15701 * tui/tui-source.c (tui_source_window::set_contents):
15702 Simplify "nlines" calculation.
15703
15704 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15705
15706 * MAINTAINERS (Write After Approval): Add myself.
15707
15708 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15709
15710 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15711 function call.
15712
15713 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15714
15715 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15716
15717 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15718
15719 * nat/riscv-linux-tdesc.h: New file.
15720 * nat/riscv-linux-tdesc.c: New file, taking code from...
15721 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15722 ... here.
15723 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15724 NATDEPFILES.
15725
15726 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15727
15728 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15729 we don't set the fake simulator ptid to the null_ptid.
15730
15731 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15732
15733 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15734 * gdbthread.h (class thread_info) <resumed>: Likewise.
15735 * infrun.c (resume_1): Likewise.
15736 (proceed): Likewise.
15737 (infrun_thread_stop_requested): Likewise.
15738 (stop_all_threads): Likewise.
15739 (handle_inferior_event): Likewise.
15740 (restart_threads): Likewise.
15741 (finish_step_over): Likewise.
15742 (keep_going_stepped_thread): Likewise.
15743 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15744 (linux_handle_extended_wait): Likewise.
15745 * record-btrace.c (get_thread_current_frame_id): Likewise.
15746 * record-full.c (record_full_wait_1): Likewise.
15747 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15748 * target.c (target_resume): Likewise.
15749 * thread.c (set_running_thread): Likewise.
15750
15751 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15752
15753 * f-valprint.c (f77_print_array_1): Changed datatype of index
15754 variable to LONGEST from int to enable it to contain bound
15755 values correctly.
15756
15757 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15758
15759 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15760 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15761 offsets according to FLEN determined.
15762 (riscv_linux_nat_target::read_description): Determine FLEN
15763 dynamically.
15764 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15765 according to FLEN determined.
15766 (riscv_linux_nat_target::store_registers): Likewise.
15767
15768 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15769
15770 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15771 when reg->group is empty and reggroup is not.
15772
15773 2020-01-31 Tom Tromey <tromey@adacore.com>
15774
15775 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15776 Call beneath target's mourn_inferior after unpushing.
15777
15778 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15779
15780 PR tui/9765
15781 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15782 have enough lines to fill the screen, still return the lowest
15783 address we found.
15784
15785 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15786
15787 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15788 '-', '<', and '>' commands.
15789
15790 2020-01-29 Pedro Alves <palves@redhat.com>
15791 Sergio Durigan Junior <sergiodj@redhat.com>
15792
15793 * infcmd.c (construct_inferior_arguments): Assert that
15794 'argc' is greater than 0.
15795
15796 2020-01-29 Luis Machado <luis.machado@linaro.org>
15797
15798 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15799 (BRK_INSN_MASK): Define to 0xd4200000.
15800 (aarch64_program_breakpoint_here_p): New function.
15801 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15802 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15803 breakpoint.c.
15804 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15805 breakpoint.h
15806 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15807 call gdbarch_program_breakpoint_here_p.
15808 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15809 default_program_breakpoint_here_p, changed return type to bool and
15810 simplified.
15811 * breakpoint.h (program_breakpoint_here): Moved prototype to
15812 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15813 return type to bool.
15814 * gdbarch.c: Regenerate.
15815 * gdbarch.h: Regenerate.
15816 * gdbarch.sh (program_breakpoint_here_p): New method.
15817 * infrun.c (handle_signal_stop): Call
15818 gdbarch_program_breakpoint_here_p.
15819
15820 2020-01-26 Tom Tromey <tom@tromey.com>
15821
15822 * ctfread.c (struct ctf_fp_info): Reindent.
15823 (_initialize_ctfread): Remove.
15824
15825 2020-01-26 Tom Tromey <tom@tromey.com>
15826
15827 * psymtab.c (partial_map_expand_apply)
15828 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15829 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15830 (psym_print_stats, psym_expand_symtabs_for_function)
15831 (psym_map_symbol_filenames, psym_map_matching_symbols)
15832 (psym_expand_symtabs_matching)
15833 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15834 (maintenance_check_psymtabs): Use new methods.
15835 * psympriv.h (struct partial_symtab) <readin_p,
15836 get_compunit_symtab>: New methods.
15837 <readin, compunit_symtab>: Remove members.
15838 (struct standard_psymtab): New.
15839 (struct legacy_psymtab): Derive from standard_psymtab.
15840 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15841 standard_psymtab.
15842 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15843
15844 2020-01-26 Tom Tromey <tom@tromey.com>
15845
15846 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15847 read_dependencies. Add assert.
15848 * psymtab.c (partial_symtab::read_dependencies): New method.
15849 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15850 method.
15851 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15852 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15853 read_dependencies.
15854 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15855 Add assert.
15856
15857 2020-01-26 Tom Tromey <tom@tromey.com>
15858
15859 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15860 Call expand_psymtab.
15861 (xcoff_read_symtab): Call expand_psymtab.
15862 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15863 legacy_expand_psymtab.
15864 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15865 method.
15866 (struct legacy_psymtab) <expand_psymtab>: Implement.
15867 <legacy_expand_psymtab>: New member.
15868 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15869 (parse_partial_symbols): Set legacy_expand_psymtab.
15870 (psymtab_to_symtab_1): Change argument order. Call
15871 expand_psymtab.
15872 (new_psymtab): Set legacy_expand_psymtab.
15873 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15874 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15875 expand_psymtab.
15876 (dwarf2_psymtab::expand_psymtab): Rename from
15877 psymtab_to_symtab_1. Call expand_psymtab.
15878 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15879 (dbx_end_psymtab): Likewise.
15880 (dbx_psymtab_to_symtab_1): Change argument order. Call
15881 expand_psymtab.
15882 (dbx_read_symtab): Call expand_psymtab.
15883 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15884 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15885 (ctf_psymtab::read_symtab): Call expand_psymtab.
15886
15887 2020-01-26 Tom Tromey <tom@tromey.com>
15888
15889 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15890 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15891 messages.
15892 * mdebugread.c (mdebug_read_symtab): Remove prints.
15893 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15894 assert.
15895 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15896
15897 2020-01-26 Tom Tromey <tom@tromey.com>
15898
15899 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15900 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15901 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15902 legacy_symtab.
15903 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15904 * psymtab.c (psymtab_to_symtab): Call method.
15905 (dump_psymtab): Update.
15906 * psympriv.h (struct partial_symtab): Add virtual destructor.
15907 <read_symtab>: New method.
15908 (struct legacy_symtab): New.
15909 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15910 (struct pst_map) <pst>: Now a legacy_psymtab.
15911 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15912 (new_psymtab): Use legacy_psymtab.
15913 * dwarf2read.h (struct dwarf2_psymtab): New.
15914 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15915 * dwarf2read.c (dwarf2_create_include_psymtab)
15916 (dwarf2_build_include_psymtabs, create_type_unit_group)
15917 (create_partial_symtab, process_psymtab_comp_unit_reader)
15918 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15919 (set_partial_user): Use dwarf2_psymtab.
15920 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15921 (psymtab_to_symtab_1, process_full_comp_unit)
15922 (process_full_type_unit, dwarf2_ranges_read)
15923 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15924 (dwarf_decode_lines): Use dwarf2_psymtab.
15925 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15926 (add_address_entry_worker, write_one_signatured_type)
15927 (recursively_count_psymbols, recursively_write_psymbols)
15928 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15929 (write_debug_names): Likewise.
15930 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15931 <pst>: Now a legacy_psymtab.
15932 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15933 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15934 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15935 * ctfread.c (struct ctf_psymtab): New.
15936 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15937 ctf_psymtab.
15938 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15939 (create_partial_symtab): Return a ctf_psymtab.
15940 (scan_partial_symbols): Update.
15941
15942 2020-01-26 Tom Tromey <tom@tromey.com>
15943
15944 * xcoffread.c (xcoff_start_psymtab): Use new.
15945 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15946 renamed from start_psymtab_common.
15947 * psympriv.h (struct partial_symtab): Add new constructor.
15948 (start_psymtab_common): Don't declare.
15949 * mdebugread.c (parse_partial_symbols): Use new.
15950 * dwarf2read.c (create_partial_symtab): Use new.
15951 * dbxread.c (start_psymtab): Use new.
15952 * ctfread.c (create_partial_symtab): Use new.
15953
15954 2020-01-26 Tom Tromey <tom@tromey.com>
15955
15956 * xcoffread.c (xcoff_end_psymtab): Use new.
15957 * psymtab.c (start_psymtab_common): Use new.
15958 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15959 Update.
15960 * psympriv.h (struct partial_symtab): Add parameters to
15961 constructor. Don't inline.
15962 (allocate_psymtab): Don't declare.
15963 * mdebugread.c (new_psymtab): Use new.
15964 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15965 * dbxread.c (dbx_end_psymtab): Use new.
15966
15967 2020-01-26 Tom Tromey <tom@tromey.com>
15968
15969 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15970 allocate_psymtab. Update documentation.
15971 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15972 allocate_psymtab. Do not use new.
15973 (allocate_psymtab): Use new. Update.
15974
15975 2020-01-26 Tom Tromey <tom@tromey.com>
15976
15977 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15978 * psymtab.c (psym_print_stats): Update.
15979 * psympriv.h (struct partial_symtab) <readin,
15980 psymtabs_addrmap_supported, anonymous>: Now bool.
15981 * mdebugread.c (psymtab_to_symtab_1): Update.
15982 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15983 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15984 (process_full_comp_unit, process_full_type_unit): Update.
15985 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15986 * ctfread.c (psymtab_to_symtab): Update.
15987
15988 2020-01-26 Tom Tromey <tom@tromey.com>
15989
15990 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15991 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15992 * psymtab.c (psymtab_storage): Delete psymtabs.
15993 (psymtab_storage::allocate_psymtab): Use new.
15994 (psymtab_storage::discard_psymtab): Use delete.
15995 * psympriv.h (struct partial_symtab): Add constructor and
15996 initializers.
15997
15998 2020-01-26 Tom Tromey <tom@tromey.com>
15999
16000 * machoread.c: Do not include psympriv.h.
16001
16002 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16003
16004 * NEWS: Mention the new option and the set/show commands.
16005
16006 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16007
16008 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16009 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16010 (validate_exec_file): New variables, enums, functions.
16011 (exec_file_locate_attach, print_section_info): Style the filenames.
16012 (_initialize_exec): Install show_exec_file_mismatch_command and
16013 set_exec_file_mismatch_command.
16014 * gdbcore.h (validate_exec_file): Declare.
16015 * infcmd.c (attach_command): Call validate_exec_file.
16016 * remote.c ( remote_target::remote_add_inferior): Likewise.
16017
16018 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16019
16020 * frame.c (find_frame_sal): Move call to get_next_frame into more
16021 inner scope.
16022 * inline-frame.c (inilne_state) <inline_state>: Update argument
16023 types.
16024 (inilne_state) <skipped_symbol>: Rename to...
16025 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16026 (skip_inline_frames): Build vector of skipped symbols and use this
16027 to reate the inline_state.
16028 (inline_skipped_symbol): Add a comment and some assertions, fetch
16029 skipped symbol from the list.
16030
16031 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16032
16033 * buildsym.c (lte_is_less_than): Delete.
16034 (buildsym_compunit::end_symtab_with_blockvector): Create local
16035 lambda function to sort line table entries, and use
16036 std::stable_sort instead of std::sort.
16037 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16038 markers when looking for a previous line.
16039
16040 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16041
16042 * dwarf2read.c (lnp_state_machine::record_line): Include
16043 end_sequence parameter in debug print out. Record the line if we
16044 are at an end_sequence marker even if it's not the start of a
16045 statement.
16046 * symmisc.c (maintenance_print_one_line_table): Print end of
16047 sequence markers with 'END' not '0'.
16048
16049 2020-01-24 Pedro Alves <palves@redhat.com>
16050
16051 PR gdb/25410
16052 * thread.c (scoped_restore_current_thread::restore): Use
16053 switch_to_inferior_no_thread.
16054 * exec.c: Include "progspace-and-thread.h".
16055 (add_target_sections, remove_target_sections):
16056 scoped_restore_current_pspace_and_thread instead of
16057 scoped_restore_current_thread.
16058 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16059 and aspace to the inferior before calling clone_program_space.
16060 Remove stale comment.
16061
16062 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16063
16064 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16065 (arm_netbsd_nat_target::fetch_registers): ...this.
16066 (arm_nbsd_nat_target::store_registers): Rename to...
16067 (arm_netbsd_nat_target::store_registers): ...this.
16068
16069 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16070
16071 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16072 register_t.
16073
16074 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16075
16076 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16077 Update comment.
16078 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16079 Likewise.
16080 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16081 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16082 the correct replacement (iterate_over_regset_sections).
16083 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16084 Update comment.
16085
16086 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16087
16088 PR gdb/23718
16089 * gdb/python/python.c (execute_gdb_command): Call
16090 async_enable_stdin in catch block.
16091
16092 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16093
16094 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16095 SWITCH_THRU_ALL_UIS.
16096
16097 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16098
16099 PR tui/9765
16100 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16101 comment, add extra parameter, and update to store previous symbol
16102 when appropriate.
16103 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16104 add extra parameter.
16105 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16106 remove unneeded parameter, add try/catch around gdb_print_insn,
16107 rewrite to add items to asm_lines vector.
16108 (tui_find_backward_disassembly_start_address): New function.
16109 (tui_find_disassembly_address): Updated throughout.
16110 (tui_disasm_window::set_contents): Update for changes to
16111 tui_disassemble.
16112 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16113 number of lines to scroll.
16114
16115 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16116
16117 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16118 (SECT_OFF_DATA): Likewise.
16119 (SECT_OFF_RODATA): Likewise.
16120 (SECT_OFF_TEXT): Likewise.
16121 (SECT_OFF_BSS): Likewise.
16122 (struct objfile) <text_section_offset, data_section_offset>: New
16123 methods.
16124 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16125 objfile::text_section_offset.
16126 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16127 * coffread.c (coff_symtab_read): Likewise.
16128 (enter_linenos): Likewise.
16129 (process_coff_symbol): Likewise.
16130 * ctfread.c (get_objfile_text_range): Likewise.
16131 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16132 Use objfile::data_section_offset.
16133 * dwarf2-frame.c (execute_cfa_program): Use
16134 objfile::text_section_offset.
16135 (dwarf2_frame_find_fde): Likewise.
16136 * dwarf2read.c (create_addrmap_from_index): Likewise.
16137 (create_addrmap_from_aranges): Likewise.
16138 (dw2_find_pc_sect_compunit_symtab): Likewise.
16139 (process_psymtab_comp_unit_reader): Likewise.
16140 (add_partial_symbol): Likewise.
16141 (add_partial_subprogram): Likewise.
16142 (process_full_comp_unit): Likewise.
16143 (read_file_scope): Likewise.
16144 (read_func_scope): Likewise.
16145 (read_lexical_block_scope): Likewise.
16146 (read_call_site_scope): Likewise.
16147 (dwarf2_rnglists_process): Likewise.
16148 (dwarf2_ranges_process): Likewise.
16149 (dwarf2_ranges_read): Likewise.
16150 (dwarf_decode_lines_1): Likewise.
16151 (new_symbol): Likewise.
16152 (dwarf2_fetch_die_loc_sect_off): Likewise.
16153 (dwarf2_per_cu_text_offset): Likewise.
16154 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16155 * hppa-tdep.c (read_unwind_info): Likewise.
16156 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16157 * psympriv.h (struct partial_symtab): Likewise.
16158 * psymtab.c (find_pc_sect_psymtab): Likewise.
16159 * solib-svr4.c (enable_break): Likewise.
16160 * stap-probe.c (relocate_address): Use
16161 objfile::data_section_offset.
16162 * xcoffread.c (enter_line_range): Use
16163 objfile::text_section_offset.
16164 (read_xcoff_symtab): Likewise.
16165
16166 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16167
16168 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16169 declaration to narrower scopes.
16170
16171 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16172
16173 * darwin-nat.h (struct darwin_exception_msg, enum
16174 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16175 Move up.
16176 (class darwin_nat_target) <wait_1, check_new_threads,
16177 decode_exception_message, decode_message, stop_inferior,
16178 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16179 * darwin-nat.c (darwin_check_new_threads): Rename to...
16180 (darwin_nat_target::check_new_threads): ... this.
16181 (darwin_suspend_inferior_it): Remove.
16182 (darwin_decode_exception_message): Rename to...
16183 (darwin_nat_target::decode_exception_message): ... this.
16184 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16185 (darwin_decode_message): Rename to...
16186 (darwin_nat_target::decode_message): ... this.
16187 (cancel_breakpoint): Rename to...
16188 (darwin_nat_target::cancel_breakpoint): ... this.
16189 (darwin_wait): Rename to...
16190 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16191 instead of iterate_over_inferiors.
16192 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16193 (darwin_stop_inferior): Rename to...
16194 (darwin_nat_target::stop_inferior): ... this.
16195 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16196 (darwin_init_thread_list): Rename to...
16197 (darwin_nat_target::init_thread_list): ... this.
16198 (darwin_ptrace_him): Rename to...
16199 (darwin_nat_target::ptrace_him): ... this.
16200 (darwin_nat_target::create_inferior): Pass lambda function to
16201 fork_inferior.
16202 (darwin_nat_target::detach): Call stop_inferior instead of
16203 darwin_stop_inferior.
16204 * fork-inferior.h (fork_inferior): Change init_trace_fun
16205 parameter to gdb::function_view.
16206 * fork-inferior.c (fork_inferior): Likewise.
16207
16208 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16209
16210 * i386-cygwin-tdep.c (core_process_module_section): Update.
16211 * windows-nat.c (struct lm_info_windows): Add text_offset.
16212 (windows_xfer_shared_libraries): Update.
16213 * windows-tdep.c (windows_xfer_shared_library):
16214 Add text_offset_cached argument.
16215 * windows-tdep.h (windows_xfer_shared_library): Update.
16216
16217 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16218
16219 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16220
16221 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16222
16223 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16224 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16225 replace with range-based for.
16226 (gdbsim_interrupt_inferior): Remove.
16227 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16228 with a range-based for. Inline code from
16229 gdbsim_interrupt_inferior.
16230
16231 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16232
16233 * infrun.c (proceed): Fix indentation.
16234
16235 2020-01-21 Tom Tromey <tromey@adacore.com>
16236
16237 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16238 * python/python.c (python_extension_ops): Update.
16239 (gdbpy_colorize): New function.
16240 * python/lib/gdb/__init__.py (colorize): New function.
16241 * extension.h (ext_lang_colorize): Declare.
16242 * extension.c (ext_lang_colorize): New function.
16243 * extension-priv.h (struct extension_language_ops) <colorize>: New
16244 member.
16245 * cli/cli-style.c (_initialize_cli_style): Update help text.
16246
16247 2020-01-21 Luis Machado <luis.machado@linaro.org>
16248
16249 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16250 <cond>: Change type to bool.
16251 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16252 (aarch64_displaced_step_cb): Likewise.
16253 (aarch64_displaced_step_tb): Likewise.
16254
16255 2020-01-21 Luis Machado <luis.machado@linaro.org>
16256
16257 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16258 output.
16259
16260 2020-01-21 Luis Machado <luis.machado@linaro.org>
16261
16262 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16263 <pc_adjust>: Adjust the documentation.
16264 (aarch64_displaced_step_fixup): Check if PC really moved before
16265 adjusting it.
16266
16267 2020-01-19 Tom Tromey <tom@tromey.com>
16268
16269 * disasm.c (~gdb_disassembler): New destructor.
16270 (gdb_buffered_insn_length): Call disassemble_free_target.
16271 * disasm.h (class gdb_disassembler): Declare destructor. Use
16272 DISABLE_COPY_AND_ASSIGN.
16273
16274 2020-01-19 Tom Tromey <tom@tromey.com>
16275
16276 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16277 (die_reader_func_ftype): Remove.
16278 (cutu_reader): New class.
16279 (dw2_get_file_names_reader): Remove "data" parameter.
16280 (dw2_get_file_names): Use cutu_reader.
16281 (create_debug_type_hash_table): Update.
16282 (read_cutu_die_from_dwo): Update comment.
16283 (lookup_dwo_unit): Add dwo_name parameter.
16284 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16285 die_reader_func_ftype and data parameters.
16286 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16287 Remove die_reader_func_ftype and data parameters.
16288 (~cutu_reader): New; from init_cutu_and_read_dies.
16289 (cutu_reader::cutu_reader): Rename from
16290 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16291 and data parameters.
16292 (init_cutu_and_read_dies_simple): Remove.
16293 (struct process_psymtab_comp_unit_data): Remove.
16294 (process_psymtab_comp_unit_reader): Remove data parameter; add
16295 want_partial_unit and pretend_language parameters.
16296 (process_psymtab_comp_unit): Use cutu_reader.
16297 (build_type_psymtabs_reader): Remove data parameter.
16298 (build_type_psymtabs_1): Use cutu_reader.
16299 (process_skeletonless_type_unit): Likewise.
16300 (load_partial_comp_unit_reader): Remove.
16301 (load_partial_comp_unit): Use cutu_reader.
16302 (load_full_comp_unit_reader): Remove.
16303 (load_full_comp_unit): Use cutu_reader.
16304 (struct create_dwo_cu_data): Remove.
16305 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16306 dwo_unit parameters.
16307 (create_cus_hash_table): Use cutu_reader.
16308 (struct dwarf2_read_addr_index_data): Remove.
16309 (dwarf2_read_addr_index_reader): Remove.
16310 (dwarf2_read_addr_index): Use cutu_reader.
16311 (read_signatured_type_reader): Remove.
16312 (read_signatured_type): Use cutu_reader.
16313
16314 2020-01-19 Tom Tromey <tom@tromey.com>
16315
16316 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16317 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16318 (tui_wrefresh): Declare.
16319 * tui/tui-wingeneral.c (suppress_output): New global.
16320 (tui_suppress_output, ~tui_suppress_output): New constructor and
16321 destructor.
16322 (tui_wrefresh): New function.
16323 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16324 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16325 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16326 method.
16327 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16328 tui_wrefresh.
16329 (tui_data_window::no_refresh): New method.
16330 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16331 (tui_reg_command): Use tui_suppress_output
16332 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16333 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16334 method.
16335 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16336
16337 2020-01-19 Tom Tromey <tom@tromey.com>
16338
16339 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16340 Handle case where symtab is null.
16341
16342 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16343
16344 * linux-fork.c (one_fork_p): Simplify.
16345
16346 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16347
16348 * top.c (struct qt_args): Remove.
16349 (kill_or_detach): Change return type to void, replace `void *`
16350 parameter with a proper one.
16351 (print_inferior_quit_action): Likewise.
16352 (quit_confirm): Use range-based for loop to iterate over inferiors.
16353 (quit_force): Likewise.
16354
16355 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16356
16357 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16358 `void *` parameter with proper parameters.
16359 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16360 (print_one_inferior): Change return type to void, replace `void *`
16361 parameter with proper parameters.
16362 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16363 inferiors.
16364 (get_other_inferior): Remove.
16365 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16366 inferiors.
16367
16368 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16369
16370 * mi/mi-interp.c (report_initial_inferior): Remove.
16371 (mi_interp::init): Use range-based for to iterate over inferiors.
16372
16373 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16374
16375 * python/py-inferior.c (build_inferior_list): Remove.
16376 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16377
16378 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16379
16380 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16381 (btrace_stitch_trace): Likewise.
16382 * charset.c (intermediate_encoding): Likewise (vaild).
16383 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16384 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16385 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16386
16387 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16388
16389 * windows-tdep.c (windows_get_tlb_type):
16390 Add rtl_user_process_parameters type.
16391
16392 2020-01-16 Pedro Alves <palves@redhat.com>
16393 Norbert Lange <nolange79@gmail.com>
16394
16395 PR build/24805
16396 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16397 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16398 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16399 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16400 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16401 (ps_plog): Redeclare exported functions with default visibility.
16402
16403 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16404
16405 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16406 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16407
16408 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16409
16410 * infcmd.c (post_create_inferior): Use get_thread_regcache
16411 instead of get_current_regcache.
16412
16413 2020-01-14 Tom Tromey <tom@tromey.com>
16414
16415 PR symtab/12535:
16416 * python/python.c (gdbpy_decode_line): Treat empty string the same
16417 as no argument.
16418
16419 2020-01-14 Tom Tromey <tom@tromey.com>
16420
16421 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16422
16423 2020-01-14 Tom Tromey <tom@tromey.com>
16424
16425 * nat/linux-btrace.c: Don't include <config.h>.
16426 * nat/linux-ptrace.c: Don't include <config.h>.
16427 * nat/x86-linux-dregs.c: Don't include <config.h>.
16428
16429 2020-01-14 Tom Tromey <tom@tromey.com>
16430
16431 * configure: Rebuild.
16432 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16433
16434 2020-01-14 Tom Tromey <tom@tromey.com>
16435
16436 * nat/x86-linux-dregs.c: Include configh.h.
16437 * nat/linux-ptrace.c: Include configh.h.
16438 * nat/linux-btrace.c: Include configh.h.
16439 * defs.h: Include config.h, bfd.h.
16440 * configure.ac: Don't source common.host.
16441 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16442 * configure: Rebuild.
16443 * acinclude.m4: Update path.
16444 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16445 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16446 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16447 (CLIBS): Add LIBSUPPORT.
16448 (CDEPS): Likewise.
16449 (COMMON_SFILES): Remove gdbsupport files.
16450 (HFILES_NO_SRCDIR): Likewise.
16451 (stamp-version): Update path to create-version.sh.
16452 (ALLDEPFILES): Remove gdbsupport files.
16453
16454 2020-01-14 Tom Tromey <tom@tromey.com>
16455
16456 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16457 USE_WIN32API when needed.
16458 * configure.ac (USE_WIN32API): Don't define.
16459 (WIN32LIBS): Use WIN32APILIBS.
16460 * configure: Rebuild.
16461
16462 2020-01-14 Tom Tromey <tom@tromey.com>
16463
16464 * configure: Rebuild.
16465 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16466
16467 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16468
16469 * skip.c (skip_function_command): Make skip w/o arguments use the
16470 name of the inlined function if pc is inside any inlined function.
16471
16472 2020-01-14 Luis Machado <luis.machado@linaro.org>
16473
16474 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16475 * infrun.c (resume_1): Likewise.
16476 (handle_inferior_event): Remove stale comment.
16477 * linux-nat.c (linux_nat_target::resume): Update comments.
16478 (save_stop_reason): Likewise.
16479 (linux_nat_filter_event): Likewise.
16480 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16481
16482 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16483
16484 * elfread.c (record_minimal_symbol): Set section index to 0 for
16485 non-allocatable sections.
16486
16487
16488 2020-01-13 Ali Tamur <tamur@google.com>
16489
16490 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16491 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16492 to gdb::optional. Update comments.
16493 (dwo_file): Update comments.
16494 (read_attribute): Update API to take an additional out parameter,
16495 need_reprocess. This is used to mark attributes that need other
16496 attributes (e.g. str_offsets_base) for correct computation which may not
16497 have been read yet.
16498 (read_attribute_reprocess): New function declaration.
16499 (read_addr_index): Likewise.
16500 (read_dwo_str_index): Likewise.
16501 (read_stub_str_index): Likewise.
16502 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16503 (lookup_addr_base): New function definition.
16504 (lookup_ranges_base): Likewise.
16505 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16506 lookup_ranges_base.
16507 (init_cutu_and_read_dies): Update comments.
16508 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16509 unit. This is used to inherit parent's str_offsets_base and addr_base.
16510 Update comments.
16511 (init_cutu_and_read_dies_simple): Reflect API changes.
16512 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16513 (create_cus_hash_table): Change API to take parent compile unit.
16514 Reflect API changes.
16515 (open_and_init_dwo_file): Reflect API changes.
16516 (dwarf2_get_pc_bounds): Update comments.
16517 (dwarf2_record_block_ranges): Likewise.
16518 (read_full_die_1): Change implementation to reprocess attributes that
16519 need str_offsets_base and addr_base.
16520 (partial_die_info::read): Likewise.
16521 (read_attribute_reprocess): New function definition.
16522 (read_attribute_value): Change API to take an additional out parameter,
16523 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16524 when a non-dwo compile unit has index based attributes.
16525 (read_attribute): Reflect API changes.
16526 (read_addr_index_1): Reflect API changes. Update comments.
16527 (dwarf2_read_addr_index_data): Reflect API changes.
16528 (dwarf2_read_addr_index): Likewise.
16529 (read_str_index): Change API and implementation. This becomes a helper
16530 to be used by the new string index related methods. Update error
16531 message and comments.
16532 (read_dwo_str_index): New function definition.
16533 (read_stub_str_index): Likewise.
16534 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16535 * symfile.h (dwarf2_debug_sections): Likewise.
16536 * xcoffread.c (dwarf2_debug_sections): Likewise.
16537
16538 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16539
16540 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16541 core_reg_sect type to gdb_byte *.
16542 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16543 * cris-tdep.c (fetch_core_registers): Likewise.
16544 * corelow.c (core_target::get_core_register_section): Change
16545 type of `contents` to gdb::byte_vector.
16546
16547 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16548
16549 * tui/tui-wingeneral.c (box_win): Position the title in the center
16550 of the border.
16551
16552 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16553
16554 * corelow.c (core_target::get_core_register_section): Use
16555 std::vector instead of alloca.
16556
16557 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16558
16559 * warning.m4: Add -Wmissing-declarations to build_warnings.
16560 * configure: Re-generate.
16561
16562 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16563
16564 * python/python.c (init__gdb_module): Add declaration.
16565
16566 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16567
16568 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16569 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16570 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16571 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16572 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16573 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16574 * ada-exp.y (_initialize_ada_exp): Add declaration.
16575 * ada-lang.c (_initialize_ada_language): Add declaration.
16576 * ada-tasks.c (_initialize_tasks): Add declaration.
16577 * agent.c (_initialize_agent): Add declaration.
16578 * aix-thread.c (_initialize_aix_thread): Add declaration.
16579 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16580 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16581 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16582 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16583 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16584 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16585 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16586 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16587 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16588 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16589 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16590 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16591 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16592 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16593 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16594 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16595 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16596 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16597 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16598 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16599 * annotate.c (_initialize_annotate): Add declaration.
16600 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16601 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16602 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16603 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16604 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16605 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16606 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16607 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16608 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16609 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16610 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16611 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16612 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16613 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16614 * auto-load.c (_initialize_auto_load): Add declaration.
16615 * auxv.c (_initialize_auxv): Add declaration.
16616 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16617 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16618 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16619 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16620 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16621 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16622 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16623 * breakpoint.c (_initialize_breakpoint): Add declaration.
16624 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16625 * btrace.c (_initialize_btrace): Add declaration.
16626 * charset.c (_initialize_charset): Add declaration.
16627 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16628 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16629 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16630 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16631 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16632 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16633 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16634 * coffread.c (_initialize_coffread): Add declaration.
16635 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16636 * compile/compile.c (_initialize_compile): Add declaration.
16637 * complaints.c (_initialize_complaints): Add declaration.
16638 * completer.c (_initialize_completer): Add declaration.
16639 * copying.c (_initialize_copying): Add declaration.
16640 * corefile.c (_initialize_core): Add declaration.
16641 * corelow.c (_initialize_corelow): Add declaration.
16642 * cp-abi.c (_initialize_cp_abi): Add declaration.
16643 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16644 * cp-support.c (_initialize_cp_support): Add declaration.
16645 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16646 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16647 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16648 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16649 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16650 * ctfread.c (_initialize_ctfread): Add declaration.
16651 * d-lang.c (_initialize_d_language): Add declaration.
16652 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16653 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16654 * dbxread.c (_initialize_dbxread): Add declaration.
16655 * dcache.c (_initialize_dcache): Add declaration.
16656 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16657 * disasm.c (_initialize_disasm): Add declaration.
16658 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16659 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16660 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16661 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16662 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16663 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16664 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16665 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16666 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16667 * elfread.c (_initialize_elfread): Add declaration.
16668 * exec.c (_initialize_exec): Add declaration.
16669 * extension.c (_initialize_extension): Add declaration.
16670 * f-lang.c (_initialize_f_language): Add declaration.
16671 * f-valprint.c (_initialize_f_valprint): Add declaration.
16672 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16673 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16674 * filesystem.c (_initialize_filesystem): Add declaration.
16675 * findcmd.c (_initialize_mem_search): Add declaration.
16676 * findvar.c (_initialize_findvar): Add declaration.
16677 * fork-child.c (_initialize_fork_child): Add declaration.
16678 * frame-base.c (_initialize_frame_base): Add declaration.
16679 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16680 * frame.c (_initialize_frame): Add declaration.
16681 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16682 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16683 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16684 * gcore.c (_initialize_gcore): Add declaration.
16685 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16686 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16687 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16688 * gdbarch.c (_initialize_gdbarch): Add declaration.
16689 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16690 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16691 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16692 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16693 * go-lang.c (_initialize_go_language): Add declaration.
16694 * go32-nat.c (_initialize_go32_nat): Add declaration.
16695 * guile/guile.c (_initialize_guile): Add declaration.
16696 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16697 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16698 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16699 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16700 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16701 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16702 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16703 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16704 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16705 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16706 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16707 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16708 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16709 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16710 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16711 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16712 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16713 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16714 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16715 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16716 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16717 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16718 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16719 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16720 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16721 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16722 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16723 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16724 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16725 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16726 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16727 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16728 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16729 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16730 * infcall.c (_initialize_infcall): Add declaration.
16731 * infcmd.c (_initialize_infcmd): Add declaration.
16732 * inflow.c (_initialize_inflow): Add declaration.
16733 * infrun.c (_initialize_infrun): Add declaration.
16734 * interps.c (_initialize_interpreter): Add declaration.
16735 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16736 * jit.c (_initialize_jit): Add declaration.
16737 * language.c (_initialize_language): Add declaration.
16738 * linux-fork.c (_initialize_linux_fork): Add declaration.
16739 * linux-nat.c (_initialize_linux_nat): Add declaration.
16740 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16741 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16742 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16743 * m2-lang.c (_initialize_m2_language): Add declaration.
16744 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16745 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16746 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16747 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16748 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16749 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16750 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16751 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16752 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16753 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16754 * machoread.c (_initialize_machoread): Add declaration.
16755 * macrocmd.c (_initialize_macrocmd): Add declaration.
16756 * macroscope.c (_initialize_macroscope): Add declaration.
16757 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16758 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16759 * maint.c (_initialize_maint_cmds): Add declaration.
16760 * mdebugread.c (_initialize_mdebugread): Add declaration.
16761 * memattr.c (_initialize_mem): Add declaration.
16762 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16763 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16764 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16765 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16766 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16767 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16768 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16769 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16770 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16771 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16772 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16773 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16774 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16775 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16776 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16777 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16778 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16779 * mipsread.c (_initialize_mipsread): Add declaration.
16780 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16781 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16782 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16783 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16784 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16785 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16786 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16787 * nto-procfs.c (_initialize_procfs): Add declaration.
16788 * objc-lang.c (_initialize_objc_language): Add declaration.
16789 * observable.c (_initialize_observer): Add declaration.
16790 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16791 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16792 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16793 * osabi.c (_initialize_gdb_osabi): Add declaration.
16794 * osdata.c (_initialize_osdata): Add declaration.
16795 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16796 * parse.c (_initialize_parse): Add declaration.
16797 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16798 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16799 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16800 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16801 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16802 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16803 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16804 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16805 * printcmd.c (_initialize_printcmd): Add declaration.
16806 * probe.c (_initialize_probe): Add declaration.
16807 * proc-api.c (_initialize_proc_api): Add declaration.
16808 * proc-events.c (_initialize_proc_events): Add declaration.
16809 * proc-service.c (_initialize_proc_service): Add declaration.
16810 * procfs.c (_initialize_procfs): Add declaration.
16811 * producer.c (_initialize_producer): Add declaration.
16812 * psymtab.c (_initialize_psymtab): Add declaration.
16813 * python/python.c (_initialize_python): Add declaration.
16814 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16815 * record-btrace.c (_initialize_record_btrace): Add declaration.
16816 * record-full.c (_initialize_record_full): Add declaration.
16817 * record.c (_initialize_record): Add declaration.
16818 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16819 * regcache.c (_initialize_regcache): Add declaration.
16820 * reggroups.c (_initialize_reggroup): Add declaration.
16821 * remote-notif.c (_initialize_notif): Add declaration.
16822 * remote-sim.c (_initialize_remote_sim): Add declaration.
16823 * remote.c (_initialize_remote): Add declaration.
16824 * reverse.c (_initialize_reverse): Add declaration.
16825 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16826 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16827 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16828 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16829 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16830 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16831 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16832 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16833 Add declaration.
16834 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16835 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16836 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16837 * rust-exp.y (_initialize_rust_exp): Add declaration.
16838 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16839 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16840 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16841 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16842 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16843 * score-tdep.c (_initialize_score_tdep): Add declaration.
16844 * ser-go32.c (_initialize_ser_dos): Add declaration.
16845 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16846 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16847 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16848 * ser-uds.c (_initialize_ser_socket): Add declaration.
16849 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16850 * serial.c (_initialize_serial): Add declaration.
16851 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16852 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16853 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16854 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16855 * skip.c (_initialize_step_skip): Add declaration.
16856 * sol-thread.c (_initialize_sol_thread): Add declaration.
16857 * solib-aix.c (_initialize_solib_aix): Add declaration.
16858 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16859 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16860 * solib-frv.c (_initialize_frv_solib): Add declaration.
16861 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16862 * solib-target.c (_initialize_solib_target): Add declaration.
16863 * solib.c (_initialize_solib): Add declaration.
16864 * source-cache.c (_initialize_source_cache): Add declaration.
16865 * source.c (_initialize_source): Add declaration.
16866 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16867 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16868 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16869 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16870 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16871 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16872 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16873 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16874 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16875 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16876 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16877 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16878 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16879 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16880 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16881 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16882 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16883 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16884 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16885 * stabsread.c (_initialize_stabsread): Add declaration.
16886 * stack.c (_initialize_stack): Add declaration.
16887 * stap-probe.c (_initialize_stap_probe): Add declaration.
16888 * std-regs.c (_initialize_frame_reg): Add declaration.
16889 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16890 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16891 * symfile.c (_initialize_symfile): Add declaration.
16892 * symmisc.c (_initialize_symmisc): Add declaration.
16893 * symtab.c (_initialize_symtab): Add declaration.
16894 * target.c (_initialize_target): Add declaration.
16895 * target-connection.c (_initialize_target_connection): Add
16896 declaration.
16897 * target-dcache.c (_initialize_target_dcache): Add declaration.
16898 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16899 * thread.c (_initialize_thread): Add declaration.
16900 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16901 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16902 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16903 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16904 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16905 * tracectf.c (_initialize_ctf): Add declaration.
16906 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16907 * tracefile.c (_initialize_tracefile): Add declaration.
16908 * tracepoint.c (_initialize_tracepoint): Add declaration.
16909 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16910 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16911 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16912 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16913 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16914 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16915 * tui/tui.c (_initialize_tui): Add declaration.
16916 * typeprint.c (_initialize_typeprint): Add declaration.
16917 * ui-style.c (_initialize_ui_style): Add declaration.
16918 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16919 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16920 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16921 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16922 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16923 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16924 * unittests/filtered_iterator-selftests.c
16925 (_initialize_filtered_iterator_selftests): Add declaration.
16926 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16927 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16928 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16929 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16930 * unittests/main-thread-selftests.c
16931 (_initialize_main_thread_selftests): Add declaration.
16932 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16933 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16934 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16935 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16936 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16937 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16938 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16939 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16940 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16941 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16942 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16943 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16944 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16945 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16946 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16947 declaration.
16948 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16949 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16950 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16951 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16952 * user-regs.c (_initialize_user_regs): Add declaration.
16953 * utils.c (_initialize_utils): Add declaration.
16954 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16955 * valops.c (_initialize_valops): Add declaration.
16956 * valprint.c (_initialize_valprint): Add declaration.
16957 * value.c (_initialize_values): Add declaration.
16958 * varobj.c (_initialize_varobj): Add declaration.
16959 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16960 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16961 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16962 * windows-nat.c (_initialize_windows_nat): Add declaration.
16963 (_initialize_check_for_gdb_ini): Add declaration.
16964 (_initialize_loadable): Add declaration.
16965 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16966 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16967 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16968 * xcoffread.c (_initialize_xcoffread): Add declaration.
16969 * xml-support.c (_initialize_xml_support): Add declaration.
16970 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16971 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16972 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16973 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16974
16975 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16976
16977 * regformats/regdat.sh: Generate declaration for init function.
16978
16979 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16980
16981 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16982 up.
16983 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16984 close_one_inferior>: New methods.
16985 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16986 pass down target to find_inferior_pid.
16987 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16988 Pass down target to find_inferior_ptid.
16989 (gdbsim_target::create_inferior): Pass down target to
16990 add_thread_silent.
16991 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16992 target down to find_inferior_ptid and switch_to_thread.
16993 (gdbsim_target::close): Update to call close_one_inferior.
16994 (struct resume_data): Remove.
16995 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16996 directly, rather than through a void pointer.
16997 (gdbsim_target::resume): Update to call resume_one_inferior.
16998
16999 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17000
17001 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17002
17003 2020-01-12 Pedro Alves <palves@redhat.com>
17004
17005 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17006 directly for the current inferior instead of
17007 discard_all_inferiors.
17008 (discard_all_inferiors): Delete.
17009
17010 2020-01-11 Tom Tromey <tom@tromey.com>
17011
17012 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17013 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17014 deprecated_safe_get_selected_frame.
17015
17016 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17017
17018 * inferior.c (print_inferior): Switch inferior before printing it.
17019
17020 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17021 Pedro Alves <palves@redhat.com>
17022
17023 * progspace-and-thread.c (switch_to_program_space_and_thread):
17024 Assert there's an inferior for PSPACE. Use
17025 switch_to_inferior_no_thread to switch the inferior too.
17026 * progspace.c (program_space::~program_space): Call
17027 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17028 (program_space::free_all_objfiles): Don't call clear_symtab_users
17029 here.
17030 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17031
17032 2020-01-10 Pedro Alves <palves@redhat.com>
17033
17034 * NEWS: Mention multi-target debugging, "info connections", and
17035 "add-inferior -no-connection".
17036
17037 2020-01-10 Pedro Alves <palves@redhat.com>
17038
17039 * infrun.c: Include "target-connection.h".
17040 (check_multi_target_resumption): New.
17041 (proceed): Call it.
17042 * target-connection.c (make_target_connection_string): Make
17043 extern.
17044 * target-connection.h (make_target_connection_string): Declare.
17045
17046 2020-01-10 Pedro Alves <palves@redhat.com>
17047
17048 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17049 * inferior.c (uiout_field_connection): New function.
17050 (print_inferior): Add new "connection-id" column.
17051 (add_inferior_command): Show connection number/string of added
17052 inferior.
17053 * process-stratum-target.h
17054 (process_stratum_target::connection_string): New virtual method.
17055 (process_stratum_target::connection_number): New field.
17056 * remote.c (remote_target::connection_string): New override.
17057 * target-connection.c: New file.
17058 * target-connection.h: New file.
17059 * target.c (decref_target): Remove process_stratum targets from
17060 the connection list.
17061 (target_stack::push): Add process_stratum targets to the
17062 connection list.
17063
17064 2020-01-10 Pedro Alves <palves@redhat.com>
17065
17066 Revert:
17067 2016-04-12 Pedro Alves <palves@redhat.com>
17068 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17069 Remove references to name.
17070 * serial.h (struct serial) <name>: Delete.
17071
17072 2020-01-10 Pedro Alves <palves@redhat.com>
17073
17074 * gdbarch-selftests.c (register_to_value_test): Remove "target
17075 already pushed" check.
17076
17077 2020-01-10 Pedro Alves <palves@redhat.com>
17078 John Baldwin <jhb@FreeBSD.org>
17079
17080 * aarch64-linux-nat.c
17081 (aarch64_linux_nat_target::thread_architecture): Adjust.
17082 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17083 (task_command_1): Likewise.
17084 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17085 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17086 (aix_thread_target::store_registers)
17087 (aix_thread_target::thread_alive): Adjust.
17088 * amd64-fbsd-tdep.c: Include "inferior.h".
17089 (amd64fbsd_get_thread_local_address): Pass down target.
17090 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17091 thread's gdbarch instead of target_gdbarch.
17092 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17093 get_last_target_status.
17094 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17095 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17096 inferiors.
17097 (update_inserted_breakpoint_locations): Skip if inferiors with no
17098 execution.
17099 (update_global_location_list): When handling moribund locations,
17100 find representative inferior for location's pspace, and use thread
17101 count of its process_stratum target.
17102 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17103 * bsd-uthread.c (bsd_uthread_target::wait): Use
17104 as_process_stratum_target and adjust thread_change_ptid and
17105 add_thread calls.
17106 (bsd_uthread_target::update_thread_list): Use
17107 as_process_stratum_target and adjust find_thread_ptid,
17108 thread_change_ptid and add_thread calls.
17109 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17110 find_thread_ptid call.
17111 * corelow.c (add_to_thread_list): Adjust add_thread call.
17112 (core_target_open): Adjust add_thread_silent and thread_count
17113 calls.
17114 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17115 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17116 * event-top.c (async_disconnect): Pop targets from all inferiors.
17117 * exec.c (add_target_sections): Push exec target on all inferiors
17118 sharing the program space.
17119 (remove_target_sections): Remove the exec target from all
17120 inferiors sharing the program space.
17121 (exec_on_vfork): New.
17122 * exec.h (exec_on_vfork): Declare.
17123 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17124 Pass it down.
17125 (fbsd_nat_target::update_thread_list): Adjust.
17126 (fbsd_nat_target::resume): Adjust.
17127 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17128 down.
17129 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17130 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17131 get_thread_arch_regcache call.
17132 * fork-child.c (gdb_startup_inferior): Pass target down to
17133 startup_inferior and set_executing.
17134 * gdbthread.h (struct process_stratum_target): Forward declare.
17135 (add_thread, add_thread_silent, add_thread_with_info)
17136 (in_thread_list): Add process_stratum_target parameter.
17137 (find_thread_ptid(inferior*, ptid_t)): New overload.
17138 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17139 parameter.
17140 (all_threads()): Delete overload.
17141 (all_threads, all_non_exited_threads): Add process_stratum_target
17142 parameter.
17143 (all_threads_safe): Use brace initialization.
17144 (thread_count): Add process_stratum_target parameter.
17145 (set_resumed, set_running, set_stop_requested, set_executing)
17146 (threads_are_executing, finish_thread_state): Add
17147 process_stratum_target parameter.
17148 (switch_to_thread): Use is_current_thread.
17149 * i386-fbsd-tdep.c: Include "inferior.h".
17150 (i386fbsd_get_thread_local_address): Pass down target.
17151 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17152 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17153 have_inferiors check.
17154 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17155 (inf_ptrace_target::attach): Adjust.
17156 * infcall.c (run_inferior_call): Adjust.
17157 * infcmd.c (run_command_1): Pass target to
17158 scoped_finish_thread_state.
17159 (proceed_thread_callback): Skip inferiors with no execution.
17160 (continue_command): Rename 'all_threads' local to avoid hiding
17161 'all_threads' function. Adjust get_last_target_status call.
17162 (prepare_one_step): Adjust set_running call.
17163 (signal_command): Use user_visible_resume_target. Compare thread
17164 pointers instead of inferior_ptid.
17165 (info_program_command): Adjust to pass down target.
17166 (attach_command): Mark target's 'thread_executing' flag.
17167 (stop_current_target_threads_ns): New, factored out from ...
17168 (interrupt_target_1): ... this. Switch inferior before making
17169 target calls.
17170 * inferior-iter.h
17171 (struct all_inferiors_iterator, struct all_inferiors_range)
17172 (struct all_inferiors_safe_range)
17173 (struct all_non_exited_inferiors_range): Filter on
17174 process_stratum_target too. Remove explicit.
17175 * inferior.c (inferior::inferior): Push dummy target on target
17176 stack.
17177 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17178 Add process_stratum_target parameter, and pass it down.
17179 (have_live_inferiors): Adjust.
17180 (switch_to_inferior_and_push_target): New.
17181 (add_inferior_command, clone_inferior_command): Handle
17182 "-no-connection" parameter. Use
17183 switch_to_inferior_and_push_target.
17184 (_initialize_inferior): Mention "-no-connection" option in
17185 the help of "add-inferior" and "clone-inferior" commands.
17186 * inferior.h: Include "process-stratum-target.h".
17187 (interrupt_target_1): Use bool.
17188 (struct inferior) <push_target, unpush_target, target_is_pushed,
17189 find_target_beneath, top_target, process_target, target_at,
17190 m_stack>: New.
17191 (discard_all_inferiors): Delete.
17192 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17193 (all_inferiors, all_non_exited_inferiors): Add
17194 process_stratum_target parameter.
17195 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17196 (target_last_proc_target): New global.
17197 (follow_fork_inferior): Push target on new inferior. Pass target
17198 to add_thread_silent. Call exec_on_vfork. Handle target's
17199 reference count.
17200 (follow_fork): Adjust get_last_target_status call. Also consider
17201 target.
17202 (follow_exec): Push target on new inferior.
17203 (struct execution_control_state) <target>: New field.
17204 (user_visible_resume_target): New.
17205 (do_target_resume): Call target_async.
17206 (resume_1): Set target's threads_executing flag. Consider resume
17207 target.
17208 (commit_resume_all_targets): New.
17209 (proceed): Also consider resume target. Skip threads of inferiors
17210 with no execution. Commit resumtion in all targets.
17211 (start_remote): Pass current inferior to wait_for_inferior.
17212 (infrun_thread_stop_requested): Consider target as well. Pass
17213 thread_info pointer to clear_inline_frame_state instead of ptid.
17214 (infrun_thread_thread_exit): Consider target as well.
17215 (random_pending_event_thread): New inferior parameter. Use it.
17216 (do_target_wait): Rename to ...
17217 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17218 down.
17219 (threads_are_resumed_pending_p, do_target_wait): New.
17220 (prepare_for_detach): Adjust calls.
17221 (wait_for_inferior): New inferior parameter. Handle it. Use
17222 do_target_wait_1 instead of do_target_wait.
17223 (fetch_inferior_event): Adjust. Switch to representative
17224 inferior. Pass target down.
17225 (set_last_target_status): Add process_stratum_target parameter.
17226 Save target in global.
17227 (get_last_target_status): Add process_stratum_target parameter and
17228 handle it.
17229 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17230 (context_switch): Check inferior_ptid == null_ptid before calling
17231 inferior_thread().
17232 (get_inferior_stop_soon): Pass down target.
17233 (wait_one): Rename to ...
17234 (poll_one_curr_target): ... this.
17235 (struct wait_one_event): New.
17236 (wait_one): New.
17237 (stop_all_threads): Adjust.
17238 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17239 event's target.
17240 (switch_back_to_stepped_thread): Also consider target.
17241 (print_stop_event): Update.
17242 (normal_stop): Update. Also consider the resume target.
17243 * infrun.h (wait_for_inferior): Remove declaration.
17244 (user_visible_resume_target): New declaration.
17245 (get_last_target_status, set_last_target_status): New
17246 process_stratum_target parameter.
17247 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17248 process_stratum_target parameter, and use it.
17249 (clear_inline_frame_state (thread_info*)): New.
17250 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17251 process_stratum_target parameter.
17252 (clear_inline_frame_state (thread_info*)): Declare.
17253 * linux-fork.c (delete_checkpoint_command): Pass target down to
17254 find_thread_ptid.
17255 (checkpoint_command): Adjust.
17256 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17257 instead of just tweaking inferior_ptid.
17258 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17259 (exit_lwp): Pass target down to find_thread_ptid.
17260 (attach_proc_task_lwp_callback): Pass target down to
17261 add_thread/set_running/set_executing.
17262 (linux_nat_target::attach): Pass target down to
17263 thread_change_ptid.
17264 (get_detach_signal): Pass target down to find_thread_ptid.
17265 Consider last target status's target.
17266 (linux_resume_one_lwp_throw, resume_lwp)
17267 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17268 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17269 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17270 (linux_nat_target::async_wait_fd): New.
17271 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17272 target down.
17273 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17274 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17275 * linux-thread-db.c (struct thread_db_info::process_target): New
17276 field.
17277 (add_thread_db_info): Save target.
17278 (get_thread_db_info): New process_stratum_target parameter. Also
17279 match target.
17280 (delete_thread_db_info): New process_stratum_target parameter.
17281 Also match target.
17282 (thread_from_lwp): Adjust to pass down target.
17283 (thread_db_notice_clone): Pass down target.
17284 (check_thread_db_callback): Pass down target.
17285 (try_thread_db_load_1): Always push the thread_db target.
17286 (try_thread_db_load, record_thread): Pass target down.
17287 (thread_db_target::detach): Pass target down. Always unpush the
17288 thread_db target.
17289 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17290 target down. Always unpush the thread_db target.
17291 (find_new_threads_callback, thread_db_find_new_threads_2)
17292 (thread_db_target::update_thread_list): Pass target down.
17293 (thread_db_target::pid_to_str): Pass current inferior down.
17294 (thread_db_target::get_thread_local_address): Pass target down.
17295 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17296 target down.
17297 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17298 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17299 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17300 (procfs_init_inferior): Rename to ...
17301 (procfs_target::procfs_init_inferior): ... this and adjust.
17302 (procfs_target::create_inferior, procfs_notice_thread)
17303 (procfs_do_thread_registers): Adjust.
17304 * ppc-fbsd-tdep.c: Include "inferior.h".
17305 (ppcfbsd_get_thread_local_address): Pass down target.
17306 * proc-service.c (ps_xfer_memory): Switch current inferior and
17307 program space as well.
17308 (get_ps_regcache): Pass target down.
17309 * process-stratum-target.c
17310 (process_stratum_target::thread_address_space)
17311 (process_stratum_target::thread_architecture): Pass target down.
17312 * process-stratum-target.h
17313 (process_stratum_target::threads_executing): New field.
17314 (as_process_stratum_target): New.
17315 * ravenscar-thread.c
17316 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17317 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17318 down.
17319 * record-btrace.c (record_btrace_target::info_record): Adjust.
17320 (record_btrace_target::record_method)
17321 (record_btrace_target::record_is_replaying)
17322 (record_btrace_target::fetch_registers)
17323 (get_thread_current_frame_id, record_btrace_target::resume)
17324 (record_btrace_target::wait, record_btrace_target::stop): Pass
17325 target down.
17326 * record-full.c (record_full_wait_1): Switch to event thread.
17327 Pass target down.
17328 * regcache.c (regcache::regcache)
17329 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17330 process_stratum_target parameter and handle it.
17331 (current_thread_target): New global.
17332 (get_thread_regcache): Add process_stratum_target parameter and
17333 handle it. Switch inferior before calling target method.
17334 (get_thread_regcache): Pass target down.
17335 (get_thread_regcache_for_ptid): Pass target down.
17336 (registers_changed_ptid): Add process_stratum_target parameter and
17337 handle it.
17338 (registers_changed_thread, registers_changed): Pass target down.
17339 (test_get_thread_arch_aspace_regcache): New.
17340 (current_regcache_test): Define a couple local test_target_ops
17341 instances and use them for testing.
17342 (readwrite_regcache): Pass process_stratum_target parameter.
17343 (cooked_read_test, cooked_write_test): Pass mock_target down.
17344 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17345 (get_thread_arch_aspace_regcache): Add process_stratum_target
17346 parameter.
17347 (regcache::target): New method.
17348 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17349 (regcache::registers_changed_ptid): Add process_stratum_target
17350 parameter.
17351 (regcache::m_target): New field.
17352 (registers_changed_ptid): Add process_stratum_target parameter.
17353 * remote.c (remote_state::supports_vCont_probed): New field.
17354 (remote_target::async_wait_fd): New method.
17355 (remote_unpush_and_throw): Add remote_target parameter.
17356 (get_current_remote_target): Adjust.
17357 (remote_target::remote_add_inferior): Push target.
17358 (remote_target::remote_add_thread)
17359 (remote_target::remote_notice_new_inferior)
17360 (get_remote_thread_info): Pass target down.
17361 (remote_target::update_thread_list): Skip threads of inferiors
17362 bound to other targets. (remote_target::close): Don't discard
17363 inferiors. (remote_target::add_current_inferior_and_thread)
17364 (remote_target::process_initial_stop_replies)
17365 (remote_target::start_remote)
17366 (remote_target::remote_serial_quit_handler): Pass down target.
17367 (remote_target::remote_unpush_target): New remote_target
17368 parameter. Unpush the target from all inferiors.
17369 (remote_target::remote_unpush_and_throw): New remote_target
17370 parameter. Pass it down.
17371 (remote_target::open_1): Check whether the current inferior has
17372 execution instead of checking whether any inferior is live. Pass
17373 target down.
17374 (remote_target::remote_detach_1): Pass down target. Use
17375 remote_unpush_target.
17376 (extended_remote_target::attach): Pass down target.
17377 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17378 (remote_target::append_resumption): Pass down target.
17379 (remote_target::append_pending_thread_resumptions)
17380 (remote_target::remote_resume_with_hc, remote_target::resume)
17381 (remote_target::commit_resume): Pass down target.
17382 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17383 (remote_target::interrupt_query)
17384 (remote_target::remove_new_fork_children)
17385 (remote_target::check_pending_events_prevent_wildcard_vcont)
17386 (remote_target::remote_parse_stop_reply)
17387 (remote_target::process_stop_reply): Pass down target.
17388 (first_remote_resumed_thread): New remote_target parameter. Pass
17389 it down.
17390 (remote_target::wait_as): Pass down target.
17391 (unpush_and_perror): New remote_target parameter. Pass it down.
17392 (remote_target::readchar, remote_target::remote_serial_write)
17393 (remote_target::getpkt_or_notif_sane_1)
17394 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17395 down target.
17396 (remote_target::mourn_inferior): Pass down target. Use
17397 remote_unpush_target.
17398 (remote_target::core_of_thread)
17399 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17400 (remote_target::pid_to_exec_file)
17401 (remote_target::thread_handle_to_thread_info): Pass down target.
17402 (remote_target::async_wait_fd): New.
17403 * riscv-fbsd-tdep.c: Include "inferior.h".
17404 (riscv_fbsd_get_thread_local_address): Pass down target.
17405 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17406 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17407 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17408 Adjust.
17409 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17410 * solib-svr4.c (enable_break): Pass down target.
17411 * spu-multiarch.c (parse_spufs_run): Pass down target.
17412 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17413 * target-delegates.c: Regenerate.
17414 * target.c (g_target_stack): Delete.
17415 (current_top_target): Return the current inferior's top target.
17416 (target_has_execution_1): Refer to the passed-in inferior's top
17417 target.
17418 (target_supports_terminal_ours): Check whether the initial
17419 inferior was already created.
17420 (decref_target): New.
17421 (target_stack::push): Incref/decref the target.
17422 (push_target, push_target, unpush_target): Adjust.
17423 (target_stack::unpush): Defref target.
17424 (target_is_pushed): Return bool. Adjust to refer to the current
17425 inferior's target stack.
17426 (dispose_inferior): Delete, and inline parts ...
17427 (target_preopen): ... here. Only dispose of the current inferior.
17428 (target_detach): Hold strong target reference while detaching.
17429 Pass target down.
17430 (target_thread_name): Add assertion.
17431 (target_resume): Pass down target.
17432 (target_ops::beneath, find_target_at): Adjust to refer to the
17433 current inferior's target stack.
17434 (get_dummy_target): New.
17435 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17436 has a thread running.
17437 (initialize_targets): Rename to ...
17438 (_initialize_target): ... this.
17439 * target.h: Include "gdbsupport/refcounted-object.h".
17440 (struct target_ops): Inherit refcounted_object.
17441 (target_ops::shortname, target_ops::longname): Make const.
17442 (target_ops::async_wait_fd): New method.
17443 (decref_target): Declare.
17444 (struct target_ops_ref_policy): New.
17445 (target_ops_ref): New typedef.
17446 (get_dummy_target): Declare function.
17447 (target_is_pushed): Return bool.
17448 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17449 (all_matching_threads_iterator::all_matching_threads_iterator):
17450 Handle filter target.
17451 * thread-iter.h (struct all_matching_threads_iterator, struct
17452 all_matching_threads_range, class all_non_exited_threads_range):
17453 Filter by target too. Remove explicit.
17454 * thread.c (threads_executing): Delete.
17455 (inferior_thread): Pass down current inferior.
17456 (clear_thread_inferior_resources): Pass down thread pointer
17457 instead of ptid_t.
17458 (add_thread_silent, add_thread_with_info, add_thread): Add
17459 process_stratum_target parameter. Use it for thread and inferior
17460 searches.
17461 (is_current_thread): New.
17462 (thread_info::deletable): Use it.
17463 (find_thread_ptid, thread_count, in_thread_list)
17464 (thread_change_ptid, set_resumed, set_running): New
17465 process_stratum_target parameter. Pass it down.
17466 (set_executing): New process_stratum_target parameter. Pass it
17467 down. Adjust reference to 'threads_executing'.
17468 (threads_are_executing): New process_stratum_target parameter.
17469 Adjust reference to 'threads_executing'.
17470 (set_stop_requested, finish_thread_state): New
17471 process_stratum_target parameter. Pass it down.
17472 (switch_to_thread): Also match inferior.
17473 (switch_to_thread): New process_stratum_target parameter. Pass it
17474 down.
17475 (update_threads_executing): Reimplement.
17476 * top.c (quit_force): Pop targets from all inferior.
17477 (gdb_init): Don't call initialize_targets.
17478 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17479 Declare.
17480 (windows_add_thread, windows_delete_thread): Adjust.
17481 (get_windows_debug_event): Rename to ...
17482 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17483 * tracefile-tfile.c (tfile_target_open): Pass down target.
17484 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17485 Forward declare.
17486 (switch_to_thread): Add process_stratum_target parameter.
17487 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17488 parameter. Use it.
17489 (mi_on_resume): Pass target down.
17490 * nat/fork-inferior.c (startup_inferior): Add
17491 process_stratum_target parameter. Pass it down.
17492 * nat/fork-inferior.h (startup_inferior): Add
17493 process_stratum_target parameter.
17494 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17495
17496 2020-01-10 Pedro Alves <palves@redhat.com>
17497
17498 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17499 directly. Instead find the first thread in the thread list and
17500 use switch_to_thread.
17501
17502 2020-01-10 Pedro Alves <palves@redhat.com>
17503
17504 * remote.c (remote_target::remote_add_inferior): Don't bind a
17505 process to the current inferior if the current inferior is already
17506 bound to a process.
17507
17508 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17509 Pedro Alves <palves@redhat.com>
17510
17511 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17512 If no process is specified, return null_ptid instead of
17513 inferior_ptid.
17514 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17515 TARGET_WAITKIND_SIGNALLED with no pid.
17516
17517 2020-01-10 Pedro Alves <palves@redhat.com>
17518
17519 * remote.c (first_remote_resumed_thread): New.
17520 (remote_target::wait_as): Use it as default event_ptid instead of
17521 inferior_ptid.
17522
17523 2020-01-10 Pedro Alves <palves@redhat.com>
17524
17525 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17526
17527 2020-01-10 Pedro Alves <palves@redhat.com>
17528
17529 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17530 not -1.
17531
17532 2020-01-10 Pedro Alves <palves@redhat.com>
17533
17534 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17535 ptid to get_last_target_status.
17536 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17537 ptid to get_last_target_status.
17538 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17539 get_last_target_status.
17540 (info_program_command): Don't pass a target_waitstatus to
17541 get_last_target_status.
17542 * infrun.c (init_wait_for_inferior): Use
17543 nullify_last_target_wait_ptid.
17544 (get_last_target_status): Handle nullptr arguments.
17545 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17546 (print_stop_event): Don't pass a ptid to get_last_target_status.
17547 (normal_stop): Don't pass a ptid to get_last_target_status.
17548 * infrun.h (get_last_target_status, set_last_target_status): Move
17549 comments here and update.
17550 (nullify_last_target_wait_ptid): Declare.
17551 * linux-fork.c (fork_load_infrun_state): Remove local extern
17552 declaration of nullify_last_target_wait_ptid.
17553 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17554 to get_last_target_status.
17555
17556 2020-01-10 Pedro Alves <palves@redhat.com>
17557
17558 * gdbthread.h (scoped_restore_current_thread)
17559 <dont_restore, restore, m_dont_restore>: Declare.
17560 * thread.c (thread_alive): Add assertion. Return bool.
17561 (switch_to_thread_if_alive): New.
17562 (prune_threads): Switch inferior/thread.
17563 (print_thread_info_1): Switch thread before calling target methods.
17564 (scoped_restore_current_thread::restore): New, factored out from
17565 ...
17566 (scoped_restore_current_thread::~scoped_restore_current_thread):
17567 ... this.
17568 (scoped_restore_current_thread::scoped_restore_current_thread):
17569 Add assertion.
17570 (thread_apply_all_command, thread_select): Use
17571 switch_to_thread_if_alive.
17572 * infrun.c (proceed, restart_threads, handle_signal_stop)
17573 (switch_back_to_stepped_thread): Switch current thread before
17574 calling target methods.
17575
17576 2020-01-10 Pedro Alves <palves@redhat.com>
17577
17578 * inferior.c (switch_to_inferior_no_thread): New function,
17579 factored out from ...
17580 (inferior_command): ... here.
17581 * inferior.h (switch_to_inferior_no_thread): Declare.
17582 * mi/mi-main.c (run_one_inferior): Use
17583 switch_to_inferior_no_thread.
17584
17585 2020-01-10 Pedro Alves <palves@redhat.com>
17586
17587 * infcmd.c (kill_command): Remove dead code.
17588
17589 2020-01-10 Pedro Alves <palves@redhat.com>
17590
17591 * remote.c (remote_target::mourn_inferior): No longer check
17592 whether the target is running.
17593
17594 2020-01-10 Pedro Alves <palves@redhat.com>
17595
17596 * corelow.c (core_target::has_execution): Change parameter type to
17597 inferior pointer.
17598 * inferior.c (number_of_live_inferiors): Use
17599 inferior::has_execution instead of target_has_execution_1.
17600 * inferior.h (inferior::has_execution): New.
17601 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17602 inferior::has_execution instead of target_has_execution_1.
17603 * process-stratum-target.c
17604 (process_stratum_target::has_execution): Change parameter type to
17605 inferior pointer. Check the inferior's PID instead of
17606 inferior_ptid.
17607 * process-stratum-target.h
17608 (process_stratum_target::has_execution): Change parameter type to
17609 inferior pointer.
17610 * record-full.c (record_full_core_target::has_execution): Change
17611 parameter type to inferior pointer.
17612 * target.c (target_has_execution_1): Change parameter type to
17613 inferior pointer.
17614 (target_has_execution_current): Adjust.
17615 * target.h (target_ops::has_execution): Change parameter type to
17616 inferior pointer.
17617 (target_has_execution_1): Change parameter type to inferior
17618 pointer. Change return type to bool.
17619 * tracefile.h (tracefile_target::has_execution): Change parameter
17620 type to inferior pointer.
17621
17622 2020-01-10 Pedro Alves <palves@redhat.com>
17623
17624 * exceptions.c (print_flush): Remove current_top_target() check.
17625
17626 2020-01-10 Pedro Alves <palves@redhat.com>
17627
17628 * remote.c (show_remote_exec_file): Show the current inferior's
17629 exec-file instead of the command variable's value.
17630
17631 2020-01-10 Pedro Alves <palves@redhat.com>
17632
17633 * record-full.c (record_full_resume_ptid): New global.
17634 (record_full_target::resume): Set it.
17635 (record_full_wait_1): Use record_full_resume_ptid instead of
17636 inferior_ptid.
17637
17638 2020-01-10 Pedro Alves <palves@redhat.com>
17639
17640 * gdbthread.h (scoped_restore_current_thread)
17641 <dont_restore, restore, m_dont_restore>: Declare.
17642 * thread.c (thread_alive): Add assertion. Return bool.
17643 (switch_to_thread_if_alive): New.
17644 (prune_threads): Switch inferior/thread.
17645 (print_thread_info_1): Switch thread before calling target methods.
17646 (scoped_restore_current_thread::restore): New, factored out from
17647 ...
17648 (scoped_restore_current_thread::~scoped_restore_current_thread):
17649 ... this.
17650 (scoped_restore_current_thread::scoped_restore_current_thread):
17651 Add assertion.
17652 (thread_apply_all_command, thread_select): Use
17653 switch_to_thread_if_alive.
17654
17655 2020-01-10 George Barrett <bob@bob131.so>
17656
17657 * stap-probe.c (stap_modify_semaphore): Don't check for null
17658 semaphores.
17659 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17660 for null semaphores.
17661
17662 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17663
17664 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17665 all source windows, and maintain horizontal scroll status while
17666 doing so.
17667
17668 2020-01-09 Tom Tromey <tom@tromey.com>
17669
17670 PR tui/18932:
17671 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17672 update_source_window, not print_source_lines.
17673
17674 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17675
17676 * tui/tui.c (tui_enable): Register tui hooks after calling
17677 tui_display_main.
17678
17679 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17680
17681 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17682
17683 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17684
17685 * thread.c (print_thread_info_1): Fix indentation.
17686
17687 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17688
17689 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17690 unique_xmalloc_ptr outside the if to always free the demangled name.
17691
17692 2020-01-08 Tom Tromey <tromey@adacore.com>
17693
17694 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17695 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17696 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17697 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17698 Remove.
17699 (section_offsets): New typedef.
17700 * symtab.c (fixup_section, get_msymbol_address): Update.
17701 * symmisc.c (dump_msymbols): Update.
17702 * symfile.h (relative_addr_info_to_section_offsets)
17703 (symfile_map_offsets_to_segments): Update.
17704 * symfile.c (build_section_addr_info_from_objfile)
17705 (init_objfile_sect_indices): Update.
17706 (struct place_section_arg): Change type of "offsets".
17707 (place_section): Update.
17708 (relative_addr_info_to_section_offsets): Change type of
17709 "section_offsets". Remove "num_sections" parameter.
17710 (default_symfile_offsets, syms_from_objfile_1)
17711 (set_objfile_default_section_offset): Update.
17712 (reread_symbols): No need to preserve section offsets by hand.
17713 (symfile_map_offsets_to_segments): Change type of "offsets".
17714 * stap-probe.c (relocate_address): Update.
17715 * stabsread.h (process_one_symbol): Update.
17716 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17717 (solib_target_relocate_section_addresses): Update.
17718 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17719 Update.
17720 * solib-frv.c (frv_relocate_main_executable): Update.
17721 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17722 * solib-aix.c (solib_aix_get_section_offsets): Change return
17723 type.
17724 (solib_aix_solib_create_inferior_hook): Update.
17725 * remote.c (remote_target::get_offsets): Update.
17726 * psymtab.c (find_pc_sect_psymtab): Update.
17727 * psympriv.h (struct partial_symbol) <address, text_low,
17728 text_high>: Update.
17729 * objfiles.h (obj_section_offset): Update.
17730 (struct objfile) <section_offsets>: Change type.
17731 <num_sections>: Remove.
17732 (objfile_relocate): Update.
17733 * objfiles.c (entry_point_address_query): Update
17734 (relocate_one_symbol): Change type of "section_offsets".
17735 (objfile_relocate1, objfile_relocate1): Change type of
17736 "new_offsets".
17737 (objfile_rebase1): Update.
17738 * mipsread.c (mipscoff_symfile_read): Update.
17739 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17740 parameter.
17741 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17742 (parse_external, psymtab_to_symtab_1): Update.
17743 * machoread.c (macho_symfile_offsets): Update.
17744 * ia64-tdep.c (ia64_find_unwind_table): Update.
17745 * hppa-tdep.c (read_unwind_info): Update.
17746 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17747 * dwarf2read.c (create_addrmap_from_index)
17748 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17749 (process_psymtab_comp_unit_reader, add_partial_symbol)
17750 (add_partial_subprogram, process_full_comp_unit)
17751 (read_file_scope, read_func_scope, read_lexical_block_scope)
17752 (read_call_site_scope, dwarf2_rnglists_process)
17753 (dwarf2_ranges_process, dwarf2_ranges_read)
17754 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17755 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17756 Update.
17757 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17758 Update.
17759 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17760 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17761 (process_one_symbol): Change type of "section_offsets".
17762 * ctfread.c (get_objfile_text_range): Update.
17763 * coffread.c (coff_symtab_read, enter_linenos)
17764 (process_coff_symbol): Update.
17765 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17766 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17767
17768 2020-01-08 Tom Tromey <tromey@adacore.com>
17769
17770 * dwarf2read.c (parse_macro_definition): Use std::string.
17771 (parse_macro_definition): Likewise.
17772
17773 2020-01-08 Tom Tromey <tromey@adacore.com>
17774
17775 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17776 (ATTR_ALLOC_CHUNK): Remove.
17777
17778 2020-01-08 Tom Tromey <tromey@adacore.com>
17779
17780 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17781
17782 2020-01-08 Tom Tromey <tromey@adacore.com>
17783
17784 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17785 (dwarf2_compute_name, open_dwo_file): Likewise.
17786 (process_enumeration_scope): Use std::vector.
17787 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17788 (partial_die_info::fixup, dwarf2_start_subfile)
17789 (guess_full_die_structure_name, dwarf2_name): Likewise.
17790 (determine_prefix): Update.
17791 (guess_full_die_structure_name): Make return type const.
17792 (partial_die_full_name): Return unique_xmalloc_ptr.
17793 (DW_FIELD_ALLOC_CHUNK): Remove.
17794
17795 2020-01-07 Tom Tromey <tromey@adacore.com>
17796
17797 PR build/24937:
17798 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17799
17800 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17801
17802 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17803
17804 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17805
17806 * stack.c (print_frame_info): Move disassemble_next_line code
17807 inside source_print block.
17808
17809 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17810
17811 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17812 gdb/signals.h, as we are now using native signal symbols.
17813
17814 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17815
17816 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17817 overflow by an early check of content vs threshold.
17818 * tui/tui-source.c (tui_source_window::line_is_displayed):
17819 Likewise.
17820
17821 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17822
17823 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17824
17825 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17826
17827 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17828 export table if no section contains it's RVA.
17829
17830 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17831
17832 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17833
17834 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17835
17836 * source.c (print_source_lines_base): Set last_line_listed.
17837
17838 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17839
17840 * tui/tui-disasm.c: Remove trailing spaces.
17841
17842 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17843 Pedro Alves <palves@redhat.com>
17844
17845 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17846 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17847 (windows_gdb_signal_to_target): New function, uses the above
17848 enumeration to convert GDB internal signal codes to equivalent
17849 Windows codes.
17850 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17851 * windows-nat.c: Include "gdb_wait.h".
17852 (get_windows_debug_event): Extract the fatal exception from the
17853 exit status and convert to the equivalent Posix signal number.
17854 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17855 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17856 * gdbsupport/gdb_wait.c: New file, implements
17857 windows_status_to_termsig.
17858 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17859 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17860
17861 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17862
17863 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17864 show_layout.
17865
17866 2020-01-05 Luis Machado <luis.machado@linaro.org>
17867
17868 * aarch64-linux-nat.c
17869 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17870 and bfd_mach_aarch64.
17871
17872 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17873
17874 * ui-file.c (stdio_file::can_emit_style_escape)
17875 (tee_file::can_emit_style_escape): Ensure style is used also on
17876 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17877 to gdb_stdout.
17878 * main.c (set_gdb_data_directory): Use file style to output the
17879 warning that the given pathname is not a directory.
17880 * top.c (show_history_filename, gdb_safe_append_history)
17881 (show_gdb_datadir): Use file style.
17882
17883 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17884
17885 * solib-target.c (struct lm_info_target):
17886 Change offsets to be a unique_xmalloc_ptr.
17887 (solib_target_relocate_section_addresses): Update.
17888
17889 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17890
17891 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17892
17893 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17894
17895 * MAINTAINERS (Write After Approval): Add myself.
17896
17897 2020-01-02 Luis Machado <luis.machado@linaro.org>
17898
17899 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17900 Cell BE architecture.
17901 * target.h (struct target_ops) <thread_architecture>: Likewise.
17902
17903 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17904
17905 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17906
17907 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17908
17909 * MAINTAINERS (Write After Approval): Add myself.
17910
17911 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17912
17913 * gdbarch.sh: Update copyright year range of generated files.
17914
17915 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17916
17917 Update copyright year range in all GDB files.
17918
17919 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17920
17921 * copyright.py: Convert to Python 3.
17922
17923 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17924
17925 * copyright.py: Adapt after move of gnulib directory from gdb
17926 directory to toplevel directory.
17927
17928 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17929
17930 * copyright.py (main): Exit if run from the wrong directory.
17931
17932 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17933
17934 * top.c (print_gdb_version): Change copyright year to 2020.
17935
17936 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17937
17938 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17939
17940 For older changes see ChangeLog-2019.
17941 \f
17942 Local Variables:
17943 mode: change-log
17944 left-margin: 8
17945 fill-column: 74
17946 version-control: never
17947 coding: utf-8
17948 End:
This page took 0.389015 seconds and 5 git commands to generate.